Class SubscriptionPolicyCollectionApi
- java.lang.Object
-
- org.wso2.am.integration.clients.admin.api.SubscriptionPolicyCollectionApi
-
public class SubscriptionPolicyCollectionApi extends Object
-
-
Constructor Summary
Constructors Constructor Description SubscriptionPolicyCollectionApi()SubscriptionPolicyCollectionApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()voidsetApiClient(ApiClient apiClient)SubscriptionThrottlePolicyListDTOthrottlingPoliciesSubscriptionGet(String accept, String ifNoneMatch, String ifModifiedSince)Get all Subscription Throttling Policies This operation can be used to retrieve all Subscription level throttling policies.okhttp3.CallthrottlingPoliciesSubscriptionGetAsync(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.CallthrottlingPoliciesSubscriptionGetCall(String accept, String ifNoneMatch, String ifModifiedSince, ApiCallback _callback)Build call for throttlingPoliciesSubscriptionGetApiResponse<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.SubscriptionThrottlePolicyDTOthrottlingPoliciesSubscriptionPost(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.CallthrottlingPoliciesSubscriptionPostAsync(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.CallthrottlingPoliciesSubscriptionPostCall(String contentType, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO, ApiCallback _callback)Build call for throttlingPoliciesSubscriptionPostApiResponse<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.
-
-
-
Constructor Detail
-
SubscriptionPolicyCollectionApi
public SubscriptionPolicyCollectionApi()
-
SubscriptionPolicyCollectionApi
public SubscriptionPolicyCollectionApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
throttlingPoliciesSubscriptionGetCall
public okhttp3.Call throttlingPoliciesSubscriptionGetCall(String accept, String ifNoneMatch, String ifModifiedSince, ApiCallback _callback) throws ApiException
Build call for throttlingPoliciesSubscriptionGet- Parameters:
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 progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
throttlingPoliciesSubscriptionGet
public SubscriptionThrottlePolicyListDTO throttlingPoliciesSubscriptionGet(String accept, String ifNoneMatch, String ifModifiedSince) throws ApiException
Get all Subscription Throttling Policies This operation can be used to retrieve all Subscription level throttling policies.- Parameters:
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)- Returns:
- SubscriptionThrottlePolicyListDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
throttlingPoliciesSubscriptionGetWithHttpInfo
public ApiResponse<SubscriptionThrottlePolicyListDTO> throttlingPoliciesSubscriptionGetWithHttpInfo(String accept, String ifNoneMatch, String ifModifiedSince) throws ApiException
Get all Subscription Throttling Policies This operation can be used to retrieve all Subscription level throttling policies.- Parameters:
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)- Returns:
- ApiResponse<SubscriptionThrottlePolicyListDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
throttlingPoliciesSubscriptionGetAsync
public okhttp3.Call throttlingPoliciesSubscriptionGetAsync(String accept, String ifNoneMatch, String ifModifiedSince, ApiCallback<SubscriptionThrottlePolicyListDTO> _callback) throws ApiException
Get all Subscription Throttling Policies (asynchronously) This operation can be used to retrieve all Subscription level throttling policies.- Parameters:
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 finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
throttlingPoliciesSubscriptionPostCall
public okhttp3.Call throttlingPoliciesSubscriptionPostCall(String contentType, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO, ApiCallback _callback) throws ApiException
Build call for throttlingPoliciesSubscriptionPost- Parameters:
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 progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
throttlingPoliciesSubscriptionPost
public SubscriptionThrottlePolicyDTO throttlingPoliciesSubscriptionPost(String contentType, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO) throws ApiException
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.- Parameters:
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)- Returns:
- SubscriptionThrottlePolicyDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
throttlingPoliciesSubscriptionPostWithHttpInfo
public ApiResponse<SubscriptionThrottlePolicyDTO> throttlingPoliciesSubscriptionPostWithHttpInfo(String contentType, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO) throws ApiException
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.- Parameters:
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)- Returns:
- ApiResponse<SubscriptionThrottlePolicyDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
throttlingPoliciesSubscriptionPostAsync
public okhttp3.Call throttlingPoliciesSubscriptionPostAsync(String contentType, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO, ApiCallback<SubscriptionThrottlePolicyDTO> _callback) throws ApiException
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.- Parameters:
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 finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
-