Skip to content

Commit 3d64963

Browse files
author
BitsAdmin
committed
Merge branch 'clb-Java-2020-04-01-online-1722-2025_10_17_17_33_52' into 'integration_2025-10-23_1073134614018'
feat: [development task] clb-1722-Java (1759194) See merge request iaasng/volcengine-java-sdk!706
2 parents d9ecbea + 142f828 commit 3d64963

16 files changed

+1824
-8
lines changed

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

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@
149149
import com.volcengine.clb.model.ModifyCertificateAttributesResponse;
150150
import com.volcengine.clb.model.ModifyListenerAttributesRequest;
151151
import com.volcengine.clb.model.ModifyListenerAttributesResponse;
152+
import com.volcengine.clb.model.ModifyListenerDomainExtensionsRequest;
153+
import com.volcengine.clb.model.ModifyListenerDomainExtensionsResponse;
152154
import com.volcengine.clb.model.ModifyLoadBalancerAttributesRequest;
153155
import com.volcengine.clb.model.ModifyLoadBalancerAttributesResponse;
154156
import com.volcengine.clb.model.ModifyNLBBackendServersAttributesRequest;
@@ -161,6 +163,8 @@
161163
import com.volcengine.clb.model.ModifyNLBSecurityPolicyAttributesResponse;
162164
import com.volcengine.clb.model.ModifyNLBServerGroupAttributesRequest;
163165
import com.volcengine.clb.model.ModifyNLBServerGroupAttributesResponse;
166+
import com.volcengine.clb.model.ModifyNetworkLoadBalancerAccessLogRequest;
167+
import com.volcengine.clb.model.ModifyNetworkLoadBalancerAccessLogResponse;
164168
import com.volcengine.clb.model.ModifyNetworkLoadBalancerAttributesRequest;
165169
import com.volcengine.clb.model.ModifyNetworkLoadBalancerAttributesResponse;
166170
import com.volcengine.clb.model.ModifyNetworkLoadBalancerBandwidthPackageRequest;
@@ -7785,6 +7789,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
77857789
apiClient.executeAsync(call, localVarReturnType, callback);
77867790
return call;
77877791
}
7792+
/**
7793+
* Build call for modifyListenerDomainExtensions
7794+
* @param body (required)
7795+
* @param progressListener Progress listener
7796+
* @param progressRequestListener Progress request listener
7797+
* @return Call to execute
7798+
* @throws ApiException If fail to serialize the request body object
7799+
*/
7800+
public com.squareup.okhttp.Call modifyListenerDomainExtensionsCall(ModifyListenerDomainExtensionsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
7801+
Object localVarPostBody = body;
7802+
7803+
// create path and map variables
7804+
String localVarPath = "/ModifyListenerDomainExtensions/2020-04-01/clb/get/text_plain/";
7805+
7806+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
7807+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
7808+
7809+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
7810+
7811+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
7812+
7813+
final String[] localVarAccepts = {
7814+
"application/json"
7815+
};
7816+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
7817+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
7818+
7819+
final String[] localVarContentTypes = {
7820+
"text/plain"
7821+
};
7822+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
7823+
localVarHeaderParams.put("Content-Type", localVarContentType);
7824+
7825+
if(progressListener != null) {
7826+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
7827+
@Override
7828+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
7829+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
7830+
return originalResponse.newBuilder()
7831+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
7832+
.build();
7833+
}
7834+
});
7835+
}
7836+
7837+
String[] localVarAuthNames = new String[] { "volcengineSign" };
7838+
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
7839+
}
7840+
7841+
@SuppressWarnings("rawtypes")
7842+
private com.squareup.okhttp.Call modifyListenerDomainExtensionsValidateBeforeCall(ModifyListenerDomainExtensionsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
7843+
// verify the required parameter 'body' is set
7844+
if (body == null) {
7845+
throw new ApiException("Missing the required parameter 'body' when calling modifyListenerDomainExtensions(Async)");
7846+
}
7847+
7848+
com.squareup.okhttp.Call call = modifyListenerDomainExtensionsCall(body, progressListener, progressRequestListener);
7849+
return call;
7850+
7851+
7852+
7853+
7854+
7855+
}
7856+
7857+
/**
7858+
*
7859+
*
7860+
* @param body (required)
7861+
* @return ModifyListenerDomainExtensionsResponse
7862+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
7863+
*/
7864+
public ModifyListenerDomainExtensionsResponse modifyListenerDomainExtensions(ModifyListenerDomainExtensionsRequest body) throws ApiException {
7865+
ApiResponse<ModifyListenerDomainExtensionsResponse> resp = modifyListenerDomainExtensionsWithHttpInfo(body);
7866+
return resp.getData();
7867+
}
7868+
7869+
/**
7870+
*
7871+
*
7872+
* @param body (required)
7873+
* @return ApiResponse&lt;ModifyListenerDomainExtensionsResponse&gt;
7874+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
7875+
*/
7876+
public ApiResponse<ModifyListenerDomainExtensionsResponse> modifyListenerDomainExtensionsWithHttpInfo( @NotNull ModifyListenerDomainExtensionsRequest body) throws ApiException {
7877+
com.squareup.okhttp.Call call = modifyListenerDomainExtensionsValidateBeforeCall(body, null, null);
7878+
Type localVarReturnType = new TypeToken<ModifyListenerDomainExtensionsResponse>(){}.getType();
7879+
return apiClient.execute(call, localVarReturnType);
7880+
}
7881+
7882+
/**
7883+
* (asynchronously)
7884+
*
7885+
* @param body (required)
7886+
* @param callback The callback to be executed when the API call finishes
7887+
* @return The request call
7888+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
7889+
*/
7890+
public com.squareup.okhttp.Call modifyListenerDomainExtensionsAsync(ModifyListenerDomainExtensionsRequest body, final ApiCallback<ModifyListenerDomainExtensionsResponse> callback) throws ApiException {
7891+
7892+
ProgressResponseBody.ProgressListener progressListener = null;
7893+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
7894+
7895+
if (callback != null) {
7896+
progressListener = new ProgressResponseBody.ProgressListener() {
7897+
@Override
7898+
public void update(long bytesRead, long contentLength, boolean done) {
7899+
callback.onDownloadProgress(bytesRead, contentLength, done);
7900+
}
7901+
};
7902+
7903+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
7904+
@Override
7905+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
7906+
callback.onUploadProgress(bytesWritten, contentLength, done);
7907+
}
7908+
};
7909+
}
7910+
7911+
com.squareup.okhttp.Call call = modifyListenerDomainExtensionsValidateBeforeCall(body, progressListener, progressRequestListener);
7912+
Type localVarReturnType = new TypeToken<ModifyListenerDomainExtensionsResponse>(){}.getType();
7913+
apiClient.executeAsync(call, localVarReturnType, callback);
7914+
return call;
7915+
}
77887916
/**
77897917
* Build call for modifyLoadBalancerAttributes
77907918
* @param body (required)
@@ -8529,6 +8657,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
85298657
apiClient.executeAsync(call, localVarReturnType, callback);
85308658
return call;
85318659
}
8660+
/**
8661+
* Build call for modifyNetworkLoadBalancerAccessLog
8662+
* @param body (required)
8663+
* @param progressListener Progress listener
8664+
* @param progressRequestListener Progress request listener
8665+
* @return Call to execute
8666+
* @throws ApiException If fail to serialize the request body object
8667+
*/
8668+
public com.squareup.okhttp.Call modifyNetworkLoadBalancerAccessLogCall(ModifyNetworkLoadBalancerAccessLogRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
8669+
Object localVarPostBody = body;
8670+
8671+
// create path and map variables
8672+
String localVarPath = "/ModifyNetworkLoadBalancerAccessLog/2020-04-01/clb/get/text_plain/";
8673+
8674+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
8675+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
8676+
8677+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
8678+
8679+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
8680+
8681+
final String[] localVarAccepts = {
8682+
"application/json"
8683+
};
8684+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
8685+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
8686+
8687+
final String[] localVarContentTypes = {
8688+
"text/plain"
8689+
};
8690+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
8691+
localVarHeaderParams.put("Content-Type", localVarContentType);
8692+
8693+
if(progressListener != null) {
8694+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
8695+
@Override
8696+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
8697+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
8698+
return originalResponse.newBuilder()
8699+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
8700+
.build();
8701+
}
8702+
});
8703+
}
8704+
8705+
String[] localVarAuthNames = new String[] { "volcengineSign" };
8706+
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
8707+
}
8708+
8709+
@SuppressWarnings("rawtypes")
8710+
private com.squareup.okhttp.Call modifyNetworkLoadBalancerAccessLogValidateBeforeCall(ModifyNetworkLoadBalancerAccessLogRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
8711+
// verify the required parameter 'body' is set
8712+
if (body == null) {
8713+
throw new ApiException("Missing the required parameter 'body' when calling modifyNetworkLoadBalancerAccessLog(Async)");
8714+
}
8715+
8716+
com.squareup.okhttp.Call call = modifyNetworkLoadBalancerAccessLogCall(body, progressListener, progressRequestListener);
8717+
return call;
8718+
8719+
8720+
8721+
8722+
8723+
}
8724+
8725+
/**
8726+
*
8727+
*
8728+
* @param body (required)
8729+
* @return ModifyNetworkLoadBalancerAccessLogResponse
8730+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
8731+
*/
8732+
public ModifyNetworkLoadBalancerAccessLogResponse modifyNetworkLoadBalancerAccessLog(ModifyNetworkLoadBalancerAccessLogRequest body) throws ApiException {
8733+
ApiResponse<ModifyNetworkLoadBalancerAccessLogResponse> resp = modifyNetworkLoadBalancerAccessLogWithHttpInfo(body);
8734+
return resp.getData();
8735+
}
8736+
8737+
/**
8738+
*
8739+
*
8740+
* @param body (required)
8741+
* @return ApiResponse&lt;ModifyNetworkLoadBalancerAccessLogResponse&gt;
8742+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
8743+
*/
8744+
public ApiResponse<ModifyNetworkLoadBalancerAccessLogResponse> modifyNetworkLoadBalancerAccessLogWithHttpInfo( @NotNull ModifyNetworkLoadBalancerAccessLogRequest body) throws ApiException {
8745+
com.squareup.okhttp.Call call = modifyNetworkLoadBalancerAccessLogValidateBeforeCall(body, null, null);
8746+
Type localVarReturnType = new TypeToken<ModifyNetworkLoadBalancerAccessLogResponse>(){}.getType();
8747+
return apiClient.execute(call, localVarReturnType);
8748+
}
8749+
8750+
/**
8751+
* (asynchronously)
8752+
*
8753+
* @param body (required)
8754+
* @param callback The callback to be executed when the API call finishes
8755+
* @return The request call
8756+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
8757+
*/
8758+
public com.squareup.okhttp.Call modifyNetworkLoadBalancerAccessLogAsync(ModifyNetworkLoadBalancerAccessLogRequest body, final ApiCallback<ModifyNetworkLoadBalancerAccessLogResponse> callback) throws ApiException {
8759+
8760+
ProgressResponseBody.ProgressListener progressListener = null;
8761+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
8762+
8763+
if (callback != null) {
8764+
progressListener = new ProgressResponseBody.ProgressListener() {
8765+
@Override
8766+
public void update(long bytesRead, long contentLength, boolean done) {
8767+
callback.onDownloadProgress(bytesRead, contentLength, done);
8768+
}
8769+
};
8770+
8771+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
8772+
@Override
8773+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
8774+
callback.onUploadProgress(bytesWritten, contentLength, done);
8775+
}
8776+
};
8777+
}
8778+
8779+
com.squareup.okhttp.Call call = modifyNetworkLoadBalancerAccessLogValidateBeforeCall(body, progressListener, progressRequestListener);
8780+
Type localVarReturnType = new TypeToken<ModifyNetworkLoadBalancerAccessLogResponse>(){}.getType();
8781+
apiClient.executeAsync(call, localVarReturnType, callback);
8782+
return call;
8783+
}
85328784
/**
85338785
* Build call for modifyNetworkLoadBalancerAttributes
85348786
* @param body (required)

0 commit comments

Comments
 (0)