public class ThrottlingTierCollectionApi extends Object
| Constructor and Description |
|---|
ThrottlingTierCollectionApi() |
ThrottlingTierCollectionApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
TierList |
policiesTierLevelGet(String tierLevel,
Integer limit,
Integer offset,
String accept,
String ifNoneMatch)
Get all policies
This operation can be used to list the available policies for a given policy level.
|
com.squareup.okhttp.Call |
policiesTierLevelGetAsync(String tierLevel,
Integer limit,
Integer offset,
String accept,
String ifNoneMatch,
ApiCallback<TierList> callback)
Get all policies (asynchronously)
This operation can be used to list the available policies for a given policy level.
|
ApiResponse<TierList> |
policiesTierLevelGetWithHttpInfo(String tierLevel,
Integer limit,
Integer offset,
String accept,
String ifNoneMatch)
Get all policies
This operation can be used to list the available policies for a given policy level.
|
Tier |
policiesTierLevelPost(Tier body,
String tierLevel,
String contentType)
Create a Tier
This operation can be used to create a new throttling policy.
|
com.squareup.okhttp.Call |
policiesTierLevelPostAsync(Tier body,
String tierLevel,
String contentType,
ApiCallback<Tier> callback)
Create a Tier (asynchronously)
This operation can be used to create a new throttling policy.
|
ApiResponse<Tier> |
policiesTierLevelPostWithHttpInfo(Tier body,
String tierLevel,
String contentType)
Create a Tier
This operation can be used to create a new throttling policy.
|
void |
setApiClient(ApiClient apiClient) |
public ThrottlingTierCollectionApi()
public ThrottlingTierCollectionApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public TierList policiesTierLevelGet(String tierLevel, Integer limit, Integer offset, String accept, String ifNoneMatch) throws ApiException
tierLevel - 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)accept - Media types acceptable for the response. Default is application/json. (optional, default to application/json)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TierList> policiesTierLevelGetWithHttpInfo(String tierLevel, Integer limit, Integer offset, String accept, String ifNoneMatch) throws ApiException
tierLevel - 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)accept - Media types acceptable for the response. Default is application/json. (optional, default to application/json)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call policiesTierLevelGetAsync(String tierLevel, Integer limit, Integer offset, String accept, String ifNoneMatch, ApiCallback<TierList> callback) throws ApiException
tierLevel - 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)accept - Media types acceptable for the response. Default is application/json. (optional, default to application/json)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (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 Tier policiesTierLevelPost(Tier body, String tierLevel, String contentType) throws ApiException
body - Tier object that should to be added (required)tierLevel - List API or Application or Resource type policies. (required)contentType - Media type of the entity in the body. Default is application/json. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Tier> policiesTierLevelPostWithHttpInfo(Tier body, String tierLevel, String contentType) throws ApiException
body - Tier object that should to be added (required)tierLevel - List API or Application or Resource type policies. (required)contentType - Media type of the entity in the body. Default is application/json. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call policiesTierLevelPostAsync(Tier body, String tierLevel, String contentType, ApiCallback<Tier> callback) throws ApiException
body - Tier object that should to be added (required)tierLevel - List API or Application or Resource type policies. (required)contentType - Media type of the entity in the body. Default is application/json. (required)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 © 2017 WSO2. All rights reserved.