Skip to content

Commit d37973a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 59a910a of spec repo
1 parent e33ae0f commit d37973a

File tree

102 files changed

+4752
-380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+4752
-380
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1169 additions & 235 deletions
Large diffs are not rendered by default.

features/scenarios_model_mapping.rb

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2624,6 +2624,26 @@
26242624
"tags" => "String",
26252625
"limit" => "Integer",
26262626
},
2627+
"v2.ListPipelines" => {
2628+
"page_size" => "Integer",
2629+
"page_number" => "Integer",
2630+
},
2631+
"v2.CreatePipeline" => {
2632+
"body" => "ObservabilityPipelineSpec",
2633+
},
2634+
"v2.ValidatePipeline" => {
2635+
"body" => "ObservabilityPipelineSpec",
2636+
},
2637+
"v2.DeletePipeline" => {
2638+
"pipeline_id" => "String",
2639+
},
2640+
"v2.GetPipeline" => {
2641+
"pipeline_id" => "String",
2642+
},
2643+
"v2.UpdatePipeline" => {
2644+
"pipeline_id" => "String",
2645+
"body" => "ObservabilityPipeline",
2646+
},
26272647
"v2.CreateOnCallEscalationPolicy" => {
26282648
"include" => "String",
26292649
"body" => "EscalationPolicyCreateRequest",
@@ -2965,26 +2985,6 @@
29652985
"agent_rule_id" => "String",
29662986
"body" => "CloudWorkloadSecurityAgentRuleUpdateRequest",
29672987
},
2968-
"v2.ListPipelines" => {
2969-
"page_size" => "Integer",
2970-
"page_number" => "Integer",
2971-
},
2972-
"v2.CreatePipeline" => {
2973-
"body" => "ObservabilityPipelineSpec",
2974-
},
2975-
"v2.ValidatePipeline" => {
2976-
"body" => "ObservabilityPipelineSpec",
2977-
},
2978-
"v2.DeletePipeline" => {
2979-
"pipeline_id" => "String",
2980-
},
2981-
"v2.GetPipeline" => {
2982-
"pipeline_id" => "String",
2983-
},
2984-
"v2.UpdatePipeline" => {
2985-
"pipeline_id" => "String",
2986-
"body" => "ObservabilityPipeline",
2987-
},
29882988
"v2.DeleteRestrictionPolicy" => {
29892989
"resource_id" => "String",
29902990
},

features/v2/given.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,18 @@
727727
"tag": "Monitors",
728728
"operationId": "CreateMonitorUserTemplate"
729729
},
730+
{
731+
"parameters": [
732+
{
733+
"name": "body",
734+
"value": "{\n \"data\":{\n \"attributes\":{\n \"config\":{\n \"destinations\":[\n {\n \"id\":\"datadog-logs-destination\",\n \"inputs\":[\n \"processor-group-0\"\n ],\n \"type\":\"datadog_logs\"\n }\n ],\n \"processors\":[\n {\n \"id\":\"processor-group-0\",\n \"include\":\"service:my-service\",\n \"display_name\": \"My Processor Group\",\n \"inputs\":[\n \"datadog-agent-source\"\n ],\n \"enabled\": true,\n \"processors\": [\n {\n \"id\": \"filter-processor\",\n \"type\": \"filter\",\n \"include\": \"status:error\",\n \"display_name\": \"My Filter Processor\",\n \"enabled\": true\n }\n ]\n }\n ],\n \"sources\":[\n {\n \"id\":\"datadog-agent-source\",\n \"type\":\"datadog_agent\"\n }\n ]\n },\n \"name\":\"Main Observability Pipeline\"\n },\n \"type\":\"pipelines\"\n }\n}"
735+
}
736+
],
737+
"step": "there is a valid \"pipeline\" in the system",
738+
"key": "pipeline",
739+
"tag": "Observability Pipelines",
740+
"operationId": "CreatePipeline"
741+
},
730742
{
731743
"parameters": [
732744
{
@@ -879,18 +891,6 @@
879891
"tag": "CSM Threats",
880892
"operationId": "CreateCSMThreatsAgentPolicy"
881893
},
882-
{
883-
"parameters": [
884-
{
885-
"name": "body",
886-
"value": "{\n \"data\":{\n \"attributes\":{\n \"config\":{\n \"destinations\":[\n {\n \"id\":\"datadog-logs-destination\",\n \"inputs\":[\n \"processor-group-0\"\n ],\n \"type\":\"datadog_logs\"\n }\n ],\n \"processors\":[\n {\n \"id\":\"processor-group-0\",\n \"include\":\"service:my-service\",\n \"display_name\": \"My Processor Group\",\n \"inputs\":[\n \"datadog-agent-source\"\n ],\n \"enabled\": true,\n \"processors\": [\n {\n \"id\": \"filter-processor\",\n \"type\": \"filter\",\n \"include\": \"status:error\",\n \"display_name\": \"My Filter Processor\",\n \"enabled\": true\n }\n ]\n }\n ],\n \"sources\":[\n {\n \"id\":\"datadog-agent-source\",\n \"type\":\"datadog_agent\"\n }\n ]\n },\n \"name\":\"Main Observability Pipeline\"\n },\n \"type\":\"pipelines\"\n }\n}"
887-
}
888-
],
889-
"step": "there is a valid \"pipeline\" in the system",
890-
"key": "pipeline",
891-
"tag": "Observability Pipelines",
892-
"operationId": "CreatePipeline"
893-
},
894894
{
895895
"parameters": [
896896
{

features/v2/observability_pipelines.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Feature: Observability Pipelines
2020
Scenario: Create a new pipeline returns "Conflict" response
2121
Given operation "CreatePipeline" enabled
2222
And new "CreatePipeline" request
23-
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}, {"enabled": true, "field": "message", "id": "json-processor", "include": "*", "type": "parse_json"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
23+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "pipeline_type": "logs", "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}, {"enabled": true, "field": "message", "id": "json-processor", "include": "*", "type": "parse_json"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
2424
When the request is sent
2525
Then the response status is 409 Conflict
2626

@@ -115,7 +115,7 @@ Feature: Observability Pipelines
115115
Given operation "UpdatePipeline" enabled
116116
And new "UpdatePipeline" request
117117
And request contains "pipeline_id" parameter from "REPLACE.ME"
118-
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}, {"enabled": true, "field": "message", "id": "json-processor", "include": "*", "type": "parse_json"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
118+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "pipeline_type": "logs", "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}, {"enabled": true, "field": "message", "id": "json-processor", "include": "*", "type": "parse_json"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
119119
When the request is sent
120120
Then the response status is 409 Conflict
121121

features/v2/undo.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2838,6 +2838,31 @@
28382838
"type": "safe"
28392839
}
28402840
},
2841+
"ListPipelines": {
2842+
"tag": "Observability Pipelines",
2843+
"undo": {
2844+
"type": "safe"
2845+
}
2846+
},
2847+
"CreatePipeline": {
2848+
"tag": "Observability Pipelines",
2849+
"undo": {
2850+
"operationId": "DeletePipeline",
2851+
"parameters": [
2852+
{
2853+
"name": "pipeline_id",
2854+
"source": "data.id"
2855+
}
2856+
],
2857+
"type": "unsafe"
2858+
}
2859+
},
2860+
"ValidatePipeline": {
2861+
"tag": "Observability Pipelines",
2862+
"undo": {
2863+
"type": "safe"
2864+
}
2865+
},
28412866
"CreateOnCallEscalationPolicy": {
28422867
"tag": "On-Call",
28432868
"undo": {
@@ -3443,31 +3468,6 @@
34433468
"type": "idempotent"
34443469
}
34453470
},
3446-
"ListPipelines": {
3447-
"tag": "Observability Pipelines",
3448-
"undo": {
3449-
"type": "safe"
3450-
}
3451-
},
3452-
"CreatePipeline": {
3453-
"tag": "Observability Pipelines",
3454-
"undo": {
3455-
"operationId": "DeletePipeline",
3456-
"parameters": [
3457-
{
3458-
"name": "pipeline_id",
3459-
"source": "data.id"
3460-
}
3461-
],
3462-
"type": "unsafe"
3463-
}
3464-
},
3465-
"ValidatePipeline": {
3466-
"tag": "Observability Pipelines",
3467-
"undo": {
3468-
"type": "safe"
3469-
}
3470-
},
34713471
"DeletePipeline": {
34723472
"tag": "Observability Pipelines",
34733473
"undo": {

lib/datadog_api_client/configuration.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,12 @@ def initialize
301301
"v2.update_monitor_user_template": false,
302302
"v2.validate_existing_monitor_user_template": false,
303303
"v2.validate_monitor_user_template": false,
304+
"v2.create_pipeline": false,
305+
"v2.delete_pipeline": false,
306+
"v2.get_pipeline": false,
307+
"v2.list_pipelines": false,
308+
"v2.update_pipeline": false,
309+
"v2.validate_pipeline": false,
304310
"v2.list_role_templates": false,
305311
"v2.create_connection": false,
306312
"v2.delete_connection": false,
@@ -312,12 +318,6 @@ def initialize
312318
"v2.query_event_filtered_users": false,
313319
"v2.query_users": false,
314320
"v2.update_connection": false,
315-
"v2.create_pipeline": false,
316-
"v2.delete_pipeline": false,
317-
"v2.get_pipeline": false,
318-
"v2.list_pipelines": false,
319-
"v2.update_pipeline": false,
320-
"v2.validate_pipeline": false,
321321
"v2.create_scorecard_outcomes_batch": false,
322322
"v2.create_scorecard_rule": false,
323323
"v2.delete_scorecard_rule": false,

0 commit comments

Comments
 (0)