Skip to content

Commit cf50c01

Browse files
author
BitsAdmin
committed
Merge branch 'vke-Java-2022-05-12-online-1074-2025_04_02_10_57_19' into 'integration_2025-04-10_853973186050'
feat: [development task] vke-1074-Java (1145192) See merge request iaasng/volcengine-java-sdk!434
2 parents fbf5766 + 385e40b commit cf50c01

25 files changed

+3065
-11
lines changed
Lines changed: 238 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
/*
2+
* vke
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: common-version
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.volcengine.vke.model;
14+
15+
import java.util.Objects;
16+
import java.util.Arrays;
17+
import com.google.gson.TypeAdapter;
18+
import com.google.gson.annotations.JsonAdapter;
19+
import com.google.gson.annotations.SerializedName;
20+
import com.google.gson.stream.JsonReader;
21+
import com.google.gson.stream.JsonWriter;
22+
import com.volcengine.vke.model.ProxyConfigForListClustersOutput;
23+
import io.swagger.v3.oas.annotations.media.Schema;
24+
import java.io.IOException;
25+
import javax.validation.constraints.*;
26+
import javax.validation.Valid;
27+
/**
28+
* ConnectorConfigForListClustersOutput
29+
*/
30+
31+
32+
33+
public class ConnectorConfigForListClustersOutput {
34+
/**
35+
* Gets or Sets provider
36+
*/
37+
@JsonAdapter(ProviderEnum.Adapter.class)
38+
public enum ProviderEnum {
39+
@SerializedName("Ack")
40+
ACK("Ack"),
41+
@SerializedName("Tke")
42+
TKE("Tke"),
43+
@SerializedName("Cce")
44+
CCE("Cce"),
45+
@SerializedName("Gke")
46+
GKE("Gke"),
47+
@SerializedName("Eks")
48+
EKS("Eks"),
49+
@SerializedName("BaiduCce")
50+
BAIDUCCE("BaiduCce"),
51+
@SerializedName("None")
52+
NONE("None");
53+
54+
private String value;
55+
56+
ProviderEnum(String value) {
57+
this.value = value;
58+
}
59+
public String getValue() {
60+
return value;
61+
}
62+
63+
@Override
64+
public String toString() {
65+
return String.valueOf(value);
66+
}
67+
public static ProviderEnum fromValue(String input) {
68+
for (ProviderEnum b : ProviderEnum.values()) {
69+
if (b.value.equals(input)) {
70+
return b;
71+
}
72+
}
73+
return null;
74+
}
75+
public static class Adapter extends TypeAdapter<ProviderEnum> {
76+
@Override
77+
public void write(final JsonWriter jsonWriter, final ProviderEnum enumeration) throws IOException {
78+
jsonWriter.value(String.valueOf(enumeration.getValue()));
79+
}
80+
81+
@Override
82+
public ProviderEnum read(final JsonReader jsonReader) throws IOException {
83+
Object value = jsonReader.nextString();
84+
return ProviderEnum.fromValue((String)(value));
85+
}
86+
}
87+
} @SerializedName("Provider")
88+
private ProviderEnum provider = null;
89+
90+
@SerializedName("ProxyConfig")
91+
private ProxyConfigForListClustersOutput proxyConfig = null;
92+
93+
/**
94+
* Gets or Sets type
95+
*/
96+
@JsonAdapter(TypeEnum.Adapter.class)
97+
public enum TypeEnum {
98+
@SerializedName("Direct")
99+
DIRECT("Direct"),
100+
@SerializedName("Agent")
101+
AGENT("Agent");
102+
103+
private String value;
104+
105+
TypeEnum(String value) {
106+
this.value = value;
107+
}
108+
public String getValue() {
109+
return value;
110+
}
111+
112+
@Override
113+
public String toString() {
114+
return String.valueOf(value);
115+
}
116+
public static TypeEnum fromValue(String input) {
117+
for (TypeEnum b : TypeEnum.values()) {
118+
if (b.value.equals(input)) {
119+
return b;
120+
}
121+
}
122+
return null;
123+
}
124+
public static class Adapter extends TypeAdapter<TypeEnum> {
125+
@Override
126+
public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException {
127+
jsonWriter.value(String.valueOf(enumeration.getValue()));
128+
}
129+
130+
@Override
131+
public TypeEnum read(final JsonReader jsonReader) throws IOException {
132+
Object value = jsonReader.nextString();
133+
return TypeEnum.fromValue((String)(value));
134+
}
135+
}
136+
} @SerializedName("Type")
137+
private TypeEnum type = null;
138+
139+
public ConnectorConfigForListClustersOutput provider(ProviderEnum provider) {
140+
this.provider = provider;
141+
return this;
142+
}
143+
144+
/**
145+
* Get provider
146+
* @return provider
147+
**/
148+
@Schema(description = "")
149+
public ProviderEnum getProvider() {
150+
return provider;
151+
}
152+
153+
public void setProvider(ProviderEnum provider) {
154+
this.provider = provider;
155+
}
156+
157+
public ConnectorConfigForListClustersOutput proxyConfig(ProxyConfigForListClustersOutput proxyConfig) {
158+
this.proxyConfig = proxyConfig;
159+
return this;
160+
}
161+
162+
/**
163+
* Get proxyConfig
164+
* @return proxyConfig
165+
**/
166+
@Valid
167+
@Schema(description = "")
168+
public ProxyConfigForListClustersOutput getProxyConfig() {
169+
return proxyConfig;
170+
}
171+
172+
public void setProxyConfig(ProxyConfigForListClustersOutput proxyConfig) {
173+
this.proxyConfig = proxyConfig;
174+
}
175+
176+
public ConnectorConfigForListClustersOutput type(TypeEnum type) {
177+
this.type = type;
178+
return this;
179+
}
180+
181+
/**
182+
* Get type
183+
* @return type
184+
**/
185+
@Schema(description = "")
186+
public TypeEnum getType() {
187+
return type;
188+
}
189+
190+
public void setType(TypeEnum type) {
191+
this.type = type;
192+
}
193+
194+
195+
@Override
196+
public boolean equals(java.lang.Object o) {
197+
if (this == o) {
198+
return true;
199+
}
200+
if (o == null || getClass() != o.getClass()) {
201+
return false;
202+
}
203+
ConnectorConfigForListClustersOutput connectorConfigForListClustersOutput = (ConnectorConfigForListClustersOutput) o;
204+
return Objects.equals(this.provider, connectorConfigForListClustersOutput.provider) &&
205+
Objects.equals(this.proxyConfig, connectorConfigForListClustersOutput.proxyConfig) &&
206+
Objects.equals(this.type, connectorConfigForListClustersOutput.type);
207+
}
208+
209+
@Override
210+
public int hashCode() {
211+
return Objects.hash(provider, proxyConfig, type);
212+
}
213+
214+
215+
@Override
216+
public String toString() {
217+
StringBuilder sb = new StringBuilder();
218+
sb.append("class ConnectorConfigForListClustersOutput {\n");
219+
220+
sb.append(" provider: ").append(toIndentedString(provider)).append("\n");
221+
sb.append(" proxyConfig: ").append(toIndentedString(proxyConfig)).append("\n");
222+
sb.append(" type: ").append(toIndentedString(type)).append("\n");
223+
sb.append("}");
224+
return sb.toString();
225+
}
226+
227+
/**
228+
* Convert the given object to string with each line indented by 4 spaces
229+
* (except the first line).
230+
*/
231+
private String toIndentedString(java.lang.Object o) {
232+
if (o == null) {
233+
return "null";
234+
}
235+
return o.toString().replace("\n", "\n ");
236+
}
237+
238+
}

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/model/DataVolumeForCreateNodePoolInput.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public FileSystemEnum read(final JsonReader jsonReader) throws IOException {
8282
@SerializedName("Size")
8383
private Integer size = null;
8484

85+
@SerializedName("SnapshotId")
86+
private String snapshotId = null;
87+
8588
/**
8689
* Gets or Sets type
8790
*/
@@ -182,6 +185,24 @@ public void setSize(Integer size) {
182185
this.size = size;
183186
}
184187

188+
public DataVolumeForCreateNodePoolInput snapshotId(String snapshotId) {
189+
this.snapshotId = snapshotId;
190+
return this;
191+
}
192+
193+
/**
194+
* Get snapshotId
195+
* @return snapshotId
196+
**/
197+
@Schema(description = "")
198+
public String getSnapshotId() {
199+
return snapshotId;
200+
}
201+
202+
public void setSnapshotId(String snapshotId) {
203+
this.snapshotId = snapshotId;
204+
}
205+
185206
public DataVolumeForCreateNodePoolInput type(TypeEnum type) {
186207
this.type = type;
187208
return this;
@@ -213,12 +234,13 @@ public boolean equals(java.lang.Object o) {
213234
return Objects.equals(this.fileSystem, dataVolumeForCreateNodePoolInput.fileSystem) &&
214235
Objects.equals(this.mountPoint, dataVolumeForCreateNodePoolInput.mountPoint) &&
215236
Objects.equals(this.size, dataVolumeForCreateNodePoolInput.size) &&
237+
Objects.equals(this.snapshotId, dataVolumeForCreateNodePoolInput.snapshotId) &&
216238
Objects.equals(this.type, dataVolumeForCreateNodePoolInput.type);
217239
}
218240

219241
@Override
220242
public int hashCode() {
221-
return Objects.hash(fileSystem, mountPoint, size, type);
243+
return Objects.hash(fileSystem, mountPoint, size, snapshotId, type);
222244
}
223245

224246

@@ -230,6 +252,7 @@ public String toString() {
230252
sb.append(" fileSystem: ").append(toIndentedString(fileSystem)).append("\n");
231253
sb.append(" mountPoint: ").append(toIndentedString(mountPoint)).append("\n");
232254
sb.append(" size: ").append(toIndentedString(size)).append("\n");
255+
sb.append(" snapshotId: ").append(toIndentedString(snapshotId)).append("\n");
233256
sb.append(" type: ").append(toIndentedString(type)).append("\n");
234257
sb.append("}");
235258
return sb.toString();

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/model/DataVolumeForListNodePoolsOutput.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public FileSystemEnum read(final JsonReader jsonReader) throws IOException {
8282
@SerializedName("Size")
8383
private Integer size = null;
8484

85+
@SerializedName("SnapshotId")
86+
private String snapshotId = null;
87+
8588
/**
8689
* Gets or Sets type
8790
*/
@@ -182,6 +185,24 @@ public void setSize(Integer size) {
182185
this.size = size;
183186
}
184187

188+
public DataVolumeForListNodePoolsOutput snapshotId(String snapshotId) {
189+
this.snapshotId = snapshotId;
190+
return this;
191+
}
192+
193+
/**
194+
* Get snapshotId
195+
* @return snapshotId
196+
**/
197+
@Schema(description = "")
198+
public String getSnapshotId() {
199+
return snapshotId;
200+
}
201+
202+
public void setSnapshotId(String snapshotId) {
203+
this.snapshotId = snapshotId;
204+
}
205+
185206
public DataVolumeForListNodePoolsOutput type(TypeEnum type) {
186207
this.type = type;
187208
return this;
@@ -213,12 +234,13 @@ public boolean equals(java.lang.Object o) {
213234
return Objects.equals(this.fileSystem, dataVolumeForListNodePoolsOutput.fileSystem) &&
214235
Objects.equals(this.mountPoint, dataVolumeForListNodePoolsOutput.mountPoint) &&
215236
Objects.equals(this.size, dataVolumeForListNodePoolsOutput.size) &&
237+
Objects.equals(this.snapshotId, dataVolumeForListNodePoolsOutput.snapshotId) &&
216238
Objects.equals(this.type, dataVolumeForListNodePoolsOutput.type);
217239
}
218240

219241
@Override
220242
public int hashCode() {
221-
return Objects.hash(fileSystem, mountPoint, size, type);
243+
return Objects.hash(fileSystem, mountPoint, size, snapshotId, type);
222244
}
223245

224246

@@ -230,6 +252,7 @@ public String toString() {
230252
sb.append(" fileSystem: ").append(toIndentedString(fileSystem)).append("\n");
231253
sb.append(" mountPoint: ").append(toIndentedString(mountPoint)).append("\n");
232254
sb.append(" size: ").append(toIndentedString(size)).append("\n");
255+
sb.append(" snapshotId: ").append(toIndentedString(snapshotId)).append("\n");
233256
sb.append(" type: ").append(toIndentedString(type)).append("\n");
234257
sb.append("}");
235258
return sb.toString();

0 commit comments

Comments
 (0)