Skip to content

Commit 419c26e

Browse files
ZhaoQing7892furykerry
authored andcommitted
update java sdk
1 parent 208055d commit 419c26e

4 files changed

Lines changed: 208 additions & 6 deletions

File tree

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/*
2+
* Kubernetes
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* The version of the OpenAPI document: v1.21.1
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package io.openkruise.agents.client.models;
15+
16+
import java.util.Objects;
17+
18+
import com.google.gson.annotations.SerializedName;
19+
import io.swagger.annotations.ApiModelProperty;
20+
21+
/**
22+
* V1alpha1SandboxClaimSpecRuntimes
23+
*/
24+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T09:31:05.089Z[Etc/UTC]")
25+
public class V1alpha1Runtimes {
26+
public static final String SERIALIZED_NAME_NAME = "name";
27+
@SerializedName(SERIALIZED_NAME_NAME)
28+
private String name;
29+
30+
31+
public V1alpha1Runtimes name(String name) {
32+
33+
this.name = name;
34+
return this;
35+
}
36+
37+
/**
38+
* Get name
39+
* @return name
40+
**/
41+
@ApiModelProperty(required = true, value = "")
42+
43+
public String getName() {
44+
return name;
45+
}
46+
47+
48+
public void setName(String name) {
49+
this.name = name;
50+
}
51+
52+
53+
@Override
54+
public boolean equals(Object o) {
55+
if (this == o) {
56+
return true;
57+
}
58+
if (o == null || getClass() != o.getClass()) {
59+
return false;
60+
}
61+
V1alpha1Runtimes v1Alpha1Runtimes = (V1alpha1Runtimes) o;
62+
return Objects.equals(this.name, v1Alpha1Runtimes.name);
63+
}
64+
65+
@Override
66+
public int hashCode() {
67+
return Objects.hash(name);
68+
}
69+
70+
71+
@Override
72+
public String toString() {
73+
StringBuilder sb = new StringBuilder();
74+
sb.append("class V1alpha1SandboxClaimSpecRuntimes {\n");
75+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
76+
sb.append("}");
77+
return sb.toString();
78+
}
79+
80+
/**
81+
* Convert the given object to string with each line indented by 4 spaces
82+
* (except the first line).
83+
*/
84+
private String toIndentedString(Object o) {
85+
if (o == null) {
86+
return "null";
87+
}
88+
return o.toString().replace("\n", "\n ");
89+
}
90+
91+
}
92+

clients/java/src/main/java/io/openkruise/agents/client/models/V1alpha1SandboxClaimSpec.java

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
@ApiModel(description = "spec defines the desired state of SandboxClaim")
3232
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen",
33-
date = "2026-03-31T05:53:52.286Z[Etc/UTC]")
33+
date = "2026-04-03T09:31:05.089Z[Etc/UTC]")
3434
public class V1alpha1SandboxClaimSpec {
3535
public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations";
3636
@SerializedName(SERIALIZED_NAME_ANNOTATIONS)
@@ -68,6 +68,10 @@ public class V1alpha1SandboxClaimSpec {
6868
@SerializedName(SERIALIZED_NAME_RESERVE_FAILED_SANDBOX)
6969
private Boolean reserveFailedSandbox;
7070

71+
public static final String SERIALIZED_NAME_RUNTIMES = "runtimes";
72+
@SerializedName(SERIALIZED_NAME_RUNTIMES)
73+
private List<V1alpha1Runtimes> runtimes = null;
74+
7175
public static final String SERIALIZED_NAME_SHUTDOWN_TIME = "shutdownTime";
7276
@SerializedName(SERIALIZED_NAME_SHUTDOWN_TIME)
7377
private OffsetDateTime shutdownTime;
@@ -328,6 +332,36 @@ public void setReserveFailedSandbox(Boolean reserveFailedSandbox) {
328332
this.reserveFailedSandbox = reserveFailedSandbox;
329333
}
330334

335+
public V1alpha1SandboxClaimSpec runtimes(List<V1alpha1Runtimes> runtimes) {
336+
337+
this.runtimes = runtimes;
338+
return this;
339+
}
340+
341+
public V1alpha1SandboxClaimSpec addRuntimesItem(V1alpha1Runtimes runtimesItem) {
342+
if (this.runtimes == null) {
343+
this.runtimes = new ArrayList<>();
344+
}
345+
this.runtimes.add(runtimesItem);
346+
return this;
347+
}
348+
349+
/**
350+
* Runtimes - Runtime configuration for sandbox object
351+
*
352+
* @return runtimes
353+
**/
354+
@javax.annotation.Nullable
355+
@ApiModelProperty(value = "Runtimes - Runtime configuration for sandbox object")
356+
357+
public List<V1alpha1Runtimes> getRuntimes() {
358+
return runtimes;
359+
}
360+
361+
public void setRuntimes(List<V1alpha1Runtimes> runtimes) {
362+
this.runtimes = runtimes;
363+
}
364+
331365
public V1alpha1SandboxClaimSpec shutdownTime(OffsetDateTime shutdownTime) {
332366

333367
this.shutdownTime = shutdownTime;
@@ -446,6 +480,7 @@ public boolean equals(Object o) {
446480
Objects.equals(this.labels, v1alpha1SandboxClaimSpec.labels) &&
447481
Objects.equals(this.replicas, v1alpha1SandboxClaimSpec.replicas) &&
448482
Objects.equals(this.reserveFailedSandbox, v1alpha1SandboxClaimSpec.reserveFailedSandbox) &&
483+
Objects.equals(this.runtimes, v1alpha1SandboxClaimSpec.runtimes) &&
449484
Objects.equals(this.shutdownTime, v1alpha1SandboxClaimSpec.shutdownTime) &&
450485
Objects.equals(this.templateName, v1alpha1SandboxClaimSpec.templateName) &&
451486
Objects.equals(this.ttlAfterCompleted, v1alpha1SandboxClaimSpec.ttlAfterCompleted) &&
@@ -455,7 +490,8 @@ public boolean equals(Object o) {
455490
@Override
456491
public int hashCode() {
457492
return Objects.hash(annotations, claimTimeout, createOnNoStock, dynamicVolumesMount, envVars, inplaceUpdate,
458-
labels, replicas, reserveFailedSandbox, shutdownTime, templateName, ttlAfterCompleted, waitReadyTimeout);
493+
labels, replicas, reserveFailedSandbox, runtimes, shutdownTime, templateName, ttlAfterCompleted,
494+
waitReadyTimeout);
459495
}
460496

461497
@Override
@@ -471,6 +507,7 @@ public String toString() {
471507
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
472508
sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n");
473509
sb.append(" reserveFailedSandbox: ").append(toIndentedString(reserveFailedSandbox)).append("\n");
510+
sb.append(" runtimes: ").append(toIndentedString(runtimes)).append("\n");
474511
sb.append(" shutdownTime: ").append(toIndentedString(shutdownTime)).append("\n");
475512
sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n");
476513
sb.append(" ttlAfterCompleted: ").append(toIndentedString(ttlAfterCompleted)).append("\n");

clients/java/src/main/java/io/openkruise/agents/client/models/V1alpha1SandboxSetSpec.java

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030
@ApiModel(description = "spec defines the desired state of SandboxSet")
3131
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen",
32-
date = "2026-03-09T07:30:17.307Z[Etc/UTC]")
32+
date = "2026-04-03T09:31:05.089Z[Etc/UTC]")
3333
public class V1alpha1SandboxSetSpec {
3434
public static final String SERIALIZED_NAME_PERSISTENT_CONTENTS = "persistentContents";
3535
@SerializedName(SERIALIZED_NAME_PERSISTENT_CONTENTS)
@@ -39,6 +39,10 @@ public class V1alpha1SandboxSetSpec {
3939
@SerializedName(SERIALIZED_NAME_REPLICAS)
4040
private Integer replicas;
4141

42+
public static final String SERIALIZED_NAME_RUNTIMES = "runtimes";
43+
@SerializedName(SERIALIZED_NAME_RUNTIMES)
44+
private List<V1alpha1Runtimes> runtimes = null;
45+
4246
public static final String SERIALIZED_NAME_SCALE_STRATEGY = "scaleStrategy";
4347
@SerializedName(SERIALIZED_NAME_SCALE_STRATEGY)
4448
private V1alpha1ScaleStrategy scaleStrategy;
@@ -108,6 +112,36 @@ public void setReplicas(Integer replicas) {
108112
this.replicas = replicas;
109113
}
110114

115+
public V1alpha1SandboxSetSpec runtimes(List<V1alpha1Runtimes> runtimes) {
116+
117+
this.runtimes = runtimes;
118+
return this;
119+
}
120+
121+
public V1alpha1SandboxSetSpec addRuntimesItem(V1alpha1Runtimes runtimesItem) {
122+
if (this.runtimes == null) {
123+
this.runtimes = new ArrayList<>();
124+
}
125+
this.runtimes.add(runtimesItem);
126+
return this;
127+
}
128+
129+
/**
130+
* Runtimes - Runtime configuration for sandbox object
131+
*
132+
* @return runtimes
133+
**/
134+
@javax.annotation.Nullable
135+
@ApiModelProperty(value = "Runtimes - Runtime configuration for sandbox object")
136+
137+
public List<V1alpha1Runtimes> getRuntimes() {
138+
return runtimes;
139+
}
140+
141+
public void setRuntimes(List<V1alpha1Runtimes> runtimes) {
142+
this.runtimes = runtimes;
143+
}
144+
111145
public V1alpha1SandboxSetSpec scaleStrategy(V1alpha1ScaleStrategy scaleStrategy) {
112146

113147
this.scaleStrategy = scaleStrategy;
@@ -208,6 +242,7 @@ public boolean equals(Object o) {
208242
V1alpha1SandboxSetSpec v1alpha1SandboxSetSpec = (V1alpha1SandboxSetSpec)o;
209243
return Objects.equals(this.persistentContents, v1alpha1SandboxSetSpec.persistentContents) &&
210244
Objects.equals(this.replicas, v1alpha1SandboxSetSpec.replicas) &&
245+
Objects.equals(this.runtimes, v1alpha1SandboxSetSpec.runtimes) &&
211246
Objects.equals(this.scaleStrategy, v1alpha1SandboxSetSpec.scaleStrategy) &&
212247
Objects.equals(this.template, v1alpha1SandboxSetSpec.template) &&
213248
Objects.equals(this.templateRef, v1alpha1SandboxSetSpec.templateRef) &&
@@ -216,7 +251,8 @@ public boolean equals(Object o) {
216251

217252
@Override
218253
public int hashCode() {
219-
return Objects.hash(persistentContents, replicas, scaleStrategy, template, templateRef, volumeClaimTemplates);
254+
return Objects.hash(persistentContents, replicas, runtimes, scaleStrategy, template, templateRef,
255+
volumeClaimTemplates);
220256
}
221257

222258
@Override
@@ -225,6 +261,7 @@ public String toString() {
225261
sb.append("class V1alpha1SandboxSetSpec {\n");
226262
sb.append(" persistentContents: ").append(toIndentedString(persistentContents)).append("\n");
227263
sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n");
264+
sb.append(" runtimes: ").append(toIndentedString(runtimes)).append("\n");
228265
sb.append(" scaleStrategy: ").append(toIndentedString(scaleStrategy)).append("\n");
229266
sb.append(" template: ").append(toIndentedString(template)).append("\n");
230267
sb.append(" templateRef: ").append(toIndentedString(templateRef)).append("\n");

clients/java/src/main/java/io/openkruise/agents/client/models/V1alpha1SandboxSpec.java

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
@ApiModel(description = "spec defines the desired state of Sandbox")
3232
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen",
33-
date = "2026-02-05T05:47:28.584Z[Etc/UTC]")
33+
date = "2026-04-03T09:31:05.089Z[Etc/UTC]")
3434
public class V1alpha1SandboxSpec {
3535
public static final String SERIALIZED_NAME_PAUSE_TIME = "pauseTime";
3636
@SerializedName(SERIALIZED_NAME_PAUSE_TIME)
@@ -44,6 +44,10 @@ public class V1alpha1SandboxSpec {
4444
@SerializedName(SERIALIZED_NAME_PERSISTENT_CONTENTS)
4545
private List<String> persistentContents = null;
4646

47+
public static final String SERIALIZED_NAME_RUNTIMES = "runtimes";
48+
@SerializedName(SERIALIZED_NAME_RUNTIMES)
49+
private List<V1alpha1Runtimes> runtimes = null;
50+
4751
public static final String SERIALIZED_NAME_SHUTDOWN_TIME = "shutdownTime";
4852
@SerializedName(SERIALIZED_NAME_SHUTDOWN_TIME)
4953
private OffsetDateTime shutdownTime;
@@ -135,6 +139,36 @@ public void setPersistentContents(List<String> persistentContents) {
135139
this.persistentContents = persistentContents;
136140
}
137141

142+
public V1alpha1SandboxSpec runtimes(List<V1alpha1Runtimes> runtimes) {
143+
144+
this.runtimes = runtimes;
145+
return this;
146+
}
147+
148+
public V1alpha1SandboxSpec addRuntimesItem(V1alpha1Runtimes runtimesItem) {
149+
if (this.runtimes == null) {
150+
this.runtimes = new ArrayList<>();
151+
}
152+
this.runtimes.add(runtimesItem);
153+
return this;
154+
}
155+
156+
/**
157+
* Runtimes - Runtime configuration for sandbox object
158+
*
159+
* @return runtimes
160+
**/
161+
@javax.annotation.Nullable
162+
@ApiModelProperty(value = "Runtimes - Runtime configuration for sandbox object")
163+
164+
public List<V1alpha1Runtimes> getRuntimes() {
165+
return runtimes;
166+
}
167+
168+
public void setRuntimes(List<V1alpha1Runtimes> runtimes) {
169+
this.runtimes = runtimes;
170+
}
171+
138172
public V1alpha1SandboxSpec shutdownTime(OffsetDateTime shutdownTime) {
139173

140174
this.shutdownTime = shutdownTime;
@@ -239,6 +273,7 @@ public boolean equals(Object o) {
239273
return Objects.equals(this.pauseTime, v1alpha1SandboxSpec.pauseTime) &&
240274
Objects.equals(this.paused, v1alpha1SandboxSpec.paused) &&
241275
Objects.equals(this.persistentContents, v1alpha1SandboxSpec.persistentContents) &&
276+
Objects.equals(this.runtimes, v1alpha1SandboxSpec.runtimes) &&
242277
Objects.equals(this.shutdownTime, v1alpha1SandboxSpec.shutdownTime) &&
243278
Objects.equals(this.template, v1alpha1SandboxSpec.template) &&
244279
Objects.equals(this.templateRef, v1alpha1SandboxSpec.templateRef) &&
@@ -247,7 +282,7 @@ public boolean equals(Object o) {
247282

248283
@Override
249284
public int hashCode() {
250-
return Objects.hash(pauseTime, paused, persistentContents, shutdownTime, template, templateRef,
285+
return Objects.hash(pauseTime, paused, persistentContents, runtimes, shutdownTime, template, templateRef,
251286
volumeClaimTemplates);
252287
}
253288

@@ -258,6 +293,7 @@ public String toString() {
258293
sb.append(" pauseTime: ").append(toIndentedString(pauseTime)).append("\n");
259294
sb.append(" paused: ").append(toIndentedString(paused)).append("\n");
260295
sb.append(" persistentContents: ").append(toIndentedString(persistentContents)).append("\n");
296+
sb.append(" runtimes: ").append(toIndentedString(runtimes)).append("\n");
261297
sb.append(" shutdownTime: ").append(toIndentedString(shutdownTime)).append("\n");
262298
sb.append(" template: ").append(toIndentedString(template)).append("\n");
263299
sb.append(" templateRef: ").append(toIndentedString(templateRef)).append("\n");

0 commit comments

Comments
 (0)