Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.volcengine.privatelink.PrivatelinkApi Maven / Gradle / Ivy
/*
* privatelink
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: common-version
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.volcengine.privatelink;
import com.volcengine.ApiCallback;
import com.volcengine.ApiClient;
import com.volcengine.ApiException;
import com.volcengine.ApiResponse;
import com.volcengine.Configuration;
import com.volcengine.Pair;
import com.volcengine.ProgressRequestBody;
import com.volcengine.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import javax.validation.constraints.*;
import com.volcengine.privatelink.model.AddPermissionToVpcEndpointServiceRequest;
import com.volcengine.privatelink.model.AddPermissionToVpcEndpointServiceResponse;
import com.volcengine.privatelink.model.AddZoneToVpcEndpointRequest;
import com.volcengine.privatelink.model.AddZoneToVpcEndpointResponse;
import com.volcengine.privatelink.model.AssignPrivateIpAddressesToVpcLinkRequest;
import com.volcengine.privatelink.model.AssignPrivateIpAddressesToVpcLinkResponse;
import com.volcengine.privatelink.model.AttachResourceToVpcEndpointServiceRequest;
import com.volcengine.privatelink.model.AttachResourceToVpcEndpointServiceResponse;
import com.volcengine.privatelink.model.AttachSecurityGroupToVpcEndpointRequest;
import com.volcengine.privatelink.model.AttachSecurityGroupToVpcEndpointResponse;
import com.volcengine.privatelink.model.AttachSecurityGroupsToPrivateLinkGatewayRequest;
import com.volcengine.privatelink.model.AttachSecurityGroupsToPrivateLinkGatewayResponse;
import com.volcengine.privatelink.model.CreatePrivateLinkGatewayRequest;
import com.volcengine.privatelink.model.CreatePrivateLinkGatewayResponse;
import com.volcengine.privatelink.model.CreateUniqueResourceTypeVpcEndpointServiceRequest;
import com.volcengine.privatelink.model.CreateUniqueResourceTypeVpcEndpointServiceResponse;
import com.volcengine.privatelink.model.CreateVpcEndpointRequest;
import com.volcengine.privatelink.model.CreateVpcEndpointResponse;
import com.volcengine.privatelink.model.CreateVpcEndpointServiceRequest;
import com.volcengine.privatelink.model.CreateVpcEndpointServiceResponse;
import com.volcengine.privatelink.model.CreateVpcGatewayEndpointRequest;
import com.volcengine.privatelink.model.CreateVpcGatewayEndpointResponse;
import com.volcengine.privatelink.model.CreateVpcLinkRequest;
import com.volcengine.privatelink.model.CreateVpcLinkResponse;
import com.volcengine.privatelink.model.DeletePrivateLinkGatewayRequest;
import com.volcengine.privatelink.model.DeletePrivateLinkGatewayResponse;
import com.volcengine.privatelink.model.DeleteVpcEndpointRequest;
import com.volcengine.privatelink.model.DeleteVpcEndpointResponse;
import com.volcengine.privatelink.model.DeleteVpcEndpointServiceRequest;
import com.volcengine.privatelink.model.DeleteVpcEndpointServiceResponse;
import com.volcengine.privatelink.model.DeleteVpcGatewayEndpointRequest;
import com.volcengine.privatelink.model.DeleteVpcGatewayEndpointResponse;
import com.volcengine.privatelink.model.DeleteVpcLinkRequest;
import com.volcengine.privatelink.model.DeleteVpcLinkResponse;
import com.volcengine.privatelink.model.DescribePrivateLinkAvailableZonesRequest;
import com.volcengine.privatelink.model.DescribePrivateLinkAvailableZonesResponse;
import com.volcengine.privatelink.model.DescribePrivateLinkGatewayAttributesRequest;
import com.volcengine.privatelink.model.DescribePrivateLinkGatewayAttributesResponse;
import com.volcengine.privatelink.model.DescribePrivateLinkGatewayAvailableZonesRequest;
import com.volcengine.privatelink.model.DescribePrivateLinkGatewayAvailableZonesResponse;
import com.volcengine.privatelink.model.DescribePrivateLinkGatewaySecurityGroupsRequest;
import com.volcengine.privatelink.model.DescribePrivateLinkGatewaySecurityGroupsResponse;
import com.volcengine.privatelink.model.DescribePrivateLinkGatewaysRequest;
import com.volcengine.privatelink.model.DescribePrivateLinkGatewaysResponse;
import com.volcengine.privatelink.model.DescribeVpcEndpointAttributesRequest;
import com.volcengine.privatelink.model.DescribeVpcEndpointAttributesResponse;
import com.volcengine.privatelink.model.DescribeVpcEndpointConnectionsRequest;
import com.volcengine.privatelink.model.DescribeVpcEndpointConnectionsResponse;
import com.volcengine.privatelink.model.DescribeVpcEndpointSecurityGroupsRequest;
import com.volcengine.privatelink.model.DescribeVpcEndpointSecurityGroupsResponse;
import com.volcengine.privatelink.model.DescribeVpcEndpointServiceAttributesRequest;
import com.volcengine.privatelink.model.DescribeVpcEndpointServiceAttributesResponse;
import com.volcengine.privatelink.model.DescribeVpcEndpointServicePermissionsRequest;
import com.volcengine.privatelink.model.DescribeVpcEndpointServicePermissionsResponse;
import com.volcengine.privatelink.model.DescribeVpcEndpointServiceResourcesRequest;
import com.volcengine.privatelink.model.DescribeVpcEndpointServiceResourcesResponse;
import com.volcengine.privatelink.model.DescribeVpcEndpointServicesByEndUserRequest;
import com.volcengine.privatelink.model.DescribeVpcEndpointServicesByEndUserResponse;
import com.volcengine.privatelink.model.DescribeVpcEndpointServicesRequest;
import com.volcengine.privatelink.model.DescribeVpcEndpointServicesResponse;
import com.volcengine.privatelink.model.DescribeVpcEndpointZonesRequest;
import com.volcengine.privatelink.model.DescribeVpcEndpointZonesResponse;
import com.volcengine.privatelink.model.DescribeVpcEndpointsRequest;
import com.volcengine.privatelink.model.DescribeVpcEndpointsResponse;
import com.volcengine.privatelink.model.DescribeVpcGatewayEndpointAttributesRequest;
import com.volcengine.privatelink.model.DescribeVpcGatewayEndpointAttributesResponse;
import com.volcengine.privatelink.model.DescribeVpcGatewayEndpointServicesRequest;
import com.volcengine.privatelink.model.DescribeVpcGatewayEndpointServicesResponse;
import com.volcengine.privatelink.model.DescribeVpcGatewayEndpointsRequest;
import com.volcengine.privatelink.model.DescribeVpcGatewayEndpointsResponse;
import com.volcengine.privatelink.model.DescribeVpcLinkAttributesRequest;
import com.volcengine.privatelink.model.DescribeVpcLinkAttributesResponse;
import com.volcengine.privatelink.model.DescribeVpcLinksRequest;
import com.volcengine.privatelink.model.DescribeVpcLinksResponse;
import com.volcengine.privatelink.model.DetachResourceFromVpcEndpointServiceRequest;
import com.volcengine.privatelink.model.DetachResourceFromVpcEndpointServiceResponse;
import com.volcengine.privatelink.model.DetachSecurityGroupFromVpcEndpointRequest;
import com.volcengine.privatelink.model.DetachSecurityGroupFromVpcEndpointResponse;
import com.volcengine.privatelink.model.DetachSecurityGroupsFromPrivateLinkGatewayRequest;
import com.volcengine.privatelink.model.DetachSecurityGroupsFromPrivateLinkGatewayResponse;
import com.volcengine.privatelink.model.DisableVpcEndpointConnectionRequest;
import com.volcengine.privatelink.model.DisableVpcEndpointConnectionResponse;
import com.volcengine.privatelink.model.EnableVpcEndpointConnectionRequest;
import com.volcengine.privatelink.model.EnableVpcEndpointConnectionResponse;
import com.volcengine.privatelink.model.ListTagsForResourcesRequest;
import com.volcengine.privatelink.model.ListTagsForResourcesResponse;
import com.volcengine.privatelink.model.ModifyPrivateLinkGatewayAttributesRequest;
import com.volcengine.privatelink.model.ModifyPrivateLinkGatewayAttributesResponse;
import com.volcengine.privatelink.model.ModifyUniqueResourceTypeVpcEndpointServiceAttributesRequest;
import com.volcengine.privatelink.model.ModifyUniqueResourceTypeVpcEndpointServiceAttributesResponse;
import com.volcengine.privatelink.model.ModifyVpcEndpointAttributesRequest;
import com.volcengine.privatelink.model.ModifyVpcEndpointAttributesResponse;
import com.volcengine.privatelink.model.ModifyVpcEndpointServiceAttributesRequest;
import com.volcengine.privatelink.model.ModifyVpcEndpointServiceAttributesResponse;
import com.volcengine.privatelink.model.ModifyVpcEndpointServiceResourceAttributesRequest;
import com.volcengine.privatelink.model.ModifyVpcEndpointServiceResourceAttributesResponse;
import com.volcengine.privatelink.model.ModifyVpcGatewayEndpointAttributesRequest;
import com.volcengine.privatelink.model.ModifyVpcGatewayEndpointAttributesResponse;
import com.volcengine.privatelink.model.ModifyVpcLinkAttributesRequest;
import com.volcengine.privatelink.model.ModifyVpcLinkAttributesResponse;
import com.volcengine.privatelink.model.RemovePermissionFromVpcEndpointServiceRequest;
import com.volcengine.privatelink.model.RemovePermissionFromVpcEndpointServiceResponse;
import com.volcengine.privatelink.model.RemoveZoneFromVpcEndpointRequest;
import com.volcengine.privatelink.model.RemoveZoneFromVpcEndpointResponse;
import com.volcengine.privatelink.model.TagResourcesRequest;
import com.volcengine.privatelink.model.TagResourcesResponse;
import com.volcengine.privatelink.model.UnAssignPrivateIpAddressesFromVpcLinkRequest;
import com.volcengine.privatelink.model.UnAssignPrivateIpAddressesFromVpcLinkResponse;
import com.volcengine.privatelink.model.UntagResourcesRequest;
import com.volcengine.privatelink.model.UntagResourcesResponse;
import com.volcengine.privatelink.model.VerifyVpcEndpointServicePrivateDNSRequest;
import com.volcengine.privatelink.model.VerifyVpcEndpointServicePrivateDNSResponse;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class PrivatelinkApi {
private ApiClient apiClient;
public PrivatelinkApi() {
this(Configuration.getDefaultApiClient());
}
public PrivatelinkApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Build call for addPermissionToVpcEndpointService
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call addPermissionToVpcEndpointServiceCall(AddPermissionToVpcEndpointServiceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/AddPermissionToVpcEndpointService/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call addPermissionToVpcEndpointServiceValidateBeforeCall(AddPermissionToVpcEndpointServiceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling addPermissionToVpcEndpointService(Async)");
}
com.squareup.okhttp.Call call = addPermissionToVpcEndpointServiceCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return AddPermissionToVpcEndpointServiceResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public AddPermissionToVpcEndpointServiceResponse addPermissionToVpcEndpointService(AddPermissionToVpcEndpointServiceRequest body) throws ApiException {
ApiResponse resp = addPermissionToVpcEndpointServiceWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<AddPermissionToVpcEndpointServiceResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse addPermissionToVpcEndpointServiceWithHttpInfo( @NotNull AddPermissionToVpcEndpointServiceRequest body) throws ApiException {
com.squareup.okhttp.Call call = addPermissionToVpcEndpointServiceValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call addPermissionToVpcEndpointServiceAsync(AddPermissionToVpcEndpointServiceRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = addPermissionToVpcEndpointServiceValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for addZoneToVpcEndpoint
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call addZoneToVpcEndpointCall(AddZoneToVpcEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/AddZoneToVpcEndpoint/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call addZoneToVpcEndpointValidateBeforeCall(AddZoneToVpcEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling addZoneToVpcEndpoint(Async)");
}
com.squareup.okhttp.Call call = addZoneToVpcEndpointCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return AddZoneToVpcEndpointResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public AddZoneToVpcEndpointResponse addZoneToVpcEndpoint(AddZoneToVpcEndpointRequest body) throws ApiException {
ApiResponse resp = addZoneToVpcEndpointWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<AddZoneToVpcEndpointResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse addZoneToVpcEndpointWithHttpInfo( @NotNull AddZoneToVpcEndpointRequest body) throws ApiException {
com.squareup.okhttp.Call call = addZoneToVpcEndpointValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call addZoneToVpcEndpointAsync(AddZoneToVpcEndpointRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = addZoneToVpcEndpointValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for assignPrivateIpAddressesToVpcLink
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call assignPrivateIpAddressesToVpcLinkCall(AssignPrivateIpAddressesToVpcLinkRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/AssignPrivateIpAddressesToVpcLink/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call assignPrivateIpAddressesToVpcLinkValidateBeforeCall(AssignPrivateIpAddressesToVpcLinkRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling assignPrivateIpAddressesToVpcLink(Async)");
}
com.squareup.okhttp.Call call = assignPrivateIpAddressesToVpcLinkCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return AssignPrivateIpAddressesToVpcLinkResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public AssignPrivateIpAddressesToVpcLinkResponse assignPrivateIpAddressesToVpcLink(AssignPrivateIpAddressesToVpcLinkRequest body) throws ApiException {
ApiResponse resp = assignPrivateIpAddressesToVpcLinkWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<AssignPrivateIpAddressesToVpcLinkResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse assignPrivateIpAddressesToVpcLinkWithHttpInfo( @NotNull AssignPrivateIpAddressesToVpcLinkRequest body) throws ApiException {
com.squareup.okhttp.Call call = assignPrivateIpAddressesToVpcLinkValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call assignPrivateIpAddressesToVpcLinkAsync(AssignPrivateIpAddressesToVpcLinkRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = assignPrivateIpAddressesToVpcLinkValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for attachResourceToVpcEndpointService
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call attachResourceToVpcEndpointServiceCall(AttachResourceToVpcEndpointServiceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/AttachResourceToVpcEndpointService/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call attachResourceToVpcEndpointServiceValidateBeforeCall(AttachResourceToVpcEndpointServiceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling attachResourceToVpcEndpointService(Async)");
}
com.squareup.okhttp.Call call = attachResourceToVpcEndpointServiceCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return AttachResourceToVpcEndpointServiceResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public AttachResourceToVpcEndpointServiceResponse attachResourceToVpcEndpointService(AttachResourceToVpcEndpointServiceRequest body) throws ApiException {
ApiResponse resp = attachResourceToVpcEndpointServiceWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<AttachResourceToVpcEndpointServiceResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse attachResourceToVpcEndpointServiceWithHttpInfo( @NotNull AttachResourceToVpcEndpointServiceRequest body) throws ApiException {
com.squareup.okhttp.Call call = attachResourceToVpcEndpointServiceValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call attachResourceToVpcEndpointServiceAsync(AttachResourceToVpcEndpointServiceRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = attachResourceToVpcEndpointServiceValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for attachSecurityGroupToVpcEndpoint
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call attachSecurityGroupToVpcEndpointCall(AttachSecurityGroupToVpcEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/AttachSecurityGroupToVpcEndpoint/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call attachSecurityGroupToVpcEndpointValidateBeforeCall(AttachSecurityGroupToVpcEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling attachSecurityGroupToVpcEndpoint(Async)");
}
com.squareup.okhttp.Call call = attachSecurityGroupToVpcEndpointCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return AttachSecurityGroupToVpcEndpointResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public AttachSecurityGroupToVpcEndpointResponse attachSecurityGroupToVpcEndpoint(AttachSecurityGroupToVpcEndpointRequest body) throws ApiException {
ApiResponse resp = attachSecurityGroupToVpcEndpointWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<AttachSecurityGroupToVpcEndpointResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse attachSecurityGroupToVpcEndpointWithHttpInfo( @NotNull AttachSecurityGroupToVpcEndpointRequest body) throws ApiException {
com.squareup.okhttp.Call call = attachSecurityGroupToVpcEndpointValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call attachSecurityGroupToVpcEndpointAsync(AttachSecurityGroupToVpcEndpointRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = attachSecurityGroupToVpcEndpointValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for attachSecurityGroupsToPrivateLinkGateway
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call attachSecurityGroupsToPrivateLinkGatewayCall(AttachSecurityGroupsToPrivateLinkGatewayRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/AttachSecurityGroupsToPrivateLinkGateway/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call attachSecurityGroupsToPrivateLinkGatewayValidateBeforeCall(AttachSecurityGroupsToPrivateLinkGatewayRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling attachSecurityGroupsToPrivateLinkGateway(Async)");
}
com.squareup.okhttp.Call call = attachSecurityGroupsToPrivateLinkGatewayCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return AttachSecurityGroupsToPrivateLinkGatewayResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public AttachSecurityGroupsToPrivateLinkGatewayResponse attachSecurityGroupsToPrivateLinkGateway(AttachSecurityGroupsToPrivateLinkGatewayRequest body) throws ApiException {
ApiResponse resp = attachSecurityGroupsToPrivateLinkGatewayWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<AttachSecurityGroupsToPrivateLinkGatewayResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse attachSecurityGroupsToPrivateLinkGatewayWithHttpInfo( @NotNull AttachSecurityGroupsToPrivateLinkGatewayRequest body) throws ApiException {
com.squareup.okhttp.Call call = attachSecurityGroupsToPrivateLinkGatewayValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call attachSecurityGroupsToPrivateLinkGatewayAsync(AttachSecurityGroupsToPrivateLinkGatewayRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = attachSecurityGroupsToPrivateLinkGatewayValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for createPrivateLinkGateway
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createPrivateLinkGatewayCall(CreatePrivateLinkGatewayRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/CreatePrivateLinkGateway/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createPrivateLinkGatewayValidateBeforeCall(CreatePrivateLinkGatewayRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createPrivateLinkGateway(Async)");
}
com.squareup.okhttp.Call call = createPrivateLinkGatewayCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return CreatePrivateLinkGatewayResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public CreatePrivateLinkGatewayResponse createPrivateLinkGateway(CreatePrivateLinkGatewayRequest body) throws ApiException {
ApiResponse resp = createPrivateLinkGatewayWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<CreatePrivateLinkGatewayResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse createPrivateLinkGatewayWithHttpInfo( @NotNull CreatePrivateLinkGatewayRequest body) throws ApiException {
com.squareup.okhttp.Call call = createPrivateLinkGatewayValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createPrivateLinkGatewayAsync(CreatePrivateLinkGatewayRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = createPrivateLinkGatewayValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for createUniqueResourceTypeVpcEndpointService
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUniqueResourceTypeVpcEndpointServiceCall(CreateUniqueResourceTypeVpcEndpointServiceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/CreateUniqueResourceTypeVpcEndpointService/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createUniqueResourceTypeVpcEndpointServiceValidateBeforeCall(CreateUniqueResourceTypeVpcEndpointServiceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUniqueResourceTypeVpcEndpointService(Async)");
}
com.squareup.okhttp.Call call = createUniqueResourceTypeVpcEndpointServiceCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return CreateUniqueResourceTypeVpcEndpointServiceResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public CreateUniqueResourceTypeVpcEndpointServiceResponse createUniqueResourceTypeVpcEndpointService(CreateUniqueResourceTypeVpcEndpointServiceRequest body) throws ApiException {
ApiResponse resp = createUniqueResourceTypeVpcEndpointServiceWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<CreateUniqueResourceTypeVpcEndpointServiceResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse createUniqueResourceTypeVpcEndpointServiceWithHttpInfo( @NotNull CreateUniqueResourceTypeVpcEndpointServiceRequest body) throws ApiException {
com.squareup.okhttp.Call call = createUniqueResourceTypeVpcEndpointServiceValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createUniqueResourceTypeVpcEndpointServiceAsync(CreateUniqueResourceTypeVpcEndpointServiceRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = createUniqueResourceTypeVpcEndpointServiceValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for createVpcEndpoint
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createVpcEndpointCall(CreateVpcEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/CreateVpcEndpoint/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createVpcEndpointValidateBeforeCall(CreateVpcEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createVpcEndpoint(Async)");
}
com.squareup.okhttp.Call call = createVpcEndpointCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return CreateVpcEndpointResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public CreateVpcEndpointResponse createVpcEndpoint(CreateVpcEndpointRequest body) throws ApiException {
ApiResponse resp = createVpcEndpointWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<CreateVpcEndpointResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse createVpcEndpointWithHttpInfo( @NotNull CreateVpcEndpointRequest body) throws ApiException {
com.squareup.okhttp.Call call = createVpcEndpointValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createVpcEndpointAsync(CreateVpcEndpointRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = createVpcEndpointValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for createVpcEndpointService
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createVpcEndpointServiceCall(CreateVpcEndpointServiceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/CreateVpcEndpointService/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createVpcEndpointServiceValidateBeforeCall(CreateVpcEndpointServiceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createVpcEndpointService(Async)");
}
com.squareup.okhttp.Call call = createVpcEndpointServiceCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return CreateVpcEndpointServiceResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public CreateVpcEndpointServiceResponse createVpcEndpointService(CreateVpcEndpointServiceRequest body) throws ApiException {
ApiResponse resp = createVpcEndpointServiceWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<CreateVpcEndpointServiceResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse createVpcEndpointServiceWithHttpInfo( @NotNull CreateVpcEndpointServiceRequest body) throws ApiException {
com.squareup.okhttp.Call call = createVpcEndpointServiceValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createVpcEndpointServiceAsync(CreateVpcEndpointServiceRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = createVpcEndpointServiceValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for createVpcGatewayEndpoint
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createVpcGatewayEndpointCall(CreateVpcGatewayEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/CreateVpcGatewayEndpoint/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createVpcGatewayEndpointValidateBeforeCall(CreateVpcGatewayEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createVpcGatewayEndpoint(Async)");
}
com.squareup.okhttp.Call call = createVpcGatewayEndpointCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return CreateVpcGatewayEndpointResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public CreateVpcGatewayEndpointResponse createVpcGatewayEndpoint(CreateVpcGatewayEndpointRequest body) throws ApiException {
ApiResponse resp = createVpcGatewayEndpointWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<CreateVpcGatewayEndpointResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse createVpcGatewayEndpointWithHttpInfo( @NotNull CreateVpcGatewayEndpointRequest body) throws ApiException {
com.squareup.okhttp.Call call = createVpcGatewayEndpointValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createVpcGatewayEndpointAsync(CreateVpcGatewayEndpointRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = createVpcGatewayEndpointValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for createVpcLink
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createVpcLinkCall(CreateVpcLinkRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/CreateVpcLink/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createVpcLinkValidateBeforeCall(CreateVpcLinkRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createVpcLink(Async)");
}
com.squareup.okhttp.Call call = createVpcLinkCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return CreateVpcLinkResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public CreateVpcLinkResponse createVpcLink(CreateVpcLinkRequest body) throws ApiException {
ApiResponse resp = createVpcLinkWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<CreateVpcLinkResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse createVpcLinkWithHttpInfo( @NotNull CreateVpcLinkRequest body) throws ApiException {
com.squareup.okhttp.Call call = createVpcLinkValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createVpcLinkAsync(CreateVpcLinkRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = createVpcLinkValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for deletePrivateLinkGateway
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deletePrivateLinkGatewayCall(DeletePrivateLinkGatewayRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/DeletePrivateLinkGateway/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call deletePrivateLinkGatewayValidateBeforeCall(DeletePrivateLinkGatewayRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling deletePrivateLinkGateway(Async)");
}
com.squareup.okhttp.Call call = deletePrivateLinkGatewayCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return DeletePrivateLinkGatewayResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public DeletePrivateLinkGatewayResponse deletePrivateLinkGateway(DeletePrivateLinkGatewayRequest body) throws ApiException {
ApiResponse resp = deletePrivateLinkGatewayWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<DeletePrivateLinkGatewayResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse deletePrivateLinkGatewayWithHttpInfo( @NotNull DeletePrivateLinkGatewayRequest body) throws ApiException {
com.squareup.okhttp.Call call = deletePrivateLinkGatewayValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call deletePrivateLinkGatewayAsync(DeletePrivateLinkGatewayRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = deletePrivateLinkGatewayValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for deleteVpcEndpoint
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deleteVpcEndpointCall(DeleteVpcEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/DeleteVpcEndpoint/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call deleteVpcEndpointValidateBeforeCall(DeleteVpcEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling deleteVpcEndpoint(Async)");
}
com.squareup.okhttp.Call call = deleteVpcEndpointCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return DeleteVpcEndpointResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public DeleteVpcEndpointResponse deleteVpcEndpoint(DeleteVpcEndpointRequest body) throws ApiException {
ApiResponse resp = deleteVpcEndpointWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<DeleteVpcEndpointResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse deleteVpcEndpointWithHttpInfo( @NotNull DeleteVpcEndpointRequest body) throws ApiException {
com.squareup.okhttp.Call call = deleteVpcEndpointValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call deleteVpcEndpointAsync(DeleteVpcEndpointRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = deleteVpcEndpointValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for deleteVpcEndpointService
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deleteVpcEndpointServiceCall(DeleteVpcEndpointServiceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/DeleteVpcEndpointService/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call deleteVpcEndpointServiceValidateBeforeCall(DeleteVpcEndpointServiceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling deleteVpcEndpointService(Async)");
}
com.squareup.okhttp.Call call = deleteVpcEndpointServiceCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return DeleteVpcEndpointServiceResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public DeleteVpcEndpointServiceResponse deleteVpcEndpointService(DeleteVpcEndpointServiceRequest body) throws ApiException {
ApiResponse resp = deleteVpcEndpointServiceWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<DeleteVpcEndpointServiceResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse deleteVpcEndpointServiceWithHttpInfo( @NotNull DeleteVpcEndpointServiceRequest body) throws ApiException {
com.squareup.okhttp.Call call = deleteVpcEndpointServiceValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call deleteVpcEndpointServiceAsync(DeleteVpcEndpointServiceRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = deleteVpcEndpointServiceValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for deleteVpcGatewayEndpoint
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deleteVpcGatewayEndpointCall(DeleteVpcGatewayEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/DeleteVpcGatewayEndpoint/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call deleteVpcGatewayEndpointValidateBeforeCall(DeleteVpcGatewayEndpointRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling deleteVpcGatewayEndpoint(Async)");
}
com.squareup.okhttp.Call call = deleteVpcGatewayEndpointCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return DeleteVpcGatewayEndpointResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public DeleteVpcGatewayEndpointResponse deleteVpcGatewayEndpoint(DeleteVpcGatewayEndpointRequest body) throws ApiException {
ApiResponse resp = deleteVpcGatewayEndpointWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<DeleteVpcGatewayEndpointResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse deleteVpcGatewayEndpointWithHttpInfo( @NotNull DeleteVpcGatewayEndpointRequest body) throws ApiException {
com.squareup.okhttp.Call call = deleteVpcGatewayEndpointValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call deleteVpcGatewayEndpointAsync(DeleteVpcGatewayEndpointRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = deleteVpcGatewayEndpointValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for deleteVpcLink
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deleteVpcLinkCall(DeleteVpcLinkRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/DeleteVpcLink/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call deleteVpcLinkValidateBeforeCall(DeleteVpcLinkRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling deleteVpcLink(Async)");
}
com.squareup.okhttp.Call call = deleteVpcLinkCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return DeleteVpcLinkResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public DeleteVpcLinkResponse deleteVpcLink(DeleteVpcLinkRequest body) throws ApiException {
ApiResponse resp = deleteVpcLinkWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<DeleteVpcLinkResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse deleteVpcLinkWithHttpInfo( @NotNull DeleteVpcLinkRequest body) throws ApiException {
com.squareup.okhttp.Call call = deleteVpcLinkValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call deleteVpcLinkAsync(DeleteVpcLinkRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = deleteVpcLinkValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for describePrivateLinkAvailableZones
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call describePrivateLinkAvailableZonesCall(DescribePrivateLinkAvailableZonesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/DescribePrivateLinkAvailableZones/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call describePrivateLinkAvailableZonesValidateBeforeCall(DescribePrivateLinkAvailableZonesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling describePrivateLinkAvailableZones(Async)");
}
com.squareup.okhttp.Call call = describePrivateLinkAvailableZonesCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return DescribePrivateLinkAvailableZonesResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public DescribePrivateLinkAvailableZonesResponse describePrivateLinkAvailableZones(DescribePrivateLinkAvailableZonesRequest body) throws ApiException {
ApiResponse resp = describePrivateLinkAvailableZonesWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<DescribePrivateLinkAvailableZonesResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse describePrivateLinkAvailableZonesWithHttpInfo( @NotNull DescribePrivateLinkAvailableZonesRequest body) throws ApiException {
com.squareup.okhttp.Call call = describePrivateLinkAvailableZonesValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call describePrivateLinkAvailableZonesAsync(DescribePrivateLinkAvailableZonesRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = describePrivateLinkAvailableZonesValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for describePrivateLinkGatewayAttributes
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call describePrivateLinkGatewayAttributesCall(DescribePrivateLinkGatewayAttributesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/DescribePrivateLinkGatewayAttributes/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call describePrivateLinkGatewayAttributesValidateBeforeCall(DescribePrivateLinkGatewayAttributesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling describePrivateLinkGatewayAttributes(Async)");
}
com.squareup.okhttp.Call call = describePrivateLinkGatewayAttributesCall(body, progressListener, progressRequestListener);
return call;
}
/**
*
*
* @param body (required)
* @return DescribePrivateLinkGatewayAttributesResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public DescribePrivateLinkGatewayAttributesResponse describePrivateLinkGatewayAttributes(DescribePrivateLinkGatewayAttributesRequest body) throws ApiException {
ApiResponse resp = describePrivateLinkGatewayAttributesWithHttpInfo(body);
return resp.getData();
}
/**
*
*
* @param body (required)
* @return ApiResponse<DescribePrivateLinkGatewayAttributesResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse describePrivateLinkGatewayAttributesWithHttpInfo( @NotNull DescribePrivateLinkGatewayAttributesRequest body) throws ApiException {
com.squareup.okhttp.Call call = describePrivateLinkGatewayAttributesValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call describePrivateLinkGatewayAttributesAsync(DescribePrivateLinkGatewayAttributesRequest body, final ApiCallback callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = describePrivateLinkGatewayAttributesValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for describePrivateLinkGatewayAvailableZones
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call describePrivateLinkGatewayAvailableZonesCall(DescribePrivateLinkGatewayAvailableZonesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/DescribePrivateLinkGatewayAvailableZones/2020-04-01/privatelink/get/text_plain/";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map