Skip to content

Commit 1494957

Browse files
author
BitsAdmin
committed
Merge branch 'clb-Java-2020-04-01-online-1531-2025_09_04_20_30_09' into 'integration_2025-09-11_1051496837890'
feat: [development task] clb-1531-Java (1649381) See merge request iaasng/volcengine-java-sdk!657
2 parents fa754b8 + 9845723 commit 1494957

13 files changed

+914
-115
lines changed

meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"lasted": "0.2.32",
3-
"meta_commit": "023e2a224bd882708321aea1f5198f44b4e98cb5"
3+
"meta_commit": "a919945be510f793d63cd799b74eb7474a0966c6"
44
}

volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/ClbApi.java

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@
153153
import com.volcengine.clb.model.ModifyLoadBalancerAttributesResponse;
154154
import com.volcengine.clb.model.ModifyNLBBackendServersAttributesRequest;
155155
import com.volcengine.clb.model.ModifyNLBBackendServersAttributesResponse;
156+
import com.volcengine.clb.model.ModifyNLBListenerAdditionalCertificatesRequest;
157+
import com.volcengine.clb.model.ModifyNLBListenerAdditionalCertificatesResponse;
156158
import com.volcengine.clb.model.ModifyNLBListenerAttributesRequest;
157159
import com.volcengine.clb.model.ModifyNLBListenerAttributesResponse;
158160
import com.volcengine.clb.model.ModifyNLBSecurityPolicyAttributesRequest;
@@ -8031,6 +8033,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
80318033
apiClient.executeAsync(call, localVarReturnType, callback);
80328034
return call;
80338035
}
8036+
/**
8037+
* Build call for modifyNLBListenerAdditionalCertificates
8038+
* @param body (required)
8039+
* @param progressListener Progress listener
8040+
* @param progressRequestListener Progress request listener
8041+
* @return Call to execute
8042+
* @throws ApiException If fail to serialize the request body object
8043+
*/
8044+
public com.squareup.okhttp.Call modifyNLBListenerAdditionalCertificatesCall(ModifyNLBListenerAdditionalCertificatesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
8045+
Object localVarPostBody = body;
8046+
8047+
// create path and map variables
8048+
String localVarPath = "/ModifyNLBListenerAdditionalCertificates/2020-04-01/clb/get/text_plain/";
8049+
8050+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
8051+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
8052+
8053+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
8054+
8055+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
8056+
8057+
final String[] localVarAccepts = {
8058+
"application/json"
8059+
};
8060+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
8061+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
8062+
8063+
final String[] localVarContentTypes = {
8064+
"text/plain"
8065+
};
8066+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
8067+
localVarHeaderParams.put("Content-Type", localVarContentType);
8068+
8069+
if(progressListener != null) {
8070+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
8071+
@Override
8072+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
8073+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
8074+
return originalResponse.newBuilder()
8075+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
8076+
.build();
8077+
}
8078+
});
8079+
}
8080+
8081+
String[] localVarAuthNames = new String[] { "volcengineSign" };
8082+
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
8083+
}
8084+
8085+
@SuppressWarnings("rawtypes")
8086+
private com.squareup.okhttp.Call modifyNLBListenerAdditionalCertificatesValidateBeforeCall(ModifyNLBListenerAdditionalCertificatesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
8087+
// verify the required parameter 'body' is set
8088+
if (body == null) {
8089+
throw new ApiException("Missing the required parameter 'body' when calling modifyNLBListenerAdditionalCertificates(Async)");
8090+
}
8091+
8092+
com.squareup.okhttp.Call call = modifyNLBListenerAdditionalCertificatesCall(body, progressListener, progressRequestListener);
8093+
return call;
8094+
8095+
8096+
8097+
8098+
8099+
}
8100+
8101+
/**
8102+
*
8103+
*
8104+
* @param body (required)
8105+
* @return ModifyNLBListenerAdditionalCertificatesResponse
8106+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
8107+
*/
8108+
public ModifyNLBListenerAdditionalCertificatesResponse modifyNLBListenerAdditionalCertificates(ModifyNLBListenerAdditionalCertificatesRequest body) throws ApiException {
8109+
ApiResponse<ModifyNLBListenerAdditionalCertificatesResponse> resp = modifyNLBListenerAdditionalCertificatesWithHttpInfo(body);
8110+
return resp.getData();
8111+
}
8112+
8113+
/**
8114+
*
8115+
*
8116+
* @param body (required)
8117+
* @return ApiResponse&lt;ModifyNLBListenerAdditionalCertificatesResponse&gt;
8118+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
8119+
*/
8120+
public ApiResponse<ModifyNLBListenerAdditionalCertificatesResponse> modifyNLBListenerAdditionalCertificatesWithHttpInfo( @NotNull ModifyNLBListenerAdditionalCertificatesRequest body) throws ApiException {
8121+
com.squareup.okhttp.Call call = modifyNLBListenerAdditionalCertificatesValidateBeforeCall(body, null, null);
8122+
Type localVarReturnType = new TypeToken<ModifyNLBListenerAdditionalCertificatesResponse>(){}.getType();
8123+
return apiClient.execute(call, localVarReturnType);
8124+
}
8125+
8126+
/**
8127+
* (asynchronously)
8128+
*
8129+
* @param body (required)
8130+
* @param callback The callback to be executed when the API call finishes
8131+
* @return The request call
8132+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
8133+
*/
8134+
public com.squareup.okhttp.Call modifyNLBListenerAdditionalCertificatesAsync(ModifyNLBListenerAdditionalCertificatesRequest body, final ApiCallback<ModifyNLBListenerAdditionalCertificatesResponse> callback) throws ApiException {
8135+
8136+
ProgressResponseBody.ProgressListener progressListener = null;
8137+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
8138+
8139+
if (callback != null) {
8140+
progressListener = new ProgressResponseBody.ProgressListener() {
8141+
@Override
8142+
public void update(long bytesRead, long contentLength, boolean done) {
8143+
callback.onDownloadProgress(bytesRead, contentLength, done);
8144+
}
8145+
};
8146+
8147+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
8148+
@Override
8149+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
8150+
callback.onUploadProgress(bytesWritten, contentLength, done);
8151+
}
8152+
};
8153+
}
8154+
8155+
com.squareup.okhttp.Call call = modifyNLBListenerAdditionalCertificatesValidateBeforeCall(body, progressListener, progressRequestListener);
8156+
Type localVarReturnType = new TypeToken<ModifyNLBListenerAdditionalCertificatesResponse>(){}.getType();
8157+
apiClient.executeAsync(call, localVarReturnType, callback);
8158+
return call;
8159+
}
80348160
/**
80358161
* Build call for modifyNLBListenerAttributes
80368162
* @param body (required)

volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/CertificateForDescribeNLBListenerCertificatesOutput.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ public class CertificateForDescribeNLBListenerCertificatesOutput {
3333
@SerializedName("CertificateId")
3434
private String certificateId = null;
3535

36+
@SerializedName("CertificateSource")
37+
private String certificateSource = null;
38+
3639
@SerializedName("CertificateType")
3740
private String certificateType = null;
3841

@@ -63,6 +66,24 @@ public void setCertificateId(String certificateId) {
6366
this.certificateId = certificateId;
6467
}
6568

69+
public CertificateForDescribeNLBListenerCertificatesOutput certificateSource(String certificateSource) {
70+
this.certificateSource = certificateSource;
71+
return this;
72+
}
73+
74+
/**
75+
* Get certificateSource
76+
* @return certificateSource
77+
**/
78+
@Schema(description = "")
79+
public String getCertificateSource() {
80+
return certificateSource;
81+
}
82+
83+
public void setCertificateSource(String certificateSource) {
84+
this.certificateSource = certificateSource;
85+
}
86+
6687
public CertificateForDescribeNLBListenerCertificatesOutput certificateType(String certificateType) {
6788
this.certificateType = certificateType;
6889
return this;
@@ -146,6 +167,7 @@ public boolean equals(java.lang.Object o) {
146167
}
147168
CertificateForDescribeNLBListenerCertificatesOutput certificateForDescribeNLBListenerCertificatesOutput = (CertificateForDescribeNLBListenerCertificatesOutput) o;
148169
return Objects.equals(this.certificateId, certificateForDescribeNLBListenerCertificatesOutput.certificateId) &&
170+
Objects.equals(this.certificateSource, certificateForDescribeNLBListenerCertificatesOutput.certificateSource) &&
149171
Objects.equals(this.certificateType, certificateForDescribeNLBListenerCertificatesOutput.certificateType) &&
150172
Objects.equals(this.domain, certificateForDescribeNLBListenerCertificatesOutput.domain) &&
151173
Objects.equals(this.isDefault, certificateForDescribeNLBListenerCertificatesOutput.isDefault) &&
@@ -154,7 +176,7 @@ public boolean equals(java.lang.Object o) {
154176

155177
@Override
156178
public int hashCode() {
157-
return Objects.hash(certificateId, certificateType, domain, isDefault, status);
179+
return Objects.hash(certificateId, certificateSource, certificateType, domain, isDefault, status);
158180
}
159181

160182

@@ -164,6 +186,7 @@ public String toString() {
164186
sb.append("class CertificateForDescribeNLBListenerCertificatesOutput {\n");
165187

166188
sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n");
189+
sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n");
167190
sb.append(" certificateType: ").append(toIndentedString(certificateType)).append("\n");
168191
sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
169192
sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n");

0 commit comments

Comments
 (0)