public class ThrottlingPoliciesApi extends Object
| Constructor and Description |
|---|
ThrottlingPoliciesApi() |
ThrottlingPoliciesApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ThrottlingPolicyListDTO |
getAllThrottlingPolicies(String policyLevel,
Integer limit,
Integer offset,
String ifNoneMatch)
Get all throttling policies for the given type
This operation can be used to list the available policies for a given policy level.
|
com.squareup.okhttp.Call |
getAllThrottlingPoliciesAsync(String policyLevel,
Integer limit,
Integer offset,
String ifNoneMatch,
ApiCallback<ThrottlingPolicyListDTO> callback)
Get all throttling policies for the given type (asynchronously)
This operation can be used to list the available policies for a given policy level.
|
com.squareup.okhttp.Call |
getAllThrottlingPoliciesCall(String policyLevel,
Integer limit,
Integer offset,
String ifNoneMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getAllThrottlingPolicies
|
ApiResponse<ThrottlingPolicyListDTO> |
getAllThrottlingPoliciesWithHttpInfo(String policyLevel,
Integer limit,
Integer offset,
String ifNoneMatch)
Get all throttling policies for the given type
This operation can be used to list the available policies for a given policy level.
|
ApiClient |
getApiClient() |
ThrottlingPolicyDTO |
getThrottlingPolicyByName(String policyName,
String policyLevel,
String ifNoneMatch)
Get details of a policy
This operation can be used to retrieve details of a single policy by specifying the policy level and policy name.
|
com.squareup.okhttp.Call |
getThrottlingPolicyByNameAsync(String policyName,
String policyLevel,
String ifNoneMatch,
ApiCallback<ThrottlingPolicyDTO> callback)
Get details of a policy (asynchronously)
This operation can be used to retrieve details of a single policy by specifying the policy level and policy name.
|
com.squareup.okhttp.Call |
getThrottlingPolicyByNameCall(String policyName,
String policyLevel,
String ifNoneMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getThrottlingPolicyByName
|
ApiResponse<ThrottlingPolicyDTO> |
getThrottlingPolicyByNameWithHttpInfo(String policyName,
String policyLevel,
String ifNoneMatch)
Get details of a policy
This operation can be used to retrieve details of a single policy by specifying the policy level and policy name.
|
void |
setApiClient(ApiClient apiClient) |
public ThrottlingPoliciesApi()
public ThrottlingPoliciesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call getAllThrottlingPoliciesCall(String policyLevel, Integer limit, Integer offset, String ifNoneMatch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
policyLevel - List API or Application or Resource type policies. (required)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic ThrottlingPolicyListDTO getAllThrottlingPolicies(String policyLevel, Integer limit, Integer offset, String ifNoneMatch) throws ApiException
policyLevel - List API or Application or Resource type policies. (required)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ThrottlingPolicyListDTO> getAllThrottlingPoliciesWithHttpInfo(String policyLevel, Integer limit, Integer offset, String ifNoneMatch) throws ApiException
policyLevel - List API or Application or Resource type policies. (required)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getAllThrottlingPoliciesAsync(String policyLevel, Integer limit, Integer offset, String ifNoneMatch, ApiCallback<ThrottlingPolicyListDTO> callback) throws ApiException
policyLevel - List API or Application or Resource type policies. (required)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getThrottlingPolicyByNameCall(String policyName, String policyLevel, String ifNoneMatch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
policyName - Tier name (required)policyLevel - List API or Application or Resource type policies. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic ThrottlingPolicyDTO getThrottlingPolicyByName(String policyName, String policyLevel, String ifNoneMatch) throws ApiException
policyName - Tier name (required)policyLevel - List API or Application or Resource type policies. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ThrottlingPolicyDTO> getThrottlingPolicyByNameWithHttpInfo(String policyName, String policyLevel, String ifNoneMatch) throws ApiException
policyName - Tier name (required)policyLevel - List API or Application or Resource type policies. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getThrottlingPolicyByNameAsync(String policyName, String policyLevel, String ifNoneMatch, ApiCallback<ThrottlingPolicyDTO> callback) throws ApiException
policyName - Tier name (required)policyLevel - List API or Application or Resource type policies. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2020 WSO2 Inc. All rights reserved.