Skip to content

Commit b933bfb

Browse files
author
BitsAdmin
committed
Merge branch 'vke-Java-2022-05-12-online-1708-2025_10_15_15_38_15' into 'integration_2025-10-16_1070820513026'
feat: [development task] vke-1708-Java (1736325) See merge request iaasng/volcengine-java-sdk!695
2 parents b1f5a01 + 8c343d2 commit b933bfb

File tree

48 files changed

+6192
-43
lines changed

Some content is hidden

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

48 files changed

+6192
-43
lines changed

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/VkeApi.java

Lines changed: 786 additions & 30 deletions
Large diffs are not rendered by default.
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
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 io.swagger.v3.oas.annotations.media.Schema;
23+
import java.io.IOException;
24+
import javax.validation.constraints.*;
25+
import javax.validation.Valid;
26+
/**
27+
* ActionForListRemedyConfigsOutput
28+
*/
29+
30+
31+
32+
public class ActionForListRemedyConfigsOutput {
33+
@SerializedName("RebootEcs")
34+
private Boolean rebootEcs = null;
35+
36+
@SerializedName("WaitFor")
37+
private Integer waitFor = null;
38+
39+
public ActionForListRemedyConfigsOutput rebootEcs(Boolean rebootEcs) {
40+
this.rebootEcs = rebootEcs;
41+
return this;
42+
}
43+
44+
/**
45+
* Get rebootEcs
46+
* @return rebootEcs
47+
**/
48+
@Schema(description = "")
49+
public Boolean isRebootEcs() {
50+
return rebootEcs;
51+
}
52+
53+
public void setRebootEcs(Boolean rebootEcs) {
54+
this.rebootEcs = rebootEcs;
55+
}
56+
57+
public ActionForListRemedyConfigsOutput waitFor(Integer waitFor) {
58+
this.waitFor = waitFor;
59+
return this;
60+
}
61+
62+
/**
63+
* Get waitFor
64+
* @return waitFor
65+
**/
66+
@Schema(description = "")
67+
public Integer getWaitFor() {
68+
return waitFor;
69+
}
70+
71+
public void setWaitFor(Integer waitFor) {
72+
this.waitFor = waitFor;
73+
}
74+
75+
76+
@Override
77+
public boolean equals(java.lang.Object o) {
78+
if (this == o) {
79+
return true;
80+
}
81+
if (o == null || getClass() != o.getClass()) {
82+
return false;
83+
}
84+
ActionForListRemedyConfigsOutput actionForListRemedyConfigsOutput = (ActionForListRemedyConfigsOutput) o;
85+
return Objects.equals(this.rebootEcs, actionForListRemedyConfigsOutput.rebootEcs) &&
86+
Objects.equals(this.waitFor, actionForListRemedyConfigsOutput.waitFor);
87+
}
88+
89+
@Override
90+
public int hashCode() {
91+
return Objects.hash(rebootEcs, waitFor);
92+
}
93+
94+
95+
@Override
96+
public String toString() {
97+
StringBuilder sb = new StringBuilder();
98+
sb.append("class ActionForListRemedyConfigsOutput {\n");
99+
100+
sb.append(" rebootEcs: ").append(toIndentedString(rebootEcs)).append("\n");
101+
sb.append(" waitFor: ").append(toIndentedString(waitFor)).append("\n");
102+
sb.append("}");
103+
return sb.toString();
104+
}
105+
106+
/**
107+
* Convert the given object to string with each line indented by 4 spaces
108+
* (except the first line).
109+
*/
110+
private String toIndentedString(java.lang.Object o) {
111+
if (o == null) {
112+
return "null";
113+
}
114+
return o.toString().replace("\n", "\n ");
115+
}
116+
117+
}
Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
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 io.swagger.v3.oas.annotations.media.Schema;
23+
import java.io.IOException;
24+
import java.util.ArrayList;
25+
import java.util.List;
26+
import javax.validation.constraints.*;
27+
import javax.validation.Valid;
28+
/**
29+
* BindingRemedyConfigRequest
30+
*/
31+
32+
33+
34+
public class BindingRemedyConfigRequest {
35+
@SerializedName("ClusterId")
36+
private String clusterId = null;
37+
38+
@SerializedName("Id")
39+
private String id = null;
40+
41+
@SerializedName("ResourceIds")
42+
private List<String> resourceIds = null;
43+
44+
/**
45+
* Gets or Sets resourceType
46+
*/
47+
@JsonAdapter(ResourceTypeEnum.Adapter.class)
48+
public enum ResourceTypeEnum {
49+
@SerializedName("VkeNodePool")
50+
VKENODEPOOL("VkeNodePool");
51+
52+
private String value;
53+
54+
ResourceTypeEnum(String value) {
55+
this.value = value;
56+
}
57+
public String getValue() {
58+
return value;
59+
}
60+
61+
@Override
62+
public String toString() {
63+
return String.valueOf(value);
64+
}
65+
public static ResourceTypeEnum fromValue(String input) {
66+
for (ResourceTypeEnum b : ResourceTypeEnum.values()) {
67+
if (b.value.equals(input)) {
68+
return b;
69+
}
70+
}
71+
return null;
72+
}
73+
public static class Adapter extends TypeAdapter<ResourceTypeEnum> {
74+
@Override
75+
public void write(final JsonWriter jsonWriter, final ResourceTypeEnum enumeration) throws IOException {
76+
jsonWriter.value(String.valueOf(enumeration.getValue()));
77+
}
78+
79+
@Override
80+
public ResourceTypeEnum read(final JsonReader jsonReader) throws IOException {
81+
Object value = jsonReader.nextString();
82+
return ResourceTypeEnum.fromValue((String)(value));
83+
}
84+
}
85+
} @SerializedName("ResourceType")
86+
private ResourceTypeEnum resourceType = null;
87+
88+
@SerializedName("UseRecommendedRemedyConfigs")
89+
private Boolean useRecommendedRemedyConfigs = null;
90+
91+
public BindingRemedyConfigRequest clusterId(String clusterId) {
92+
this.clusterId = clusterId;
93+
return this;
94+
}
95+
96+
/**
97+
* Get clusterId
98+
* @return clusterId
99+
**/
100+
@NotNull
101+
@Schema(required = true, description = "")
102+
public String getClusterId() {
103+
return clusterId;
104+
}
105+
106+
public void setClusterId(String clusterId) {
107+
this.clusterId = clusterId;
108+
}
109+
110+
public BindingRemedyConfigRequest id(String id) {
111+
this.id = id;
112+
return this;
113+
}
114+
115+
/**
116+
* Get id
117+
* @return id
118+
**/
119+
@Schema(description = "")
120+
public String getId() {
121+
return id;
122+
}
123+
124+
public void setId(String id) {
125+
this.id = id;
126+
}
127+
128+
public BindingRemedyConfigRequest resourceIds(List<String> resourceIds) {
129+
this.resourceIds = resourceIds;
130+
return this;
131+
}
132+
133+
public BindingRemedyConfigRequest addResourceIdsItem(String resourceIdsItem) {
134+
if (this.resourceIds == null) {
135+
this.resourceIds = new ArrayList<String>();
136+
}
137+
this.resourceIds.add(resourceIdsItem);
138+
return this;
139+
}
140+
141+
/**
142+
* Get resourceIds
143+
* @return resourceIds
144+
**/
145+
@Schema(description = "")
146+
public List<String> getResourceIds() {
147+
return resourceIds;
148+
}
149+
150+
public void setResourceIds(List<String> resourceIds) {
151+
this.resourceIds = resourceIds;
152+
}
153+
154+
public BindingRemedyConfigRequest resourceType(ResourceTypeEnum resourceType) {
155+
this.resourceType = resourceType;
156+
return this;
157+
}
158+
159+
/**
160+
* Get resourceType
161+
* @return resourceType
162+
**/
163+
@NotNull
164+
@Schema(required = true, description = "")
165+
public ResourceTypeEnum getResourceType() {
166+
return resourceType;
167+
}
168+
169+
public void setResourceType(ResourceTypeEnum resourceType) {
170+
this.resourceType = resourceType;
171+
}
172+
173+
public BindingRemedyConfigRequest useRecommendedRemedyConfigs(Boolean useRecommendedRemedyConfigs) {
174+
this.useRecommendedRemedyConfigs = useRecommendedRemedyConfigs;
175+
return this;
176+
}
177+
178+
/**
179+
* Get useRecommendedRemedyConfigs
180+
* @return useRecommendedRemedyConfigs
181+
**/
182+
@Schema(description = "")
183+
public Boolean isUseRecommendedRemedyConfigs() {
184+
return useRecommendedRemedyConfigs;
185+
}
186+
187+
public void setUseRecommendedRemedyConfigs(Boolean useRecommendedRemedyConfigs) {
188+
this.useRecommendedRemedyConfigs = useRecommendedRemedyConfigs;
189+
}
190+
191+
192+
@Override
193+
public boolean equals(java.lang.Object o) {
194+
if (this == o) {
195+
return true;
196+
}
197+
if (o == null || getClass() != o.getClass()) {
198+
return false;
199+
}
200+
BindingRemedyConfigRequest bindingRemedyConfigRequest = (BindingRemedyConfigRequest) o;
201+
return Objects.equals(this.clusterId, bindingRemedyConfigRequest.clusterId) &&
202+
Objects.equals(this.id, bindingRemedyConfigRequest.id) &&
203+
Objects.equals(this.resourceIds, bindingRemedyConfigRequest.resourceIds) &&
204+
Objects.equals(this.resourceType, bindingRemedyConfigRequest.resourceType) &&
205+
Objects.equals(this.useRecommendedRemedyConfigs, bindingRemedyConfigRequest.useRecommendedRemedyConfigs);
206+
}
207+
208+
@Override
209+
public int hashCode() {
210+
return Objects.hash(clusterId, id, resourceIds, resourceType, useRecommendedRemedyConfigs);
211+
}
212+
213+
214+
@Override
215+
public String toString() {
216+
StringBuilder sb = new StringBuilder();
217+
sb.append("class BindingRemedyConfigRequest {\n");
218+
219+
sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n");
220+
sb.append(" id: ").append(toIndentedString(id)).append("\n");
221+
sb.append(" resourceIds: ").append(toIndentedString(resourceIds)).append("\n");
222+
sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n");
223+
sb.append(" useRecommendedRemedyConfigs: ").append(toIndentedString(useRecommendedRemedyConfigs)).append("\n");
224+
sb.append("}");
225+
return sb.toString();
226+
}
227+
228+
/**
229+
* Convert the given object to string with each line indented by 4 spaces
230+
* (except the first line).
231+
*/
232+
private String toIndentedString(java.lang.Object o) {
233+
if (o == null) {
234+
return "null";
235+
}
236+
return o.toString().replace("\n", "\n ");
237+
}
238+
239+
}

0 commit comments

Comments
 (0)