Skip to content

Commit ea6aacd

Browse files
Merge pull request #3346 from kubernetes-client/automated-generate-48ff0b0e
Automated Generate from openapi release-1.30
2 parents 537dd03 + a104dab commit ea6aacd

File tree

1,050 files changed

+132218
-49708
lines changed

Some content is hidden

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

1,050 files changed

+132218
-49708
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package io.kubernetes.client.openapi.models;
2+
3+
import io.kubernetes.client.fluent.VisitableBuilder;
4+
public class FlowcontrolV1SubjectBuilder extends FlowcontrolV1SubjectFluent<FlowcontrolV1SubjectBuilder> implements VisitableBuilder<FlowcontrolV1Subject,FlowcontrolV1SubjectBuilder>{
5+
public FlowcontrolV1SubjectBuilder() {
6+
this(new FlowcontrolV1Subject());
7+
}
8+
9+
public FlowcontrolV1SubjectBuilder(FlowcontrolV1SubjectFluent<?> fluent) {
10+
this(fluent, new FlowcontrolV1Subject());
11+
}
12+
13+
public FlowcontrolV1SubjectBuilder(FlowcontrolV1SubjectFluent<?> fluent,FlowcontrolV1Subject instance) {
14+
this.fluent = fluent;
15+
fluent.copyInstance(instance);
16+
}
17+
18+
public FlowcontrolV1SubjectBuilder(FlowcontrolV1Subject instance) {
19+
this.fluent = this;
20+
this.copyInstance(instance);
21+
}
22+
FlowcontrolV1SubjectFluent<?> fluent;
23+
24+
public FlowcontrolV1Subject build() {
25+
FlowcontrolV1Subject buildable = new FlowcontrolV1Subject();
26+
buildable.setGroup(fluent.buildGroup());
27+
buildable.setKind(fluent.getKind());
28+
buildable.setServiceAccount(fluent.buildServiceAccount());
29+
buildable.setUser(fluent.buildUser());
30+
return buildable;
31+
}
32+
33+
34+
}

fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java renamed to fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
* Generated
1111
*/
1212
@SuppressWarnings("unchecked")
13-
public class V1beta2SubjectFluent<A extends V1beta2SubjectFluent<A>> extends BaseFluent<A>{
14-
public V1beta2SubjectFluent() {
13+
public class FlowcontrolV1SubjectFluent<A extends FlowcontrolV1SubjectFluent<A>> extends BaseFluent<A>{
14+
public FlowcontrolV1SubjectFluent() {
1515
}
1616

17-
public V1beta2SubjectFluent(V1beta2Subject instance) {
17+
public FlowcontrolV1SubjectFluent(FlowcontrolV1Subject instance) {
1818
this.copyInstance(instance);
1919
}
20-
private V1beta2GroupSubjectBuilder group;
20+
private V1GroupSubjectBuilder group;
2121
private String kind;
22-
private V1beta2ServiceAccountSubjectBuilder serviceAccount;
23-
private V1beta2UserSubjectBuilder user;
22+
private V1ServiceAccountSubjectBuilder serviceAccount;
23+
private V1UserSubjectBuilder user;
2424

25-
protected void copyInstance(V1beta2Subject instance) {
26-
instance = (instance != null ? instance : new V1beta2Subject());
25+
protected void copyInstance(FlowcontrolV1Subject instance) {
26+
instance = (instance != null ? instance : new FlowcontrolV1Subject());
2727
if (instance != null) {
2828
this.withGroup(instance.getGroup());
2929
this.withKind(instance.getKind());
@@ -32,14 +32,14 @@ protected void copyInstance(V1beta2Subject instance) {
3232
}
3333
}
3434

35-
public V1beta2GroupSubject buildGroup() {
35+
public V1GroupSubject buildGroup() {
3636
return this.group != null ? this.group.build() : null;
3737
}
3838

39-
public A withGroup(V1beta2GroupSubject group) {
39+
public A withGroup(V1GroupSubject group) {
4040
this._visitables.remove("group");
4141
if (group != null) {
42-
this.group = new V1beta2GroupSubjectBuilder(group);
42+
this.group = new V1GroupSubjectBuilder(group);
4343
this._visitables.get("group").add(this.group);
4444
} else {
4545
this.group = null;
@@ -56,7 +56,7 @@ public GroupNested<A> withNewGroup() {
5656
return new GroupNested(null);
5757
}
5858

59-
public GroupNested<A> withNewGroupLike(V1beta2GroupSubject item) {
59+
public GroupNested<A> withNewGroupLike(V1GroupSubject item) {
6060
return new GroupNested(item);
6161
}
6262

@@ -65,10 +65,10 @@ public GroupNested<A> editGroup() {
6565
}
6666

6767
public GroupNested<A> editOrNewGroup() {
68-
return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(new V1beta2GroupSubjectBuilder().build()));
68+
return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(new V1GroupSubjectBuilder().build()));
6969
}
7070

71-
public GroupNested<A> editOrNewGroupLike(V1beta2GroupSubject item) {
71+
public GroupNested<A> editOrNewGroupLike(V1GroupSubject item) {
7272
return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(item));
7373
}
7474

@@ -85,14 +85,14 @@ public boolean hasKind() {
8585
return this.kind != null;
8686
}
8787

88-
public V1beta2ServiceAccountSubject buildServiceAccount() {
88+
public V1ServiceAccountSubject buildServiceAccount() {
8989
return this.serviceAccount != null ? this.serviceAccount.build() : null;
9090
}
9191

92-
public A withServiceAccount(V1beta2ServiceAccountSubject serviceAccount) {
92+
public A withServiceAccount(V1ServiceAccountSubject serviceAccount) {
9393
this._visitables.remove("serviceAccount");
9494
if (serviceAccount != null) {
95-
this.serviceAccount = new V1beta2ServiceAccountSubjectBuilder(serviceAccount);
95+
this.serviceAccount = new V1ServiceAccountSubjectBuilder(serviceAccount);
9696
this._visitables.get("serviceAccount").add(this.serviceAccount);
9797
} else {
9898
this.serviceAccount = null;
@@ -109,7 +109,7 @@ public ServiceAccountNested<A> withNewServiceAccount() {
109109
return new ServiceAccountNested(null);
110110
}
111111

112-
public ServiceAccountNested<A> withNewServiceAccountLike(V1beta2ServiceAccountSubject item) {
112+
public ServiceAccountNested<A> withNewServiceAccountLike(V1ServiceAccountSubject item) {
113113
return new ServiceAccountNested(item);
114114
}
115115

@@ -118,21 +118,21 @@ public ServiceAccountNested<A> editServiceAccount() {
118118
}
119119

120120
public ServiceAccountNested<A> editOrNewServiceAccount() {
121-
return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(new V1beta2ServiceAccountSubjectBuilder().build()));
121+
return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(new V1ServiceAccountSubjectBuilder().build()));
122122
}
123123

124-
public ServiceAccountNested<A> editOrNewServiceAccountLike(V1beta2ServiceAccountSubject item) {
124+
public ServiceAccountNested<A> editOrNewServiceAccountLike(V1ServiceAccountSubject item) {
125125
return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(item));
126126
}
127127

128-
public V1beta2UserSubject buildUser() {
128+
public V1UserSubject buildUser() {
129129
return this.user != null ? this.user.build() : null;
130130
}
131131

132-
public A withUser(V1beta2UserSubject user) {
132+
public A withUser(V1UserSubject user) {
133133
this._visitables.remove("user");
134134
if (user != null) {
135-
this.user = new V1beta2UserSubjectBuilder(user);
135+
this.user = new V1UserSubjectBuilder(user);
136136
this._visitables.get("user").add(this.user);
137137
} else {
138138
this.user = null;
@@ -149,7 +149,7 @@ public UserNested<A> withNewUser() {
149149
return new UserNested(null);
150150
}
151151

152-
public UserNested<A> withNewUserLike(V1beta2UserSubject item) {
152+
public UserNested<A> withNewUserLike(V1UserSubject item) {
153153
return new UserNested(item);
154154
}
155155

@@ -158,18 +158,18 @@ public UserNested<A> editUser() {
158158
}
159159

160160
public UserNested<A> editOrNewUser() {
161-
return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(new V1beta2UserSubjectBuilder().build()));
161+
return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(new V1UserSubjectBuilder().build()));
162162
}
163163

164-
public UserNested<A> editOrNewUserLike(V1beta2UserSubject item) {
164+
public UserNested<A> editOrNewUserLike(V1UserSubject item) {
165165
return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(item));
166166
}
167167

168168
public boolean equals(Object o) {
169169
if (this == o) return true;
170170
if (o == null || getClass() != o.getClass()) return false;
171171
if (!super.equals(o)) return false;
172-
V1beta2SubjectFluent that = (V1beta2SubjectFluent) o;
172+
FlowcontrolV1SubjectFluent that = (FlowcontrolV1SubjectFluent) o;
173173
if (!java.util.Objects.equals(group, that.group)) return false;
174174
if (!java.util.Objects.equals(kind, that.kind)) return false;
175175
if (!java.util.Objects.equals(serviceAccount, that.serviceAccount)) return false;
@@ -191,14 +191,14 @@ public String toString() {
191191
sb.append("}");
192192
return sb.toString();
193193
}
194-
public class GroupNested<N> extends V1beta2GroupSubjectFluent<GroupNested<N>> implements Nested<N>{
195-
GroupNested(V1beta2GroupSubject item) {
196-
this.builder = new V1beta2GroupSubjectBuilder(this, item);
194+
public class GroupNested<N> extends V1GroupSubjectFluent<GroupNested<N>> implements Nested<N>{
195+
GroupNested(V1GroupSubject item) {
196+
this.builder = new V1GroupSubjectBuilder(this, item);
197197
}
198-
V1beta2GroupSubjectBuilder builder;
198+
V1GroupSubjectBuilder builder;
199199

200200
public N and() {
201-
return (N) V1beta2SubjectFluent.this.withGroup(builder.build());
201+
return (N) FlowcontrolV1SubjectFluent.this.withGroup(builder.build());
202202
}
203203

204204
public N endGroup() {
@@ -207,14 +207,14 @@ public N endGroup() {
207207

208208

209209
}
210-
public class ServiceAccountNested<N> extends V1beta2ServiceAccountSubjectFluent<ServiceAccountNested<N>> implements Nested<N>{
211-
ServiceAccountNested(V1beta2ServiceAccountSubject item) {
212-
this.builder = new V1beta2ServiceAccountSubjectBuilder(this, item);
210+
public class ServiceAccountNested<N> extends V1ServiceAccountSubjectFluent<ServiceAccountNested<N>> implements Nested<N>{
211+
ServiceAccountNested(V1ServiceAccountSubject item) {
212+
this.builder = new V1ServiceAccountSubjectBuilder(this, item);
213213
}
214-
V1beta2ServiceAccountSubjectBuilder builder;
214+
V1ServiceAccountSubjectBuilder builder;
215215

216216
public N and() {
217-
return (N) V1beta2SubjectFluent.this.withServiceAccount(builder.build());
217+
return (N) FlowcontrolV1SubjectFluent.this.withServiceAccount(builder.build());
218218
}
219219

220220
public N endServiceAccount() {
@@ -223,14 +223,14 @@ public N endServiceAccount() {
223223

224224

225225
}
226-
public class UserNested<N> extends V1beta2UserSubjectFluent<UserNested<N>> implements Nested<N>{
227-
UserNested(V1beta2UserSubject item) {
228-
this.builder = new V1beta2UserSubjectBuilder(this, item);
226+
public class UserNested<N> extends V1UserSubjectFluent<UserNested<N>> implements Nested<N>{
227+
UserNested(V1UserSubject item) {
228+
this.builder = new V1UserSubjectBuilder(this, item);
229229
}
230-
V1beta2UserSubjectBuilder builder;
230+
V1UserSubjectBuilder builder;
231231

232232
public N and() {
233-
return (N) V1beta2SubjectFluent.this.withUser(builder.build());
233+
return (N) FlowcontrolV1SubjectFluent.this.withUser(builder.build());
234234
}
235235

236236
public N endUser() {
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package io.kubernetes.client.openapi.models;
2+
3+
import io.kubernetes.client.fluent.VisitableBuilder;
4+
public class RbacV1SubjectBuilder extends RbacV1SubjectFluent<RbacV1SubjectBuilder> implements VisitableBuilder<RbacV1Subject,RbacV1SubjectBuilder>{
5+
public RbacV1SubjectBuilder() {
6+
this(new RbacV1Subject());
7+
}
8+
9+
public RbacV1SubjectBuilder(RbacV1SubjectFluent<?> fluent) {
10+
this(fluent, new RbacV1Subject());
11+
}
12+
13+
public RbacV1SubjectBuilder(RbacV1SubjectFluent<?> fluent,RbacV1Subject instance) {
14+
this.fluent = fluent;
15+
fluent.copyInstance(instance);
16+
}
17+
18+
public RbacV1SubjectBuilder(RbacV1Subject instance) {
19+
this.fluent = this;
20+
this.copyInstance(instance);
21+
}
22+
RbacV1SubjectFluent<?> fluent;
23+
24+
public RbacV1Subject build() {
25+
RbacV1Subject buildable = new RbacV1Subject();
26+
buildable.setApiGroup(fluent.getApiGroup());
27+
buildable.setKind(fluent.getKind());
28+
buildable.setName(fluent.getName());
29+
buildable.setNamespace(fluent.getNamespace());
30+
return buildable;
31+
}
32+
33+
34+
}

fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java renamed to fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
* Generated
1010
*/
1111
@SuppressWarnings("unchecked")
12-
public class V1SubjectFluent<A extends V1SubjectFluent<A>> extends BaseFluent<A>{
13-
public V1SubjectFluent() {
12+
public class RbacV1SubjectFluent<A extends RbacV1SubjectFluent<A>> extends BaseFluent<A>{
13+
public RbacV1SubjectFluent() {
1414
}
1515

16-
public V1SubjectFluent(V1Subject instance) {
16+
public RbacV1SubjectFluent(RbacV1Subject instance) {
1717
this.copyInstance(instance);
1818
}
1919
private String apiGroup;
2020
private String kind;
2121
private String name;
2222
private String namespace;
2323

24-
protected void copyInstance(V1Subject instance) {
25-
instance = (instance != null ? instance : new V1Subject());
24+
protected void copyInstance(RbacV1Subject instance) {
25+
instance = (instance != null ? instance : new RbacV1Subject());
2626
if (instance != null) {
2727
this.withApiGroup(instance.getApiGroup());
2828
this.withKind(instance.getKind());
@@ -87,7 +87,7 @@ public boolean equals(Object o) {
8787
if (this == o) return true;
8888
if (o == null || getClass() != o.getClass()) return false;
8989
if (!super.equals(o)) return false;
90-
V1SubjectFluent that = (V1SubjectFluent) o;
90+
RbacV1SubjectFluent that = (RbacV1SubjectFluent) o;
9191
if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false;
9292
if (!java.util.Objects.equals(kind, that.kind)) return false;
9393
if (!java.util.Objects.equals(name, that.name)) return false;
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package io.kubernetes.client.openapi.models;
2+
3+
import io.kubernetes.client.fluent.VisitableBuilder;
4+
public class V1AppArmorProfileBuilder extends V1AppArmorProfileFluent<V1AppArmorProfileBuilder> implements VisitableBuilder<V1AppArmorProfile,V1AppArmorProfileBuilder>{
5+
public V1AppArmorProfileBuilder() {
6+
this(new V1AppArmorProfile());
7+
}
8+
9+
public V1AppArmorProfileBuilder(V1AppArmorProfileFluent<?> fluent) {
10+
this(fluent, new V1AppArmorProfile());
11+
}
12+
13+
public V1AppArmorProfileBuilder(V1AppArmorProfileFluent<?> fluent,V1AppArmorProfile instance) {
14+
this.fluent = fluent;
15+
fluent.copyInstance(instance);
16+
}
17+
18+
public V1AppArmorProfileBuilder(V1AppArmorProfile instance) {
19+
this.fluent = this;
20+
this.copyInstance(instance);
21+
}
22+
V1AppArmorProfileFluent<?> fluent;
23+
24+
public V1AppArmorProfile build() {
25+
V1AppArmorProfile buildable = new V1AppArmorProfile();
26+
buildable.setLocalhostProfile(fluent.getLocalhostProfile());
27+
buildable.setType(fluent.getType());
28+
return buildable;
29+
}
30+
31+
32+
}

0 commit comments

Comments
 (0)