Skip to content

Commit 3c2ba83

Browse files
committed
feat: auto generate for vke-2.7
1 parent 9abe2ef commit 3c2ba83

File tree

4 files changed

+185
-5
lines changed

4 files changed

+185
-5
lines changed
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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+
* CompatibilityForListSupportedAddonsOutput
28+
*/
29+
30+
31+
public class CompatibilityForListSupportedAddonsOutput {
32+
@SerializedName("KubernetesVersion")
33+
private String kubernetesVersion = null;
34+
35+
public CompatibilityForListSupportedAddonsOutput kubernetesVersion(String kubernetesVersion) {
36+
this.kubernetesVersion = kubernetesVersion;
37+
return this;
38+
}
39+
40+
/**
41+
* Get kubernetesVersion
42+
* @return kubernetesVersion
43+
**/
44+
@Schema(description = "")
45+
public String getKubernetesVersion() {
46+
return kubernetesVersion;
47+
}
48+
49+
public void setKubernetesVersion(String kubernetesVersion) {
50+
this.kubernetesVersion = kubernetesVersion;
51+
}
52+
53+
54+
@Override
55+
public boolean equals(java.lang.Object o) {
56+
if (this == o) {
57+
return true;
58+
}
59+
if (o == null || getClass() != o.getClass()) {
60+
return false;
61+
}
62+
CompatibilityForListSupportedAddonsOutput compatibilityForListSupportedAddonsOutput = (CompatibilityForListSupportedAddonsOutput) o;
63+
return Objects.equals(this.kubernetesVersion, compatibilityForListSupportedAddonsOutput.kubernetesVersion);
64+
}
65+
66+
@Override
67+
public int hashCode() {
68+
return Objects.hash(kubernetesVersion);
69+
}
70+
71+
72+
@Override
73+
public String toString() {
74+
StringBuilder sb = new StringBuilder();
75+
sb.append("class CompatibilityForListSupportedAddonsOutput {\n");
76+
77+
sb.append(" kubernetesVersion: ").append(toIndentedString(kubernetesVersion)).append("\n");
78+
sb.append("}");
79+
return sb.toString();
80+
}
81+
82+
/**
83+
* Convert the given object to string with each line indented by 4 spaces
84+
* (except the first line).
85+
*/
86+
private String toIndentedString(java.lang.Object o) {
87+
if (o == null) {
88+
return "null";
89+
}
90+
return o.toString().replace("\n", "\n ");
91+
}
92+
93+
}

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public class CreateClusterRequest {
4747
@SerializedName("Description")
4848
private String description = null;
4949

50+
@SerializedName("KubernetesVersion")
51+
private String kubernetesVersion = null;
52+
5053
@SerializedName("Name")
5154
private String name = null;
5255

@@ -132,6 +135,24 @@ public void setDescription(String description) {
132135
this.description = description;
133136
}
134137

138+
public CreateClusterRequest kubernetesVersion(String kubernetesVersion) {
139+
this.kubernetesVersion = kubernetesVersion;
140+
return this;
141+
}
142+
143+
/**
144+
* Get kubernetesVersion
145+
* @return kubernetesVersion
146+
**/
147+
@Schema(description = "")
148+
public String getKubernetesVersion() {
149+
return kubernetesVersion;
150+
}
151+
152+
public void setKubernetesVersion(String kubernetesVersion) {
153+
this.kubernetesVersion = kubernetesVersion;
154+
}
155+
135156
public CreateClusterRequest name(String name) {
136157
this.name = name;
137158
return this;
@@ -229,6 +250,7 @@ public boolean equals(java.lang.Object o) {
229250
Objects.equals(this.clusterConfig, createClusterRequest.clusterConfig) &&
230251
Objects.equals(this.deleteProtectionEnabled, createClusterRequest.deleteProtectionEnabled) &&
231252
Objects.equals(this.description, createClusterRequest.description) &&
253+
Objects.equals(this.kubernetesVersion, createClusterRequest.kubernetesVersion) &&
232254
Objects.equals(this.name, createClusterRequest.name) &&
233255
Objects.equals(this.podsConfig, createClusterRequest.podsConfig) &&
234256
Objects.equals(this.servicesConfig, createClusterRequest.servicesConfig) &&
@@ -237,7 +259,7 @@ public boolean equals(java.lang.Object o) {
237259

238260
@Override
239261
public int hashCode() {
240-
return Objects.hash(clientToken, clusterConfig, deleteProtectionEnabled, description, name, podsConfig, servicesConfig, tags);
262+
return Objects.hash(clientToken, clusterConfig, deleteProtectionEnabled, description, kubernetesVersion, name, podsConfig, servicesConfig, tags);
241263
}
242264

243265

@@ -250,6 +272,7 @@ public String toString() {
250272
sb.append(" clusterConfig: ").append(toIndentedString(clusterConfig)).append("\n");
251273
sb.append(" deleteProtectionEnabled: ").append(toIndentedString(deleteProtectionEnabled)).append("\n");
252274
sb.append(" description: ").append(toIndentedString(description)).append("\n");
275+
sb.append(" kubernetesVersion: ").append(toIndentedString(kubernetesVersion)).append("\n");
253276
sb.append(" name: ").append(toIndentedString(name)).append("\n");
254277
sb.append(" podsConfig: ").append(toIndentedString(podsConfig)).append("\n");
255278
sb.append(" servicesConfig: ").append(toIndentedString(servicesConfig)).append("\n");

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

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ public PodNetworkModesEnum read(final JsonReader jsonReader) throws IOException
265265
} @SerializedName("PodNetworkModes")
266266
private List<PodNetworkModesEnum> podNetworkModes = null;
267267

268+
@SerializedName("Versions.Compatibilities.KubernetesVersions")
269+
private List<String> versionsCompatibilitiesKubernetesVersions = null;
270+
268271
public FilterForListSupportedAddonsInput categories(List<CategoriesEnum> categories) {
269272
this.categories = categories;
270273
return this;
@@ -413,6 +416,32 @@ public void setPodNetworkModes(List<PodNetworkModesEnum> podNetworkModes) {
413416
this.podNetworkModes = podNetworkModes;
414417
}
415418

419+
public FilterForListSupportedAddonsInput versionsCompatibilitiesKubernetesVersions(List<String> versionsCompatibilitiesKubernetesVersions) {
420+
this.versionsCompatibilitiesKubernetesVersions = versionsCompatibilitiesKubernetesVersions;
421+
return this;
422+
}
423+
424+
public FilterForListSupportedAddonsInput addVersionsCompatibilitiesKubernetesVersionsItem(String versionsCompatibilitiesKubernetesVersionsItem) {
425+
if (this.versionsCompatibilitiesKubernetesVersions == null) {
426+
this.versionsCompatibilitiesKubernetesVersions = new ArrayList<String>();
427+
}
428+
this.versionsCompatibilitiesKubernetesVersions.add(versionsCompatibilitiesKubernetesVersionsItem);
429+
return this;
430+
}
431+
432+
/**
433+
* Get versionsCompatibilitiesKubernetesVersions
434+
* @return versionsCompatibilitiesKubernetesVersions
435+
**/
436+
@Schema(description = "")
437+
public List<String> getVersionsCompatibilitiesKubernetesVersions() {
438+
return versionsCompatibilitiesKubernetesVersions;
439+
}
440+
441+
public void setVersionsCompatibilitiesKubernetesVersions(List<String> versionsCompatibilitiesKubernetesVersions) {
442+
this.versionsCompatibilitiesKubernetesVersions = versionsCompatibilitiesKubernetesVersions;
443+
}
444+
416445

417446
@Override
418447
public boolean equals(java.lang.Object o) {
@@ -428,12 +457,13 @@ public boolean equals(java.lang.Object o) {
428457
Objects.equals(this.deployNodeTypes, filterForListSupportedAddonsInput.deployNodeTypes) &&
429458
Objects.equals(this.name, filterForListSupportedAddonsInput.name) &&
430459
Objects.equals(this.necessaries, filterForListSupportedAddonsInput.necessaries) &&
431-
Objects.equals(this.podNetworkModes, filterForListSupportedAddonsInput.podNetworkModes);
460+
Objects.equals(this.podNetworkModes, filterForListSupportedAddonsInput.podNetworkModes) &&
461+
Objects.equals(this.versionsCompatibilitiesKubernetesVersions, filterForListSupportedAddonsInput.versionsCompatibilitiesKubernetesVersions);
432462
}
433463

434464
@Override
435465
public int hashCode() {
436-
return Objects.hash(categories, deployModes, deployNodeTypes, name, necessaries, podNetworkModes);
466+
return Objects.hash(categories, deployModes, deployNodeTypes, name, necessaries, podNetworkModes, versionsCompatibilitiesKubernetesVersions);
437467
}
438468

439469

@@ -448,6 +478,7 @@ public String toString() {
448478
sb.append(" name: ").append(toIndentedString(name)).append("\n");
449479
sb.append(" necessaries: ").append(toIndentedString(necessaries)).append("\n");
450480
sb.append(" podNetworkModes: ").append(toIndentedString(podNetworkModes)).append("\n");
481+
sb.append(" versionsCompatibilitiesKubernetesVersions: ").append(toIndentedString(versionsCompatibilitiesKubernetesVersions)).append("\n");
451482
sb.append("}");
452483
return sb.toString();
453484
}

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

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.google.gson.annotations.SerializedName;
2020
import com.google.gson.stream.JsonReader;
2121
import com.google.gson.stream.JsonWriter;
22+
import com.volcengine.vke.model.CompatibilityForListSupportedAddonsOutput;
2223
import io.swagger.v3.oas.annotations.media.Schema;
2324
import java.io.IOException;
2425
import java.util.ArrayList;
@@ -31,12 +32,42 @@
3132

3233

3334
public class VersionForListSupportedAddonsOutput {
35+
@SerializedName("Compatibilities")
36+
private List<CompatibilityForListSupportedAddonsOutput> compatibilities = null;
37+
3438
@SerializedName("CompatibleVersions")
3539
private List<String> compatibleVersions = null;
3640

3741
@SerializedName("Version")
3842
private String version = null;
3943

44+
public VersionForListSupportedAddonsOutput compatibilities(List<CompatibilityForListSupportedAddonsOutput> compatibilities) {
45+
this.compatibilities = compatibilities;
46+
return this;
47+
}
48+
49+
public VersionForListSupportedAddonsOutput addCompatibilitiesItem(CompatibilityForListSupportedAddonsOutput compatibilitiesItem) {
50+
if (this.compatibilities == null) {
51+
this.compatibilities = new ArrayList<CompatibilityForListSupportedAddonsOutput>();
52+
}
53+
this.compatibilities.add(compatibilitiesItem);
54+
return this;
55+
}
56+
57+
/**
58+
* Get compatibilities
59+
* @return compatibilities
60+
**/
61+
@Valid
62+
@Schema(description = "")
63+
public List<CompatibilityForListSupportedAddonsOutput> getCompatibilities() {
64+
return compatibilities;
65+
}
66+
67+
public void setCompatibilities(List<CompatibilityForListSupportedAddonsOutput> compatibilities) {
68+
this.compatibilities = compatibilities;
69+
}
70+
4071
public VersionForListSupportedAddonsOutput compatibleVersions(List<String> compatibleVersions) {
4172
this.compatibleVersions = compatibleVersions;
4273
return this;
@@ -91,13 +122,14 @@ public boolean equals(java.lang.Object o) {
91122
return false;
92123
}
93124
VersionForListSupportedAddonsOutput versionForListSupportedAddonsOutput = (VersionForListSupportedAddonsOutput) o;
94-
return Objects.equals(this.compatibleVersions, versionForListSupportedAddonsOutput.compatibleVersions) &&
125+
return Objects.equals(this.compatibilities, versionForListSupportedAddonsOutput.compatibilities) &&
126+
Objects.equals(this.compatibleVersions, versionForListSupportedAddonsOutput.compatibleVersions) &&
95127
Objects.equals(this.version, versionForListSupportedAddonsOutput.version);
96128
}
97129

98130
@Override
99131
public int hashCode() {
100-
return Objects.hash(compatibleVersions, version);
132+
return Objects.hash(compatibilities, compatibleVersions, version);
101133
}
102134

103135

@@ -106,6 +138,7 @@ public String toString() {
106138
StringBuilder sb = new StringBuilder();
107139
sb.append("class VersionForListSupportedAddonsOutput {\n");
108140

141+
sb.append(" compatibilities: ").append(toIndentedString(compatibilities)).append("\n");
109142
sb.append(" compatibleVersions: ").append(toIndentedString(compatibleVersions)).append("\n");
110143
sb.append(" version: ").append(toIndentedString(version)).append("\n");
111144
sb.append("}");

0 commit comments

Comments
 (0)