Package com.datadog.api.client.v2.api
Class ExecutionPolicyApi
java.lang.Object
com.datadog.api.client.v2.api.ExecutionPolicyApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ExecutionPolicyApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to listExecutionPolicies. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an execution policy.Create an execution policy.Create a new execution policy.Create an execution policy.voiddeleteExecutionPolicy(String policyId) Delete an execution policy.deleteExecutionPolicyAsync(String policyId) Delete an execution policy.deleteExecutionPolicyWithHttpInfo(String policyId) Delete a specific execution policy.deleteExecutionPolicyWithHttpInfoAsync(String policyId) Delete an execution policy.Get the API client.getExecutionPolicy(String policyId) Get an execution policy.getExecutionPolicyAsync(String policyId) Get an execution policy.getExecutionPolicyWithHttpInfo(String policyId) Retrieve an existing execution policy by ID.getExecutionPolicyWithHttpInfoAsync(String policyId) Get an execution policy.List execution policies.List execution policies.List execution policies.List execution policies.listExecutionPoliciesWithHttpInfo(ExecutionPolicyApi.ListExecutionPoliciesOptionalParameters parameters) Retrieve a list of execution policies for the current organization.listExecutionPoliciesWithHttpInfoAsync(ExecutionPolicyApi.ListExecutionPoliciesOptionalParameters parameters) List execution policies.voidsetApiClient(ApiClient apiClient) Set the API client.updateExecutionPolicy(String policyId, ExecutionPolicyUpdateRequest body) Update an execution policy.updateExecutionPolicyAsync(String policyId, ExecutionPolicyUpdateRequest body) Update an execution policy.updateExecutionPolicyWithHttpInfo(String policyId, ExecutionPolicyUpdateRequest body) Update an existing execution policy.updateExecutionPolicyWithHttpInfoAsync(String policyId, ExecutionPolicyUpdateRequest body) Update an execution policy.
-
Constructor Details
-
ExecutionPolicyApi
public ExecutionPolicyApi() -
ExecutionPolicyApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createExecutionPolicy
public ExecutionPolicyResponse createExecutionPolicy(ExecutionPolicyCreateRequest body) throws ApiException Create an execution policy.See
createExecutionPolicyWithHttpInfo(com.datadog.api.client.v2.model.ExecutionPolicyCreateRequest).- Parameters:
body- The execution policy to create. (required)- Returns:
- ExecutionPolicyResponse
- Throws:
ApiException- if fails to make API call
-
createExecutionPolicyAsync
public CompletableFuture<ExecutionPolicyResponse> createExecutionPolicyAsync(ExecutionPolicyCreateRequest body) Create an execution policy.See
createExecutionPolicyWithHttpInfoAsync(com.datadog.api.client.v2.model.ExecutionPolicyCreateRequest).- Parameters:
body- The execution policy to create. (required)- Returns:
- CompletableFuture<ExecutionPolicyResponse>
-
createExecutionPolicyWithHttpInfo
public ApiResponse<ExecutionPolicyResponse> createExecutionPolicyWithHttpInfo(ExecutionPolicyCreateRequest body) throws ApiException Create a new execution policy.- Parameters:
body- The execution policy to create. (required)- Returns:
- ApiResponse<ExecutionPolicyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
createExecutionPolicyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ExecutionPolicyResponse>> createExecutionPolicyWithHttpInfoAsync(ExecutionPolicyCreateRequest body) Create an execution policy.See
createExecutionPolicyWithHttpInfo(com.datadog.api.client.v2.model.ExecutionPolicyCreateRequest).- Parameters:
body- The execution policy to create. (required)- Returns:
- CompletableFuture<ApiResponse<ExecutionPolicyResponse>>
-
deleteExecutionPolicy
Delete an execution policy.- Parameters:
policyId- The ID of the execution policy. (required)- Throws:
ApiException- if fails to make API call
-
deleteExecutionPolicyAsync
Delete an execution policy.See
deleteExecutionPolicyWithHttpInfoAsync(java.lang.String).- Parameters:
policyId- The ID of the execution policy. (required)- Returns:
- CompletableFuture
-
deleteExecutionPolicyWithHttpInfo
Delete a specific execution policy.- Parameters:
policyId- The ID of the execution policy. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteExecutionPolicyWithHttpInfoAsync
Delete an execution policy.- Parameters:
policyId- The ID of the execution policy. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getExecutionPolicy
Get an execution policy.- Parameters:
policyId- The ID of the execution policy. (required)- Returns:
- ExecutionPolicyResponse
- Throws:
ApiException- if fails to make API call
-
getExecutionPolicyAsync
Get an execution policy.- Parameters:
policyId- The ID of the execution policy. (required)- Returns:
- CompletableFuture<ExecutionPolicyResponse>
-
getExecutionPolicyWithHttpInfo
public ApiResponse<ExecutionPolicyResponse> getExecutionPolicyWithHttpInfo(String policyId) throws ApiException Retrieve an existing execution policy by ID.- Parameters:
policyId- The ID of the execution policy. (required)- Returns:
- ApiResponse<ExecutionPolicyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getExecutionPolicyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ExecutionPolicyResponse>> getExecutionPolicyWithHttpInfoAsync(String policyId) Get an execution policy.- Parameters:
policyId- The ID of the execution policy. (required)- Returns:
- CompletableFuture<ApiResponse<ExecutionPolicyResponse>>
-
listExecutionPolicies
List execution policies.- Returns:
- ExecutionPolicyListResponse
- Throws:
ApiException- if fails to make API call
-
listExecutionPoliciesAsync
List execution policies.- Returns:
- CompletableFuture<ExecutionPolicyListResponse>
-
listExecutionPolicies
public ExecutionPolicyListResponse listExecutionPolicies(ExecutionPolicyApi.ListExecutionPoliciesOptionalParameters parameters) throws ApiException List execution policies.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ExecutionPolicyListResponse
- Throws:
ApiException- if fails to make API call
-
listExecutionPoliciesAsync
public CompletableFuture<ExecutionPolicyListResponse> listExecutionPoliciesAsync(ExecutionPolicyApi.ListExecutionPoliciesOptionalParameters parameters) List execution policies.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ExecutionPolicyListResponse>
-
listExecutionPoliciesWithHttpInfo
public ApiResponse<ExecutionPolicyListResponse> listExecutionPoliciesWithHttpInfo(ExecutionPolicyApi.ListExecutionPoliciesOptionalParameters parameters) throws ApiException Retrieve a list of execution policies for the current organization.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<ExecutionPolicyListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
listExecutionPoliciesWithHttpInfoAsync
public CompletableFuture<ApiResponse<ExecutionPolicyListResponse>> listExecutionPoliciesWithHttpInfoAsync(ExecutionPolicyApi.ListExecutionPoliciesOptionalParameters parameters) List execution policies.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ExecutionPolicyListResponse>>
-
updateExecutionPolicy
public ExecutionPolicyResponse updateExecutionPolicy(String policyId, ExecutionPolicyUpdateRequest body) throws ApiException Update an execution policy.- Parameters:
policyId- The ID of the execution policy. (required)body- The new execution policy. (required)- Returns:
- ExecutionPolicyResponse
- Throws:
ApiException- if fails to make API call
-
updateExecutionPolicyAsync
public CompletableFuture<ExecutionPolicyResponse> updateExecutionPolicyAsync(String policyId, ExecutionPolicyUpdateRequest body) Update an execution policy.- Parameters:
policyId- The ID of the execution policy. (required)body- The new execution policy. (required)- Returns:
- CompletableFuture<ExecutionPolicyResponse>
-
updateExecutionPolicyWithHttpInfo
public ApiResponse<ExecutionPolicyResponse> updateExecutionPolicyWithHttpInfo(String policyId, ExecutionPolicyUpdateRequest body) throws ApiException Update an existing execution policy. Returns the execution policy object when the request is successful.- Parameters:
policyId- The ID of the execution policy. (required)body- The new execution policy. (required)- Returns:
- ApiResponse<ExecutionPolicyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
updateExecutionPolicyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ExecutionPolicyResponse>> updateExecutionPolicyWithHttpInfoAsync(String policyId, ExecutionPolicyUpdateRequest body) Update an execution policy.- Parameters:
policyId- The ID of the execution policy. (required)body- The new execution policy. (required)- Returns:
- CompletableFuture<ApiResponse<ExecutionPolicyResponse>>
-