Skip to content

Commit 91cf191

Browse files
committed
Format and fluent-gen from release-1.31
Signed-off-by: Kubernetes Publisher <k8s-publishing-bot@users.noreply.github.com> Signed-off-by: Min Jin <minkimzz@amazon.com>
1 parent eff2608 commit 91cf191

File tree

910 files changed

+18613
-17142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

910 files changed

+18613
-17142
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
package io.kubernetes.client.openapi.models;
2+
3+
import java.lang.SuppressWarnings;
4+
import io.kubernetes.client.fluent.BaseFluent;
5+
import java.lang.Object;
6+
import java.lang.String;
7+
import java.lang.Boolean;
8+
9+
/**
10+
* Generated
11+
*/
12+
@SuppressWarnings("unchecked")
13+
public class AbstractOpenApiSchemaFluent<A extends AbstractOpenApiSchemaFluent<A>> extends BaseFluent<A>{
14+
public AbstractOpenApiSchemaFluent() {
15+
}
16+
17+
public AbstractOpenApiSchemaFluent(AbstractOpenApiSchema instance) {
18+
this.copyInstance(instance);
19+
}
20+
private Boolean isNullable;
21+
private String schemaType;
22+
23+
protected void copyInstance(AbstractOpenApiSchema instance) {
24+
if (instance != null) {
25+
this.withSchemaType(instance.getSchemaType());
26+
}
27+
}
28+
29+
public Boolean getIsNullable() {
30+
return this.isNullable;
31+
}
32+
33+
public A withIsNullable(Boolean isNullable) {
34+
this.isNullable = isNullable;
35+
return (A) this;
36+
}
37+
38+
public boolean hasIsNullable() {
39+
return this.isNullable != null;
40+
}
41+
42+
public String getSchemaType() {
43+
return this.schemaType;
44+
}
45+
46+
public A withSchemaType(String schemaType) {
47+
this.schemaType = schemaType;
48+
return (A) this;
49+
}
50+
51+
public boolean hasSchemaType() {
52+
return this.schemaType != null;
53+
}
54+
55+
public boolean equals(Object o) {
56+
if (this == o) return true;
57+
if (o == null || getClass() != o.getClass()) return false;
58+
if (!super.equals(o)) return false;
59+
AbstractOpenApiSchemaFluent that = (AbstractOpenApiSchemaFluent) o;
60+
if (!java.util.Objects.equals(isNullable, that.isNullable)) return false;
61+
if (!java.util.Objects.equals(schemaType, that.schemaType)) return false;
62+
return true;
63+
}
64+
65+
public int hashCode() {
66+
return java.util.Objects.hash(isNullable, schemaType, super.hashCode());
67+
}
68+
69+
public String toString() {
70+
StringBuilder sb = new StringBuilder();
71+
sb.append("{");
72+
if (isNullable != null) { sb.append("isNullable:"); sb.append(isNullable + ","); }
73+
if (schemaType != null) { sb.append("schemaType:"); sb.append(schemaType); }
74+
sb.append("}");
75+
return sb.toString();
76+
}
77+
78+
public A withIsNullable() {
79+
return withIsNullable(true);
80+
}
81+
82+
83+
}

fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSourceBuilder.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClaimSourceFluent.java

Lines changed: 0 additions & 80 deletions
This file was deleted.

fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public V1ContainerStatusBuilder(V1ContainerStatus instance) {
2424
public V1ContainerStatus build() {
2525
V1ContainerStatus buildable = new V1ContainerStatus();
2626
buildable.setAllocatedResources(fluent.getAllocatedResources());
27+
buildable.setAllocatedResourcesStatus(fluent.buildAllocatedResourcesStatus());
2728
buildable.setContainerID(fluent.getContainerID());
2829
buildable.setImage(fluent.getImage());
2930
buildable.setImageID(fluent.getImageID());
@@ -34,6 +35,7 @@ public V1ContainerStatus build() {
3435
buildable.setRestartCount(fluent.getRestartCount());
3536
buildable.setStarted(fluent.getStarted());
3637
buildable.setState(fluent.buildState());
38+
buildable.setUser(fluent.buildUser());
3739
buildable.setVolumeMounts(fluent.buildVolumeMounts());
3840
return buildable;
3941
}

0 commit comments

Comments
 (0)