diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index a40d500d9ef..9ee2d06488a 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -36328,6 +36328,12 @@ paths: schema: $ref: "#/components/schemas/APIErrorResponse" description: Forbidden + "409": + content: + application/json: + schema: + $ref: "#/components/schemas/LogsAPIErrorResponse" + description: Conflict "422": content: application/json: @@ -36429,6 +36435,12 @@ paths: schema: $ref: "#/components/schemas/APIErrorResponse" description: Forbidden + "409": + content: + application/json: + schema: + $ref: "#/components/schemas/LogsAPIErrorResponse" + description: Conflict "429": $ref: "#/components/responses/TooManyRequestsResponse" summary: Create a pipeline @@ -36467,6 +36479,12 @@ paths: schema: $ref: "#/components/schemas/APIErrorResponse" description: Forbidden + "409": + content: + application/json: + schema: + $ref: "#/components/schemas/LogsAPIErrorResponse" + description: Conflict "429": $ref: "#/components/responses/TooManyRequestsResponse" summary: Delete a pipeline @@ -36584,6 +36602,12 @@ paths: schema: $ref: "#/components/schemas/APIErrorResponse" description: Forbidden + "409": + content: + application/json: + schema: + $ref: "#/components/schemas/LogsAPIErrorResponse" + description: Conflict "429": $ref: "#/components/responses/TooManyRequestsResponse" summary: Update a pipeline diff --git a/src/main/java/com/datadog/api/client/v1/api/LogsPipelinesApi.java b/src/main/java/com/datadog/api/client/v1/api/LogsPipelinesApi.java index a31927533f2..36c89b49dc2 100644 --- a/src/main/java/com/datadog/api/client/v1/api/LogsPipelinesApi.java +++ b/src/main/java/com/datadog/api/client/v1/api/LogsPipelinesApi.java @@ -87,6 +87,7 @@ public CompletableFuture createLogsPipelineAsync(LogsPipeline body * 200 OK - * 400 Bad Request - * 403 Forbidden - + * 409 Conflict - * 429 Too many requests - * */ @@ -217,6 +218,7 @@ public CompletableFuture deleteLogsPipelineAsync(String pipelineId) { * 200 OK - * 400 Bad Request - * 403 Forbidden - + * 409 Conflict - * 429 Too many requests - * */ @@ -717,6 +719,7 @@ public CompletableFuture updateLogsPipelineAsync( * 200 OK - * 400 Bad Request - * 403 Forbidden - + * 409 Conflict - * 429 Too many requests - * */ @@ -876,6 +879,7 @@ public CompletableFuture updateLogsPipelineOrderAsync( * 200 OK - * 400 Bad Request - * 403 Forbidden - + * 409 Conflict - * 422 Unprocessable Entity - * 429 Too many requests - * diff --git a/src/test/resources/com/datadog/api/client/v1/api/logs_pipelines.feature b/src/test/resources/com/datadog/api/client/v1/api/logs_pipelines.feature index 5474d748d94..86d53250efd 100644 --- a/src/test/resources/com/datadog/api/client/v1/api/logs_pipelines.feature +++ b/src/test/resources/com/datadog/api/client/v1/api/logs_pipelines.feature @@ -28,6 +28,13 @@ Feature: Logs Pipelines When the request is sent Then the response status is 400 Bad Request + @generated @skip @team:ddoghq/logs-onboarding + Scenario: Create a pipeline returns "Conflict" response + Given new "CreateLogsPipeline" request + And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []} + When the request is sent + Then the response status is 409 Conflict + @generated @skip @team:ddoghq/logs-onboarding Scenario: Create a pipeline returns "OK" response Given new "CreateLogsPipeline" request @@ -161,6 +168,13 @@ Feature: Logs Pipelines When the request is sent Then the response status is 400 Bad Request + @generated @skip @team:ddoghq/logs-onboarding + Scenario: Delete a pipeline returns "Conflict" response + Given new "DeleteLogsPipeline" request + And request contains "pipeline_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 409 Conflict + @generated @skip @team:ddoghq/logs-onboarding Scenario: Delete a pipeline returns "OK" response Given new "DeleteLogsPipeline" request @@ -202,6 +216,14 @@ Feature: Logs Pipelines When the request is sent Then the response status is 400 Bad Request + @generated @skip @team:ddoghq/logs-onboarding + Scenario: Update a pipeline returns "Conflict" response + Given new "UpdateLogsPipeline" request + And request contains "pipeline_id" parameter from "REPLACE.ME" + And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []} + When the request is sent + Then the response status is 409 Conflict + @generated @skip @team:ddoghq/logs-onboarding Scenario: Update a pipeline returns "OK" response Given new "UpdateLogsPipeline" request @@ -217,6 +239,13 @@ Feature: Logs Pipelines When the request is sent Then the response status is 400 Bad Request + @generated @skip @team:ddoghq/logs-onboarding + Scenario: Update pipeline order returns "Conflict" response + Given new "UpdateLogsPipelineOrder" request + And body with value {"pipeline_ids": ["tags", "org_ids", "products"]} + When the request is sent + Then the response status is 409 Conflict + @generated @skip @team:ddoghq/logs-onboarding Scenario: Update pipeline order returns "OK" response Given new "UpdateLogsPipelineOrder" request