public class SubscriptionPolicyIndividualApi extends Object
| Constructor and Description |
|---|
SubscriptionPolicyIndividualApi() |
SubscriptionPolicyIndividualApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
void |
throttlingPoliciesSubscriptionPolicyIdDelete(String policyId,
String ifMatch,
String ifUnmodifiedSince)
Delete a Subscription Policy
This operation can be used to delete a subscription-level throttling policy specifying the Id of the policy as a path paramter.
|
com.squareup.okhttp.Call |
throttlingPoliciesSubscriptionPolicyIdDeleteAsync(String policyId,
String ifMatch,
String ifUnmodifiedSince,
ApiCallback<Void> callback)
Delete a Subscription Policy (asynchronously)
This operation can be used to delete a subscription-level throttling policy specifying the Id of the policy as a path paramter.
|
ApiResponse<Void> |
throttlingPoliciesSubscriptionPolicyIdDeleteWithHttpInfo(String policyId,
String ifMatch,
String ifUnmodifiedSince)
Delete a Subscription Policy
This operation can be used to delete a subscription-level throttling policy specifying the Id of the policy as a path paramter.
|
SubscriptionThrottlePolicy |
throttlingPoliciesSubscriptionPolicyIdGet(String policyId,
String ifNoneMatch,
String ifModifiedSince)
Get a Subscription Policy
Retrieve a single subscription-level throttling policy.
|
com.squareup.okhttp.Call |
throttlingPoliciesSubscriptionPolicyIdGetAsync(String policyId,
String ifNoneMatch,
String ifModifiedSince,
ApiCallback<SubscriptionThrottlePolicy> callback)
Get a Subscription Policy (asynchronously)
Retrieve a single subscription-level throttling policy.
|
ApiResponse<SubscriptionThrottlePolicy> |
throttlingPoliciesSubscriptionPolicyIdGetWithHttpInfo(String policyId,
String ifNoneMatch,
String ifModifiedSince)
Get a Subscription Policy
Retrieve a single subscription-level throttling policy.
|
SubscriptionThrottlePolicy |
throttlingPoliciesSubscriptionPolicyIdPut(String policyId,
SubscriptionThrottlePolicy body,
String contentType,
String ifMatch,
String ifUnmodifiedSince)
Update a Subscription Policy
Updates an existing subscription-level throttling policy.
|
com.squareup.okhttp.Call |
throttlingPoliciesSubscriptionPolicyIdPutAsync(String policyId,
SubscriptionThrottlePolicy body,
String contentType,
String ifMatch,
String ifUnmodifiedSince,
ApiCallback<SubscriptionThrottlePolicy> callback)
Update a Subscription Policy (asynchronously)
Updates an existing subscription-level throttling policy.
|
ApiResponse<SubscriptionThrottlePolicy> |
throttlingPoliciesSubscriptionPolicyIdPutWithHttpInfo(String policyId,
SubscriptionThrottlePolicy body,
String contentType,
String ifMatch,
String ifUnmodifiedSince)
Update a Subscription Policy
Updates an existing subscription-level throttling policy.
|
public SubscriptionPolicyIndividualApi()
public SubscriptionPolicyIndividualApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public void throttlingPoliciesSubscriptionPolicyIdDelete(String policyId, String ifMatch, String ifUnmodifiedSince) throws ApiException
policyId - Thorttle policy UUID (required)ifMatch - Validator for conditional requests; based on ETag (Will be supported in future). (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header (Will be supported in future). (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> throttlingPoliciesSubscriptionPolicyIdDeleteWithHttpInfo(String policyId, String ifMatch, String ifUnmodifiedSince) throws ApiException
policyId - Thorttle policy UUID (required)ifMatch - Validator for conditional requests; based on ETag (Will be supported in future). (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header (Will be supported in future). (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call throttlingPoliciesSubscriptionPolicyIdDeleteAsync(String policyId, String ifMatch, String ifUnmodifiedSince, ApiCallback<Void> callback) throws ApiException
policyId - Thorttle policy UUID (required)ifMatch - Validator for conditional requests; based on ETag (Will be supported in future). (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header (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 SubscriptionThrottlePolicy throttlingPoliciesSubscriptionPolicyIdGet(String policyId, String ifNoneMatch, String ifModifiedSince) throws ApiException
policyId - Thorttle policy UUID (required)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<SubscriptionThrottlePolicy> throttlingPoliciesSubscriptionPolicyIdGetWithHttpInfo(String policyId, String ifNoneMatch, String ifModifiedSince) throws ApiException
policyId - Thorttle policy UUID (required)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 com.squareup.okhttp.Call throttlingPoliciesSubscriptionPolicyIdGetAsync(String policyId, String ifNoneMatch, String ifModifiedSince, ApiCallback<SubscriptionThrottlePolicy> callback) throws ApiException
policyId - Thorttle policy UUID (required)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 SubscriptionThrottlePolicy throttlingPoliciesSubscriptionPolicyIdPut(String policyId, SubscriptionThrottlePolicy body, String contentType, String ifMatch, String ifUnmodifiedSince) throws ApiException
policyId - Thorttle policy UUID (required)body - Policy object that needs to be modified (required)contentType - Media type of the entity in the body. Default is application/json. (required)ifMatch - Validator for conditional requests; based on ETag (Will be supported in future). (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header (Will be supported in future). (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<SubscriptionThrottlePolicy> throttlingPoliciesSubscriptionPolicyIdPutWithHttpInfo(String policyId, SubscriptionThrottlePolicy body, String contentType, String ifMatch, String ifUnmodifiedSince) throws ApiException
policyId - Thorttle policy UUID (required)body - Policy object that needs to be modified (required)contentType - Media type of the entity in the body. Default is application/json. (required)ifMatch - Validator for conditional requests; based on ETag (Will be supported in future). (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header (Will be supported in future). (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call throttlingPoliciesSubscriptionPolicyIdPutAsync(String policyId, SubscriptionThrottlePolicy body, String contentType, String ifMatch, String ifUnmodifiedSince, ApiCallback<SubscriptionThrottlePolicy> callback) throws ApiException
policyId - Thorttle policy UUID (required)body - Policy object that needs to be modified (required)contentType - Media type of the entity in the body. Default is application/json. (required)ifMatch - Validator for conditional requests; based on ETag (Will be supported in future). (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header (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 objectCopyright © 2018 WSO2 Inc. All rights reserved.