Class SubscriptionPolicyCollectionApi
java.lang.Object
org.wso2.am.integration.clients.admin.api.SubscriptionPolicyCollectionApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetApiClient(ApiClient apiClient) 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.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 throttlingPoliciesSubscriptionGetthrottlingPoliciesSubscriptionGetWithHttpInfo(String accept, String ifNoneMatch, String ifModifiedSince) Get all Subscription Throttling Policies This operation can be used to retrieve all Subscription level throttling policies.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.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 throttlingPoliciesSubscriptionPostthrottlingPoliciesSubscriptionPostWithHttpInfo(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 Details
-
SubscriptionPolicyCollectionApi
public SubscriptionPolicyCollectionApi() -
SubscriptionPolicyCollectionApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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
-