Skip to content

Commit 8e63344

Browse files
author
BitsAdmin
committed
Merge 'alb-Java-2020-04-01-online-2463-2026_04_02_11_50_25' into 'integration_2026-04-09_1135713353474'
feat: [development task] alb-2463-Java (2265209) See merge request: !951
2 parents 944c85f + dffd06b commit 8e63344

39 files changed

Lines changed: 3081 additions & 48 deletions

File tree

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

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@
115115
import com.volcengine.alb.model.EnableTLSAccessLogResponse;
116116
import com.volcengine.alb.model.ListTagsForResourcesRequest;
117117
import com.volcengine.alb.model.ListTagsForResourcesResponse;
118+
import com.volcengine.alb.model.LoadBalancerJoinSecurityGroupRequest;
119+
import com.volcengine.alb.model.LoadBalancerJoinSecurityGroupResponse;
120+
import com.volcengine.alb.model.LoadBalancerLeaveSecurityGroupRequest;
121+
import com.volcengine.alb.model.LoadBalancerLeaveSecurityGroupResponse;
118122
import com.volcengine.alb.model.ModifyAclAttributesRequest;
119123
import com.volcengine.alb.model.ModifyAclAttributesResponse;
120124
import com.volcengine.alb.model.ModifyCACertificateAttributesRequest;
@@ -5637,6 +5641,254 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
56375641
apiClient.executeAsync(call, localVarReturnType, callback);
56385642
return call;
56395643
}
5644+
/**
5645+
* Build call for loadBalancerJoinSecurityGroup
5646+
* @param body (required)
5647+
* @param progressListener Progress listener
5648+
* @param progressRequestListener Progress request listener
5649+
* @return Call to execute
5650+
* @throws ApiException If fail to serialize the request body object
5651+
*/
5652+
public com.squareup.okhttp.Call loadBalancerJoinSecurityGroupCall(LoadBalancerJoinSecurityGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
5653+
Object localVarPostBody = body;
5654+
5655+
// create path and map variables
5656+
String localVarPath = "/LoadBalancerJoinSecurityGroup/2020-04-01/alb/get/text_plain/";
5657+
5658+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
5659+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
5660+
5661+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
5662+
5663+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
5664+
5665+
final String[] localVarAccepts = {
5666+
"application/json"
5667+
};
5668+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
5669+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
5670+
5671+
final String[] localVarContentTypes = {
5672+
"text/plain"
5673+
};
5674+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
5675+
localVarHeaderParams.put("Content-Type", localVarContentType);
5676+
5677+
if(progressListener != null) {
5678+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
5679+
@Override
5680+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
5681+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
5682+
return originalResponse.newBuilder()
5683+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
5684+
.build();
5685+
}
5686+
});
5687+
}
5688+
5689+
String[] localVarAuthNames = new String[] { "volcengineSign" };
5690+
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
5691+
}
5692+
5693+
@SuppressWarnings("rawtypes")
5694+
private com.squareup.okhttp.Call loadBalancerJoinSecurityGroupValidateBeforeCall(LoadBalancerJoinSecurityGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
5695+
// verify the required parameter 'body' is set
5696+
if (body == null) {
5697+
throw new ApiException("Missing the required parameter 'body' when calling loadBalancerJoinSecurityGroup(Async)");
5698+
}
5699+
5700+
com.squareup.okhttp.Call call = loadBalancerJoinSecurityGroupCall(body, progressListener, progressRequestListener);
5701+
return call;
5702+
5703+
5704+
5705+
5706+
5707+
}
5708+
5709+
/**
5710+
*
5711+
*
5712+
* @param body (required)
5713+
* @return LoadBalancerJoinSecurityGroupResponse
5714+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
5715+
*/
5716+
public LoadBalancerJoinSecurityGroupResponse loadBalancerJoinSecurityGroup(LoadBalancerJoinSecurityGroupRequest body) throws ApiException {
5717+
ApiResponse<LoadBalancerJoinSecurityGroupResponse> resp = loadBalancerJoinSecurityGroupWithHttpInfo(body);
5718+
return resp.getData();
5719+
}
5720+
5721+
/**
5722+
*
5723+
*
5724+
* @param body (required)
5725+
* @return ApiResponse&lt;LoadBalancerJoinSecurityGroupResponse&gt;
5726+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
5727+
*/
5728+
public ApiResponse<LoadBalancerJoinSecurityGroupResponse> loadBalancerJoinSecurityGroupWithHttpInfo( @NotNull LoadBalancerJoinSecurityGroupRequest body) throws ApiException {
5729+
com.squareup.okhttp.Call call = loadBalancerJoinSecurityGroupValidateBeforeCall(body, null, null);
5730+
Type localVarReturnType = new TypeToken<LoadBalancerJoinSecurityGroupResponse>(){}.getType();
5731+
return apiClient.execute(call, localVarReturnType);
5732+
}
5733+
5734+
/**
5735+
* (asynchronously)
5736+
*
5737+
* @param body (required)
5738+
* @param callback The callback to be executed when the API call finishes
5739+
* @return The request call
5740+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
5741+
*/
5742+
public com.squareup.okhttp.Call loadBalancerJoinSecurityGroupAsync(LoadBalancerJoinSecurityGroupRequest body, final ApiCallback<LoadBalancerJoinSecurityGroupResponse> callback) throws ApiException {
5743+
5744+
ProgressResponseBody.ProgressListener progressListener = null;
5745+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
5746+
5747+
if (callback != null) {
5748+
progressListener = new ProgressResponseBody.ProgressListener() {
5749+
@Override
5750+
public void update(long bytesRead, long contentLength, boolean done) {
5751+
callback.onDownloadProgress(bytesRead, contentLength, done);
5752+
}
5753+
};
5754+
5755+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
5756+
@Override
5757+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
5758+
callback.onUploadProgress(bytesWritten, contentLength, done);
5759+
}
5760+
};
5761+
}
5762+
5763+
com.squareup.okhttp.Call call = loadBalancerJoinSecurityGroupValidateBeforeCall(body, progressListener, progressRequestListener);
5764+
Type localVarReturnType = new TypeToken<LoadBalancerJoinSecurityGroupResponse>(){}.getType();
5765+
apiClient.executeAsync(call, localVarReturnType, callback);
5766+
return call;
5767+
}
5768+
/**
5769+
* Build call for loadBalancerLeaveSecurityGroup
5770+
* @param body (required)
5771+
* @param progressListener Progress listener
5772+
* @param progressRequestListener Progress request listener
5773+
* @return Call to execute
5774+
* @throws ApiException If fail to serialize the request body object
5775+
*/
5776+
public com.squareup.okhttp.Call loadBalancerLeaveSecurityGroupCall(LoadBalancerLeaveSecurityGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
5777+
Object localVarPostBody = body;
5778+
5779+
// create path and map variables
5780+
String localVarPath = "/LoadBalancerLeaveSecurityGroup/2020-04-01/alb/get/text_plain/";
5781+
5782+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
5783+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
5784+
5785+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
5786+
5787+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
5788+
5789+
final String[] localVarAccepts = {
5790+
"application/json"
5791+
};
5792+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
5793+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
5794+
5795+
final String[] localVarContentTypes = {
5796+
"text/plain"
5797+
};
5798+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
5799+
localVarHeaderParams.put("Content-Type", localVarContentType);
5800+
5801+
if(progressListener != null) {
5802+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
5803+
@Override
5804+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
5805+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
5806+
return originalResponse.newBuilder()
5807+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
5808+
.build();
5809+
}
5810+
});
5811+
}
5812+
5813+
String[] localVarAuthNames = new String[] { "volcengineSign" };
5814+
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
5815+
}
5816+
5817+
@SuppressWarnings("rawtypes")
5818+
private com.squareup.okhttp.Call loadBalancerLeaveSecurityGroupValidateBeforeCall(LoadBalancerLeaveSecurityGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
5819+
// verify the required parameter 'body' is set
5820+
if (body == null) {
5821+
throw new ApiException("Missing the required parameter 'body' when calling loadBalancerLeaveSecurityGroup(Async)");
5822+
}
5823+
5824+
com.squareup.okhttp.Call call = loadBalancerLeaveSecurityGroupCall(body, progressListener, progressRequestListener);
5825+
return call;
5826+
5827+
5828+
5829+
5830+
5831+
}
5832+
5833+
/**
5834+
*
5835+
*
5836+
* @param body (required)
5837+
* @return LoadBalancerLeaveSecurityGroupResponse
5838+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
5839+
*/
5840+
public LoadBalancerLeaveSecurityGroupResponse loadBalancerLeaveSecurityGroup(LoadBalancerLeaveSecurityGroupRequest body) throws ApiException {
5841+
ApiResponse<LoadBalancerLeaveSecurityGroupResponse> resp = loadBalancerLeaveSecurityGroupWithHttpInfo(body);
5842+
return resp.getData();
5843+
}
5844+
5845+
/**
5846+
*
5847+
*
5848+
* @param body (required)
5849+
* @return ApiResponse&lt;LoadBalancerLeaveSecurityGroupResponse&gt;
5850+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
5851+
*/
5852+
public ApiResponse<LoadBalancerLeaveSecurityGroupResponse> loadBalancerLeaveSecurityGroupWithHttpInfo( @NotNull LoadBalancerLeaveSecurityGroupRequest body) throws ApiException {
5853+
com.squareup.okhttp.Call call = loadBalancerLeaveSecurityGroupValidateBeforeCall(body, null, null);
5854+
Type localVarReturnType = new TypeToken<LoadBalancerLeaveSecurityGroupResponse>(){}.getType();
5855+
return apiClient.execute(call, localVarReturnType);
5856+
}
5857+
5858+
/**
5859+
* (asynchronously)
5860+
*
5861+
* @param body (required)
5862+
* @param callback The callback to be executed when the API call finishes
5863+
* @return The request call
5864+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
5865+
*/
5866+
public com.squareup.okhttp.Call loadBalancerLeaveSecurityGroupAsync(LoadBalancerLeaveSecurityGroupRequest body, final ApiCallback<LoadBalancerLeaveSecurityGroupResponse> callback) throws ApiException {
5867+
5868+
ProgressResponseBody.ProgressListener progressListener = null;
5869+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
5870+
5871+
if (callback != null) {
5872+
progressListener = new ProgressResponseBody.ProgressListener() {
5873+
@Override
5874+
public void update(long bytesRead, long contentLength, boolean done) {
5875+
callback.onDownloadProgress(bytesRead, contentLength, done);
5876+
}
5877+
};
5878+
5879+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
5880+
@Override
5881+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
5882+
callback.onUploadProgress(bytesWritten, contentLength, done);
5883+
}
5884+
};
5885+
}
5886+
5887+
com.squareup.okhttp.Call call = loadBalancerLeaveSecurityGroupValidateBeforeCall(body, progressListener, progressRequestListener);
5888+
Type localVarReturnType = new TypeToken<LoadBalancerLeaveSecurityGroupResponse>(){}.getType();
5889+
apiClient.executeAsync(call, localVarReturnType, callback);
5890+
return call;
5891+
}
56405892
/**
56415893
* Build call for modifyAclAttributes
56425894
* @param body (required)

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public class CloneLoadBalancerRequest {
4444
@SerializedName("Description")
4545
private String description = null;
4646

47+
@SerializedName("DryRun")
48+
private String dryRun = null;
49+
4750
@SerializedName("EipBillingConfig")
4851
private EipBillingConfigForCloneLoadBalancerInput eipBillingConfig = null;
4952

@@ -122,6 +125,24 @@ public void setDescription(String description) {
122125
this.description = description;
123126
}
124127

128+
public CloneLoadBalancerRequest dryRun(String dryRun) {
129+
this.dryRun = dryRun;
130+
return this;
131+
}
132+
133+
/**
134+
* Get dryRun
135+
* @return dryRun
136+
**/
137+
@Schema(description = "")
138+
public String getDryRun() {
139+
return dryRun;
140+
}
141+
142+
public void setDryRun(String dryRun) {
143+
this.dryRun = dryRun;
144+
}
145+
125146
public CloneLoadBalancerRequest eipBillingConfig(EipBillingConfigForCloneLoadBalancerInput eipBillingConfig) {
126147
this.eipBillingConfig = eipBillingConfig;
127148
return this;
@@ -292,6 +313,7 @@ public boolean equals(java.lang.Object o) {
292313
return Objects.equals(this.bandwidthPackageId, cloneLoadBalancerRequest.bandwidthPackageId) &&
293314
Objects.equals(this.deleteProtection, cloneLoadBalancerRequest.deleteProtection) &&
294315
Objects.equals(this.description, cloneLoadBalancerRequest.description) &&
316+
Objects.equals(this.dryRun, cloneLoadBalancerRequest.dryRun) &&
295317
Objects.equals(this.eipBillingConfig, cloneLoadBalancerRequest.eipBillingConfig) &&
296318
Objects.equals(this.ipv6BandwidthPackageId, cloneLoadBalancerRequest.ipv6BandwidthPackageId) &&
297319
Objects.equals(this.ipv6EipBillingConfig, cloneLoadBalancerRequest.ipv6EipBillingConfig) &&
@@ -304,7 +326,7 @@ public boolean equals(java.lang.Object o) {
304326

305327
@Override
306328
public int hashCode() {
307-
return Objects.hash(bandwidthPackageId, deleteProtection, description, eipBillingConfig, ipv6BandwidthPackageId, ipv6EipBillingConfig, loadBalancerId, loadBalancerName, projectName, regionId, zoneMappings);
329+
return Objects.hash(bandwidthPackageId, deleteProtection, description, dryRun, eipBillingConfig, ipv6BandwidthPackageId, ipv6EipBillingConfig, loadBalancerId, loadBalancerName, projectName, regionId, zoneMappings);
308330
}
309331

310332

@@ -316,6 +338,7 @@ public String toString() {
316338
sb.append(" bandwidthPackageId: ").append(toIndentedString(bandwidthPackageId)).append("\n");
317339
sb.append(" deleteProtection: ").append(toIndentedString(deleteProtection)).append("\n");
318340
sb.append(" description: ").append(toIndentedString(description)).append("\n");
341+
sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n");
319342
sb.append(" eipBillingConfig: ").append(toIndentedString(eipBillingConfig)).append("\n");
320343
sb.append(" ipv6BandwidthPackageId: ").append(toIndentedString(ipv6BandwidthPackageId)).append("\n");
321344
sb.append(" ipv6EipBillingConfig: ").append(toIndentedString(ipv6EipBillingConfig)).append("\n");

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

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,30 @@
3030

3131

3232
public class ConvertRewriteConfigForCreateRulesInput {
33+
@SerializedName("Host")
34+
private String host = null;
35+
3336
@SerializedName("Path")
3437
private String path = null;
3538

39+
public ConvertRewriteConfigForCreateRulesInput host(String host) {
40+
this.host = host;
41+
return this;
42+
}
43+
44+
/**
45+
* Get host
46+
* @return host
47+
**/
48+
@Schema(description = "")
49+
public String getHost() {
50+
return host;
51+
}
52+
53+
public void setHost(String host) {
54+
this.host = host;
55+
}
56+
3657
public ConvertRewriteConfigForCreateRulesInput path(String path) {
3758
this.path = path;
3859
return this;
@@ -61,12 +82,13 @@ public boolean equals(java.lang.Object o) {
6182
return false;
6283
}
6384
ConvertRewriteConfigForCreateRulesInput convertRewriteConfigForCreateRulesInput = (ConvertRewriteConfigForCreateRulesInput) o;
64-
return Objects.equals(this.path, convertRewriteConfigForCreateRulesInput.path);
85+
return Objects.equals(this.host, convertRewriteConfigForCreateRulesInput.host) &&
86+
Objects.equals(this.path, convertRewriteConfigForCreateRulesInput.path);
6587
}
6688

6789
@Override
6890
public int hashCode() {
69-
return Objects.hash(path);
91+
return Objects.hash(host, path);
7092
}
7193

7294

@@ -75,6 +97,7 @@ public String toString() {
7597
StringBuilder sb = new StringBuilder();
7698
sb.append("class ConvertRewriteConfigForCreateRulesInput {\n");
7799

100+
sb.append(" host: ").append(toIndentedString(host)).append("\n");
78101
sb.append(" path: ").append(toIndentedString(path)).append("\n");
79102
sb.append("}");
80103
return sb.toString();

0 commit comments

Comments
 (0)