Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ public void visit(V element) {
});
}

default T accept(io.kubernetes.client.fluent.Visitor... visitors) {
default T accept(Visitor... visitors) {
return accept(Collections.emptyList(), visitors);
}

default T accept(List<Entry<String,Object>> path,io.kubernetes.client.fluent.Visitor... visitors) {
default T accept(List<Entry<String,Object>> path,Visitor... visitors) {
return accept(path, "", visitors);
}

default T accept(List<Entry<String,Object>> path,String currentKey,io.kubernetes.client.fluent.Visitor... visitors) {
default T accept(List<Entry<String,Object>> path,String currentKey,Visitor... visitors) {
List<Visitor> sortedVisitor = new ArrayList<>();
for (Visitor visitor : visitors) {
visitor = VisitorListener.wrap(visitor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private static Class<?> getClass(Type type) {
}
}

private static <T>Optional<Type> getMatchingInterface(Class<?> targetInterface,java.lang.reflect.Type... candidates) {
private static <T>Optional<Type> getMatchingInterface(Class<?> targetInterface,Type... candidates) {
if (candidates == null || candidates.length == 0) {
return Optional.empty();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
public class AdmissionregistrationV1ServiceReferenceBuilder extends AdmissionregistrationV1ServiceReferenceFluent<AdmissionregistrationV1ServiceReferenceBuilder> implements VisitableBuilder<AdmissionregistrationV1ServiceReference,AdmissionregistrationV1ServiceReferenceBuilder>{
public AdmissionregistrationV1ServiceReferenceBuilder() {
this(new AdmissionregistrationV1ServiceReference());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
package io.kubernetes.client.openapi.models;

import java.lang.Integer;
import java.lang.StringBuilder;
import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import java.util.Objects;
import java.lang.Object;
import java.lang.String;

/**
* Generated
*/
@SuppressWarnings("unchecked")
public class AdmissionregistrationV1ServiceReferenceFluent<A extends AdmissionregistrationV1ServiceReferenceFluent<A>> extends BaseFluent<A>{
public class AdmissionregistrationV1ServiceReferenceFluent<A extends io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReferenceFluent<A>> extends BaseFluent<A>{
public AdmissionregistrationV1ServiceReferenceFluent() {
}

Expand All @@ -23,13 +25,13 @@ public AdmissionregistrationV1ServiceReferenceFluent(AdmissionregistrationV1Serv
private Integer port;

protected void copyInstance(AdmissionregistrationV1ServiceReference instance) {
instance = (instance != null ? instance : new AdmissionregistrationV1ServiceReference());
instance = instance != null ? instance : new AdmissionregistrationV1ServiceReference();
if (instance != null) {
this.withName(instance.getName());
this.withNamespace(instance.getNamespace());
this.withPath(instance.getPath());
this.withPort(instance.getPort());
}
this.withName(instance.getName());
this.withNamespace(instance.getNamespace());
this.withPath(instance.getPath());
this.withPort(instance.getPort());
}
}

public String getName() {
Expand Down Expand Up @@ -85,28 +87,57 @@ public boolean hasPort() {
}

public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
if (this == o) {
return true;
}
if (o == null || this.getClass() != o.getClass()) {
return false;
}
if (!(super.equals(o))) {
return false;
}
AdmissionregistrationV1ServiceReferenceFluent that = (AdmissionregistrationV1ServiceReferenceFluent) o;
if (!java.util.Objects.equals(name, that.name)) return false;
if (!java.util.Objects.equals(namespace, that.namespace)) return false;
if (!java.util.Objects.equals(path, that.path)) return false;
if (!java.util.Objects.equals(port, that.port)) return false;
if (!(Objects.equals(name, that.name))) {
return false;
}
if (!(Objects.equals(namespace, that.namespace))) {
return false;
}
if (!(Objects.equals(path, that.path))) {
return false;
}
if (!(Objects.equals(port, that.port))) {
return false;
}
return true;
}

public int hashCode() {
return java.util.Objects.hash(name, namespace, path, port, super.hashCode());
return Objects.hash(name, namespace, path, port);
}

public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (name != null) { sb.append("name:"); sb.append(name + ","); }
if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); }
if (path != null) { sb.append("path:"); sb.append(path + ","); }
if (port != null) { sb.append("port:"); sb.append(port); }
if (!(name == null)) {
sb.append("name:");
sb.append(name);
sb.append(",");
}
if (!(namespace == null)) {
sb.append("namespace:");
sb.append(namespace);
sb.append(",");
}
if (!(path == null)) {
sb.append("path:");
sb.append(path);
sb.append(",");
}
if (!(port == null)) {
sb.append("port:");
sb.append(port);
}
sb.append("}");
return sb.toString();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
public class AdmissionregistrationV1WebhookClientConfigBuilder extends AdmissionregistrationV1WebhookClientConfigFluent<AdmissionregistrationV1WebhookClientConfigBuilder> implements VisitableBuilder<AdmissionregistrationV1WebhookClientConfig,AdmissionregistrationV1WebhookClientConfigBuilder>{
public AdmissionregistrationV1WebhookClientConfigBuilder() {
this(new AdmissionregistrationV1WebhookClientConfig());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package io.kubernetes.client.openapi.models;

import java.lang.StringBuilder;
import java.util.Optional;
import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.Nested;
import java.util.ArrayList;
import java.lang.String;
import java.lang.Byte;
import io.kubernetes.client.fluent.BaseFluent;
import java.util.Objects;
import java.util.Collection;
import java.lang.Object;
import java.util.List;
Expand All @@ -14,7 +17,7 @@
* Generated
*/
@SuppressWarnings("unchecked")
public class AdmissionregistrationV1WebhookClientConfigFluent<A extends AdmissionregistrationV1WebhookClientConfigFluent<A>> extends BaseFluent<A>{
public class AdmissionregistrationV1WebhookClientConfigFluent<A extends io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent<A>> extends BaseFluent<A>{
public AdmissionregistrationV1WebhookClientConfigFluent() {
}

Expand All @@ -26,12 +29,12 @@ public AdmissionregistrationV1WebhookClientConfigFluent(AdmissionregistrationV1W
private String url;

protected void copyInstance(AdmissionregistrationV1WebhookClientConfig instance) {
instance = (instance != null ? instance : new AdmissionregistrationV1WebhookClientConfig());
instance = instance != null ? instance : new AdmissionregistrationV1WebhookClientConfig();
if (instance != null) {
this.withCaBundle(instance.getCaBundle());
this.withService(instance.getService());
this.withUrl(instance.getUrl());
}
this.withCaBundle(instance.getCaBundle());
this.withService(instance.getService());
this.withUrl(instance.getUrl());
}
}

public A withCaBundle(byte... caBundle) {
Expand All @@ -48,51 +51,76 @@ public A withCaBundle(byte... caBundle) {
}

public byte[] getCaBundle() {
int size = caBundle != null ? caBundle.size() : 0;;
byte[] result = new byte[size];;
int size = caBundle != null ? caBundle.size() : 0;
byte[] result = new byte[size];
if (size == 0) {
return result;
}
int index = 0;;
int index = 0;
for (byte item : caBundle) {
result[index++] = item;
}
return result;
}

public A addToCaBundle(int index,Byte item) {
if (this.caBundle == null) {this.caBundle = new ArrayList<Byte>();}
if (this.caBundle == null) {
this.caBundle = new ArrayList();
}
this.caBundle.add(index, item);
return (A)this;
return (A) this;
}

public A setToCaBundle(int index,Byte item) {
if (this.caBundle == null) {this.caBundle = new ArrayList<Byte>();}
this.caBundle.set(index, item); return (A)this;
if (this.caBundle == null) {
this.caBundle = new ArrayList();
}
this.caBundle.set(index, item);
return (A) this;
}

public A addToCaBundle(java.lang.Byte... items) {
if (this.caBundle == null) {this.caBundle = new ArrayList<Byte>();}
for (Byte item : items) {this.caBundle.add(item);} return (A)this;
public A addToCaBundle(Byte... items) {
if (this.caBundle == null) {
this.caBundle = new ArrayList();
}
for (Byte item : items) {
this.caBundle.add(item);
}
return (A) this;
}

public A addAllToCaBundle(Collection<Byte> items) {
if (this.caBundle == null) {this.caBundle = new ArrayList<Byte>();}
for (Byte item : items) {this.caBundle.add(item);} return (A)this;
if (this.caBundle == null) {
this.caBundle = new ArrayList();
}
for (Byte item : items) {
this.caBundle.add(item);
}
return (A) this;
}

public A removeFromCaBundle(java.lang.Byte... items) {
if (this.caBundle == null) return (A)this;
for (Byte item : items) { this.caBundle.remove(item);} return (A)this;
public A removeFromCaBundle(Byte... items) {
if (this.caBundle == null) {
return (A) this;
}
for (Byte item : items) {
this.caBundle.remove(item);
}
return (A) this;
}

public A removeAllFromCaBundle(Collection<Byte> items) {
if (this.caBundle == null) return (A)this;
for (Byte item : items) { this.caBundle.remove(item);} return (A)this;
if (this.caBundle == null) {
return (A) this;
}
for (Byte item : items) {
this.caBundle.remove(item);
}
return (A) this;
}

public boolean hasCaBundle() {
return this.caBundle != null && !this.caBundle.isEmpty();
return this.caBundle != null && !(this.caBundle.isEmpty());
}

public AdmissionregistrationV1ServiceReference buildService() {
Expand Down Expand Up @@ -124,15 +152,15 @@ public ServiceNested<A> withNewServiceLike(AdmissionregistrationV1ServiceReferen
}

public ServiceNested<A> editService() {
return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(null));
return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null));
}

public ServiceNested<A> editOrNewService() {
return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(new AdmissionregistrationV1ServiceReferenceBuilder().build()));
return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(new AdmissionregistrationV1ServiceReferenceBuilder().build()));
}

public ServiceNested<A> editOrNewServiceLike(AdmissionregistrationV1ServiceReference item) {
return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(item));
return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item));
}

public String getUrl() {
Expand All @@ -149,26 +177,49 @@ public boolean hasUrl() {
}

public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
if (this == o) {
return true;
}
if (o == null || this.getClass() != o.getClass()) {
return false;
}
if (!(super.equals(o))) {
return false;
}
AdmissionregistrationV1WebhookClientConfigFluent that = (AdmissionregistrationV1WebhookClientConfigFluent) o;
if (!java.util.Objects.equals(caBundle, that.caBundle)) return false;
if (!java.util.Objects.equals(service, that.service)) return false;
if (!java.util.Objects.equals(url, that.url)) return false;
if (!(Objects.equals(caBundle, that.caBundle))) {
return false;
}
if (!(Objects.equals(service, that.service))) {
return false;
}
if (!(Objects.equals(url, that.url))) {
return false;
}
return true;
}

public int hashCode() {
return java.util.Objects.hash(caBundle, service, url, super.hashCode());
return Objects.hash(caBundle, service, url);
}

public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (caBundle != null && !caBundle.isEmpty()) { sb.append("caBundle:"); sb.append(caBundle + ","); }
if (service != null) { sb.append("service:"); sb.append(service + ","); }
if (url != null) { sb.append("url:"); sb.append(url); }
if (!(caBundle == null) && !(caBundle.isEmpty())) {
sb.append("caBundle:");
sb.append(caBundle);
sb.append(",");
}
if (!(service == null)) {
sb.append("service:");
sb.append(service);
sb.append(",");
}
if (!(url == null)) {
sb.append("url:");
sb.append(url);
}
sb.append("}");
return sb.toString();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
public class ApiextensionsV1ServiceReferenceBuilder extends ApiextensionsV1ServiceReferenceFluent<ApiextensionsV1ServiceReferenceBuilder> implements VisitableBuilder<ApiextensionsV1ServiceReference,ApiextensionsV1ServiceReferenceBuilder>{
public ApiextensionsV1ServiceReferenceBuilder() {
this(new ApiextensionsV1ServiceReference());
Expand Down
Loading
Loading