Class AdvancedPolicyCollectionApi

java.lang.Object
org.wso2.am.integration.clients.admin.api.AdvancedPolicyCollectionApi

public class AdvancedPolicyCollectionApi extends Object
  • Constructor Details

    • AdvancedPolicyCollectionApi

      public AdvancedPolicyCollectionApi()
    • AdvancedPolicyCollectionApi

      public AdvancedPolicyCollectionApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • throttlingPoliciesAdvancedGetCall

      public okhttp3.Call throttlingPoliciesAdvancedGetCall(String accept, String ifNoneMatch, String ifModifiedSince, ApiCallback _callback) throws ApiException
      Build call for throttlingPoliciesAdvancedGet
      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
    • throttlingPoliciesAdvancedGet

      public AdvancedThrottlePolicyListDTO throttlingPoliciesAdvancedGet(String accept, String ifNoneMatch, String ifModifiedSince) throws ApiException
      Get all Advanced Throttling Policies Retrieves all existing advanced 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:
      AdvancedThrottlePolicyListDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • throttlingPoliciesAdvancedGetWithHttpInfo

      public ApiResponse<AdvancedThrottlePolicyListDTO> throttlingPoliciesAdvancedGetWithHttpInfo(String accept, String ifNoneMatch, String ifModifiedSince) throws ApiException
      Get all Advanced Throttling Policies Retrieves all existing advanced 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<AdvancedThrottlePolicyListDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • throttlingPoliciesAdvancedGetAsync

      public okhttp3.Call throttlingPoliciesAdvancedGetAsync(String accept, String ifNoneMatch, String ifModifiedSince, ApiCallback<AdvancedThrottlePolicyListDTO> _callback) throws ApiException
      Get all Advanced Throttling Policies (asynchronously) Retrieves all existing advanced 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
    • throttlingPoliciesAdvancedPostCall

      public okhttp3.Call throttlingPoliciesAdvancedPostCall(String contentType, AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO, ApiCallback _callback) throws ApiException
      Build call for throttlingPoliciesAdvancedPost
      Parameters:
      contentType - Media type of the entity in the body. Default is application/json. (required)
      advancedThrottlePolicyDTO - Advanced 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
    • throttlingPoliciesAdvancedPost

      public AdvancedThrottlePolicyDTO throttlingPoliciesAdvancedPost(String contentType, AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO) throws ApiException
      Add an Advanced Throttling Policy Add a new advanced throttling policy.
      Parameters:
      contentType - Media type of the entity in the body. Default is application/json. (required)
      advancedThrottlePolicyDTO - Advanced level policy object that should to be added (required)
      Returns:
      AdvancedThrottlePolicyDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • throttlingPoliciesAdvancedPostWithHttpInfo

      public ApiResponse<AdvancedThrottlePolicyDTO> throttlingPoliciesAdvancedPostWithHttpInfo(String contentType, AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO) throws ApiException
      Add an Advanced Throttling Policy Add a new advanced throttling policy.
      Parameters:
      contentType - Media type of the entity in the body. Default is application/json. (required)
      advancedThrottlePolicyDTO - Advanced level policy object that should to be added (required)
      Returns:
      ApiResponse<AdvancedThrottlePolicyDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • throttlingPoliciesAdvancedPostAsync

      public okhttp3.Call throttlingPoliciesAdvancedPostAsync(String contentType, AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO, ApiCallback<AdvancedThrottlePolicyDTO> _callback) throws ApiException
      Add an Advanced Throttling Policy (asynchronously) Add a new advanced throttling policy.
      Parameters:
      contentType - Media type of the entity in the body. Default is application/json. (required)
      advancedThrottlePolicyDTO - Advanced 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