Class DenyPoliciesCollectionApi
java.lang.Object
org.wso2.am.integration.clients.admin.api.DenyPoliciesCollectionApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetApiClient(ApiClient apiClient) throttlingDenyPoliciesGet(String accept, String ifNoneMatch, String ifModifiedSince, String query) Get all Deny Policies Retrieves all existing deny policies.okhttp3.CallthrottlingDenyPoliciesGetAsync(String accept, String ifNoneMatch, String ifModifiedSince, String query, ApiCallback<BlockingConditionListDTO> _callback) Get all Deny Policies (asynchronously) Retrieves all existing deny policies.okhttp3.CallthrottlingDenyPoliciesGetCall(String accept, String ifNoneMatch, String ifModifiedSince, String query, ApiCallback _callback) Build call for throttlingDenyPoliciesGetthrottlingDenyPoliciesGetWithHttpInfo(String accept, String ifNoneMatch, String ifModifiedSince, String query) Get all Deny Policies Retrieves all existing deny policies.throttlingDenyPoliciesPost(String contentType, BlockingConditionDTO blockingConditionDTO) Add a deny policy Adds a new deny policyokhttp3.CallthrottlingDenyPoliciesPostAsync(String contentType, BlockingConditionDTO blockingConditionDTO, ApiCallback<BlockingConditionDTO> _callback) Add a deny policy (asynchronously) Adds a new deny policyokhttp3.CallthrottlingDenyPoliciesPostCall(String contentType, BlockingConditionDTO blockingConditionDTO, ApiCallback _callback) Build call for throttlingDenyPoliciesPostthrottlingDenyPoliciesPostWithHttpInfo(String contentType, BlockingConditionDTO blockingConditionDTO) Add a deny policy Adds a new deny policy
-
Constructor Details
-
DenyPoliciesCollectionApi
public DenyPoliciesCollectionApi() -
DenyPoliciesCollectionApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
throttlingDenyPoliciesGetCall
public okhttp3.Call throttlingDenyPoliciesGetCall(String accept, String ifNoneMatch, String ifModifiedSince, String query, ApiCallback _callback) throws ApiException Build call for throttlingDenyPoliciesGet- 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)query- **Search condition**. You can search in attributes by using **\"conditionType:\"** modifier and **\"conditionValue:\"** modifier. Eg. The entry \"conditionType:API\" will result in a match with blocking conditions only if the conditionType is \"API\". Similarly, \"conditionValue:test/1.0.0\" will result in a match with blocking conditions only if the conditionValue is \"test/1.0.0\". When you use \"conditionType:API & conditionValue:test/1.0.0\" as a combination, it will result in a match with blocking conditions only if both the conditionType is \"API\" and the conditionValue is \"test/1.0.0\". If query attribute is provided, this returns the blocking conditions that match the specified attributes. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl) (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
throttlingDenyPoliciesGet
public BlockingConditionListDTO throttlingDenyPoliciesGet(String accept, String ifNoneMatch, String ifModifiedSince, String query) throws ApiException Get all Deny Policies Retrieves all existing deny 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)query- **Search condition**. You can search in attributes by using **\"conditionType:\"** modifier and **\"conditionValue:\"** modifier. Eg. The entry \"conditionType:API\" will result in a match with blocking conditions only if the conditionType is \"API\". Similarly, \"conditionValue:test/1.0.0\" will result in a match with blocking conditions only if the conditionValue is \"test/1.0.0\". When you use \"conditionType:API & conditionValue:test/1.0.0\" as a combination, it will result in a match with blocking conditions only if both the conditionType is \"API\" and the conditionValue is \"test/1.0.0\". If query attribute is provided, this returns the blocking conditions that match the specified attributes. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl) (optional)- Returns:
- BlockingConditionListDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
throttlingDenyPoliciesGetWithHttpInfo
public ApiResponse<BlockingConditionListDTO> throttlingDenyPoliciesGetWithHttpInfo(String accept, String ifNoneMatch, String ifModifiedSince, String query) throws ApiException Get all Deny Policies Retrieves all existing deny 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)query- **Search condition**. You can search in attributes by using **\"conditionType:\"** modifier and **\"conditionValue:\"** modifier. Eg. The entry \"conditionType:API\" will result in a match with blocking conditions only if the conditionType is \"API\". Similarly, \"conditionValue:test/1.0.0\" will result in a match with blocking conditions only if the conditionValue is \"test/1.0.0\". When you use \"conditionType:API & conditionValue:test/1.0.0\" as a combination, it will result in a match with blocking conditions only if both the conditionType is \"API\" and the conditionValue is \"test/1.0.0\". If query attribute is provided, this returns the blocking conditions that match the specified attributes. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl) (optional)- Returns:
- ApiResponse<BlockingConditionListDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
throttlingDenyPoliciesGetAsync
public okhttp3.Call throttlingDenyPoliciesGetAsync(String accept, String ifNoneMatch, String ifModifiedSince, String query, ApiCallback<BlockingConditionListDTO> _callback) throws ApiException Get all Deny Policies (asynchronously) Retrieves all existing deny 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)query- **Search condition**. You can search in attributes by using **\"conditionType:\"** modifier and **\"conditionValue:\"** modifier. Eg. The entry \"conditionType:API\" will result in a match with blocking conditions only if the conditionType is \"API\". Similarly, \"conditionValue:test/1.0.0\" will result in a match with blocking conditions only if the conditionValue is \"test/1.0.0\". When you use \"conditionType:API & conditionValue:test/1.0.0\" as a combination, it will result in a match with blocking conditions only if both the conditionType is \"API\" and the conditionValue is \"test/1.0.0\". If query attribute is provided, this returns the blocking conditions that match the specified attributes. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl) (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
-
throttlingDenyPoliciesPostCall
public okhttp3.Call throttlingDenyPoliciesPostCall(String contentType, BlockingConditionDTO blockingConditionDTO, ApiCallback _callback) throws ApiException Build call for throttlingDenyPoliciesPost- Parameters:
contentType- Media type of the entity in the body. Default is application/json. (required)blockingConditionDTO- Blocking condition 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
-
throttlingDenyPoliciesPost
public BlockingConditionDTO throttlingDenyPoliciesPost(String contentType, BlockingConditionDTO blockingConditionDTO) throws ApiException Add a deny policy Adds a new deny policy- Parameters:
contentType- Media type of the entity in the body. Default is application/json. (required)blockingConditionDTO- Blocking condition object that should to be added (required)- Returns:
- BlockingConditionDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
throttlingDenyPoliciesPostWithHttpInfo
public ApiResponse<BlockingConditionDTO> throttlingDenyPoliciesPostWithHttpInfo(String contentType, BlockingConditionDTO blockingConditionDTO) throws ApiException Add a deny policy Adds a new deny policy- Parameters:
contentType- Media type of the entity in the body. Default is application/json. (required)blockingConditionDTO- Blocking condition object that should to be added (required)- Returns:
- ApiResponse<BlockingConditionDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
throttlingDenyPoliciesPostAsync
public okhttp3.Call throttlingDenyPoliciesPostAsync(String contentType, BlockingConditionDTO blockingConditionDTO, ApiCallback<BlockingConditionDTO> _callback) throws ApiException Add a deny policy (asynchronously) Adds a new deny policy- Parameters:
contentType- Media type of the entity in the body. Default is application/json. (required)blockingConditionDTO- Blocking condition 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
-