Class ImportExportThrottlingPolicyApi
java.lang.Object
org.wso2.am.integration.clients.admin.api.ImportExportThrottlingPolicyApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexportThrottlingPolicy(String policyId, String name, String type) Export a Throttling Policy This operation can be used to export the details of a particular Throttling Policy.okhttp3.CallexportThrottlingPolicyAsync(String policyId, String name, String type, ApiCallback<ExportThrottlePolicyDTO> _callback) Export a Throttling Policy (asynchronously) This operation can be used to export the details of a particular Throttling Policy.okhttp3.CallexportThrottlingPolicyCall(String policyId, String name, String type, ApiCallback _callback) Build call for exportThrottlingPolicyexportThrottlingPolicyWithHttpInfo(String policyId, String name, String type) Export a Throttling Policy This operation can be used to export the details of a particular Throttling Policy.voidimportThrottlingPolicy(File file, Boolean overwrite) Import a Throttling Policy This operation can be used to import a Throttling Policyokhttp3.CallimportThrottlingPolicyAsync(File file, Boolean overwrite, ApiCallback<Void> _callback) Import a Throttling Policy (asynchronously) This operation can be used to import a Throttling Policyokhttp3.CallimportThrottlingPolicyCall(File file, Boolean overwrite, ApiCallback _callback) Build call for importThrottlingPolicyimportThrottlingPolicyWithHttpInfo(File file, Boolean overwrite) Import a Throttling Policy This operation can be used to import a Throttling PolicyvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
ImportExportThrottlingPolicyApi
public ImportExportThrottlingPolicyApi() -
ImportExportThrottlingPolicyApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
exportThrottlingPolicyCall
public okhttp3.Call exportThrottlingPolicyCall(String policyId, String name, String type, ApiCallback _callback) throws ApiException Build call for exportThrottlingPolicy- Parameters:
policyId- UUID of the ThrottlingPolicy (optional)name- Throttling Policy Name (optional)type- Type of the Throttling Policy (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
exportThrottlingPolicy
public ExportThrottlePolicyDTO exportThrottlingPolicy(String policyId, String name, String type) throws ApiException Export a Throttling Policy This operation can be used to export the details of a particular Throttling Policy.- Parameters:
policyId- UUID of the ThrottlingPolicy (optional)name- Throttling Policy Name (optional)type- Type of the Throttling Policy (optional)- Returns:
- ExportThrottlePolicyDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
exportThrottlingPolicyWithHttpInfo
public ApiResponse<ExportThrottlePolicyDTO> exportThrottlingPolicyWithHttpInfo(String policyId, String name, String type) throws ApiException Export a Throttling Policy This operation can be used to export the details of a particular Throttling Policy.- Parameters:
policyId- UUID of the ThrottlingPolicy (optional)name- Throttling Policy Name (optional)type- Type of the Throttling Policy (optional)- Returns:
- ApiResponse<ExportThrottlePolicyDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
exportThrottlingPolicyAsync
public okhttp3.Call exportThrottlingPolicyAsync(String policyId, String name, String type, ApiCallback<ExportThrottlePolicyDTO> _callback) throws ApiException Export a Throttling Policy (asynchronously) This operation can be used to export the details of a particular Throttling Policy.- Parameters:
policyId- UUID of the ThrottlingPolicy (optional)name- Throttling Policy Name (optional)type- Type of the Throttling Policy (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
importThrottlingPolicyCall
public okhttp3.Call importThrottlingPolicyCall(File file, Boolean overwrite, ApiCallback _callback) throws ApiException Build call for importThrottlingPolicy- Parameters:
file- Json File (required)overwrite- Update an existing throttlingpolicy with the same name (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
importThrottlingPolicy
Import a Throttling Policy This operation can be used to import a Throttling Policy- Parameters:
file- Json File (required)overwrite- Update an existing throttlingpolicy with the same name (optional)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
importThrottlingPolicyWithHttpInfo
public ApiResponse<Void> importThrottlingPolicyWithHttpInfo(File file, Boolean overwrite) throws ApiException Import a Throttling Policy This operation can be used to import a Throttling Policy- Parameters:
file- Json File (required)overwrite- Update an existing throttlingpolicy with the same name (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
importThrottlingPolicyAsync
public okhttp3.Call importThrottlingPolicyAsync(File file, Boolean overwrite, ApiCallback<Void> _callback) throws ApiException Import a Throttling Policy (asynchronously) This operation can be used to import a Throttling Policy- Parameters:
file- Json File (required)overwrite- Update an existing throttlingpolicy with the same name (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-