From 03e34bb7b7e9d209de4439c2ea77a3a798f5d5d0 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 11 Mar 2026 17:47:16 +0000 Subject: [PATCH] Regenerate client from commit 594c84c of spec repo --- .generator/schemas/v2/openapi.yaml | 15 +++++- ...elemetry-source-returns-OK-response.frozen | 1 - ...entelemetry-source-returns-OK-response.yml | 27 ---------- .../ValidatePipeline_884022323.rb | 50 ------------------- features/v2/observability_pipelines.feature | 8 --- ...rvability_pipeline_opentelemetry_source.rb | 2 +- 6 files changed, 14 insertions(+), 89 deletions(-) delete mode 100644 cassettes/features/v2/observability_pipelines/Validate-a-metrics-pipeline-with-opentelemetry-source-returns-OK-response.frozen delete mode 100644 cassettes/features/v2/observability_pipelines/Validate-a-metrics-pipeline-with-opentelemetry-source-returns-OK-response.yml delete mode 100644 examples/v2/observability-pipelines/ValidatePipeline_884022323.rb diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3bec741a1267..45c93e4ab7a8 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -5548,6 +5548,7 @@ components: example: - staging items: + description: An environment where the asset is deployed. example: staging type: string type: array @@ -5564,6 +5565,7 @@ components: example: - compute items: + description: A team that owns the asset. example: compute type: string type: array @@ -36231,6 +36233,7 @@ components: description: Related library or package names (such as child packages or affected binary paths). items: + description: A related library or package name affected by the vulnerability. example: linux-tools-common type: string type: array @@ -44821,7 +44824,7 @@ components: Protocol (OTLP) over gRPC and HTTP. - **Supported pipeline types:** logs, metrics' + **Supported pipeline types:** logs' properties: grpc_address_key: description: Environment variable name containing the gRPC server address @@ -44851,7 +44854,6 @@ components: type: object x-pipeline-types: - logs - - metrics ObservabilityPipelineOpentelemetrySourceType: default: opentelemetry description: The source type. The value should always be `opentelemetry`. @@ -55465,6 +55467,7 @@ components: dependsOn: description: The components that are dependencies of the ref component. items: + description: A package URL (purl) identifying a dependency of the component. example: pkg:golang/google.golang.org/grpc@1.68.1 type: string required: @@ -56079,6 +56082,8 @@ components: example: - production items: + description: An origin identifier for the last successful scan of the + asset. example: production type: string type: array @@ -71815,6 +71820,7 @@ components: example: - CVE-2023-0615 items: + description: A CVE identifier associated with the vulnerability. example: CVE-2023-0615 type: string type: array @@ -71865,6 +71871,8 @@ components: example: - agentless-scanner items: + description: The detection origin of the vulnerability (for example, the + scanner type). example: agentless-scanner type: string type: array @@ -71877,6 +71885,8 @@ components: description: Vulnerability `repo_digest` list (when the vulnerability is related to `Image` asset). items: + description: A container image repository digest identifying the affected + image. example: sha256:0ae7da091191787229d321e3638e39c319a97d6e20f927d465b519d699215bf7 type: string type: array @@ -72018,6 +72028,7 @@ components: example: - NIST items: + description: An exploit source reporting this vulnerability. example: NIST type: string type: array diff --git a/cassettes/features/v2/observability_pipelines/Validate-a-metrics-pipeline-with-opentelemetry-source-returns-OK-response.frozen b/cassettes/features/v2/observability_pipelines/Validate-a-metrics-pipeline-with-opentelemetry-source-returns-OK-response.frozen deleted file mode 100644 index 9218d08a363b..000000000000 --- a/cassettes/features/v2/observability_pipelines/Validate-a-metrics-pipeline-with-opentelemetry-source-returns-OK-response.frozen +++ /dev/null @@ -1 +0,0 @@ -2026-03-10T16:11:47.487Z \ No newline at end of file diff --git a/cassettes/features/v2/observability_pipelines/Validate-a-metrics-pipeline-with-opentelemetry-source-returns-OK-response.yml b/cassettes/features/v2/observability_pipelines/Validate-a-metrics-pipeline-with-opentelemetry-source-returns-OK-response.yml deleted file mode 100644 index 1c8db742f78a..000000000000 --- a/cassettes/features/v2/observability_pipelines/Validate-a-metrics-pipeline-with-opentelemetry-source-returns-OK-response.yml +++ /dev/null @@ -1,27 +0,0 @@ -http_interactions: -- recorded_at: Tue, 10 Mar 2026 16:11:47 GMT - request: - body: - encoding: UTF-8 - string: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-metrics-destination","inputs":["my-processor-group"],"type":"datadog_metrics"}],"pipeline_type":"metrics","processor_groups":[{"enabled":true,"id":"my-processor-group","include":"*","inputs":["opentelemetry-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"env:production","type":"filter"}]}],"sources":[{"id":"opentelemetry-source","type":"opentelemetry"}]},"name":"Metrics - OTel Pipeline"},"type":"pipelines"}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - method: POST - uri: https://api.datadoghq.com/api/v2/obs-pipelines/pipelines/validate - response: - body: - encoding: UTF-8 - string: '{"errors":[]} - - ' - headers: - Content-Type: - - application/vnd.api+json - status: - code: 200 - message: OK -recorded_with: VCR 6.0.0 diff --git a/examples/v2/observability-pipelines/ValidatePipeline_884022323.rb b/examples/v2/observability-pipelines/ValidatePipeline_884022323.rb deleted file mode 100644 index 0a6c3d0e78a5..000000000000 --- a/examples/v2/observability-pipelines/ValidatePipeline_884022323.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Validate a metrics pipeline with opentelemetry source returns "OK" response - -require "datadog_api_client" -api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new - -body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ - data: DatadogAPIClient::V2::ObservabilityPipelineSpecData.new({ - attributes: DatadogAPIClient::V2::ObservabilityPipelineDataAttributes.new({ - config: DatadogAPIClient::V2::ObservabilityPipelineConfig.new({ - pipeline_type: DatadogAPIClient::V2::ObservabilityPipelineConfigPipelineType::METRICS, - destinations: [ - DatadogAPIClient::V2::ObservabilityPipelineDatadogMetricsDestination.new({ - id: "datadog-metrics-destination", - inputs: [ - "my-processor-group", - ], - type: DatadogAPIClient::V2::ObservabilityPipelineDatadogMetricsDestinationType::DATADOG_METRICS, - }), - ], - processor_groups: [ - DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({ - enabled: true, - id: "my-processor-group", - include: "*", - inputs: [ - "opentelemetry-source", - ], - processors: [ - DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({ - enabled: true, - id: "filter-processor", - include: "env:production", - type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER, - }), - ], - }), - ], - sources: [ - DatadogAPIClient::V2::ObservabilityPipelineOpentelemetrySource.new({ - id: "opentelemetry-source", - type: DatadogAPIClient::V2::ObservabilityPipelineOpentelemetrySourceType::OPENTELEMETRY, - }), - ], - }), - name: "Metrics OTel Pipeline", - }), - type: "pipelines", - }), -}) -p api_instance.validate_pipeline(body) diff --git a/features/v2/observability_pipelines.feature b/features/v2/observability_pipelines.feature index e272303955a0..bf90c06c1399 100644 --- a/features/v2/observability_pipelines.feature +++ b/features/v2/observability_pipelines.feature @@ -149,14 +149,6 @@ Feature: Observability Pipelines And the response "data.attributes.config.destinations" has length 1 And the response "data.attributes.config.destinations[0].id" is equal to "updated-datadog-logs-destination-id" - @team:DataDog/observability-pipelines - Scenario: Validate a metrics pipeline with opentelemetry source returns "OK" response - Given new "ValidatePipeline" request - And body with value {"data": {"attributes": {"config": {"pipeline_type": "metrics", "destinations": [{"id": "datadog-metrics-destination", "inputs": ["my-processor-group"], "type": "datadog_metrics"}], "processor_groups": [{"enabled": true, "id": "my-processor-group", "include": "*", "inputs": ["opentelemetry-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "env:production", "type": "filter"}]}], "sources": [{"id": "opentelemetry-source", "type": "opentelemetry"}]}, "name": "Metrics OTel Pipeline"}, "type": "pipelines"}} - When the request is sent - Then the response status is 200 OK - And the response "errors" has length 0 - @team:DataDog/observability-pipelines Scenario: Validate an observability pipeline returns "Bad Request" response Given new "ValidatePipeline" request diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source.rb b/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source.rb index 6df608ca1081..8404b77f9341 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The `opentelemetry` source receives telemetry data using the OpenTelemetry Protocol (OTLP) over gRPC and HTTP. # - # **Supported pipeline types:** logs, metrics + # **Supported pipeline types:** logs class ObservabilityPipelineOpentelemetrySource include BaseGenericModel