Skip to content

Commit c682d3d

Browse files
authored
Merge pull request #3916 from yue9944882/automated-generate-7e8cecfe-edit
Automated Generate from openapi release-1.32
2 parents 63c0816 + 0be265c commit c682d3d

File tree

1,072 files changed

+83637
-62121
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,072 files changed

+83637
-62121
lines changed

.github/workflows/generate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/setup-java@v4
3636
with:
3737
distribution: 'temurin'
38-
java-version: 11
38+
java-version: 17.0.x
3939
- name: Checkout Gen
4040
uses: actions/checkout@v4
4141
with:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public V1DeleteOptions build() {
2626
buildable.setApiVersion(fluent.getApiVersion());
2727
buildable.setDryRun(fluent.getDryRun());
2828
buildable.setGracePeriodSeconds(fluent.getGracePeriodSeconds());
29+
buildable.setIgnoreStoreReadErrorWithClusterBreakingPotential(fluent.getIgnoreStoreReadErrorWithClusterBreakingPotential());
2930
buildable.setKind(fluent.getKind());
3031
buildable.setOrphanDependents(fluent.getOrphanDependents());
3132
buildable.setPreconditions(fluent.buildPreconditions());

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

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public V1DeleteOptionsFluent(V1DeleteOptions instance) {
2626
private String apiVersion;
2727
private List<String> dryRun;
2828
private Long gracePeriodSeconds;
29+
private Boolean ignoreStoreReadErrorWithClusterBreakingPotential;
2930
private String kind;
3031
private Boolean orphanDependents;
3132
private V1PreconditionsBuilder preconditions;
@@ -37,6 +38,7 @@ protected void copyInstance(V1DeleteOptions instance) {
3738
this.withApiVersion(instance.getApiVersion());
3839
this.withDryRun(instance.getDryRun());
3940
this.withGracePeriodSeconds(instance.getGracePeriodSeconds());
41+
this.withIgnoreStoreReadErrorWithClusterBreakingPotential(instance.getIgnoreStoreReadErrorWithClusterBreakingPotential());
4042
this.withKind(instance.getKind());
4143
this.withOrphanDependents(instance.getOrphanDependents());
4244
this.withPreconditions(instance.getPreconditions());
@@ -164,6 +166,19 @@ public boolean hasGracePeriodSeconds() {
164166
return this.gracePeriodSeconds != null;
165167
}
166168

169+
public Boolean getIgnoreStoreReadErrorWithClusterBreakingPotential() {
170+
return this.ignoreStoreReadErrorWithClusterBreakingPotential;
171+
}
172+
173+
public A withIgnoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) {
174+
this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential;
175+
return (A) this;
176+
}
177+
178+
public boolean hasIgnoreStoreReadErrorWithClusterBreakingPotential() {
179+
return this.ignoreStoreReadErrorWithClusterBreakingPotential != null;
180+
}
181+
167182
public String getKind() {
168183
return this.kind;
169184
}
@@ -251,6 +266,7 @@ public boolean equals(Object o) {
251266
if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false;
252267
if (!java.util.Objects.equals(dryRun, that.dryRun)) return false;
253268
if (!java.util.Objects.equals(gracePeriodSeconds, that.gracePeriodSeconds)) return false;
269+
if (!java.util.Objects.equals(ignoreStoreReadErrorWithClusterBreakingPotential, that.ignoreStoreReadErrorWithClusterBreakingPotential)) return false;
254270
if (!java.util.Objects.equals(kind, that.kind)) return false;
255271
if (!java.util.Objects.equals(orphanDependents, that.orphanDependents)) return false;
256272
if (!java.util.Objects.equals(preconditions, that.preconditions)) return false;
@@ -259,7 +275,7 @@ public boolean equals(Object o) {
259275
}
260276

261277
public int hashCode() {
262-
return java.util.Objects.hash(apiVersion, dryRun, gracePeriodSeconds, kind, orphanDependents, preconditions, propagationPolicy, super.hashCode());
278+
return java.util.Objects.hash(apiVersion, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, kind, orphanDependents, preconditions, propagationPolicy, super.hashCode());
263279
}
264280

265281
public String toString() {
@@ -268,6 +284,7 @@ public String toString() {
268284
if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); }
269285
if (dryRun != null && !dryRun.isEmpty()) { sb.append("dryRun:"); sb.append(dryRun + ","); }
270286
if (gracePeriodSeconds != null) { sb.append("gracePeriodSeconds:"); sb.append(gracePeriodSeconds + ","); }
287+
if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { sb.append("ignoreStoreReadErrorWithClusterBreakingPotential:"); sb.append(ignoreStoreReadErrorWithClusterBreakingPotential + ","); }
271288
if (kind != null) { sb.append("kind:"); sb.append(kind + ","); }
272289
if (orphanDependents != null) { sb.append("orphanDependents:"); sb.append(orphanDependents + ","); }
273290
if (preconditions != null) { sb.append("preconditions:"); sb.append(preconditions + ","); }
@@ -276,6 +293,10 @@ public String toString() {
276293
return sb.toString();
277294
}
278295

296+
public A withIgnoreStoreReadErrorWithClusterBreakingPotential() {
297+
return withIgnoreStoreReadErrorWithClusterBreakingPotential(true);
298+
}
299+
279300
public A withOrphanDependents() {
280301
return withOrphanDependents(true);
281302
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public V1PodSecurityContext build() {
2929
buildable.setRunAsGroup(fluent.getRunAsGroup());
3030
buildable.setRunAsNonRoot(fluent.getRunAsNonRoot());
3131
buildable.setRunAsUser(fluent.getRunAsUser());
32+
buildable.setSeLinuxChangePolicy(fluent.getSeLinuxChangePolicy());
3233
buildable.setSeLinuxOptions(fluent.buildSeLinuxOptions());
3334
buildable.setSeccompProfile(fluent.buildSeccompProfile());
3435
buildable.setSupplementalGroups(fluent.getSupplementalGroups());

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public V1PodSecurityContextFluent(V1PodSecurityContext instance) {
3131
private Long runAsGroup;
3232
private Boolean runAsNonRoot;
3333
private Long runAsUser;
34+
private String seLinuxChangePolicy;
3435
private V1SELinuxOptionsBuilder seLinuxOptions;
3536
private V1SeccompProfileBuilder seccompProfile;
3637
private List<Long> supplementalGroups;
@@ -47,6 +48,7 @@ protected void copyInstance(V1PodSecurityContext instance) {
4748
this.withRunAsGroup(instance.getRunAsGroup());
4849
this.withRunAsNonRoot(instance.getRunAsNonRoot());
4950
this.withRunAsUser(instance.getRunAsUser());
51+
this.withSeLinuxChangePolicy(instance.getSeLinuxChangePolicy());
5052
this.withSeLinuxOptions(instance.getSeLinuxOptions());
5153
this.withSeccompProfile(instance.getSeccompProfile());
5254
this.withSupplementalGroups(instance.getSupplementalGroups());
@@ -161,6 +163,19 @@ public boolean hasRunAsUser() {
161163
return this.runAsUser != null;
162164
}
163165

166+
public String getSeLinuxChangePolicy() {
167+
return this.seLinuxChangePolicy;
168+
}
169+
170+
public A withSeLinuxChangePolicy(String seLinuxChangePolicy) {
171+
this.seLinuxChangePolicy = seLinuxChangePolicy;
172+
return (A) this;
173+
}
174+
175+
public boolean hasSeLinuxChangePolicy() {
176+
return this.seLinuxChangePolicy != null;
177+
}
178+
164179
public V1SELinuxOptions buildSeLinuxOptions() {
165180
return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null;
166181
}
@@ -550,6 +565,7 @@ public boolean equals(Object o) {
550565
if (!java.util.Objects.equals(runAsGroup, that.runAsGroup)) return false;
551566
if (!java.util.Objects.equals(runAsNonRoot, that.runAsNonRoot)) return false;
552567
if (!java.util.Objects.equals(runAsUser, that.runAsUser)) return false;
568+
if (!java.util.Objects.equals(seLinuxChangePolicy, that.seLinuxChangePolicy)) return false;
553569
if (!java.util.Objects.equals(seLinuxOptions, that.seLinuxOptions)) return false;
554570
if (!java.util.Objects.equals(seccompProfile, that.seccompProfile)) return false;
555571
if (!java.util.Objects.equals(supplementalGroups, that.supplementalGroups)) return false;
@@ -560,7 +576,7 @@ public boolean equals(Object o) {
560576
}
561577

562578
public int hashCode() {
563-
return java.util.Objects.hash(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, supplementalGroups, supplementalGroupsPolicy, sysctls, windowsOptions, super.hashCode());
579+
return java.util.Objects.hash(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxChangePolicy, seLinuxOptions, seccompProfile, supplementalGroups, supplementalGroupsPolicy, sysctls, windowsOptions, super.hashCode());
564580
}
565581

566582
public String toString() {
@@ -572,6 +588,7 @@ public String toString() {
572588
if (runAsGroup != null) { sb.append("runAsGroup:"); sb.append(runAsGroup + ","); }
573589
if (runAsNonRoot != null) { sb.append("runAsNonRoot:"); sb.append(runAsNonRoot + ","); }
574590
if (runAsUser != null) { sb.append("runAsUser:"); sb.append(runAsUser + ","); }
591+
if (seLinuxChangePolicy != null) { sb.append("seLinuxChangePolicy:"); sb.append(seLinuxChangePolicy + ","); }
575592
if (seLinuxOptions != null) { sb.append("seLinuxOptions:"); sb.append(seLinuxOptions + ","); }
576593
if (seccompProfile != null) { sb.append("seccompProfile:"); sb.append(seccompProfile + ","); }
577594
if (supplementalGroups != null && !supplementalGroups.isEmpty()) { sb.append("supplementalGroups:"); sb.append(supplementalGroups + ","); }

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public V1PodSpec build() {
4848
buildable.setPriorityClassName(fluent.getPriorityClassName());
4949
buildable.setReadinessGates(fluent.buildReadinessGates());
5050
buildable.setResourceClaims(fluent.buildResourceClaims());
51+
buildable.setResources(fluent.buildResources());
5152
buildable.setRestartPolicy(fluent.getRestartPolicy());
5253
buildable.setRuntimeClassName(fluent.getRuntimeClassName());
5354
buildable.setSchedulerName(fluent.getSchedulerName());

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

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public V1PodSpecFluent(V1PodSpec instance) {
5454
private String priorityClassName;
5555
private ArrayList<V1PodReadinessGateBuilder> readinessGates;
5656
private ArrayList<V1PodResourceClaimBuilder> resourceClaims;
57+
private V1ResourceRequirementsBuilder resources;
5758
private String restartPolicy;
5859
private String runtimeClassName;
5960
private String schedulerName;
@@ -97,6 +98,7 @@ protected void copyInstance(V1PodSpec instance) {
9798
this.withPriorityClassName(instance.getPriorityClassName());
9899
this.withReadinessGates(instance.getReadinessGates());
99100
this.withResourceClaims(instance.getResourceClaims());
101+
this.withResources(instance.getResources());
100102
this.withRestartPolicy(instance.getRestartPolicy());
101103
this.withRuntimeClassName(instance.getRuntimeClassName());
102104
this.withSchedulerName(instance.getSchedulerName());
@@ -1534,6 +1536,46 @@ public ResourceClaimsNested<A> editMatchingResourceClaim(Predicate<V1PodResource
15341536
return setNewResourceClaimLike(index, buildResourceClaim(index));
15351537
}
15361538

1539+
public V1ResourceRequirements buildResources() {
1540+
return this.resources != null ? this.resources.build() : null;
1541+
}
1542+
1543+
public A withResources(V1ResourceRequirements resources) {
1544+
this._visitables.remove("resources");
1545+
if (resources != null) {
1546+
this.resources = new V1ResourceRequirementsBuilder(resources);
1547+
this._visitables.get("resources").add(this.resources);
1548+
} else {
1549+
this.resources = null;
1550+
this._visitables.get("resources").remove(this.resources);
1551+
}
1552+
return (A) this;
1553+
}
1554+
1555+
public boolean hasResources() {
1556+
return this.resources != null;
1557+
}
1558+
1559+
public ResourcesNested<A> withNewResources() {
1560+
return new ResourcesNested(null);
1561+
}
1562+
1563+
public ResourcesNested<A> withNewResourcesLike(V1ResourceRequirements item) {
1564+
return new ResourcesNested(item);
1565+
}
1566+
1567+
public ResourcesNested<A> editResources() {
1568+
return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(null));
1569+
}
1570+
1571+
public ResourcesNested<A> editOrNewResources() {
1572+
return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1ResourceRequirementsBuilder().build()));
1573+
}
1574+
1575+
public ResourcesNested<A> editOrNewResourcesLike(V1ResourceRequirements item) {
1576+
return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item));
1577+
}
1578+
15371579
public String getRestartPolicy() {
15381580
return this.restartPolicy;
15391581
}
@@ -2325,6 +2367,7 @@ public boolean equals(Object o) {
23252367
if (!java.util.Objects.equals(priorityClassName, that.priorityClassName)) return false;
23262368
if (!java.util.Objects.equals(readinessGates, that.readinessGates)) return false;
23272369
if (!java.util.Objects.equals(resourceClaims, that.resourceClaims)) return false;
2370+
if (!java.util.Objects.equals(resources, that.resources)) return false;
23282371
if (!java.util.Objects.equals(restartPolicy, that.restartPolicy)) return false;
23292372
if (!java.util.Objects.equals(runtimeClassName, that.runtimeClassName)) return false;
23302373
if (!java.util.Objects.equals(schedulerName, that.schedulerName)) return false;
@@ -2343,7 +2386,7 @@ public boolean equals(Object o) {
23432386
}
23442387

23452388
public int hashCode() {
2346-
return java.util.Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes, super.hashCode());
2389+
return java.util.Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes, super.hashCode());
23472390
}
23482391

23492392
public String toString() {
@@ -2374,6 +2417,7 @@ public String toString() {
23742417
if (priorityClassName != null) { sb.append("priorityClassName:"); sb.append(priorityClassName + ","); }
23752418
if (readinessGates != null && !readinessGates.isEmpty()) { sb.append("readinessGates:"); sb.append(readinessGates + ","); }
23762419
if (resourceClaims != null && !resourceClaims.isEmpty()) { sb.append("resourceClaims:"); sb.append(resourceClaims + ","); }
2420+
if (resources != null) { sb.append("resources:"); sb.append(resources + ","); }
23772421
if (restartPolicy != null) { sb.append("restartPolicy:"); sb.append(restartPolicy + ","); }
23782422
if (runtimeClassName != null) { sb.append("runtimeClassName:"); sb.append(runtimeClassName + ","); }
23792423
if (schedulerName != null) { sb.append("schedulerName:"); sb.append(schedulerName + ","); }
@@ -2596,6 +2640,22 @@ public N endResourceClaim() {
25962640
}
25972641

25982642

2643+
}
2644+
public class ResourcesNested<N> extends V1ResourceRequirementsFluent<ResourcesNested<N>> implements Nested<N>{
2645+
ResourcesNested(V1ResourceRequirements item) {
2646+
this.builder = new V1ResourceRequirementsBuilder(this, item);
2647+
}
2648+
V1ResourceRequirementsBuilder builder;
2649+
2650+
public N and() {
2651+
return (N) V1PodSpecFluent.this.withResources(builder.build());
2652+
}
2653+
2654+
public N endResources() {
2655+
return and();
2656+
}
2657+
2658+
25992659
}
26002660
public class SchedulingGatesNested<N> extends V1PodSchedulingGateFluent<SchedulingGatesNested<N>> implements Nested<N>{
26012661
SchedulingGatesNested(int index,V1PodSchedulingGate item) {
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package io.kubernetes.client.openapi.models;
2+
3+
import io.kubernetes.client.fluent.VisitableBuilder;
4+
public class V1alpha1ApplyConfigurationBuilder extends V1alpha1ApplyConfigurationFluent<V1alpha1ApplyConfigurationBuilder> implements VisitableBuilder<V1alpha1ApplyConfiguration,V1alpha1ApplyConfigurationBuilder>{
5+
public V1alpha1ApplyConfigurationBuilder() {
6+
this(new V1alpha1ApplyConfiguration());
7+
}
8+
9+
public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfigurationFluent<?> fluent) {
10+
this(fluent, new V1alpha1ApplyConfiguration());
11+
}
12+
13+
public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfigurationFluent<?> fluent,V1alpha1ApplyConfiguration instance) {
14+
this.fluent = fluent;
15+
fluent.copyInstance(instance);
16+
}
17+
18+
public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfiguration instance) {
19+
this.fluent = this;
20+
this.copyInstance(instance);
21+
}
22+
V1alpha1ApplyConfigurationFluent<?> fluent;
23+
24+
public V1alpha1ApplyConfiguration build() {
25+
V1alpha1ApplyConfiguration buildable = new V1alpha1ApplyConfiguration();
26+
buildable.setExpression(fluent.getExpression());
27+
return buildable;
28+
}
29+
30+
31+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
8+
/**
9+
* Generated
10+
*/
11+
@SuppressWarnings("unchecked")
12+
public class V1alpha1ApplyConfigurationFluent<A extends V1alpha1ApplyConfigurationFluent<A>> extends BaseFluent<A>{
13+
public V1alpha1ApplyConfigurationFluent() {
14+
}
15+
16+
public V1alpha1ApplyConfigurationFluent(V1alpha1ApplyConfiguration instance) {
17+
this.copyInstance(instance);
18+
}
19+
private String expression;
20+
21+
protected void copyInstance(V1alpha1ApplyConfiguration instance) {
22+
instance = (instance != null ? instance : new V1alpha1ApplyConfiguration());
23+
if (instance != null) {
24+
this.withExpression(instance.getExpression());
25+
}
26+
}
27+
28+
public String getExpression() {
29+
return this.expression;
30+
}
31+
32+
public A withExpression(String expression) {
33+
this.expression = expression;
34+
return (A) this;
35+
}
36+
37+
public boolean hasExpression() {
38+
return this.expression != null;
39+
}
40+
41+
public boolean equals(Object o) {
42+
if (this == o) return true;
43+
if (o == null || getClass() != o.getClass()) return false;
44+
if (!super.equals(o)) return false;
45+
V1alpha1ApplyConfigurationFluent that = (V1alpha1ApplyConfigurationFluent) o;
46+
if (!java.util.Objects.equals(expression, that.expression)) return false;
47+
return true;
48+
}
49+
50+
public int hashCode() {
51+
return java.util.Objects.hash(expression, super.hashCode());
52+
}
53+
54+
public String toString() {
55+
StringBuilder sb = new StringBuilder();
56+
sb.append("{");
57+
if (expression != null) { sb.append("expression:"); sb.append(expression); }
58+
sb.append("}");
59+
return sb.toString();
60+
}
61+
62+
63+
}

0 commit comments

Comments
 (0)