Skip to content

Commit 8082dd3

Browse files
author
BitsAdmin
committed
Merge branch 'vke-Java-2022-05-12-online-1842-2025_11_18_18_22_23' into 'integration_2025-11-20_1086065921538'
feat: [development task] vke-1842-Java (1852997) See merge request iaasng/volcengine-java-sdk!758
2 parents be1c42e + bd6bce0 commit 8082dd3

8 files changed

+863
-6
lines changed

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

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.google.gson.stream.JsonReader;
2121
import com.google.gson.stream.JsonWriter;
2222
import com.volcengine.vke.model.ApiServerPublicAccessConfigForUpdateClusterConfigInput;
23+
import com.volcengine.vke.model.ClusterConnectorConfigRequestForUpdateClusterConfigInput;
2324
import io.swagger.v3.oas.annotations.media.Schema;
2425
import java.io.IOException;
2526
import java.util.ArrayList;
@@ -39,6 +40,12 @@ public class ClusterConfigForUpdateClusterConfigInput {
3940
@SerializedName("ApiServerPublicAccessEnabled")
4041
private Boolean apiServerPublicAccessEnabled = null;
4142

43+
@SerializedName("ClusterConnectorConfigRequest")
44+
private ClusterConnectorConfigRequestForUpdateClusterConfigInput clusterConnectorConfigRequest = null;
45+
46+
@SerializedName("ResourcePublicAccessDefaultEnabled")
47+
private Boolean resourcePublicAccessDefaultEnabled = null;
48+
4249
@SerializedName("SubnetIds")
4350
private List<String> subnetIds = null;
4451

@@ -79,6 +86,43 @@ public void setApiServerPublicAccessEnabled(Boolean apiServerPublicAccessEnabled
7986
this.apiServerPublicAccessEnabled = apiServerPublicAccessEnabled;
8087
}
8188

89+
public ClusterConfigForUpdateClusterConfigInput clusterConnectorConfigRequest(ClusterConnectorConfigRequestForUpdateClusterConfigInput clusterConnectorConfigRequest) {
90+
this.clusterConnectorConfigRequest = clusterConnectorConfigRequest;
91+
return this;
92+
}
93+
94+
/**
95+
* Get clusterConnectorConfigRequest
96+
* @return clusterConnectorConfigRequest
97+
**/
98+
@Valid
99+
@Schema(description = "")
100+
public ClusterConnectorConfigRequestForUpdateClusterConfigInput getClusterConnectorConfigRequest() {
101+
return clusterConnectorConfigRequest;
102+
}
103+
104+
public void setClusterConnectorConfigRequest(ClusterConnectorConfigRequestForUpdateClusterConfigInput clusterConnectorConfigRequest) {
105+
this.clusterConnectorConfigRequest = clusterConnectorConfigRequest;
106+
}
107+
108+
public ClusterConfigForUpdateClusterConfigInput resourcePublicAccessDefaultEnabled(Boolean resourcePublicAccessDefaultEnabled) {
109+
this.resourcePublicAccessDefaultEnabled = resourcePublicAccessDefaultEnabled;
110+
return this;
111+
}
112+
113+
/**
114+
* Get resourcePublicAccessDefaultEnabled
115+
* @return resourcePublicAccessDefaultEnabled
116+
**/
117+
@Schema(description = "")
118+
public Boolean isResourcePublicAccessDefaultEnabled() {
119+
return resourcePublicAccessDefaultEnabled;
120+
}
121+
122+
public void setResourcePublicAccessDefaultEnabled(Boolean resourcePublicAccessDefaultEnabled) {
123+
this.resourcePublicAccessDefaultEnabled = resourcePublicAccessDefaultEnabled;
124+
}
125+
82126
public ClusterConfigForUpdateClusterConfigInput subnetIds(List<String> subnetIds) {
83127
this.subnetIds = subnetIds;
84128
return this;
@@ -117,12 +161,14 @@ public boolean equals(java.lang.Object o) {
117161
ClusterConfigForUpdateClusterConfigInput clusterConfigForUpdateClusterConfigInput = (ClusterConfigForUpdateClusterConfigInput) o;
118162
return Objects.equals(this.apiServerPublicAccessConfig, clusterConfigForUpdateClusterConfigInput.apiServerPublicAccessConfig) &&
119163
Objects.equals(this.apiServerPublicAccessEnabled, clusterConfigForUpdateClusterConfigInput.apiServerPublicAccessEnabled) &&
164+
Objects.equals(this.clusterConnectorConfigRequest, clusterConfigForUpdateClusterConfigInput.clusterConnectorConfigRequest) &&
165+
Objects.equals(this.resourcePublicAccessDefaultEnabled, clusterConfigForUpdateClusterConfigInput.resourcePublicAccessDefaultEnabled) &&
120166
Objects.equals(this.subnetIds, clusterConfigForUpdateClusterConfigInput.subnetIds);
121167
}
122168

123169
@Override
124170
public int hashCode() {
125-
return Objects.hash(apiServerPublicAccessConfig, apiServerPublicAccessEnabled, subnetIds);
171+
return Objects.hash(apiServerPublicAccessConfig, apiServerPublicAccessEnabled, clusterConnectorConfigRequest, resourcePublicAccessDefaultEnabled, subnetIds);
126172
}
127173

128174

@@ -133,6 +179,8 @@ public String toString() {
133179

134180
sb.append(" apiServerPublicAccessConfig: ").append(toIndentedString(apiServerPublicAccessConfig)).append("\n");
135181
sb.append(" apiServerPublicAccessEnabled: ").append(toIndentedString(apiServerPublicAccessEnabled)).append("\n");
182+
sb.append(" clusterConnectorConfigRequest: ").append(toIndentedString(clusterConnectorConfigRequest)).append("\n");
183+
sb.append(" resourcePublicAccessDefaultEnabled: ").append(toIndentedString(resourcePublicAccessDefaultEnabled)).append("\n");
136184
sb.append(" subnetIds: ").append(toIndentedString(subnetIds)).append("\n");
137185
sb.append("}");
138186
return sb.toString();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,261 @@
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.ProxyConfigForUpdateClusterConfigInput;
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+
* ClusterConnectorConfigRequestForUpdateClusterConfigInput
29+
*/
30+
31+
32+
33+
public class ClusterConnectorConfigRequestForUpdateClusterConfigInput {
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 ProxyConfigForUpdateClusterConfigInput proxyConfig = null;
92+
93+
@SerializedName("TargetKubeConfig")
94+
private String targetKubeConfig = null;
95+
96+
/**
97+
* Gets or Sets type
98+
*/
99+
@JsonAdapter(TypeEnum.Adapter.class)
100+
public enum TypeEnum {
101+
@SerializedName("Direct")
102+
DIRECT("Direct"),
103+
@SerializedName("Proxy")
104+
PROXY("Proxy");
105+
106+
private String value;
107+
108+
TypeEnum(String value) {
109+
this.value = value;
110+
}
111+
public String getValue() {
112+
return value;
113+
}
114+
115+
@Override
116+
public String toString() {
117+
return String.valueOf(value);
118+
}
119+
public static TypeEnum fromValue(String input) {
120+
for (TypeEnum b : TypeEnum.values()) {
121+
if (b.value.equals(input)) {
122+
return b;
123+
}
124+
}
125+
return null;
126+
}
127+
public static class Adapter extends TypeAdapter<TypeEnum> {
128+
@Override
129+
public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException {
130+
jsonWriter.value(String.valueOf(enumeration.getValue()));
131+
}
132+
133+
@Override
134+
public TypeEnum read(final JsonReader jsonReader) throws IOException {
135+
Object value = jsonReader.nextString();
136+
return TypeEnum.fromValue((String)(value));
137+
}
138+
}
139+
} @SerializedName("Type")
140+
private TypeEnum type = null;
141+
142+
public ClusterConnectorConfigRequestForUpdateClusterConfigInput provider(ProviderEnum provider) {
143+
this.provider = provider;
144+
return this;
145+
}
146+
147+
/**
148+
* Get provider
149+
* @return provider
150+
**/
151+
@Schema(description = "")
152+
public ProviderEnum getProvider() {
153+
return provider;
154+
}
155+
156+
public void setProvider(ProviderEnum provider) {
157+
this.provider = provider;
158+
}
159+
160+
public ClusterConnectorConfigRequestForUpdateClusterConfigInput proxyConfig(ProxyConfigForUpdateClusterConfigInput proxyConfig) {
161+
this.proxyConfig = proxyConfig;
162+
return this;
163+
}
164+
165+
/**
166+
* Get proxyConfig
167+
* @return proxyConfig
168+
**/
169+
@Valid
170+
@Schema(description = "")
171+
public ProxyConfigForUpdateClusterConfigInput getProxyConfig() {
172+
return proxyConfig;
173+
}
174+
175+
public void setProxyConfig(ProxyConfigForUpdateClusterConfigInput proxyConfig) {
176+
this.proxyConfig = proxyConfig;
177+
}
178+
179+
public ClusterConnectorConfigRequestForUpdateClusterConfigInput targetKubeConfig(String targetKubeConfig) {
180+
this.targetKubeConfig = targetKubeConfig;
181+
return this;
182+
}
183+
184+
/**
185+
* Get targetKubeConfig
186+
* @return targetKubeConfig
187+
**/
188+
@Schema(description = "")
189+
public String getTargetKubeConfig() {
190+
return targetKubeConfig;
191+
}
192+
193+
public void setTargetKubeConfig(String targetKubeConfig) {
194+
this.targetKubeConfig = targetKubeConfig;
195+
}
196+
197+
public ClusterConnectorConfigRequestForUpdateClusterConfigInput type(TypeEnum type) {
198+
this.type = type;
199+
return this;
200+
}
201+
202+
/**
203+
* Get type
204+
* @return type
205+
**/
206+
@Schema(description = "")
207+
public TypeEnum getType() {
208+
return type;
209+
}
210+
211+
public void setType(TypeEnum type) {
212+
this.type = type;
213+
}
214+
215+
216+
@Override
217+
public boolean equals(java.lang.Object o) {
218+
if (this == o) {
219+
return true;
220+
}
221+
if (o == null || getClass() != o.getClass()) {
222+
return false;
223+
}
224+
ClusterConnectorConfigRequestForUpdateClusterConfigInput clusterConnectorConfigRequestForUpdateClusterConfigInput = (ClusterConnectorConfigRequestForUpdateClusterConfigInput) o;
225+
return Objects.equals(this.provider, clusterConnectorConfigRequestForUpdateClusterConfigInput.provider) &&
226+
Objects.equals(this.proxyConfig, clusterConnectorConfigRequestForUpdateClusterConfigInput.proxyConfig) &&
227+
Objects.equals(this.targetKubeConfig, clusterConnectorConfigRequestForUpdateClusterConfigInput.targetKubeConfig) &&
228+
Objects.equals(this.type, clusterConnectorConfigRequestForUpdateClusterConfigInput.type);
229+
}
230+
231+
@Override
232+
public int hashCode() {
233+
return Objects.hash(provider, proxyConfig, targetKubeConfig, type);
234+
}
235+
236+
237+
@Override
238+
public String toString() {
239+
StringBuilder sb = new StringBuilder();
240+
sb.append("class ClusterConnectorConfigRequestForUpdateClusterConfigInput {\n");
241+
242+
sb.append(" provider: ").append(toIndentedString(provider)).append("\n");
243+
sb.append(" proxyConfig: ").append(toIndentedString(proxyConfig)).append("\n");
244+
sb.append(" targetKubeConfig: ").append(toIndentedString(targetKubeConfig)).append("\n");
245+
sb.append(" type: ").append(toIndentedString(type)).append("\n");
246+
sb.append("}");
247+
return sb.toString();
248+
}
249+
250+
/**
251+
* Convert the given object to string with each line indented by 4 spaces
252+
* (except the first line).
253+
*/
254+
private String toIndentedString(java.lang.Object o) {
255+
if (o == null) {
256+
return "null";
257+
}
258+
return o.toString().replace("\n", "\n ");
259+
}
260+
261+
}

0 commit comments

Comments
 (0)