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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion fluent-gen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>io.kubernetes</groupId>
<artifactId>client-java-parent</artifactId>
<version>13.0.1-SNAPSHOT</version>
<version>14.0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ public static <T>io.kubernetes.client.fluent.VisitableBuilder<T,?> builderOf(T i
}

}
public static <T>java.util.ArrayList<T> build(java.util.List<? extends io.kubernetes.client.fluent.Builder<? extends T>> list) {
public static <T>java.util.List<T> build(java.util.List<? extends io.kubernetes.client.fluent.Builder<? extends T>> list) {
return list == null ? null : new ArrayList<T>(list.stream().map(Builder::build).collect(Collectors.toList()));
}
public static <T>java.util.ArrayList<T> build(java.util.Set<? extends io.kubernetes.client.fluent.Builder<? extends T>> set) {
public static <T>java.util.List<T> build(java.util.Set<? extends io.kubernetes.client.fluent.Builder<? extends T>> set) {
return set == null ? null : new ArrayList<>(set.stream().map(Builder::build).collect(Collectors.toList()));
}
public static <T>java.util.ArrayList<T> aggregate(java.util.List<? extends T>... lists) {
public static <T>java.util.List<T> aggregate(java.util.List<? extends T>... lists) {
return new ArrayList(Arrays.stream(lists).filter(Objects::nonNull).collect(Collectors.toList()));
}
public static <T>java.util.LinkedHashSet<T> aggregate(java.util.Set<? extends T>[] sets) {
public static <T>java.util.Set<T> aggregate(java.util.Set<? extends T>[] sets) {
return new LinkedHashSet(Arrays.stream(sets).filter(Objects::nonNull).collect(Collectors.toSet()));
}
public static <V extends io.kubernetes.client.fluent.Visitor<?>,F>java.lang.Boolean canVisit(V visitor,F fluent) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package io.kubernetes.client.fluent;

public interface Builder<T>{
import java.lang.FunctionalInterface;
@java.lang.FunctionalInterface
public interface Builder<T>{
T build();

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public interface AdmissionregistrationV1ServiceReferenceFluent<A extends io.kube
* Method is deprecated. use withName instead.
*/
@java.lang.Deprecated
public A withNewName(java.lang.String original);
public A withNewName(java.lang.String arg0);
public java.lang.String getNamespace();
public A withNamespace(java.lang.String namespace);
public java.lang.Boolean hasNamespace();
Expand All @@ -28,7 +28,7 @@ public interface AdmissionregistrationV1ServiceReferenceFluent<A extends io.kube
* Method is deprecated. use withNamespace instead.
*/
@java.lang.Deprecated
public A withNewNamespace(java.lang.String original);
public A withNewNamespace(java.lang.String arg0);
public java.lang.String getPath();
public A withPath(java.lang.String path);
public java.lang.Boolean hasPath();
Expand All @@ -37,7 +37,7 @@ public interface AdmissionregistrationV1ServiceReferenceFluent<A extends io.kube
* Method is deprecated. use withPath instead.
*/
@java.lang.Deprecated
public A withNewPath(java.lang.String original);
public A withNewPath(java.lang.String arg0);
public java.lang.Integer getPort();
public A withPort(java.lang.Integer port);
public java.lang.Boolean hasPort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public java.lang.Boolean hasName() {
* Method is deprecated. use withName instead.
*/
@java.lang.Deprecated
public A withNewName(java.lang.String original) {
return (A)withName(new String(original));
public A withNewName(java.lang.String arg0) {
return (A)withName(new String(arg0));
}
public java.lang.String getNamespace() {
return this.namespace;
Expand All @@ -58,8 +58,8 @@ public java.lang.Boolean hasNamespace() {
* Method is deprecated. use withNamespace instead.
*/
@java.lang.Deprecated
public A withNewNamespace(java.lang.String original) {
return (A)withNamespace(new String(original));
public A withNewNamespace(java.lang.String arg0) {
return (A)withNamespace(new String(arg0));
}
public java.lang.String getPath() {
return this.path;
Expand All @@ -75,8 +75,8 @@ public java.lang.Boolean hasPath() {
* Method is deprecated. use withPath instead.
*/
@java.lang.Deprecated
public A withNewPath(java.lang.String original) {
return (A)withPath(new String(original));
public A withNewPath(java.lang.String arg0) {
return (A)withPath(new String(arg0));
}
public java.lang.Integer getPort() {
return this.port;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public interface AdmissionregistrationV1WebhookClientConfigFluent<A extends io.k
* Method is deprecated. use withUrl instead.
*/
@java.lang.Deprecated
public A withNewUrl(java.lang.String original);
public A withNewUrl(java.lang.String arg0);
public interface ServiceNested<N> extends io.kubernetes.client.fluent.Nested<N>,io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReferenceFluent<io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested<N>>{
public N and();
public N endService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ public java.lang.Boolean hasCaBundle() {
*/
@java.lang.Deprecated
public io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference getService() {
return this.service!=null?this.service.build():null;
return this.service!=null ?this.service.build():null;
}
public io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference buildService() {
return this.service!=null?this.service.build():null;
return this.service!=null ?this.service.build():null;
}
public A withService(io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference service) {
_visitables.get("service").remove(this.service);
Expand Down Expand Up @@ -121,8 +121,8 @@ public java.lang.Boolean hasUrl() {
* Method is deprecated. use withUrl instead.
*/
@java.lang.Deprecated
public A withNewUrl(java.lang.String original) {
return (A)withUrl(new String(original));
public A withNewUrl(java.lang.String arg0) {
return (A)withUrl(new String(arg0));
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public interface ApiextensionsV1ServiceReferenceFluent<A extends io.kubernetes.c
* Method is deprecated. use withName instead.
*/
@java.lang.Deprecated
public A withNewName(java.lang.String original);
public A withNewName(java.lang.String arg0);
public java.lang.String getNamespace();
public A withNamespace(java.lang.String namespace);
public java.lang.Boolean hasNamespace();
Expand All @@ -28,7 +28,7 @@ public interface ApiextensionsV1ServiceReferenceFluent<A extends io.kubernetes.c
* Method is deprecated. use withNamespace instead.
*/
@java.lang.Deprecated
public A withNewNamespace(java.lang.String original);
public A withNewNamespace(java.lang.String arg0);
public java.lang.String getPath();
public A withPath(java.lang.String path);
public java.lang.Boolean hasPath();
Expand All @@ -37,7 +37,7 @@ public interface ApiextensionsV1ServiceReferenceFluent<A extends io.kubernetes.c
* Method is deprecated. use withPath instead.
*/
@java.lang.Deprecated
public A withNewPath(java.lang.String original);
public A withNewPath(java.lang.String arg0);
public java.lang.Integer getPort();
public A withPort(java.lang.Integer port);
public java.lang.Boolean hasPort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public java.lang.Boolean hasName() {
* Method is deprecated. use withName instead.
*/
@java.lang.Deprecated
public A withNewName(java.lang.String original) {
return (A)withName(new String(original));
public A withNewName(java.lang.String arg0) {
return (A)withName(new String(arg0));
}
public java.lang.String getNamespace() {
return this.namespace;
Expand All @@ -58,8 +58,8 @@ public java.lang.Boolean hasNamespace() {
* Method is deprecated. use withNamespace instead.
*/
@java.lang.Deprecated
public A withNewNamespace(java.lang.String original) {
return (A)withNamespace(new String(original));
public A withNewNamespace(java.lang.String arg0) {
return (A)withNamespace(new String(arg0));
}
public java.lang.String getPath() {
return this.path;
Expand All @@ -75,8 +75,8 @@ public java.lang.Boolean hasPath() {
* Method is deprecated. use withPath instead.
*/
@java.lang.Deprecated
public A withNewPath(java.lang.String original) {
return (A)withPath(new String(original));
public A withNewPath(java.lang.String arg0) {
return (A)withPath(new String(arg0));
}
public java.lang.Integer getPort() {
return this.port;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public interface ApiextensionsV1WebhookClientConfigFluent<A extends io.kubernete
* Method is deprecated. use withUrl instead.
*/
@java.lang.Deprecated
public A withNewUrl(java.lang.String original);
public A withNewUrl(java.lang.String arg0);
public interface ServiceNested<N> extends io.kubernetes.client.fluent.Nested<N>,io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReferenceFluent<io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent.ServiceNested<N>>{
public N and();
public N endService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ public java.lang.Boolean hasCaBundle() {
*/
@java.lang.Deprecated
public io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference getService() {
return this.service!=null?this.service.build():null;
return this.service!=null ?this.service.build():null;
}
public io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference buildService() {
return this.service!=null?this.service.build():null;
return this.service!=null ?this.service.build():null;
}
public A withService(io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference service) {
_visitables.get("service").remove(this.service);
Expand Down Expand Up @@ -121,8 +121,8 @@ public java.lang.Boolean hasUrl() {
* Method is deprecated. use withUrl instead.
*/
@java.lang.Deprecated
public A withNewUrl(java.lang.String original) {
return (A)withUrl(new String(original));
public A withNewUrl(java.lang.String arg0) {
return (A)withUrl(new String(arg0));
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public interface ApiregistrationV1ServiceReferenceFluent<A extends io.kubernetes
* Method is deprecated. use withName instead.
*/
@java.lang.Deprecated
public A withNewName(java.lang.String original);
public A withNewName(java.lang.String arg0);
public java.lang.String getNamespace();
public A withNamespace(java.lang.String namespace);
public java.lang.Boolean hasNamespace();
Expand All @@ -28,7 +28,7 @@ public interface ApiregistrationV1ServiceReferenceFluent<A extends io.kubernetes
* Method is deprecated. use withNamespace instead.
*/
@java.lang.Deprecated
public A withNewNamespace(java.lang.String original);
public A withNewNamespace(java.lang.String arg0);
public java.lang.Integer getPort();
public A withPort(java.lang.Integer port);
public java.lang.Boolean hasPort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public java.lang.Boolean hasName() {
* Method is deprecated. use withName instead.
*/
@java.lang.Deprecated
public A withNewName(java.lang.String original) {
return (A)withName(new String(original));
public A withNewName(java.lang.String arg0) {
return (A)withName(new String(arg0));
}
public java.lang.String getNamespace() {
return this.namespace;
Expand All @@ -55,8 +55,8 @@ public java.lang.Boolean hasNamespace() {
* Method is deprecated. use withNamespace instead.
*/
@java.lang.Deprecated
public A withNewNamespace(java.lang.String original) {
return (A)withNamespace(new String(original));
public A withNewNamespace(java.lang.String arg0) {
return (A)withNamespace(new String(arg0));
}
public java.lang.Integer getPort() {
return this.port;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public interface AuthenticationV1TokenRequestFluent<A extends io.kubernetes.clie
* Method is deprecated. use withApiVersion instead.
*/
@java.lang.Deprecated
public A withNewApiVersion(java.lang.String original);
public A withNewApiVersion(java.lang.String arg0);
public java.lang.String getKind();
public A withKind(java.lang.String kind);
public java.lang.Boolean hasKind();
Expand All @@ -28,7 +28,7 @@ public interface AuthenticationV1TokenRequestFluent<A extends io.kubernetes.clie
* Method is deprecated. use withKind instead.
*/
@java.lang.Deprecated
public A withNewKind(java.lang.String original);
public A withNewKind(java.lang.String arg0);

/**
* This method has been deprecated, please use method buildMetadata instead.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public java.lang.Boolean hasApiVersion() {
* Method is deprecated. use withApiVersion instead.
*/
@java.lang.Deprecated
public A withNewApiVersion(java.lang.String original) {
return (A)withApiVersion(new String(original));
public A withNewApiVersion(java.lang.String arg0) {
return (A)withApiVersion(new String(arg0));
}
public java.lang.String getKind() {
return this.kind;
Expand All @@ -61,8 +61,8 @@ public java.lang.Boolean hasKind() {
* Method is deprecated. use withKind instead.
*/
@java.lang.Deprecated
public A withNewKind(java.lang.String original) {
return (A)withKind(new String(original));
public A withNewKind(java.lang.String arg0) {
return (A)withKind(new String(arg0));
}

/**
Expand All @@ -71,10 +71,10 @@ public A withNewKind(java.lang.String original) {
*/
@java.lang.Deprecated
public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() {
return this.metadata!=null?this.metadata.build():null;
return this.metadata!=null ?this.metadata.build():null;
}
public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() {
return this.metadata!=null?this.metadata.build():null;
return this.metadata!=null ?this.metadata.build():null;
}
public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) {
_visitables.get("metadata").remove(this.metadata);
Expand Down Expand Up @@ -105,10 +105,10 @@ public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.Me
*/
@java.lang.Deprecated
public io.kubernetes.client.openapi.models.V1TokenRequestSpec getSpec() {
return this.spec!=null?this.spec.build():null;
return this.spec!=null ?this.spec.build():null;
}
public io.kubernetes.client.openapi.models.V1TokenRequestSpec buildSpec() {
return this.spec!=null?this.spec.build():null;
return this.spec!=null ?this.spec.build():null;
}
public A withSpec(io.kubernetes.client.openapi.models.V1TokenRequestSpec spec) {
_visitables.get("spec").remove(this.spec);
Expand Down Expand Up @@ -139,10 +139,10 @@ public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.Sp
*/
@java.lang.Deprecated
public io.kubernetes.client.openapi.models.V1TokenRequestStatus getStatus() {
return this.status!=null?this.status.build():null;
return this.status!=null ?this.status.build():null;
}
public io.kubernetes.client.openapi.models.V1TokenRequestStatus buildStatus() {
return this.status!=null?this.status.build():null;
return this.status!=null ?this.status.build():null;
}
public A withStatus(io.kubernetes.client.openapi.models.V1TokenRequestStatus status) {
_visitables.get("status").remove(this.status);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public interface CoreV1EndpointPortFluent<A extends io.kubernetes.client.openapi
* Method is deprecated. use withAppProtocol instead.
*/
@java.lang.Deprecated
public A withNewAppProtocol(java.lang.String original);
public A withNewAppProtocol(java.lang.String arg0);
public java.lang.String getName();
public A withName(java.lang.String name);
public java.lang.Boolean hasName();
Expand All @@ -28,7 +28,7 @@ public interface CoreV1EndpointPortFluent<A extends io.kubernetes.client.openapi
* Method is deprecated. use withName instead.
*/
@java.lang.Deprecated
public A withNewName(java.lang.String original);
public A withNewName(java.lang.String arg0);
public java.lang.Integer getPort();
public A withPort(java.lang.Integer port);
public java.lang.Boolean hasPort();
Expand All @@ -40,6 +40,6 @@ public interface CoreV1EndpointPortFluent<A extends io.kubernetes.client.openapi
* Method is deprecated. use withProtocol instead.
*/
@java.lang.Deprecated
public A withNewProtocol(java.lang.String original);
public A withNewProtocol(java.lang.String arg0);

}
Loading