public class SecurityPolicyApi extends Object
| 构造器和说明 |
|---|
SecurityPolicyApi() |
SecurityPolicyApi(ApiClient apiClient) |
public SecurityPolicyApi()
public SecurityPolicyApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public String getCustomBaseUrl()
public void setCustomBaseUrl(String customBaseUrl)
public okhttp3.Call createSecurityPolicyCall(SecurityPolicyCreateParams securityPolicyCreateParams, ApiCallback _callback) throws ApiException
securityPolicyCreateParams - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public WithTaskSecurityPolicy createSecurityPolicy(SecurityPolicyCreateParams securityPolicyCreateParams) throws ApiException
securityPolicyCreateParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<WithTaskSecurityPolicy> createSecurityPolicyWithHttpInfo(SecurityPolicyCreateParams securityPolicyCreateParams) throws ApiException
securityPolicyCreateParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call createSecurityPolicyAsync(SecurityPolicyCreateParams securityPolicyCreateParams, ApiCallback<WithTaskSecurityPolicy> _callback) throws ApiException
securityPolicyCreateParams - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call deleteSecurityPolicyCall(SecurityPolicyDeleteParams securityPolicyDeleteParams, ApiCallback _callback) throws ApiException
securityPolicyDeleteParams - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public List<WithTaskDeleteSecurityPolicy> deleteSecurityPolicy(SecurityPolicyDeleteParams securityPolicyDeleteParams) throws ApiException
securityPolicyDeleteParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<List<WithTaskDeleteSecurityPolicy>> deleteSecurityPolicyWithHttpInfo(SecurityPolicyDeleteParams securityPolicyDeleteParams) throws ApiException
securityPolicyDeleteParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call deleteSecurityPolicyAsync(SecurityPolicyDeleteParams securityPolicyDeleteParams, ApiCallback<List<WithTaskDeleteSecurityPolicy>> _callback) throws ApiException
securityPolicyDeleteParams - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getSecurityPoliciesCall(GetSecurityPoliciesRequestBody getSecurityPoliciesRequestBody, ApiCallback _callback) throws ApiException
getSecurityPoliciesRequestBody - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public List<SecurityPolicy> getSecurityPolicies(GetSecurityPoliciesRequestBody getSecurityPoliciesRequestBody) throws ApiException
getSecurityPoliciesRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<List<SecurityPolicy>> getSecurityPoliciesWithHttpInfo(GetSecurityPoliciesRequestBody getSecurityPoliciesRequestBody) throws ApiException
getSecurityPoliciesRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getSecurityPoliciesAsync(GetSecurityPoliciesRequestBody getSecurityPoliciesRequestBody, ApiCallback<List<SecurityPolicy>> _callback) throws ApiException
getSecurityPoliciesRequestBody - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getSecurityPoliciesConnectionCall(GetSecurityPoliciesConnectionRequestBody getSecurityPoliciesConnectionRequestBody, ApiCallback _callback) throws ApiException
getSecurityPoliciesConnectionRequestBody - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public SecurityPolicyConnection getSecurityPoliciesConnection(GetSecurityPoliciesConnectionRequestBody getSecurityPoliciesConnectionRequestBody) throws ApiException
getSecurityPoliciesConnectionRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<SecurityPolicyConnection> getSecurityPoliciesConnectionWithHttpInfo(GetSecurityPoliciesConnectionRequestBody getSecurityPoliciesConnectionRequestBody) throws ApiException
getSecurityPoliciesConnectionRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getSecurityPoliciesConnectionAsync(GetSecurityPoliciesConnectionRequestBody getSecurityPoliciesConnectionRequestBody, ApiCallback<SecurityPolicyConnection> _callback) throws ApiException
getSecurityPoliciesConnectionRequestBody - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call updateSecurityPolicyCall(SecurityPolicyUpdateBody securityPolicyUpdateBody, ApiCallback _callback) throws ApiException
securityPolicyUpdateBody - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public List<WithTaskSecurityPolicy> updateSecurityPolicy(SecurityPolicyUpdateBody securityPolicyUpdateBody) throws ApiException
securityPolicyUpdateBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<List<WithTaskSecurityPolicy>> updateSecurityPolicyWithHttpInfo(SecurityPolicyUpdateBody securityPolicyUpdateBody) throws ApiException
securityPolicyUpdateBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call updateSecurityPolicyAsync(SecurityPolicyUpdateBody securityPolicyUpdateBody, ApiCallback<List<WithTaskSecurityPolicy>> _callback) throws ApiException
securityPolicyUpdateBody - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
Copyright © 2025. All rights reserved.