Skip to content

Automated Generate from openapi release-1.30 #3346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 24, 2024
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
@@ -0,0 +1,34 @@
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
public class FlowcontrolV1SubjectBuilder extends FlowcontrolV1SubjectFluent<FlowcontrolV1SubjectBuilder> implements VisitableBuilder<FlowcontrolV1Subject,FlowcontrolV1SubjectBuilder>{
public FlowcontrolV1SubjectBuilder() {
this(new FlowcontrolV1Subject());
}

public FlowcontrolV1SubjectBuilder(FlowcontrolV1SubjectFluent<?> fluent) {
this(fluent, new FlowcontrolV1Subject());
}

public FlowcontrolV1SubjectBuilder(FlowcontrolV1SubjectFluent<?> fluent,FlowcontrolV1Subject instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}

public FlowcontrolV1SubjectBuilder(FlowcontrolV1Subject instance) {
this.fluent = this;
this.copyInstance(instance);
}
FlowcontrolV1SubjectFluent<?> fluent;

public FlowcontrolV1Subject build() {
FlowcontrolV1Subject buildable = new FlowcontrolV1Subject();
buildable.setGroup(fluent.buildGroup());
buildable.setKind(fluent.getKind());
buildable.setServiceAccount(fluent.buildServiceAccount());
buildable.setUser(fluent.buildUser());
return buildable;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
* Generated
*/
@SuppressWarnings("unchecked")
public class V1beta2SubjectFluent<A extends V1beta2SubjectFluent<A>> extends BaseFluent<A>{
public V1beta2SubjectFluent() {
public class FlowcontrolV1SubjectFluent<A extends FlowcontrolV1SubjectFluent<A>> extends BaseFluent<A>{
public FlowcontrolV1SubjectFluent() {
}

public V1beta2SubjectFluent(V1beta2Subject instance) {
public FlowcontrolV1SubjectFluent(FlowcontrolV1Subject instance) {
this.copyInstance(instance);
}
private V1beta2GroupSubjectBuilder group;
private V1GroupSubjectBuilder group;
private String kind;
private V1beta2ServiceAccountSubjectBuilder serviceAccount;
private V1beta2UserSubjectBuilder user;
private V1ServiceAccountSubjectBuilder serviceAccount;
private V1UserSubjectBuilder user;

protected void copyInstance(V1beta2Subject instance) {
instance = (instance != null ? instance : new V1beta2Subject());
protected void copyInstance(FlowcontrolV1Subject instance) {
instance = (instance != null ? instance : new FlowcontrolV1Subject());
if (instance != null) {
this.withGroup(instance.getGroup());
this.withKind(instance.getKind());
Expand All @@ -32,14 +32,14 @@ protected void copyInstance(V1beta2Subject instance) {
}
}

public V1beta2GroupSubject buildGroup() {
public V1GroupSubject buildGroup() {
return this.group != null ? this.group.build() : null;
}

public A withGroup(V1beta2GroupSubject group) {
public A withGroup(V1GroupSubject group) {
this._visitables.remove("group");
if (group != null) {
this.group = new V1beta2GroupSubjectBuilder(group);
this.group = new V1GroupSubjectBuilder(group);
this._visitables.get("group").add(this.group);
} else {
this.group = null;
Expand All @@ -56,7 +56,7 @@ public GroupNested<A> withNewGroup() {
return new GroupNested(null);
}

public GroupNested<A> withNewGroupLike(V1beta2GroupSubject item) {
public GroupNested<A> withNewGroupLike(V1GroupSubject item) {
return new GroupNested(item);
}

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

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

public GroupNested<A> editOrNewGroupLike(V1beta2GroupSubject item) {
public GroupNested<A> editOrNewGroupLike(V1GroupSubject item) {
return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(item));
}

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

public V1beta2ServiceAccountSubject buildServiceAccount() {
public V1ServiceAccountSubject buildServiceAccount() {
return this.serviceAccount != null ? this.serviceAccount.build() : null;
}

public A withServiceAccount(V1beta2ServiceAccountSubject serviceAccount) {
public A withServiceAccount(V1ServiceAccountSubject serviceAccount) {
this._visitables.remove("serviceAccount");
if (serviceAccount != null) {
this.serviceAccount = new V1beta2ServiceAccountSubjectBuilder(serviceAccount);
this.serviceAccount = new V1ServiceAccountSubjectBuilder(serviceAccount);
this._visitables.get("serviceAccount").add(this.serviceAccount);
} else {
this.serviceAccount = null;
Expand All @@ -109,7 +109,7 @@ public ServiceAccountNested<A> withNewServiceAccount() {
return new ServiceAccountNested(null);
}

public ServiceAccountNested<A> withNewServiceAccountLike(V1beta2ServiceAccountSubject item) {
public ServiceAccountNested<A> withNewServiceAccountLike(V1ServiceAccountSubject item) {
return new ServiceAccountNested(item);
}

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

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

public ServiceAccountNested<A> editOrNewServiceAccountLike(V1beta2ServiceAccountSubject item) {
public ServiceAccountNested<A> editOrNewServiceAccountLike(V1ServiceAccountSubject item) {
return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(item));
}

public V1beta2UserSubject buildUser() {
public V1UserSubject buildUser() {
return this.user != null ? this.user.build() : null;
}

public A withUser(V1beta2UserSubject user) {
public A withUser(V1UserSubject user) {
this._visitables.remove("user");
if (user != null) {
this.user = new V1beta2UserSubjectBuilder(user);
this.user = new V1UserSubjectBuilder(user);
this._visitables.get("user").add(this.user);
} else {
this.user = null;
Expand All @@ -149,7 +149,7 @@ public UserNested<A> withNewUser() {
return new UserNested(null);
}

public UserNested<A> withNewUserLike(V1beta2UserSubject item) {
public UserNested<A> withNewUserLike(V1UserSubject item) {
return new UserNested(item);
}

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

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

public UserNested<A> editOrNewUserLike(V1beta2UserSubject item) {
public UserNested<A> editOrNewUserLike(V1UserSubject item) {
return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(item));
}

public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
V1beta2SubjectFluent that = (V1beta2SubjectFluent) o;
FlowcontrolV1SubjectFluent that = (FlowcontrolV1SubjectFluent) o;
if (!java.util.Objects.equals(group, that.group)) return false;
if (!java.util.Objects.equals(kind, that.kind)) return false;
if (!java.util.Objects.equals(serviceAccount, that.serviceAccount)) return false;
Expand All @@ -191,14 +191,14 @@ public String toString() {
sb.append("}");
return sb.toString();
}
public class GroupNested<N> extends V1beta2GroupSubjectFluent<GroupNested<N>> implements Nested<N>{
GroupNested(V1beta2GroupSubject item) {
this.builder = new V1beta2GroupSubjectBuilder(this, item);
public class GroupNested<N> extends V1GroupSubjectFluent<GroupNested<N>> implements Nested<N>{
GroupNested(V1GroupSubject item) {
this.builder = new V1GroupSubjectBuilder(this, item);
}
V1beta2GroupSubjectBuilder builder;
V1GroupSubjectBuilder builder;

public N and() {
return (N) V1beta2SubjectFluent.this.withGroup(builder.build());
return (N) FlowcontrolV1SubjectFluent.this.withGroup(builder.build());
}

public N endGroup() {
Expand All @@ -207,14 +207,14 @@ public N endGroup() {


}
public class ServiceAccountNested<N> extends V1beta2ServiceAccountSubjectFluent<ServiceAccountNested<N>> implements Nested<N>{
ServiceAccountNested(V1beta2ServiceAccountSubject item) {
this.builder = new V1beta2ServiceAccountSubjectBuilder(this, item);
public class ServiceAccountNested<N> extends V1ServiceAccountSubjectFluent<ServiceAccountNested<N>> implements Nested<N>{
ServiceAccountNested(V1ServiceAccountSubject item) {
this.builder = new V1ServiceAccountSubjectBuilder(this, item);
}
V1beta2ServiceAccountSubjectBuilder builder;
V1ServiceAccountSubjectBuilder builder;

public N and() {
return (N) V1beta2SubjectFluent.this.withServiceAccount(builder.build());
return (N) FlowcontrolV1SubjectFluent.this.withServiceAccount(builder.build());
}

public N endServiceAccount() {
Expand All @@ -223,14 +223,14 @@ public N endServiceAccount() {


}
public class UserNested<N> extends V1beta2UserSubjectFluent<UserNested<N>> implements Nested<N>{
UserNested(V1beta2UserSubject item) {
this.builder = new V1beta2UserSubjectBuilder(this, item);
public class UserNested<N> extends V1UserSubjectFluent<UserNested<N>> implements Nested<N>{
UserNested(V1UserSubject item) {
this.builder = new V1UserSubjectBuilder(this, item);
}
V1beta2UserSubjectBuilder builder;
V1UserSubjectBuilder builder;

public N and() {
return (N) V1beta2SubjectFluent.this.withUser(builder.build());
return (N) FlowcontrolV1SubjectFluent.this.withUser(builder.build());
}

public N endUser() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
public class RbacV1SubjectBuilder extends RbacV1SubjectFluent<RbacV1SubjectBuilder> implements VisitableBuilder<RbacV1Subject,RbacV1SubjectBuilder>{
public RbacV1SubjectBuilder() {
this(new RbacV1Subject());
}

public RbacV1SubjectBuilder(RbacV1SubjectFluent<?> fluent) {
this(fluent, new RbacV1Subject());
}

public RbacV1SubjectBuilder(RbacV1SubjectFluent<?> fluent,RbacV1Subject instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}

public RbacV1SubjectBuilder(RbacV1Subject instance) {
this.fluent = this;
this.copyInstance(instance);
}
RbacV1SubjectFluent<?> fluent;

public RbacV1Subject build() {
RbacV1Subject buildable = new RbacV1Subject();
buildable.setApiGroup(fluent.getApiGroup());
buildable.setKind(fluent.getKind());
buildable.setName(fluent.getName());
buildable.setNamespace(fluent.getNamespace());
return buildable;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
* Generated
*/
@SuppressWarnings("unchecked")
public class V1SubjectFluent<A extends V1SubjectFluent<A>> extends BaseFluent<A>{
public V1SubjectFluent() {
public class RbacV1SubjectFluent<A extends RbacV1SubjectFluent<A>> extends BaseFluent<A>{
public RbacV1SubjectFluent() {
}

public V1SubjectFluent(V1Subject instance) {
public RbacV1SubjectFluent(RbacV1Subject instance) {
this.copyInstance(instance);
}
private String apiGroup;
private String kind;
private String name;
private String namespace;

protected void copyInstance(V1Subject instance) {
instance = (instance != null ? instance : new V1Subject());
protected void copyInstance(RbacV1Subject instance) {
instance = (instance != null ? instance : new RbacV1Subject());
if (instance != null) {
this.withApiGroup(instance.getApiGroup());
this.withKind(instance.getKind());
Expand Down Expand Up @@ -87,7 +87,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
V1SubjectFluent that = (V1SubjectFluent) o;
RbacV1SubjectFluent that = (RbacV1SubjectFluent) o;
if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false;
if (!java.util.Objects.equals(kind, that.kind)) return false;
if (!java.util.Objects.equals(name, that.name)) return false;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
public class V1AppArmorProfileBuilder extends V1AppArmorProfileFluent<V1AppArmorProfileBuilder> implements VisitableBuilder<V1AppArmorProfile,V1AppArmorProfileBuilder>{
public V1AppArmorProfileBuilder() {
this(new V1AppArmorProfile());
}

public V1AppArmorProfileBuilder(V1AppArmorProfileFluent<?> fluent) {
this(fluent, new V1AppArmorProfile());
}

public V1AppArmorProfileBuilder(V1AppArmorProfileFluent<?> fluent,V1AppArmorProfile instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}

public V1AppArmorProfileBuilder(V1AppArmorProfile instance) {
this.fluent = this;
this.copyInstance(instance);
}
V1AppArmorProfileFluent<?> fluent;

public V1AppArmorProfile build() {
V1AppArmorProfile buildable = new V1AppArmorProfile();
buildable.setLocalhostProfile(fluent.getLocalhostProfile());
buildable.setType(fluent.getType());
return buildable;
}


}
Loading