|
81 | 81 | import com.volcengine.alb.model.DescribeListenersResponse; |
82 | 82 | import com.volcengine.alb.model.DescribeLoadBalancerAttributesRequest; |
83 | 83 | import com.volcengine.alb.model.DescribeLoadBalancerAttributesResponse; |
84 | | -import com.volcengine.alb.model.DescribeLoadBalancerSpecsRequest; |
85 | | -import com.volcengine.alb.model.DescribeLoadBalancerSpecsResponse; |
86 | 84 | import com.volcengine.alb.model.DescribeLoadBalancersRequest; |
87 | 85 | import com.volcengine.alb.model.DescribeLoadBalancersResponse; |
88 | 86 | import com.volcengine.alb.model.DescribeRulesRequest; |
@@ -3499,130 +3497,6 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don |
3499 | 3497 | apiClient.executeAsync(call, localVarReturnType, callback); |
3500 | 3498 | return call; |
3501 | 3499 | } |
3502 | | - /** |
3503 | | - * Build call for describeLoadBalancerSpecs |
3504 | | - * @param body (required) |
3505 | | - * @param progressListener Progress listener |
3506 | | - * @param progressRequestListener Progress request listener |
3507 | | - * @return Call to execute |
3508 | | - * @throws ApiException If fail to serialize the request body object |
3509 | | - */ |
3510 | | - public com.squareup.okhttp.Call describeLoadBalancerSpecsCall(DescribeLoadBalancerSpecsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { |
3511 | | - Object localVarPostBody = body; |
3512 | | - |
3513 | | - // create path and map variables |
3514 | | - String localVarPath = "/DescribeLoadBalancerSpecs/2020-04-01/alb/get/"; |
3515 | | - |
3516 | | - List<Pair> localVarQueryParams = new ArrayList<Pair>(); |
3517 | | - List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); |
3518 | | - |
3519 | | - Map<String, String> localVarHeaderParams = new HashMap<String, String>(); |
3520 | | - |
3521 | | - Map<String, Object> localVarFormParams = new HashMap<String, Object>(); |
3522 | | - |
3523 | | - final String[] localVarAccepts = { |
3524 | | - "application/json" |
3525 | | - }; |
3526 | | - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
3527 | | - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); |
3528 | | - |
3529 | | - final String[] localVarContentTypes = { |
3530 | | - "text/plain" |
3531 | | - }; |
3532 | | - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
3533 | | - localVarHeaderParams.put("Content-Type", localVarContentType); |
3534 | | - |
3535 | | - if(progressListener != null) { |
3536 | | - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { |
3537 | | - @Override |
3538 | | - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { |
3539 | | - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); |
3540 | | - return originalResponse.newBuilder() |
3541 | | - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) |
3542 | | - .build(); |
3543 | | - } |
3544 | | - }); |
3545 | | - } |
3546 | | - |
3547 | | - String[] localVarAuthNames = new String[] { "volcengineSign" }; |
3548 | | - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); |
3549 | | - } |
3550 | | - |
3551 | | - @SuppressWarnings("rawtypes") |
3552 | | - private com.squareup.okhttp.Call describeLoadBalancerSpecsValidateBeforeCall(DescribeLoadBalancerSpecsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { |
3553 | | - // verify the required parameter 'body' is set |
3554 | | - if (body == null) { |
3555 | | - throw new ApiException("Missing the required parameter 'body' when calling describeLoadBalancerSpecs(Async)"); |
3556 | | - } |
3557 | | - |
3558 | | - com.squareup.okhttp.Call call = describeLoadBalancerSpecsCall(body, progressListener, progressRequestListener); |
3559 | | - return call; |
3560 | | - |
3561 | | - |
3562 | | - |
3563 | | - |
3564 | | - |
3565 | | - } |
3566 | | - |
3567 | | - /** |
3568 | | - * |
3569 | | - * |
3570 | | - * @param body (required) |
3571 | | - * @return DescribeLoadBalancerSpecsResponse |
3572 | | - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body |
3573 | | - */ |
3574 | | - public DescribeLoadBalancerSpecsResponse describeLoadBalancerSpecs(DescribeLoadBalancerSpecsRequest body) throws ApiException { |
3575 | | - ApiResponse<DescribeLoadBalancerSpecsResponse> resp = describeLoadBalancerSpecsWithHttpInfo(body); |
3576 | | - return resp.getData(); |
3577 | | - } |
3578 | | - |
3579 | | - /** |
3580 | | - * |
3581 | | - * |
3582 | | - * @param body (required) |
3583 | | - * @return ApiResponse<DescribeLoadBalancerSpecsResponse> |
3584 | | - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body |
3585 | | - */ |
3586 | | - public ApiResponse<DescribeLoadBalancerSpecsResponse> describeLoadBalancerSpecsWithHttpInfo( @NotNull DescribeLoadBalancerSpecsRequest body) throws ApiException { |
3587 | | - com.squareup.okhttp.Call call = describeLoadBalancerSpecsValidateBeforeCall(body, null, null); |
3588 | | - Type localVarReturnType = new TypeToken<DescribeLoadBalancerSpecsResponse>(){}.getType(); |
3589 | | - return apiClient.execute(call, localVarReturnType); |
3590 | | - } |
3591 | | - |
3592 | | - /** |
3593 | | - * (asynchronously) |
3594 | | - * |
3595 | | - * @param body (required) |
3596 | | - * @param callback The callback to be executed when the API call finishes |
3597 | | - * @return The request call |
3598 | | - * @throws ApiException If fail to process the API call, e.g. serializing the request body object |
3599 | | - */ |
3600 | | - public com.squareup.okhttp.Call describeLoadBalancerSpecsAsync(DescribeLoadBalancerSpecsRequest body, final ApiCallback<DescribeLoadBalancerSpecsResponse> callback) throws ApiException { |
3601 | | - |
3602 | | - ProgressResponseBody.ProgressListener progressListener = null; |
3603 | | - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; |
3604 | | - |
3605 | | - if (callback != null) { |
3606 | | - progressListener = new ProgressResponseBody.ProgressListener() { |
3607 | | - @Override |
3608 | | - public void update(long bytesRead, long contentLength, boolean done) { |
3609 | | - callback.onDownloadProgress(bytesRead, contentLength, done); |
3610 | | - } |
3611 | | - }; |
3612 | | - |
3613 | | - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { |
3614 | | - @Override |
3615 | | - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { |
3616 | | - callback.onUploadProgress(bytesWritten, contentLength, done); |
3617 | | - } |
3618 | | - }; |
3619 | | - } |
3620 | | - |
3621 | | - com.squareup.okhttp.Call call = describeLoadBalancerSpecsValidateBeforeCall(body, progressListener, progressRequestListener); |
3622 | | - Type localVarReturnType = new TypeToken<DescribeLoadBalancerSpecsResponse>(){}.getType(); |
3623 | | - apiClient.executeAsync(call, localVarReturnType, callback); |
3624 | | - return call; |
3625 | | - } |
3626 | 3500 | /** |
3627 | 3501 | * Build call for describeLoadBalancers |
3628 | 3502 | * @param body (required) |
|
0 commit comments