Skip to content

Commit febcd31

Browse files
ci_volc_sdk_genbytestarter
authored andcommitted
feat: auto generate for alb-Java-2020-04-01-online-1090-2025_04_03_19_41_50
1 parent 4358bc6 commit febcd31

File tree

94 files changed

+4488
-112
lines changed

Some content is hidden

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

94 files changed

+4488
-112
lines changed

volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/AlbApi.java

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@
9595
import com.volcengine.alb.model.DescribeRulesResponse;
9696
import com.volcengine.alb.model.DescribeServerGroupAttributesRequest;
9797
import com.volcengine.alb.model.DescribeServerGroupAttributesResponse;
98+
import com.volcengine.alb.model.DescribeServerGroupBackendServersRequest;
99+
import com.volcengine.alb.model.DescribeServerGroupBackendServersResponse;
98100
import com.volcengine.alb.model.DescribeServerGroupsRequest;
99101
import com.volcengine.alb.model.DescribeServerGroupsResponse;
100102
import com.volcengine.alb.model.DescribeZonesRequest;
@@ -4395,6 +4397,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
43954397
apiClient.executeAsync(call, localVarReturnType, callback);
43964398
return call;
43974399
}
4400+
/**
4401+
* Build call for describeServerGroupBackendServers
4402+
* @param body (required)
4403+
* @param progressListener Progress listener
4404+
* @param progressRequestListener Progress request listener
4405+
* @return Call to execute
4406+
* @throws ApiException If fail to serialize the request body object
4407+
*/
4408+
public com.squareup.okhttp.Call describeServerGroupBackendServersCall(DescribeServerGroupBackendServersRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
4409+
Object localVarPostBody = body;
4410+
4411+
// create path and map variables
4412+
String localVarPath = "/DescribeServerGroupBackendServers/2020-04-01/alb/get/text_plain/";
4413+
4414+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
4415+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
4416+
4417+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
4418+
4419+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
4420+
4421+
final String[] localVarAccepts = {
4422+
"application/json"
4423+
};
4424+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
4425+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
4426+
4427+
final String[] localVarContentTypes = {
4428+
"text/plain"
4429+
};
4430+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
4431+
localVarHeaderParams.put("Content-Type", localVarContentType);
4432+
4433+
if(progressListener != null) {
4434+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
4435+
@Override
4436+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
4437+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
4438+
return originalResponse.newBuilder()
4439+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
4440+
.build();
4441+
}
4442+
});
4443+
}
4444+
4445+
String[] localVarAuthNames = new String[] { "volcengineSign" };
4446+
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
4447+
}
4448+
4449+
@SuppressWarnings("rawtypes")
4450+
private com.squareup.okhttp.Call describeServerGroupBackendServersValidateBeforeCall(DescribeServerGroupBackendServersRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
4451+
// verify the required parameter 'body' is set
4452+
if (body == null) {
4453+
throw new ApiException("Missing the required parameter 'body' when calling describeServerGroupBackendServers(Async)");
4454+
}
4455+
4456+
com.squareup.okhttp.Call call = describeServerGroupBackendServersCall(body, progressListener, progressRequestListener);
4457+
return call;
4458+
4459+
4460+
4461+
4462+
4463+
}
4464+
4465+
/**
4466+
*
4467+
*
4468+
* @param body (required)
4469+
* @return DescribeServerGroupBackendServersResponse
4470+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
4471+
*/
4472+
public DescribeServerGroupBackendServersResponse describeServerGroupBackendServers(DescribeServerGroupBackendServersRequest body) throws ApiException {
4473+
ApiResponse<DescribeServerGroupBackendServersResponse> resp = describeServerGroupBackendServersWithHttpInfo(body);
4474+
return resp.getData();
4475+
}
4476+
4477+
/**
4478+
*
4479+
*
4480+
* @param body (required)
4481+
* @return ApiResponse&lt;DescribeServerGroupBackendServersResponse&gt;
4482+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
4483+
*/
4484+
public ApiResponse<DescribeServerGroupBackendServersResponse> describeServerGroupBackendServersWithHttpInfo( @NotNull DescribeServerGroupBackendServersRequest body) throws ApiException {
4485+
com.squareup.okhttp.Call call = describeServerGroupBackendServersValidateBeforeCall(body, null, null);
4486+
Type localVarReturnType = new TypeToken<DescribeServerGroupBackendServersResponse>(){}.getType();
4487+
return apiClient.execute(call, localVarReturnType);
4488+
}
4489+
4490+
/**
4491+
* (asynchronously)
4492+
*
4493+
* @param body (required)
4494+
* @param callback The callback to be executed when the API call finishes
4495+
* @return The request call
4496+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
4497+
*/
4498+
public com.squareup.okhttp.Call describeServerGroupBackendServersAsync(DescribeServerGroupBackendServersRequest body, final ApiCallback<DescribeServerGroupBackendServersResponse> callback) throws ApiException {
4499+
4500+
ProgressResponseBody.ProgressListener progressListener = null;
4501+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
4502+
4503+
if (callback != null) {
4504+
progressListener = new ProgressResponseBody.ProgressListener() {
4505+
@Override
4506+
public void update(long bytesRead, long contentLength, boolean done) {
4507+
callback.onDownloadProgress(bytesRead, contentLength, done);
4508+
}
4509+
};
4510+
4511+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
4512+
@Override
4513+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
4514+
callback.onUploadProgress(bytesWritten, contentLength, done);
4515+
}
4516+
};
4517+
}
4518+
4519+
com.squareup.okhttp.Call call = describeServerGroupBackendServersValidateBeforeCall(body, progressListener, progressRequestListener);
4520+
Type localVarReturnType = new TypeToken<DescribeServerGroupBackendServersResponse>(){}.getType();
4521+
apiClient.executeAsync(call, localVarReturnType, callback);
4522+
return call;
4523+
}
43984524
/**
43994525
* Build call for describeServerGroups
44004526
* @param body (required)

volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/AclForDescribeAclsOutput.java

Lines changed: 34 additions & 1 deletion
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.alb.model.TagForDescribeAclsOutput;
2223
import io.swagger.v3.oas.annotations.media.Schema;
2324
import java.io.IOException;
2425
import java.util.ArrayList;
@@ -56,6 +57,9 @@ public class AclForDescribeAclsOutput {
5657
@SerializedName("Status")
5758
private String status = null;
5859

60+
@SerializedName("Tags")
61+
private List<TagForDescribeAclsOutput> tags = null;
62+
5963
@SerializedName("UpdateTime")
6064
private String updateTime = null;
6165

@@ -211,6 +215,33 @@ public void setStatus(String status) {
211215
this.status = status;
212216
}
213217

218+
public AclForDescribeAclsOutput tags(List<TagForDescribeAclsOutput> tags) {
219+
this.tags = tags;
220+
return this;
221+
}
222+
223+
public AclForDescribeAclsOutput addTagsItem(TagForDescribeAclsOutput tagsItem) {
224+
if (this.tags == null) {
225+
this.tags = new ArrayList<TagForDescribeAclsOutput>();
226+
}
227+
this.tags.add(tagsItem);
228+
return this;
229+
}
230+
231+
/**
232+
* Get tags
233+
* @return tags
234+
**/
235+
@Valid
236+
@Schema(description = "")
237+
public List<TagForDescribeAclsOutput> getTags() {
238+
return tags;
239+
}
240+
241+
public void setTags(List<TagForDescribeAclsOutput> tags) {
242+
this.tags = tags;
243+
}
244+
214245
public AclForDescribeAclsOutput updateTime(String updateTime) {
215246
this.updateTime = updateTime;
216247
return this;
@@ -247,12 +278,13 @@ public boolean equals(java.lang.Object o) {
247278
Objects.equals(this.listeners, aclForDescribeAclsOutput.listeners) &&
248279
Objects.equals(this.projectName, aclForDescribeAclsOutput.projectName) &&
249280
Objects.equals(this.status, aclForDescribeAclsOutput.status) &&
281+
Objects.equals(this.tags, aclForDescribeAclsOutput.tags) &&
250282
Objects.equals(this.updateTime, aclForDescribeAclsOutput.updateTime);
251283
}
252284

253285
@Override
254286
public int hashCode() {
255-
return Objects.hash(aclEntryCount, aclId, aclName, createTime, description, listeners, projectName, status, updateTime);
287+
return Objects.hash(aclEntryCount, aclId, aclName, createTime, description, listeners, projectName, status, tags, updateTime);
256288
}
257289

258290

@@ -269,6 +301,7 @@ public String toString() {
269301
sb.append(" listeners: ").append(toIndentedString(listeners)).append("\n");
270302
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
271303
sb.append(" status: ").append(toIndentedString(status)).append("\n");
304+
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
272305
sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n");
273306
sb.append("}");
274307
return sb.toString();

volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/AddAclEntriesRequest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ public AddAclEntriesRequest aclId(String aclId) {
7575
* Get aclId
7676
* @return aclId
7777
**/
78-
@Schema(description = "")
78+
@NotNull
79+
@Schema(required = true, description = "")
7980
public String getAclId() {
8081
return aclId;
8182
}

volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/AddServerGroupBackendServersRequest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public AddServerGroupBackendServersRequest serverGroupId(String serverGroupId) {
4848
* Get serverGroupId
4949
* @return serverGroupId
5050
**/
51-
@Schema(description = "")
51+
@NotNull
52+
@Schema(required = true, description = "")
5253
public String getServerGroupId() {
5354
return serverGroupId;
5455
}

volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/CACertificateForDescribeCACertificatesOutput.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.alb.model.TagForDescribeCACertificatesOutput;
2223
import io.swagger.v3.oas.annotations.media.Schema;
2324
import java.io.IOException;
2425
import java.util.ArrayList;
@@ -65,6 +66,9 @@ public class CACertificateForDescribeCACertificatesOutput {
6566
@SerializedName("Status")
6667
private String status = null;
6768

69+
@SerializedName("Tags")
70+
private List<TagForDescribeCACertificatesOutput> tags = null;
71+
6872
public CACertificateForDescribeCACertificatesOutput caCertificateId(String caCertificateId) {
6973
this.caCertificateId = caCertificateId;
7074
return this;
@@ -271,6 +275,33 @@ public void setStatus(String status) {
271275
this.status = status;
272276
}
273277

278+
public CACertificateForDescribeCACertificatesOutput tags(List<TagForDescribeCACertificatesOutput> tags) {
279+
this.tags = tags;
280+
return this;
281+
}
282+
283+
public CACertificateForDescribeCACertificatesOutput addTagsItem(TagForDescribeCACertificatesOutput tagsItem) {
284+
if (this.tags == null) {
285+
this.tags = new ArrayList<TagForDescribeCACertificatesOutput>();
286+
}
287+
this.tags.add(tagsItem);
288+
return this;
289+
}
290+
291+
/**
292+
* Get tags
293+
* @return tags
294+
**/
295+
@Valid
296+
@Schema(description = "")
297+
public List<TagForDescribeCACertificatesOutput> getTags() {
298+
return tags;
299+
}
300+
301+
public void setTags(List<TagForDescribeCACertificatesOutput> tags) {
302+
this.tags = tags;
303+
}
304+
274305

275306
@Override
276307
public boolean equals(java.lang.Object o) {
@@ -291,12 +322,13 @@ public boolean equals(java.lang.Object o) {
291322
Objects.equals(this.listeners, caCertificateForDescribeCACertificatesOutput.listeners) &&
292323
Objects.equals(this.projectName, caCertificateForDescribeCACertificatesOutput.projectName) &&
293324
Objects.equals(this.san, caCertificateForDescribeCACertificatesOutput.san) &&
294-
Objects.equals(this.status, caCertificateForDescribeCACertificatesOutput.status);
325+
Objects.equals(this.status, caCertificateForDescribeCACertificatesOutput.status) &&
326+
Objects.equals(this.tags, caCertificateForDescribeCACertificatesOutput.tags);
295327
}
296328

297329
@Override
298330
public int hashCode() {
299-
return Objects.hash(caCertificateId, caCertificateName, certificateType, createTime, description, domainName, expiredAt, listeners, projectName, san, status);
331+
return Objects.hash(caCertificateId, caCertificateName, certificateType, createTime, description, domainName, expiredAt, listeners, projectName, san, status, tags);
300332
}
301333

302334

@@ -316,6 +348,7 @@ public String toString() {
316348
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
317349
sb.append(" san: ").append(toIndentedString(san)).append("\n");
318350
sb.append(" status: ").append(toIndentedString(status)).append("\n");
351+
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
319352
sb.append("}");
320353
return sb.toString();
321354
}

volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/CertificateForDescribeAllCertificatesOutput.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.alb.model.TagForDescribeAllCertificatesOutput;
2223
import io.swagger.v3.oas.annotations.media.Schema;
2324
import java.io.IOException;
2425
import java.util.ArrayList;
@@ -65,6 +66,9 @@ public class CertificateForDescribeAllCertificatesOutput {
6566
@SerializedName("Status")
6667
private String status = null;
6768

69+
@SerializedName("Tags")
70+
private List<TagForDescribeAllCertificatesOutput> tags = null;
71+
6872
public CertificateForDescribeAllCertificatesOutput certificateId(String certificateId) {
6973
this.certificateId = certificateId;
7074
return this;
@@ -271,6 +275,33 @@ public void setStatus(String status) {
271275
this.status = status;
272276
}
273277

278+
public CertificateForDescribeAllCertificatesOutput tags(List<TagForDescribeAllCertificatesOutput> tags) {
279+
this.tags = tags;
280+
return this;
281+
}
282+
283+
public CertificateForDescribeAllCertificatesOutput addTagsItem(TagForDescribeAllCertificatesOutput tagsItem) {
284+
if (this.tags == null) {
285+
this.tags = new ArrayList<TagForDescribeAllCertificatesOutput>();
286+
}
287+
this.tags.add(tagsItem);
288+
return this;
289+
}
290+
291+
/**
292+
* Get tags
293+
* @return tags
294+
**/
295+
@Valid
296+
@Schema(description = "")
297+
public List<TagForDescribeAllCertificatesOutput> getTags() {
298+
return tags;
299+
}
300+
301+
public void setTags(List<TagForDescribeAllCertificatesOutput> tags) {
302+
this.tags = tags;
303+
}
304+
274305

275306
@Override
276307
public boolean equals(java.lang.Object o) {
@@ -291,12 +322,13 @@ public boolean equals(java.lang.Object o) {
291322
Objects.equals(this.listeners, certificateForDescribeAllCertificatesOutput.listeners) &&
292323
Objects.equals(this.projectName, certificateForDescribeAllCertificatesOutput.projectName) &&
293324
Objects.equals(this.san, certificateForDescribeAllCertificatesOutput.san) &&
294-
Objects.equals(this.status, certificateForDescribeAllCertificatesOutput.status);
325+
Objects.equals(this.status, certificateForDescribeAllCertificatesOutput.status) &&
326+
Objects.equals(this.tags, certificateForDescribeAllCertificatesOutput.tags);
295327
}
296328

297329
@Override
298330
public int hashCode() {
299-
return Objects.hash(certificateId, certificateName, certificateType, createTime, description, domainName, expiredAt, listeners, projectName, san, status);
331+
return Objects.hash(certificateId, certificateName, certificateType, createTime, description, domainName, expiredAt, listeners, projectName, san, status, tags);
300332
}
301333

302334

@@ -316,6 +348,7 @@ public String toString() {
316348
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
317349
sb.append(" san: ").append(toIndentedString(san)).append("\n");
318350
sb.append(" status: ").append(toIndentedString(status)).append("\n");
351+
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
319352
sb.append("}");
320353
return sb.toString();
321354
}

0 commit comments

Comments
 (0)