public class SubscriptionPolicyCollectionApi extends Object
| Constructor and Description |
|---|
SubscriptionPolicyCollectionApi() |
SubscriptionPolicyCollectionApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
SubscriptionThrottlePolicyListDTO |
throttlingPoliciesSubscriptionGet(String accept,
String ifNoneMatch,
String ifModifiedSince)
Get all Subscription Throttling Policies
This operation can be used to retrieve all Subscription level throttling policies.
|
okhttp3.Call |
throttlingPoliciesSubscriptionGetAsync(String accept,
String ifNoneMatch,
String ifModifiedSince,
ApiCallback<SubscriptionThrottlePolicyListDTO> _callback)
Get all Subscription Throttling Policies (asynchronously)
This operation can be used to retrieve all Subscription level throttling policies.
|
okhttp3.Call |
throttlingPoliciesSubscriptionGetCall(String accept,
String ifNoneMatch,
String ifModifiedSince,
ApiCallback _callback)
Build call for throttlingPoliciesSubscriptionGet
|
ApiResponse<SubscriptionThrottlePolicyListDTO> |
throttlingPoliciesSubscriptionGetWithHttpInfo(String accept,
String ifNoneMatch,
String ifModifiedSince)
Get all Subscription Throttling Policies
This operation can be used to retrieve all Subscription level throttling policies.
|
SubscriptionThrottlePolicyDTO |
throttlingPoliciesSubscriptionPost(String contentType,
SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO)
Add a Subscription Throttling Policy
This operation can be used to add a Subscription level throttling policy specifying the details of the policy in the payload.
|
okhttp3.Call |
throttlingPoliciesSubscriptionPostAsync(String contentType,
SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO,
ApiCallback<SubscriptionThrottlePolicyDTO> _callback)
Add a Subscription Throttling Policy (asynchronously)
This operation can be used to add a Subscription level throttling policy specifying the details of the policy in the payload.
|
okhttp3.Call |
throttlingPoliciesSubscriptionPostCall(String contentType,
SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO,
ApiCallback _callback)
Build call for throttlingPoliciesSubscriptionPost
|
ApiResponse<SubscriptionThrottlePolicyDTO> |
throttlingPoliciesSubscriptionPostWithHttpInfo(String contentType,
SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO)
Add a Subscription Throttling Policy
This operation can be used to add a Subscription level throttling policy specifying the details of the policy in the payload.
|
public SubscriptionPolicyCollectionApi()
public SubscriptionPolicyCollectionApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call throttlingPoliciesSubscriptionGetCall(String accept, String ifNoneMatch, String ifModifiedSince, ApiCallback _callback) throws ApiException
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 resource (Will be supported in future). (optional)ifModifiedSince - Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource (Will be supported in future). (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic SubscriptionThrottlePolicyListDTO throttlingPoliciesSubscriptionGet(String accept, String ifNoneMatch, String ifModifiedSince) throws ApiException
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 resource (Will be supported in future). (optional)ifModifiedSince - Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource (Will be supported in future). (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<SubscriptionThrottlePolicyListDTO> throttlingPoliciesSubscriptionGetWithHttpInfo(String accept, String ifNoneMatch, String ifModifiedSince) throws ApiException
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 resource (Will be supported in future). (optional)ifModifiedSince - Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource (Will be supported in future). (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call throttlingPoliciesSubscriptionGetAsync(String accept, String ifNoneMatch, String ifModifiedSince, ApiCallback<SubscriptionThrottlePolicyListDTO> _callback) throws ApiException
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 resource (Will be supported in future). (optional)ifModifiedSince - Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource (Will be supported in future). (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 okhttp3.Call throttlingPoliciesSubscriptionPostCall(String contentType, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO, ApiCallback _callback) throws ApiException
contentType - Media type of the entity in the body. Default is application/json. (required)subscriptionThrottlePolicyDTO - Subscripion level policy object that should to be added (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic SubscriptionThrottlePolicyDTO throttlingPoliciesSubscriptionPost(String contentType, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO) throws ApiException
contentType - Media type of the entity in the body. Default is application/json. (required)subscriptionThrottlePolicyDTO - Subscripion level policy object that should to be added (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<SubscriptionThrottlePolicyDTO> throttlingPoliciesSubscriptionPostWithHttpInfo(String contentType, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO) throws ApiException
contentType - Media type of the entity in the body. Default is application/json. (required)subscriptionThrottlePolicyDTO - Subscripion level policy object that should to be added (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call throttlingPoliciesSubscriptionPostAsync(String contentType, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO, ApiCallback<SubscriptionThrottlePolicyDTO> _callback) throws ApiException
contentType - Media type of the entity in the body. Default is application/json. (required)subscriptionThrottlePolicyDTO - Subscripion level policy object that should to be added (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 © 2021 WSO2 Inc. All rights reserved.