Class CustomRulesIndividualApi

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

public class CustomRulesIndividualApi extends Object
  • Constructor Details

    • CustomRulesIndividualApi

      public CustomRulesIndividualApi()
    • CustomRulesIndividualApi

      public CustomRulesIndividualApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • throttlingPoliciesCustomRuleIdDeleteCall

      public okhttp3.Call throttlingPoliciesCustomRuleIdDeleteCall(String ruleId, String ifMatch, String ifUnmodifiedSince, ApiCallback _callback) throws ApiException
      Build call for throttlingPoliciesCustomRuleIdDelete
      Parameters:
      ruleId - Custom rule 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 - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • throttlingPoliciesCustomRuleIdDelete

      public void throttlingPoliciesCustomRuleIdDelete(String ruleId, String ifMatch, String ifUnmodifiedSince) throws ApiException
      Delete a Custom Rule Delete a custom rule. We need to provide the Id of the policy as a path parameter. **NOTE:** * Only super tenant users are allowed for this operation.
      Parameters:
      ruleId - Custom rule 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)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • throttlingPoliciesCustomRuleIdDeleteWithHttpInfo

      public ApiResponse<Void> throttlingPoliciesCustomRuleIdDeleteWithHttpInfo(String ruleId, String ifMatch, String ifUnmodifiedSince) throws ApiException
      Delete a Custom Rule Delete a custom rule. We need to provide the Id of the policy as a path parameter. **NOTE:** * Only super tenant users are allowed for this operation.
      Parameters:
      ruleId - Custom rule 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)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • throttlingPoliciesCustomRuleIdDeleteAsync

      public okhttp3.Call throttlingPoliciesCustomRuleIdDeleteAsync(String ruleId, String ifMatch, String ifUnmodifiedSince, ApiCallback<Void> _callback) throws ApiException
      Delete a Custom Rule (asynchronously) Delete a custom rule. We need to provide the Id of the policy as a path parameter. **NOTE:** * Only super tenant users are allowed for this operation.
      Parameters:
      ruleId - Custom rule 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 finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • throttlingPoliciesCustomRuleIdGetCall

      public okhttp3.Call throttlingPoliciesCustomRuleIdGetCall(String ruleId, String ifNoneMatch, String ifModifiedSince, ApiCallback _callback) throws ApiException
      Build call for throttlingPoliciesCustomRuleIdGet
      Parameters:
      ruleId - Custom rule 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 - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • throttlingPoliciesCustomRuleIdGet

      public CustomRuleDTO throttlingPoliciesCustomRuleIdGet(String ruleId, String ifNoneMatch, String ifModifiedSince) throws ApiException
      Get a Custom Rule Retrieves a custom rule. We need to provide the policy Id as a path parameter. **NOTE:** * Only super tenant users are allowed for this operation.
      Parameters:
      ruleId - Custom rule 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)
      Returns:
      CustomRuleDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • throttlingPoliciesCustomRuleIdGetWithHttpInfo

      public ApiResponse<CustomRuleDTO> throttlingPoliciesCustomRuleIdGetWithHttpInfo(String ruleId, String ifNoneMatch, String ifModifiedSince) throws ApiException
      Get a Custom Rule Retrieves a custom rule. We need to provide the policy Id as a path parameter. **NOTE:** * Only super tenant users are allowed for this operation.
      Parameters:
      ruleId - Custom rule 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)
      Returns:
      ApiResponse<CustomRuleDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • throttlingPoliciesCustomRuleIdGetAsync

      public okhttp3.Call throttlingPoliciesCustomRuleIdGetAsync(String ruleId, String ifNoneMatch, String ifModifiedSince, ApiCallback<CustomRuleDTO> _callback) throws ApiException
      Get a Custom Rule (asynchronously) Retrieves a custom rule. We need to provide the policy Id as a path parameter. **NOTE:** * Only super tenant users are allowed for this operation.
      Parameters:
      ruleId - Custom rule 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 finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • throttlingPoliciesCustomRuleIdPutCall

      public okhttp3.Call throttlingPoliciesCustomRuleIdPutCall(String ruleId, String contentType, CustomRuleDTO customRuleDTO, String ifMatch, String ifUnmodifiedSince, ApiCallback _callback) throws ApiException
      Build call for throttlingPoliciesCustomRuleIdPut
      Parameters:
      ruleId - Custom rule UUID (required)
      contentType - Media type of the entity in the body. Default is application/json. (required)
      customRuleDTO - Policy object that needs to be modified (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 - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • throttlingPoliciesCustomRuleIdPut

      public CustomRuleDTO throttlingPoliciesCustomRuleIdPut(String ruleId, String contentType, CustomRuleDTO customRuleDTO, String ifMatch, String ifUnmodifiedSince) throws ApiException
      Update a Custom Rule Updates an existing custom rule. **NOTE:** * Only super tenant users are allowed for this operation.
      Parameters:
      ruleId - Custom rule UUID (required)
      contentType - Media type of the entity in the body. Default is application/json. (required)
      customRuleDTO - Policy object that needs to be modified (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)
      Returns:
      CustomRuleDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • throttlingPoliciesCustomRuleIdPutWithHttpInfo

      public ApiResponse<CustomRuleDTO> throttlingPoliciesCustomRuleIdPutWithHttpInfo(String ruleId, String contentType, CustomRuleDTO customRuleDTO, String ifMatch, String ifUnmodifiedSince) throws ApiException
      Update a Custom Rule Updates an existing custom rule. **NOTE:** * Only super tenant users are allowed for this operation.
      Parameters:
      ruleId - Custom rule UUID (required)
      contentType - Media type of the entity in the body. Default is application/json. (required)
      customRuleDTO - Policy object that needs to be modified (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)
      Returns:
      ApiResponse<CustomRuleDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • throttlingPoliciesCustomRuleIdPutAsync

      public okhttp3.Call throttlingPoliciesCustomRuleIdPutAsync(String ruleId, String contentType, CustomRuleDTO customRuleDTO, String ifMatch, String ifUnmodifiedSince, ApiCallback<CustomRuleDTO> _callback) throws ApiException
      Update a Custom Rule (asynchronously) Updates an existing custom rule. **NOTE:** * Only super tenant users are allowed for this operation.
      Parameters:
      ruleId - Custom rule UUID (required)
      contentType - Media type of the entity in the body. Default is application/json. (required)
      customRuleDTO - Policy object that needs to be modified (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 finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object