Class DeploymentGatesApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to listDeploymentGates. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate deployment gate.Create deployment gate.Endpoint to create a deployment gate.Create deployment gate.createDeploymentRule(String gateId, CreateDeploymentRuleParams body) Create deployment rule.createDeploymentRuleAsync(String gateId, CreateDeploymentRuleParams body) Create deployment rule.createDeploymentRuleWithHttpInfo(String gateId, CreateDeploymentRuleParams body) Endpoint to create a deployment rule.Create deployment rule.voidDelete deployment gate.Delete deployment gate.Endpoint to delete a deployment gate.Delete deployment gate.voiddeleteDeploymentRule(String gateId, String id) Delete deployment rule.deleteDeploymentRuleAsync(String gateId, String id) Delete deployment rule.deleteDeploymentRuleWithHttpInfo(String gateId, String id) Endpoint to delete a deployment rule.deleteDeploymentRuleWithHttpInfoAsync(String gateId, String id) Delete deployment rule.Get the API client.Get deployment gate.Get deployment gate.getDeploymentGateRules(String gateId) Get rules for a deployment gate.getDeploymentGateRulesAsync(String gateId) Get rules for a deployment gate.Endpoint to get rules for a deployment gate.Get rules for a deployment gate.Get a deployment gate evaluation result.Get a deployment gate evaluation result.Retrieves the result of a deployment gate evaluation by its evaluation ID.Get a deployment gate evaluation result.Endpoint to get a deployment gate.Get deployment gate.getDeploymentRule(String gateId, String id) Get deployment rule.getDeploymentRuleAsync(String gateId, String id) Get deployment rule.getDeploymentRuleWithHttpInfo(String gateId, String id) Endpoint to get a deployment rule.getDeploymentRuleWithHttpInfoAsync(String gateId, String id) Get deployment rule.Get all deployment gates.Get all deployment gates.Get all deployment gates.Get all deployment gates.listDeploymentGatesWithHttpInfo(DeploymentGatesApi.ListDeploymentGatesOptionalParameters parameters) Returns a paginated list of all deployment gates for the organization.listDeploymentGatesWithHttpInfoAsync(DeploymentGatesApi.ListDeploymentGatesOptionalParameters parameters) Get all deployment gates.voidsetApiClient(ApiClient apiClient) Set the API client.Trigger a deployment gate evaluation.Trigger a deployment gate evaluation.Triggers an asynchronous deployment gate evaluation for the given service and environment.Trigger a deployment gate evaluation.Update deployment gate.Update deployment gate.Endpoint to update a deployment gate.Update deployment gate.updateDeploymentRule(String gateId, String id, UpdateDeploymentRuleParams body) Update deployment rule.updateDeploymentRuleAsync(String gateId, String id, UpdateDeploymentRuleParams body) Update deployment rule.updateDeploymentRuleWithHttpInfo(String gateId, String id, UpdateDeploymentRuleParams body) Endpoint to update a deployment rule.updateDeploymentRuleWithHttpInfoAsync(String gateId, String id, UpdateDeploymentRuleParams body) Update deployment rule.
-
Constructor Details
-
DeploymentGatesApi
public DeploymentGatesApi() -
DeploymentGatesApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createDeploymentGate
public DeploymentGateResponse createDeploymentGate(CreateDeploymentGateParams body) throws ApiException Create deployment gate.See
createDeploymentGateWithHttpInfo(com.datadog.api.client.v2.model.CreateDeploymentGateParams).- Parameters:
body- (required)- Returns:
- DeploymentGateResponse
- Throws:
ApiException- if fails to make API call
-
createDeploymentGateAsync
public CompletableFuture<DeploymentGateResponse> createDeploymentGateAsync(CreateDeploymentGateParams body) Create deployment gate.See
createDeploymentGateWithHttpInfoAsync(com.datadog.api.client.v2.model.CreateDeploymentGateParams).- Parameters:
body- (required)- Returns:
- CompletableFuture<DeploymentGateResponse>
-
createDeploymentGateWithHttpInfo
public ApiResponse<DeploymentGateResponse> createDeploymentGateWithHttpInfo(CreateDeploymentGateParams body) throws ApiException Endpoint to create a deployment gate.- Parameters:
body- (required)- Returns:
- ApiResponse<DeploymentGateResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 429 Too many requests - 500 Internal Server Error -
-
createDeploymentGateWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeploymentGateResponse>> createDeploymentGateWithHttpInfoAsync(CreateDeploymentGateParams body) Create deployment gate.See
createDeploymentGateWithHttpInfo(com.datadog.api.client.v2.model.CreateDeploymentGateParams).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<DeploymentGateResponse>>
-
createDeploymentRule
public DeploymentRuleResponse createDeploymentRule(String gateId, CreateDeploymentRuleParams body) throws ApiException Create deployment rule.- Parameters:
gateId- The ID of the deployment gate. (required)body- (required)- Returns:
- DeploymentRuleResponse
- Throws:
ApiException- if fails to make API call
-
createDeploymentRuleAsync
public CompletableFuture<DeploymentRuleResponse> createDeploymentRuleAsync(String gateId, CreateDeploymentRuleParams body) Create deployment rule.- Parameters:
gateId- The ID of the deployment gate. (required)body- (required)- Returns:
- CompletableFuture<DeploymentRuleResponse>
-
createDeploymentRuleWithHttpInfo
public ApiResponse<DeploymentRuleResponse> createDeploymentRuleWithHttpInfo(String gateId, CreateDeploymentRuleParams body) throws ApiException Endpoint to create a deployment rule. A gate for the rule must already exist.- Parameters:
gateId- The ID of the deployment gate. (required)body- (required)- Returns:
- ApiResponse<DeploymentRuleResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 429 Too many requests - 500 Internal Server Error -
-
createDeploymentRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeploymentRuleResponse>> createDeploymentRuleWithHttpInfoAsync(String gateId, CreateDeploymentRuleParams body) Create deployment rule.- Parameters:
gateId- The ID of the deployment gate. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<DeploymentRuleResponse>>
-
deleteDeploymentGate
Delete deployment gate.- Parameters:
id- The ID of the deployment gate. (required)- Throws:
ApiException- if fails to make API call
-
deleteDeploymentGateAsync
Delete deployment gate.See
deleteDeploymentGateWithHttpInfoAsync(java.lang.String).- Parameters:
id- The ID of the deployment gate. (required)- Returns:
- CompletableFuture
-
deleteDeploymentGateWithHttpInfo
Endpoint to delete a deployment gate. Rules associated with the gate are also deleted.- Parameters:
id- The ID of the deployment gate. (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 - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 404 Deployment gate not found. - 429 Too many requests - 500 Internal Server Error -
-
deleteDeploymentGateWithHttpInfoAsync
Delete deployment gate.- Parameters:
id- The ID of the deployment gate. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteDeploymentRule
Delete deployment rule.See
deleteDeploymentRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (required)- Throws:
ApiException- if fails to make API call
-
deleteDeploymentRuleAsync
Delete deployment rule.See
deleteDeploymentRuleWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (required)- Returns:
- CompletableFuture
-
deleteDeploymentRuleWithHttpInfo
public ApiResponse<Void> deleteDeploymentRuleWithHttpInfo(String gateId, String id) throws ApiException Endpoint to delete a deployment rule.- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (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 - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 404 Deployment gate not found. - 429 Too many requests - 500 Internal Server Error -
-
deleteDeploymentRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteDeploymentRuleWithHttpInfoAsync(String gateId, String id) Delete deployment rule.See
deleteDeploymentRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getDeploymentGate
Get deployment gate.- Parameters:
id- The ID of the deployment gate. (required)- Returns:
- DeploymentGateResponse
- Throws:
ApiException- if fails to make API call
-
getDeploymentGateAsync
Get deployment gate.- Parameters:
id- The ID of the deployment gate. (required)- Returns:
- CompletableFuture<DeploymentGateResponse>
-
getDeploymentGateWithHttpInfo
public ApiResponse<DeploymentGateResponse> getDeploymentGateWithHttpInfo(String id) throws ApiException Endpoint to get a deployment gate.- Parameters:
id- The ID of the deployment gate. (required)- Returns:
- ApiResponse<DeploymentGateResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 404 Deployment gate not found. - 429 Too many requests - 500 Internal Server Error -
-
getDeploymentGateWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeploymentGateResponse>> getDeploymentGateWithHttpInfoAsync(String id) Get deployment gate.- Parameters:
id- The ID of the deployment gate. (required)- Returns:
- CompletableFuture<ApiResponse<DeploymentGateResponse>>
-
getDeploymentGateRules
Get rules for a deployment gate.- Parameters:
gateId- The ID of the deployment gate. (required)- Returns:
- DeploymentGateRulesResponse
- Throws:
ApiException- if fails to make API call
-
getDeploymentGateRulesAsync
Get rules for a deployment gate.See
getDeploymentGateRulesWithHttpInfoAsync(java.lang.String).- Parameters:
gateId- The ID of the deployment gate. (required)- Returns:
- CompletableFuture<DeploymentGateRulesResponse>
-
getDeploymentGateRulesWithHttpInfo
public ApiResponse<DeploymentGateRulesResponse> getDeploymentGateRulesWithHttpInfo(String gateId) throws ApiException Endpoint to get rules for a deployment gate.- Parameters:
gateId- The ID of the deployment gate. (required)- Returns:
- ApiResponse<DeploymentGateRulesResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 429 Too many requests - 500 Internal Server Error -
-
getDeploymentGateRulesWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeploymentGateRulesResponse>> getDeploymentGateRulesWithHttpInfoAsync(String gateId) Get rules for a deployment gate.- Parameters:
gateId- The ID of the deployment gate. (required)- Returns:
- CompletableFuture<ApiResponse<DeploymentGateRulesResponse>>
-
getDeploymentGatesEvaluationResult
public DeploymentGatesEvaluationResultResponse getDeploymentGatesEvaluationResult(UUID id) throws ApiException Get a deployment gate evaluation result.See
getDeploymentGatesEvaluationResultWithHttpInfo(java.util.UUID).- Parameters:
id- The evaluation ID returned by the trigger endpoint. (required)- Returns:
- DeploymentGatesEvaluationResultResponse
- Throws:
ApiException- if fails to make API call
-
getDeploymentGatesEvaluationResultAsync
public CompletableFuture<DeploymentGatesEvaluationResultResponse> getDeploymentGatesEvaluationResultAsync(UUID id) Get a deployment gate evaluation result.See
getDeploymentGatesEvaluationResultWithHttpInfoAsync(java.util.UUID).- Parameters:
id- The evaluation ID returned by the trigger endpoint. (required)- Returns:
- CompletableFuture<DeploymentGatesEvaluationResultResponse>
-
getDeploymentGatesEvaluationResultWithHttpInfo
public ApiResponse<DeploymentGatesEvaluationResultResponse> getDeploymentGatesEvaluationResultWithHttpInfo(UUID id) throws ApiException Retrieves the result of a deployment gate evaluation by its evaluation ID. If the evaluation is still in progress,data.attributes.gate_statuswill bein_progress; continue polling until it returnspassorfail. Polling every 10-20 seconds is recommended. The endpoint may return a 404 if called too soon after triggering; retry after a few seconds.- Parameters:
id- The evaluation ID returned by the trigger endpoint. (required)- Returns:
- ApiResponse<DeploymentGatesEvaluationResultResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 404 Deployment gate not found. - 429 Too many requests - 500 Internal Server Error -
-
getDeploymentGatesEvaluationResultWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeploymentGatesEvaluationResultResponse>> getDeploymentGatesEvaluationResultWithHttpInfoAsync(UUID id) Get a deployment gate evaluation result.See
getDeploymentGatesEvaluationResultWithHttpInfo(java.util.UUID).- Parameters:
id- The evaluation ID returned by the trigger endpoint. (required)- Returns:
- CompletableFuture<ApiResponse<DeploymentGatesEvaluationResultResponse>>
-
getDeploymentRule
Get deployment rule.See
getDeploymentRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (required)- Returns:
- DeploymentRuleResponse
- Throws:
ApiException- if fails to make API call
-
getDeploymentRuleAsync
Get deployment rule.See
getDeploymentRuleWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (required)- Returns:
- CompletableFuture<DeploymentRuleResponse>
-
getDeploymentRuleWithHttpInfo
public ApiResponse<DeploymentRuleResponse> getDeploymentRuleWithHttpInfo(String gateId, String id) throws ApiException Endpoint to get a deployment rule.- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (required)- Returns:
- ApiResponse<DeploymentRuleResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 404 Deployment rule not found. - 429 Too many requests - 500 Internal Server Error -
-
getDeploymentRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeploymentRuleResponse>> getDeploymentRuleWithHttpInfoAsync(String gateId, String id) Get deployment rule.See
getDeploymentRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (required)- Returns:
- CompletableFuture<ApiResponse<DeploymentRuleResponse>>
-
listDeploymentGates
Get all deployment gates.- Returns:
- DeploymentGatesListResponse
- Throws:
ApiException- if fails to make API call
-
listDeploymentGatesAsync
Get all deployment gates.- Returns:
- CompletableFuture<DeploymentGatesListResponse>
-
listDeploymentGates
public DeploymentGatesListResponse listDeploymentGates(DeploymentGatesApi.ListDeploymentGatesOptionalParameters parameters) throws ApiException Get all deployment gates.- Parameters:
parameters- Optional parameters for the request.- Returns:
- DeploymentGatesListResponse
- Throws:
ApiException- if fails to make API call
-
listDeploymentGatesAsync
public CompletableFuture<DeploymentGatesListResponse> listDeploymentGatesAsync(DeploymentGatesApi.ListDeploymentGatesOptionalParameters parameters) Get all deployment gates.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<DeploymentGatesListResponse>
-
listDeploymentGatesWithHttpInfo
public ApiResponse<DeploymentGatesListResponse> listDeploymentGatesWithHttpInfo(DeploymentGatesApi.ListDeploymentGatesOptionalParameters parameters) throws ApiException Returns a paginated list of all deployment gates for the organization. Usepage[cursor]andpage[size]query parameters to paginate through results.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<DeploymentGatesListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 429 Too many requests - 500 Internal Server Error -
-
listDeploymentGatesWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeploymentGatesListResponse>> listDeploymentGatesWithHttpInfoAsync(DeploymentGatesApi.ListDeploymentGatesOptionalParameters parameters) Get all deployment gates.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<DeploymentGatesListResponse>>
-
triggerDeploymentGatesEvaluation
public DeploymentGatesEvaluationResponse triggerDeploymentGatesEvaluation(DeploymentGatesEvaluationRequest body) throws ApiException Trigger a deployment gate evaluation.- Parameters:
body- (required)- Returns:
- DeploymentGatesEvaluationResponse
- Throws:
ApiException- if fails to make API call
-
triggerDeploymentGatesEvaluationAsync
public CompletableFuture<DeploymentGatesEvaluationResponse> triggerDeploymentGatesEvaluationAsync(DeploymentGatesEvaluationRequest body) Trigger a deployment gate evaluation.- Parameters:
body- (required)- Returns:
- CompletableFuture<DeploymentGatesEvaluationResponse>
-
triggerDeploymentGatesEvaluationWithHttpInfo
public ApiResponse<DeploymentGatesEvaluationResponse> triggerDeploymentGatesEvaluationWithHttpInfo(DeploymentGatesEvaluationRequest body) throws ApiException Triggers an asynchronous deployment gate evaluation for the given service and environment. Returns an evaluation ID that can be used to poll for the result via theGET /api/v2/deployments/gates/evaluation/{id}endpoint.When the
configurationattribute is provided, rules are evaluated inline from that configuration and no pre-configured gate is required. Whenconfigurationis omitted, rules are resolved from the gate pre-configured for the given service and environment through the Datadog UI, API, or Terraform.- Parameters:
body- (required)- Returns:
- ApiResponse<DeploymentGatesEvaluationResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 202 Accepted - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 404 Deployment gate not found. - 429 Too many requests - 500 Internal Server Error -
-
triggerDeploymentGatesEvaluationWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeploymentGatesEvaluationResponse>> triggerDeploymentGatesEvaluationWithHttpInfoAsync(DeploymentGatesEvaluationRequest body) Trigger a deployment gate evaluation.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<DeploymentGatesEvaluationResponse>>
-
updateDeploymentGate
public DeploymentGateResponse updateDeploymentGate(String id, UpdateDeploymentGateParams body) throws ApiException Update deployment gate.- Parameters:
id- The ID of the deployment gate. (required)body- (required)- Returns:
- DeploymentGateResponse
- Throws:
ApiException- if fails to make API call
-
updateDeploymentGateAsync
public CompletableFuture<DeploymentGateResponse> updateDeploymentGateAsync(String id, UpdateDeploymentGateParams body) Update deployment gate.- Parameters:
id- The ID of the deployment gate. (required)body- (required)- Returns:
- CompletableFuture<DeploymentGateResponse>
-
updateDeploymentGateWithHttpInfo
public ApiResponse<DeploymentGateResponse> updateDeploymentGateWithHttpInfo(String id, UpdateDeploymentGateParams body) throws ApiException Endpoint to update a deployment gate.- Parameters:
id- The ID of the deployment gate. (required)body- (required)- Returns:
- ApiResponse<DeploymentGateResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 404 Deployment gate not found. - 429 Too many requests - 500 Internal Server Error -
-
updateDeploymentGateWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeploymentGateResponse>> updateDeploymentGateWithHttpInfoAsync(String id, UpdateDeploymentGateParams body) Update deployment gate.- Parameters:
id- The ID of the deployment gate. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<DeploymentGateResponse>>
-
updateDeploymentRule
public DeploymentRuleResponse updateDeploymentRule(String gateId, String id, UpdateDeploymentRuleParams body) throws ApiException Update deployment rule.- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (required)body- (required)- Returns:
- DeploymentRuleResponse
- Throws:
ApiException- if fails to make API call
-
updateDeploymentRuleAsync
public CompletableFuture<DeploymentRuleResponse> updateDeploymentRuleAsync(String gateId, String id, UpdateDeploymentRuleParams body) Update deployment rule.- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (required)body- (required)- Returns:
- CompletableFuture<DeploymentRuleResponse>
-
updateDeploymentRuleWithHttpInfo
public ApiResponse<DeploymentRuleResponse> updateDeploymentRuleWithHttpInfo(String gateId, String id, UpdateDeploymentRuleParams body) throws ApiException Endpoint to update a deployment rule.- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (required)body- (required)- Returns:
- ApiResponse<DeploymentRuleResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad request. - 401 Unauthorized - 403 Forbidden - 404 Deployment rule not found. - 429 Too many requests - 500 Internal Server Error -
-
updateDeploymentRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeploymentRuleResponse>> updateDeploymentRuleWithHttpInfoAsync(String gateId, String id, UpdateDeploymentRuleParams body) Update deployment rule.- Parameters:
gateId- The ID of the deployment gate. (required)id- The ID of the deployment rule. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<DeploymentRuleResponse>>
-