From c67661a846cccf5417dca7d07a1c2749551df227 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 25 Nov 2026 13:57:05 +0000 Subject: [PATCH] Regenerate client from commit ca41c37 of spec repo --- .generator/schemas/v2/openapi.yaml | 42 --- .../CreateDeploymentGate.java | 1 - .../CreateDeploymentRule.java | 1 - .../CreateDeploymentRule_2423265690.java | 1 - .../CreateDeploymentRule_4286388136.java | 1 - .../DeleteDeploymentGate.java | 1 - .../DeleteDeploymentRule.java | 1 - .../deployment-gates/GetDeploymentGate.java | 1 - .../GetDeploymentGateRules.java | 1 - .../GetDeploymentGatesEvaluationResult.java | 1 - ...ymentGatesEvaluationResult_3594131214.java | 1 - .../deployment-gates/GetDeploymentRule.java | 1 - .../ListDeploymentGateEvaluations.java | 1 - ...tDeploymentGateEvaluations_2875333232.java | 1 - .../deployment-gates/ListDeploymentGates.java | 1 - .../ListDeploymentRuleEvaluations.java | 1 - ...stDeploymentRuleEvaluations_861936712.java | 1 - .../TriggerDeploymentGatesEvaluation.java | 1 - ...erDeploymentGatesEvaluation_691804290.java | 1 - .../UpdateDeploymentGate.java | 1 - .../UpdateDeploymentRule.java | 1 - .../com/datadog/api/client/ApiClient.java | 14 - .../api/client/v2/api/DeploymentGatesApi.java | 244 ------------------ .../client/v2/api/deployment_gates.feature | 134 +++------- 24 files changed, 40 insertions(+), 414 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 8708a330662..5707194b2d0 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -187059,9 +187059,6 @@ paths: operator: OR permissions: - deployment_gates_read - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: |- Create a deployment gate for a specific environment or for all environments using `*`. @@ -187141,9 +187138,6 @@ paths: operator: OR permissions: - deployment_gates_write - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/deployment_gates/evaluations: get: description: |- @@ -187298,9 +187292,6 @@ paths: x-permission: operator: OR permissions: [deployment_gates_read] - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/deployment_gates/evaluations/rules: get: description: |- @@ -187507,9 +187498,6 @@ paths: x-permission: operator: OR permissions: [deployment_gates_read] - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/deployment_gates/{gate_id}/rules: get: description: |- @@ -187569,9 +187557,6 @@ paths: operator: OR permissions: - deployment_gates_read - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: |- Endpoint to create a deployment rule. A gate for the rule must already exist. @@ -187649,9 +187634,6 @@ paths: operator: OR permissions: - deployment_gates_write - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/deployment_gates/{gate_id}/rules/{id}: delete: description: |- @@ -187699,9 +187681,6 @@ paths: operator: OR permissions: - deployment_gates_write - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). get: description: |- Endpoint to get a deployment rule. @@ -187767,9 +187746,6 @@ paths: operator: OR permissions: - deployment_gates_read - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: description: |- Endpoint to update a deployment rule. @@ -187853,9 +187829,6 @@ paths: operator: OR permissions: - deployment_gates_write - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/deployment_gates/{id}: delete: description: |- @@ -187897,9 +187870,6 @@ paths: operator: OR permissions: - deployment_gates_write - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). get: description: |- Endpoint to get a deployment gate. @@ -187958,9 +187928,6 @@ paths: operator: OR permissions: - deployment_gates_read - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: description: |- Endpoint to update a deployment gate. @@ -188033,9 +188000,6 @@ paths: operator: OR permissions: - deployment_gates_write - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/deployments/gates/evaluation: post: description: |- @@ -188131,9 +188095,6 @@ paths: operator: OR permissions: - deployment_gates_evaluate - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/deployments/gates/evaluation/{id}: get: description: |- @@ -188197,9 +188158,6 @@ paths: operator: OR permissions: - deployment_gates_evaluate - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/domain_allowlist: get: description: Get the domain allowlist for an organization. diff --git a/examples/v2/deployment-gates/CreateDeploymentGate.java b/examples/v2/deployment-gates/CreateDeploymentGate.java index 62da44faa29..9a47343e344 100644 --- a/examples/v2/deployment-gates/CreateDeploymentGate.java +++ b/examples/v2/deployment-gates/CreateDeploymentGate.java @@ -13,7 +13,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.createDeploymentGate", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); CreateDeploymentGateParams body = diff --git a/examples/v2/deployment-gates/CreateDeploymentRule.java b/examples/v2/deployment-gates/CreateDeploymentRule.java index a130ec860b7..c182dcfefd8 100644 --- a/examples/v2/deployment-gates/CreateDeploymentRule.java +++ b/examples/v2/deployment-gates/CreateDeploymentRule.java @@ -15,7 +15,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.createDeploymentRule", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gate" in the system diff --git a/examples/v2/deployment-gates/CreateDeploymentRule_2423265690.java b/examples/v2/deployment-gates/CreateDeploymentRule_2423265690.java index db616e3be1c..e45983cc5de 100644 --- a/examples/v2/deployment-gates/CreateDeploymentRule_2423265690.java +++ b/examples/v2/deployment-gates/CreateDeploymentRule_2423265690.java @@ -17,7 +17,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.createDeploymentRule", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gate" in the system diff --git a/examples/v2/deployment-gates/CreateDeploymentRule_4286388136.java b/examples/v2/deployment-gates/CreateDeploymentRule_4286388136.java index b2da831fee4..03367678297 100644 --- a/examples/v2/deployment-gates/CreateDeploymentRule_4286388136.java +++ b/examples/v2/deployment-gates/CreateDeploymentRule_4286388136.java @@ -15,7 +15,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.createDeploymentRule", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gate" in the system diff --git a/examples/v2/deployment-gates/DeleteDeploymentGate.java b/examples/v2/deployment-gates/DeleteDeploymentGate.java index 1333ed2f89c..bda4e1af207 100644 --- a/examples/v2/deployment-gates/DeleteDeploymentGate.java +++ b/examples/v2/deployment-gates/DeleteDeploymentGate.java @@ -8,7 +8,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.deleteDeploymentGate", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gate" in the system diff --git a/examples/v2/deployment-gates/DeleteDeploymentRule.java b/examples/v2/deployment-gates/DeleteDeploymentRule.java index ce98411f37a..bea01706666 100644 --- a/examples/v2/deployment-gates/DeleteDeploymentRule.java +++ b/examples/v2/deployment-gates/DeleteDeploymentRule.java @@ -8,7 +8,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.deleteDeploymentRule", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gate" in the system diff --git a/examples/v2/deployment-gates/GetDeploymentGate.java b/examples/v2/deployment-gates/GetDeploymentGate.java index 0ba734b42f4..9e93758341b 100644 --- a/examples/v2/deployment-gates/GetDeploymentGate.java +++ b/examples/v2/deployment-gates/GetDeploymentGate.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.getDeploymentGate", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gate" in the system diff --git a/examples/v2/deployment-gates/GetDeploymentGateRules.java b/examples/v2/deployment-gates/GetDeploymentGateRules.java index 86bc3f89bb4..287df59a353 100644 --- a/examples/v2/deployment-gates/GetDeploymentGateRules.java +++ b/examples/v2/deployment-gates/GetDeploymentGateRules.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.getDeploymentGateRules", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gate" in the system diff --git a/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult.java b/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult.java index 303381d9839..7b9b5c59cfb 100644 --- a/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult.java +++ b/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult.java @@ -10,7 +10,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.getDeploymentGatesEvaluationResult", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); try { diff --git a/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult_3594131214.java b/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult_3594131214.java index 37611b95cee..a0229c1c0d5 100644 --- a/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult_3594131214.java +++ b/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult_3594131214.java @@ -10,7 +10,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.getDeploymentGatesEvaluationResult", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gates_evaluation" in the system diff --git a/examples/v2/deployment-gates/GetDeploymentRule.java b/examples/v2/deployment-gates/GetDeploymentRule.java index 66343e6e7e4..bdea0d13eac 100644 --- a/examples/v2/deployment-gates/GetDeploymentRule.java +++ b/examples/v2/deployment-gates/GetDeploymentRule.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.getDeploymentRule", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gate" in the system diff --git a/examples/v2/deployment-gates/ListDeploymentGateEvaluations.java b/examples/v2/deployment-gates/ListDeploymentGateEvaluations.java index 17ee13dea99..502a98e1120 100644 --- a/examples/v2/deployment-gates/ListDeploymentGateEvaluations.java +++ b/examples/v2/deployment-gates/ListDeploymentGateEvaluations.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.listDeploymentGateEvaluations", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); try { diff --git a/examples/v2/deployment-gates/ListDeploymentGateEvaluations_2875333232.java b/examples/v2/deployment-gates/ListDeploymentGateEvaluations_2875333232.java index c69b728a167..a89eae3f3d4 100644 --- a/examples/v2/deployment-gates/ListDeploymentGateEvaluations_2875333232.java +++ b/examples/v2/deployment-gates/ListDeploymentGateEvaluations_2875333232.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.listDeploymentGateEvaluations", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); try { diff --git a/examples/v2/deployment-gates/ListDeploymentGates.java b/examples/v2/deployment-gates/ListDeploymentGates.java index 92a552ec294..f7c011208d4 100644 --- a/examples/v2/deployment-gates/ListDeploymentGates.java +++ b/examples/v2/deployment-gates/ListDeploymentGates.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.listDeploymentGates", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); try { diff --git a/examples/v2/deployment-gates/ListDeploymentRuleEvaluations.java b/examples/v2/deployment-gates/ListDeploymentRuleEvaluations.java index 9c89c76cda2..d38be4884cd 100644 --- a/examples/v2/deployment-gates/ListDeploymentRuleEvaluations.java +++ b/examples/v2/deployment-gates/ListDeploymentRuleEvaluations.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.listDeploymentRuleEvaluations", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); try { diff --git a/examples/v2/deployment-gates/ListDeploymentRuleEvaluations_861936712.java b/examples/v2/deployment-gates/ListDeploymentRuleEvaluations_861936712.java index 50d1b3d535e..d720d907f2e 100644 --- a/examples/v2/deployment-gates/ListDeploymentRuleEvaluations_861936712.java +++ b/examples/v2/deployment-gates/ListDeploymentRuleEvaluations_861936712.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.listDeploymentRuleEvaluations", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); try { diff --git a/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation.java b/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation.java index 4321cf1dee5..70e5bc695d8 100644 --- a/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation.java +++ b/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation.java @@ -19,7 +19,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.triggerDeploymentGatesEvaluation", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); DeploymentGatesEvaluationRequest body = diff --git a/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation_691804290.java b/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation_691804290.java index 5a1033b2434..1db8eacd33a 100644 --- a/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation_691804290.java +++ b/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation_691804290.java @@ -13,7 +13,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.triggerDeploymentGatesEvaluation", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gate" in the system diff --git a/examples/v2/deployment-gates/UpdateDeploymentGate.java b/examples/v2/deployment-gates/UpdateDeploymentGate.java index 1762978a5f9..b7075c9ab81 100644 --- a/examples/v2/deployment-gates/UpdateDeploymentGate.java +++ b/examples/v2/deployment-gates/UpdateDeploymentGate.java @@ -13,7 +13,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.updateDeploymentGate", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gate" in the system diff --git a/examples/v2/deployment-gates/UpdateDeploymentRule.java b/examples/v2/deployment-gates/UpdateDeploymentRule.java index e99da25ea40..2b7b2764c94 100644 --- a/examples/v2/deployment-gates/UpdateDeploymentRule.java +++ b/examples/v2/deployment-gates/UpdateDeploymentRule.java @@ -15,7 +15,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.updateDeploymentRule", true); DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient); // there is a valid "deployment_gate" in the system diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java index cb2990d8cf6..5044cdd7ee4 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -1400,20 +1400,6 @@ public class ApiClient { put("v2.getAllDatasets", false); put("v2.getDataset", false); put("v2.updateDataset", false); - put("v2.createDeploymentGate", false); - put("v2.createDeploymentRule", false); - put("v2.deleteDeploymentGate", false); - put("v2.deleteDeploymentRule", false); - put("v2.getDeploymentGate", false); - put("v2.getDeploymentGateRules", false); - put("v2.getDeploymentGatesEvaluationResult", false); - put("v2.getDeploymentRule", false); - put("v2.listDeploymentGateEvaluations", false); - put("v2.listDeploymentGates", false); - put("v2.listDeploymentRuleEvaluations", false); - put("v2.triggerDeploymentGatesEvaluation", false); - put("v2.updateDeploymentGate", false); - put("v2.updateDeploymentRule", false); put("v2.getIssueImpact", false); put("v2.snoozeIssue", false); put("v2.getEUDMDevice", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/DeploymentGatesApi.java b/src/main/java/com/datadog/api/client/v2/api/DeploymentGatesApi.java index 24cb475509f..0315179c2e4 100644 --- a/src/main/java/com/datadog/api/client/v2/api/DeploymentGatesApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/DeploymentGatesApi.java @@ -117,13 +117,6 @@ public CompletableFuture createDeploymentGateAsync( */ public ApiResponse createDeploymentGateWithHttpInfo( CreateDeploymentGateParams body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "createDeploymentGate"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -166,16 +159,6 @@ public ApiResponse createDeploymentGateWithHttpInfo( */ public CompletableFuture> createDeploymentGateWithHttpInfoAsync(CreateDeploymentGateParams body) { - // Check if unstable operation is enabled - String operationId = "createDeploymentGate"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -272,13 +255,6 @@ public CompletableFuture createDeploymentRuleAsync( */ public ApiResponse createDeploymentRuleWithHttpInfo( String gateId, CreateDeploymentRuleParams body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "createDeploymentRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'gateId' is set @@ -330,16 +306,6 @@ public ApiResponse createDeploymentRuleWithHttpInfo( */ public CompletableFuture> createDeploymentRuleWithHttpInfoAsync(String gateId, CreateDeploymentRuleParams body) { - // Check if unstable operation is enabled - String operationId = "createDeploymentRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'gateId' is set @@ -441,13 +407,6 @@ public CompletableFuture deleteDeploymentGateAsync(String id) { * */ public ApiResponse deleteDeploymentGateWithHttpInfo(String id) throws ApiException { - // Check if unstable operation is enabled - String operationId = "deleteDeploymentGate"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -491,16 +450,6 @@ public ApiResponse deleteDeploymentGateWithHttpInfo(String id) throws ApiE * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> deleteDeploymentGateWithHttpInfoAsync(String id) { - // Check if unstable operation is enabled - String operationId = "deleteDeploymentGate"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -597,13 +546,6 @@ public CompletableFuture deleteDeploymentRuleAsync(String gateId, String i */ public ApiResponse deleteDeploymentRuleWithHttpInfo(String gateId, String id) throws ApiException { - // Check if unstable operation is enabled - String operationId = "deleteDeploymentRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'gateId' is set @@ -656,16 +598,6 @@ public ApiResponse deleteDeploymentRuleWithHttpInfo(String gateId, String */ public CompletableFuture> deleteDeploymentRuleWithHttpInfoAsync( String gateId, String id) { - // Check if unstable operation is enabled - String operationId = "deleteDeploymentRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'gateId' is set @@ -770,13 +702,6 @@ public CompletableFuture getDeploymentGateAsync(String i */ public ApiResponse getDeploymentGateWithHttpInfo(String id) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getDeploymentGate"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -821,16 +746,6 @@ public ApiResponse getDeploymentGateWithHttpInfo(String */ public CompletableFuture> getDeploymentGateWithHttpInfoAsync( String id) { - // Check if unstable operation is enabled - String operationId = "getDeploymentGate"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -924,13 +839,6 @@ public CompletableFuture getDeploymentGateRulesAsyn */ public ApiResponse getDeploymentGateRulesWithHttpInfo(String gateId) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getDeploymentGateRules"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'gateId' is set @@ -975,17 +883,6 @@ public ApiResponse getDeploymentGateRulesWithHttpIn */ public CompletableFuture> getDeploymentGateRulesWithHttpInfoAsync(String gateId) { - // Check if unstable operation is enabled - String operationId = "getDeploymentGateRules"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'gateId' is set @@ -1088,13 +985,6 @@ public DeploymentGatesEvaluationResultResponse getDeploymentGatesEvaluationResul */ public ApiResponse getDeploymentGatesEvaluationResultWithHttpInfo(UUID id) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getDeploymentGatesEvaluationResult"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -1140,17 +1030,6 @@ public DeploymentGatesEvaluationResultResponse getDeploymentGatesEvaluationResul */ public CompletableFuture> getDeploymentGatesEvaluationResultWithHttpInfoAsync(UUID id) { - // Check if unstable operation is enabled - String operationId = "getDeploymentGatesEvaluationResult"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -1253,13 +1132,6 @@ public CompletableFuture getDeploymentRuleAsync( */ public ApiResponse getDeploymentRuleWithHttpInfo(String gateId, String id) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getDeploymentRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'gateId' is set @@ -1312,16 +1184,6 @@ public ApiResponse getDeploymentRuleWithHttpInfo(String */ public CompletableFuture> getDeploymentRuleWithHttpInfoAsync( String gateId, String id) { - // Check if unstable operation is enabled - String operationId = "getDeploymentRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'gateId' is set @@ -1678,13 +1540,6 @@ public CompletableFuture listDeploymentGateEv */ public ApiResponse listDeploymentGateEvaluationsWithHttpInfo( ListDeploymentGateEvaluationsOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "listDeploymentGateEvaluations"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; OffsetDateTime filterFrom = parameters.filterFrom; OffsetDateTime filterTo = parameters.filterTo; @@ -1753,17 +1608,6 @@ public ApiResponse listDeploymentGateEvaluati public CompletableFuture> listDeploymentGateEvaluationsWithHttpInfoAsync( ListDeploymentGateEvaluationsOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "listDeploymentGateEvaluations"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; OffsetDateTime filterFrom = parameters.filterFrom; OffsetDateTime filterTo = parameters.filterTo; @@ -1986,13 +1830,6 @@ public CompletableFuture listDeploymentGatesAsync( */ public ApiResponse listDeploymentGatesWithHttpInfo( ListDeploymentGatesOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "listDeploymentGates"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; String filterService = parameters.filterService; String filterEnv = parameters.filterEnv; @@ -2044,17 +1881,6 @@ public ApiResponse listDeploymentGatesWithHttpInfo( */ public CompletableFuture> listDeploymentGatesWithHttpInfoAsync(ListDeploymentGatesOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "listDeploymentGates"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; String filterService = parameters.filterService; String filterEnv = parameters.filterEnv; @@ -2480,13 +2306,6 @@ public DeploymentGateRuleEvaluationsResponse listDeploymentRuleEvaluations( public ApiResponse listDeploymentRuleEvaluationsWithHttpInfo( ListDeploymentRuleEvaluationsOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "listDeploymentRuleEvaluations"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; OffsetDateTime filterFrom = parameters.filterFrom; OffsetDateTime filterTo = parameters.filterTo; @@ -2567,17 +2386,6 @@ public DeploymentGateRuleEvaluationsResponse listDeploymentRuleEvaluations( public CompletableFuture> listDeploymentRuleEvaluationsWithHttpInfoAsync( ListDeploymentRuleEvaluationsOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "listDeploymentRuleEvaluations"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; OffsetDateTime filterFrom = parameters.filterFrom; OffsetDateTime filterTo = parameters.filterTo; @@ -2715,13 +2523,6 @@ public CompletableFuture triggerDeploymentGat public ApiResponse triggerDeploymentGatesEvaluationWithHttpInfo(DeploymentGatesEvaluationRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "triggerDeploymentGatesEvaluation"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -2765,17 +2566,6 @@ public CompletableFuture triggerDeploymentGat */ public CompletableFuture> triggerDeploymentGatesEvaluationWithHttpInfoAsync(DeploymentGatesEvaluationRequest body) { - // Check if unstable operation is enabled - String operationId = "triggerDeploymentGatesEvaluation"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -2877,13 +2667,6 @@ public CompletableFuture updateDeploymentGateAsync( */ public ApiResponse updateDeploymentGateWithHttpInfo( String id, UpdateDeploymentGateParams body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "updateDeploymentGate"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'id' is set @@ -2935,16 +2718,6 @@ public ApiResponse updateDeploymentGateWithHttpInfo( */ public CompletableFuture> updateDeploymentGateWithHttpInfoAsync(String id, UpdateDeploymentGateParams body) { - // Check if unstable operation is enabled - String operationId = "updateDeploymentGate"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'id' is set @@ -3056,13 +2829,6 @@ public CompletableFuture updateDeploymentRuleAsync( */ public ApiResponse updateDeploymentRuleWithHttpInfo( String gateId, String id, UpdateDeploymentRuleParams body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "updateDeploymentRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'gateId' is set @@ -3123,16 +2889,6 @@ public ApiResponse updateDeploymentRuleWithHttpInfo( public CompletableFuture> updateDeploymentRuleWithHttpInfoAsync( String gateId, String id, UpdateDeploymentRuleParams body) { - // Check if unstable operation is enabled - String operationId = "updateDeploymentRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'gateId' is set diff --git a/src/test/resources/com/datadog/api/client/v2/api/deployment_gates.feature b/src/test/resources/com/datadog/api/client/v2/api/deployment_gates.feature index 90df4cad68d..0a359b082ca 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/deployment_gates.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/deployment_gates.feature @@ -12,24 +12,21 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Create deployment gate returns "Bad Request" response - Given operation "CreateDeploymentGate" enabled - And new "CreateDeploymentGate" request + Given new "CreateDeploymentGate" request And body with value {"data": {"attributes": {"env": "", "service":"test-service", "identifier": "my-gate"}, "type": "deployment_gate"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:ddoghq/ci-app-backend Scenario: Create deployment gate returns "Bad request." response - Given operation "CreateDeploymentGate" enabled - And new "CreateDeploymentGate" request + Given new "CreateDeploymentGate" request And body with value {"data": {"attributes": {"dry_run": false, "env": "production", "identifier": "pre", "service": "my-service"}, "type": "deployment_gate"}} When the request is sent Then the response status is 400 Bad request. @team:ddoghq/ci-app-backend Scenario: Create deployment gate returns "OK" response - Given operation "CreateDeploymentGate" enabled - And new "CreateDeploymentGate" request + Given new "CreateDeploymentGate" request And body with value {"data": {"attributes": {"dry_run": false, "env": "production", "identifier": "my-gate-1", "service": "my-service"}, "type": "deployment_gate"}} When the request is sent Then the response status is 200 OK @@ -37,7 +34,6 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Create deployment rule returns "Bad Request" response Given there is a valid "deployment_gate" in the system - And operation "CreateDeploymentRule" enabled And new "CreateDeploymentRule" request And request contains "gate_id" parameter from "deployment_gate.data.id" And body with value {"data": {"attributes": {"dry_run": false, "name":"test", "options": {"excluded_resources": []}, "type": "fdd"}, "type": "deployment_rule"}} @@ -46,8 +42,7 @@ Feature: Deployment Gates @generated @skip @team:ddoghq/ci-app-backend Scenario: Create deployment rule returns "Bad request." response - Given operation "CreateDeploymentRule" enabled - And new "CreateDeploymentRule" request + Given new "CreateDeploymentRule" request And request contains "gate_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"dry_run": false, "name": "My deployment rule", "options": {"allowed_resources": ["resource1", "resource2"], "duration": 3600, "excluded_resources": ["resource1", "resource2"]}, "type": "faulty_deployment_detection"}, "type": "deployment_rule"}} When the request is sent @@ -56,7 +51,6 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Create deployment rule returns "OK" response Given there is a valid "deployment_gate" in the system - And operation "CreateDeploymentRule" enabled And new "CreateDeploymentRule" request And request contains "gate_id" parameter from "deployment_gate.data.id" And body with value {"data": {"attributes": {"dry_run": false, "name": "My deployment rule", "options": {"excluded_resources": []}, "type": "faulty_deployment_detection"}, "type": "deployment_rule"}} @@ -67,7 +61,6 @@ Feature: Deployment Gates Scenario: Create monitor deployment rule with monitor IDs returns "OK" response Given there is a valid "deployment_gate" in the system And there is a valid "monitor" in the system - And operation "CreateDeploymentRule" enabled And new "CreateDeploymentRule" request And request contains "gate_id" parameter from "deployment_gate.data.id" And body with value {"data": {"attributes": {"dry_run": false, "name": "Specific monitor deployment rule", "options": {"monitor_ids": [{"id": "{{ monitor.id }}", "groups": []}]}, "type": "monitor"}, "type": "deployment_rule"}} @@ -77,7 +70,6 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Create monitor deployment rule with query and monitor IDs returns "Bad Request" response Given there is a valid "deployment_gate" in the system - And operation "CreateDeploymentRule" enabled And new "CreateDeploymentRule" request And request contains "gate_id" parameter from "deployment_gate.data.id" And body with value {"data": {"attributes": {"dry_run": false, "name": "Ambiguous monitor deployment rule", "options": {"query": "service:transaction-backend env:production", "monitor_ids": [{"id": "123456", "groups": []}]}, "type": "monitor"}, "type": "deployment_rule"}} @@ -87,7 +79,6 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Create monitor deployment rule with query returns "OK" response Given there is a valid "deployment_gate" in the system - And operation "CreateDeploymentRule" enabled And new "CreateDeploymentRule" request And request contains "gate_id" parameter from "deployment_gate.data.id" And body with value {"data": {"attributes": {"dry_run": false, "name": "Query monitor deployment rule", "options": {"query": "service:transaction-backend env:production"}, "type": "monitor"}, "type": "deployment_rule"}} @@ -96,24 +87,21 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Delete deployment gate returns "Bad Request" response - Given operation "DeleteDeploymentGate" enabled - And new "DeleteDeploymentGate" request + Given new "DeleteDeploymentGate" request And request contains "id" parameter with value "invalid-gate-id" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:ddoghq/ci-app-backend Scenario: Delete deployment gate returns "Bad request." response - Given operation "DeleteDeploymentGate" enabled - And new "DeleteDeploymentGate" request + Given new "DeleteDeploymentGate" request And request contains "id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad request. @team:ddoghq/ci-app-backend Scenario: Delete deployment gate returns "Deployment gate not found." response - Given operation "DeleteDeploymentGate" enabled - And new "DeleteDeploymentGate" request + Given new "DeleteDeploymentGate" request And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000" When the request is sent Then the response status is 404 Deployment gate not found. @@ -121,7 +109,6 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Delete deployment gate returns "No Content" response Given there is a valid "deployment_gate" in the system - And operation "DeleteDeploymentGate" enabled And new "DeleteDeploymentGate" request And request contains "id" parameter from "deployment_gate.data.id" When the request is sent @@ -129,8 +116,7 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Delete deployment rule returns "Bad Request" response - Given operation "DeleteDeploymentRule" enabled - And new "DeleteDeploymentRule" request + Given new "DeleteDeploymentRule" request And request contains "gate_id" parameter with value "invalid-gate-id" And request contains "id" parameter with value "invalid-rule-id" When the request is sent @@ -138,8 +124,7 @@ Feature: Deployment Gates @generated @skip @team:ddoghq/ci-app-backend Scenario: Delete deployment rule returns "Bad request." response - Given operation "DeleteDeploymentRule" enabled - And new "DeleteDeploymentRule" request + Given new "DeleteDeploymentRule" request And request contains "gate_id" parameter from "REPLACE.ME" And request contains "id" parameter from "REPLACE.ME" When the request is sent @@ -147,8 +132,7 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Delete deployment rule returns "Deployment gate not found." response - Given operation "DeleteDeploymentRule" enabled - And new "DeleteDeploymentRule" request + Given new "DeleteDeploymentRule" request And request contains "gate_id" parameter with value "00000000-0000-0000-0000-000000000000" And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000" When the request is sent @@ -158,7 +142,6 @@ Feature: Deployment Gates Scenario: Delete deployment rule returns "No Content" response Given there is a valid "deployment_gate" in the system And there is a valid "deployment_rule" in the system - And operation "DeleteDeploymentRule" enabled And new "DeleteDeploymentRule" request And request contains "gate_id" parameter from "deployment_gate.data.id" And request contains "id" parameter from "deployment_rule.data.id" @@ -167,40 +150,35 @@ Feature: Deployment Gates @generated @skip @team:ddoghq/ci-app-backend Scenario: Get a deployment gate evaluation result returns "Bad request." response - Given operation "GetDeploymentGatesEvaluationResult" enabled - And new "GetDeploymentGatesEvaluationResult" request + Given new "GetDeploymentGatesEvaluationResult" request And request contains "id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad request. @generated @skip @team:ddoghq/ci-app-backend Scenario: Get a deployment gate evaluation result returns "Deployment gate not found." response - Given operation "GetDeploymentGatesEvaluationResult" enabled - And new "GetDeploymentGatesEvaluationResult" request + Given new "GetDeploymentGatesEvaluationResult" request And request contains "id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Deployment gate not found. @generated @skip @team:ddoghq/ci-app-backend Scenario: Get a deployment gate evaluation result returns "OK" response - Given operation "GetDeploymentGatesEvaluationResult" enabled - And new "GetDeploymentGatesEvaluationResult" request + Given new "GetDeploymentGatesEvaluationResult" request And request contains "id" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK @team:ddoghq/ci-app-backend Scenario: Get a deployment gates evaluation result returns "Deployment gate not found." response - Given operation "GetDeploymentGatesEvaluationResult" enabled - And new "GetDeploymentGatesEvaluationResult" request + Given new "GetDeploymentGatesEvaluationResult" request And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000" When the request is sent Then the response status is 404 Deployment gate not found. @team:ddoghq/ci-app-backend Scenario: Get a deployment gates evaluation result returns "OK" response - Given operation "GetDeploymentGatesEvaluationResult" enabled - And there is a valid "deployment_gate" in the system + Given there is a valid "deployment_gate" in the system And there is a valid "deployment_rule" in the system And there is a valid "deployment_gates_evaluation" in the system And new "GetDeploymentGatesEvaluationResult" request @@ -211,38 +189,33 @@ Feature: Deployment Gates @generated @skip @team:ddoghq/ci-app-backend Scenario: Get all deployment gates returns "Bad request." response - Given operation "ListDeploymentGates" enabled - And new "ListDeploymentGates" request + Given new "ListDeploymentGates" request When the request is sent Then the response status is 400 Bad request. @generated @skip @team:ddoghq/ci-app-backend Scenario: Get all deployment gates returns "OK" response - Given operation "ListDeploymentGates" enabled - And new "ListDeploymentGates" request + Given new "ListDeploymentGates" request When the request is sent Then the response status is 200 OK @team:ddoghq/ci-app-backend Scenario: Get deployment gate returns "Bad Request" response - Given operation "GetDeploymentGate" enabled - And new "GetDeploymentGate" request + Given new "GetDeploymentGate" request And request contains "id" parameter with value "invalid-gate-id" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:ddoghq/ci-app-backend Scenario: Get deployment gate returns "Bad request." response - Given operation "GetDeploymentGate" enabled - And new "GetDeploymentGate" request + Given new "GetDeploymentGate" request And request contains "id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad request. @team:ddoghq/ci-app-backend Scenario: Get deployment gate returns "Deployment gate not found." response - Given operation "GetDeploymentGate" enabled - And new "GetDeploymentGate" request + Given new "GetDeploymentGate" request And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000" When the request is sent Then the response status is 404 Deployment gate not found. @@ -250,7 +223,6 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Get deployment gate returns "OK" response Given there is a valid "deployment_gate" in the system - And operation "GetDeploymentGate" enabled And new "GetDeploymentGate" request And request contains "id" parameter from "deployment_gate.data.id" When the request is sent @@ -260,7 +232,6 @@ Feature: Deployment Gates Scenario: Get deployment rule returns "Bad Request" response Given there is a valid "deployment_gate" in the system And there is a valid "deployment_rule" in the system - And operation "GetDeploymentRule" enabled And new "GetDeploymentRule" request And request contains "gate_id" parameter with value "invalid-gate-id" And request contains "id" parameter with value "invalid-rule-id" @@ -269,8 +240,7 @@ Feature: Deployment Gates @generated @skip @team:ddoghq/ci-app-backend Scenario: Get deployment rule returns "Bad request." response - Given operation "GetDeploymentRule" enabled - And new "GetDeploymentRule" request + Given new "GetDeploymentRule" request And request contains "gate_id" parameter from "REPLACE.ME" And request contains "id" parameter from "REPLACE.ME" When the request is sent @@ -278,8 +248,7 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Get deployment rule returns "Deployment rule not found." response - Given operation "GetDeploymentRule" enabled - And new "GetDeploymentRule" request + Given new "GetDeploymentRule" request And request contains "gate_id" parameter with value "00000000-0000-0000-0000-000000000000" And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000" When the request is sent @@ -289,7 +258,6 @@ Feature: Deployment Gates Scenario: Get deployment rule returns "OK" response Given there is a valid "deployment_gate" in the system And there is a valid "deployment_rule" in the system - And operation "GetDeploymentRule" enabled And new "GetDeploymentRule" request And request contains "gate_id" parameter from "deployment_gate.data.id" And request contains "id" parameter from "deployment_rule.data.id" @@ -298,8 +266,7 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Get rules for a deployment gate returns "Bad request." response - Given operation "GetDeploymentGateRules" enabled - And new "GetDeploymentGateRules" request + Given new "GetDeploymentGateRules" request And request contains "gate_id" parameter with value "not-a-valid-id" When the request is sent Then the response status is 400 Bad request. @@ -307,7 +274,6 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Get rules for a deployment gate returns "OK" response Given there is a valid "deployment_gate" in the system - And operation "GetDeploymentGateRules" enabled And new "GetDeploymentGateRules" request And request contains "gate_id" parameter from "deployment_gate.data.id" When the request is sent @@ -315,74 +281,64 @@ Feature: Deployment Gates @generated @skip @team:ddoghq/ci-app-backend Scenario: List deployment gate evaluations returns "Bad request." response - Given operation "ListDeploymentGateEvaluations" enabled - And new "ListDeploymentGateEvaluations" request + Given new "ListDeploymentGateEvaluations" request When the request is sent Then the response status is 400 Bad request. @generated @skip @team:ddoghq/ci-app-backend Scenario: List deployment gate evaluations returns "OK" response - Given operation "ListDeploymentGateEvaluations" enabled - And new "ListDeploymentGateEvaluations" request + Given new "ListDeploymentGateEvaluations" request When the request is sent Then the response status is 200 OK @generated @skip @team:ddoghq/ci-app-backend @with-pagination Scenario: List deployment gate evaluations returns "OK" response with pagination - Given operation "ListDeploymentGateEvaluations" enabled - And new "ListDeploymentGateEvaluations" request + Given new "ListDeploymentGateEvaluations" request When the request with pagination is sent Then the response status is 200 OK @generated @skip @team:ddoghq/ci-app-backend Scenario: List deployment gate rule evaluations returns "Bad request." response - Given operation "ListDeploymentRuleEvaluations" enabled - And new "ListDeploymentRuleEvaluations" request + Given new "ListDeploymentRuleEvaluations" request When the request is sent Then the response status is 400 Bad request. @generated @skip @team:ddoghq/ci-app-backend Scenario: List deployment gate rule evaluations returns "OK" response - Given operation "ListDeploymentRuleEvaluations" enabled - And new "ListDeploymentRuleEvaluations" request + Given new "ListDeploymentRuleEvaluations" request When the request is sent Then the response status is 200 OK @generated @skip @team:ddoghq/ci-app-backend @with-pagination Scenario: List deployment gate rule evaluations returns "OK" response with pagination - Given operation "ListDeploymentRuleEvaluations" enabled - And new "ListDeploymentRuleEvaluations" request + Given new "ListDeploymentRuleEvaluations" request When the request with pagination is sent Then the response status is 200 OK @generated @skip @team:ddoghq/ci-app-backend Scenario: Trigger a deployment gate evaluation returns "Accepted" response - Given operation "TriggerDeploymentGatesEvaluation" enabled - And new "TriggerDeploymentGatesEvaluation" request + Given new "TriggerDeploymentGatesEvaluation" request And body with value {"data": {"attributes": {"configuration": {"dry_run": false, "rules": [{"dry_run": false, "name": "error rate monitors", "options": {"duration": 300, "query": "service:transaction-backend env:production"}, "type": "monitor"}]}, "env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}} When the request is sent Then the response status is 202 Accepted @generated @skip @team:ddoghq/ci-app-backend Scenario: Trigger a deployment gate evaluation returns "Bad request." response - Given operation "TriggerDeploymentGatesEvaluation" enabled - And new "TriggerDeploymentGatesEvaluation" request + Given new "TriggerDeploymentGatesEvaluation" request And body with value {"data": {"attributes": {"configuration": {"dry_run": false, "rules": [{"dry_run": false, "name": "error rate monitors", "options": {"duration": 300, "query": "service:transaction-backend env:production"}, "type": "monitor"}]}, "env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}} When the request is sent Then the response status is 400 Bad request. @generated @skip @team:ddoghq/ci-app-backend Scenario: Trigger a deployment gate evaluation returns "Deployment gate not found." response - Given operation "TriggerDeploymentGatesEvaluation" enabled - And new "TriggerDeploymentGatesEvaluation" request + Given new "TriggerDeploymentGatesEvaluation" request And body with value {"data": {"attributes": {"configuration": {"dry_run": false, "rules": [{"dry_run": false, "name": "error rate monitors", "options": {"duration": 300, "query": "service:transaction-backend env:production"}, "type": "monitor"}]}, "env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}} When the request is sent Then the response status is 404 Deployment gate not found. @team:ddoghq/ci-app-backend Scenario: Trigger a deployment gates evaluation returns "Accepted" response - Given operation "TriggerDeploymentGatesEvaluation" enabled - And there is a valid "deployment_gate" in the system + Given there is a valid "deployment_gate" in the system And there is a valid "deployment_rule" in the system And new "TriggerDeploymentGatesEvaluation" request And body with value {"data": {"attributes": {"env": "production", "identifier": "{{ deployment_gate.data.attributes.identifier }}", "service": "my-service"}, "type": "deployment_gates_evaluation_request"}} @@ -392,24 +348,21 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Trigger a deployment gates evaluation returns "Bad request." response - Given operation "TriggerDeploymentGatesEvaluation" enabled - And new "TriggerDeploymentGatesEvaluation" request + Given new "TriggerDeploymentGatesEvaluation" request And body with value {"data": {"attributes": {"env": "", "service": "my-service"}, "type": "deployment_gates_evaluation_request"}} When the request is sent Then the response status is 400 Bad request. @team:ddoghq/ci-app-backend Scenario: Trigger a deployment gates evaluation returns "Deployment gate not found." response - Given operation "TriggerDeploymentGatesEvaluation" enabled - And new "TriggerDeploymentGatesEvaluation" request + Given new "TriggerDeploymentGatesEvaluation" request And body with value {"data": {"attributes": {"env": "staging", "service": "non-existent-service-xyz"}, "type": "deployment_gates_evaluation_request"}} When the request is sent Then the response status is 404 Deployment gate not found. @team:ddoghq/ci-app-backend Scenario: Update deployment gate returns "Bad Request" response - Given operation "UpdateDeploymentGate" enabled - And new "UpdateDeploymentGate" request + Given new "UpdateDeploymentGate" request And request contains "id" parameter with value "invalid-gate-id" And body with value {"data": {"attributes": {"dry_run":true}, "id": "invalid-gate-id", "type": "deployment_gate"}} When the request is sent @@ -417,8 +370,7 @@ Feature: Deployment Gates @generated @skip @team:ddoghq/ci-app-backend Scenario: Update deployment gate returns "Bad request." response - Given operation "UpdateDeploymentGate" enabled - And new "UpdateDeploymentGate" request + Given new "UpdateDeploymentGate" request And request contains "id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"dry_run": false}, "id": "12345678-1234-1234-1234-123456789012", "type": "deployment_gate"}} When the request is sent @@ -426,8 +378,7 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Update deployment gate returns "Deployment gate not found." response - Given operation "UpdateDeploymentGate" enabled - And new "UpdateDeploymentGate" request + Given new "UpdateDeploymentGate" request And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000" And body with value {"data": {"attributes": {"dry_run": false}, "id": "12345678-1234-1234-1234-123456789012", "type": "deployment_gate"}} When the request is sent @@ -436,7 +387,6 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Update deployment gate returns "OK" response Given there is a valid "deployment_gate" in the system - And operation "UpdateDeploymentGate" enabled And new "UpdateDeploymentGate" request And request contains "id" parameter from "deployment_gate.data.id" And body with value {"data": {"attributes": {"dry_run": false}, "id": "12345678-1234-1234-1234-123456789012", "type": "deployment_gate"}} @@ -447,7 +397,6 @@ Feature: Deployment Gates Scenario: Update deployment rule returns "Bad Request" response Given there is a valid "deployment_gate" in the system And there is a valid "deployment_rule" in the system - And operation "UpdateDeploymentRule" enabled And new "UpdateDeploymentRule" request And request contains "gate_id" parameter with value "invalid-gate-id" And request contains "id" parameter with value "invalid-rule-id" @@ -457,8 +406,7 @@ Feature: Deployment Gates @generated @skip @team:ddoghq/ci-app-backend Scenario: Update deployment rule returns "Bad request." response - Given operation "UpdateDeploymentRule" enabled - And new "UpdateDeploymentRule" request + Given new "UpdateDeploymentRule" request And request contains "gate_id" parameter from "REPLACE.ME" And request contains "id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"dry_run": false, "name": "Updated deployment rule", "options": {"allowed_resources": ["resource1", "resource2"], "duration": 3600, "excluded_resources": ["resource1", "resource2"]}}, "type": "deployment_rule"}} @@ -467,8 +415,7 @@ Feature: Deployment Gates @team:ddoghq/ci-app-backend Scenario: Update deployment rule returns "Deployment rule not found." response - Given operation "UpdateDeploymentRule" enabled - And new "UpdateDeploymentRule" request + Given new "UpdateDeploymentRule" request And request contains "gate_id" parameter with value "00000000-0000-0000-0000-000000000000" And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000" And body with value {"data": {"attributes": {"dry_run": false, "name": "Updated deployment rule", "options": {"duration": 3600, "excluded_resources": ["resource1", "resource2"]}}, "type": "deployment_rule"}} @@ -479,7 +426,6 @@ Feature: Deployment Gates Scenario: Update deployment rule returns "OK" response Given there is a valid "deployment_gate" in the system And there is a valid "deployment_rule" in the system - And operation "UpdateDeploymentRule" enabled And new "UpdateDeploymentRule" request And request contains "gate_id" parameter from "deployment_gate.data.id" And request contains "id" parameter from "deployment_rule.data.id"