From 592895d8dc6002ac5469cee258455a5b0a1b5ed9 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 28 May 2026 09:04:26 +0000 Subject: [PATCH] Regenerate client from commit 94272a1 of spec repo --- .generator/schemas/v2/openapi.yaml | 79 +-------- docs/datadog_api_client.v2.model.rst | 21 --- .../v2/api/security_monitoring_api.py | 2 +- .../v2/model/observability_pipeline_config.py | 4 - ...bility_pipeline_config_destination_item.py | 10 -- ...pipeline_splunk_hec_metrics_destination.py | 163 ------------------ ...unk_hec_metrics_destination_compression.py | 42 ----- ...ine_splunk_hec_metrics_destination_type.py | 37 ---- src/datadog_api_client/v2/models/__init__.py | 12 -- 9 files changed, 3 insertions(+), 367 deletions(-) delete mode 100644 src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination.py delete mode 100644 src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_compression.py delete mode 100644 src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_type.py diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4afc8ca399..94f455378b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -55624,7 +55624,6 @@ components: - $ref: "#/components/schemas/ObservabilityPipelineSyslogNgDestination" - $ref: "#/components/schemas/ObservabilityPipelineDatabricksZerobusDestination" - $ref: "#/components/schemas/ObservabilityPipelineDatadogMetricsDestination" - - $ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestination" ObservabilityPipelineConfigPipelineType: default: logs description: The type of data being ingested. Defaults to `logs` if not specified. @@ -59746,81 +59745,6 @@ components: type: string x-enum-varnames: - SPLUNK_HEC - ObservabilityPipelineSplunkHecMetricsDestination: - description: |- - The `splunk_hec_metrics` destination forwards metrics to Splunk using the HTTP Event Collector (HEC). - - **Supported pipeline types:** metrics - properties: - buffer: - $ref: "#/components/schemas/ObservabilityPipelineBufferOptions" - compression: - $ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationCompression" - default_namespace: - description: Optional default namespace for metrics sent to Splunk HEC. - example: "custom_namespace" - type: string - endpoint_url_key: - description: Name of the environment variable or secret that holds the Splunk HEC endpoint URL. - example: SPLUNK_HEC_ENDPOINT_URL - type: string - id: - description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components). - example: splunk-hec-metrics-destination - type: string - index: - description: Optional name of the Splunk index where metrics are written. - example: "metrics" - type: string - inputs: - description: A list of component IDs whose output is used as the `input` for this component. - example: ["metrics-filter-processor"] - items: - description: The ID of a component whose output is used as input for this destination. - type: string - type: array - source: - description: The Splunk source field value for metric events. - example: "observability_pipelines" - type: string - sourcetype: - description: The Splunk sourcetype to assign to metric events. - example: "custom_sourcetype" - type: string - tls: - $ref: "#/components/schemas/ObservabilityPipelineTls" - token_key: - description: Name of the environment variable or secret that holds the Splunk HEC token. - example: SPLUNK_HEC_TOKEN - type: string - type: - $ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationType" - required: - - id - - type - - inputs - type: object - x-pipeline-types: [metrics] - ObservabilityPipelineSplunkHecMetricsDestinationCompression: - default: none - description: Compression algorithm applied when sending metrics to Splunk HEC. - enum: - - none - - gzip - example: none - type: string - x-enum-varnames: - - NONE - - GZIP - ObservabilityPipelineSplunkHecMetricsDestinationType: - default: splunk_hec_metrics - description: The destination type. Always `splunk_hec_metrics`. - enum: - - splunk_hec_metrics - example: splunk_hec_metrics - type: string - x-enum-varnames: - - SPLUNK_HEC_METRICS ObservabilityPipelineSplunkHecSource: description: |- The `splunk_hec` source implements the Splunk HTTP Event Collector (HEC) API. @@ -155012,7 +154936,7 @@ paths: **Note**: This endpoint is in beta and may be subject to changes. Please check the documentation regularly for updates. /api/v2/siem-historical-detections/histsignals/search: - get: + post: description: Search hist signals. operationId: SearchSecurityMonitoringHistsignals requestBody: @@ -155064,6 +154988,7 @@ paths: - security_monitoring_signals_read summary: Search hist signals tags: ["Security Monitoring"] + x-codegen-request-body-name: body "x-permission": operator: OR permissions: diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index 8c6243db4a..203d259c74 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -25470,27 +25470,6 @@ datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_destination\ :members: :show-inheritance: -datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_metrics\_destination module ------------------------------------------------------------------------------------------------ - -.. automodule:: datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_metrics\_destination\_compression module ------------------------------------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_compression - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_metrics\_destination\_type module ------------------------------------------------------------------------------------------------------ - -.. automodule:: datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_type - :members: - :show-inheritance: - datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_source module --------------------------------------------------------------------------------- diff --git a/src/datadog_api_client/v2/api/security_monitoring_api.py b/src/datadog_api_client/v2/api/security_monitoring_api.py index d35a6ae639..17da56a4a8 100644 --- a/src/datadog_api_client/v2/api/security_monitoring_api.py +++ b/src/datadog_api_client/v2/api/security_monitoring_api.py @@ -3448,7 +3448,7 @@ def __init__(self, api_client=None): "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], "endpoint_path": "/api/v2/siem-historical-detections/histsignals/search", "operation_id": "search_security_monitoring_histsignals", - "http_method": "GET", + "http_method": "POST", "version": "v2", }, params_map={ diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config.py b/src/datadog_api_client/v2/model/observability_pipeline_config.py index afd1a78d88..13a3ef23e0 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config.py @@ -97,9 +97,6 @@ from datadog_api_client.v2.model.observability_pipeline_datadog_metrics_destination import ( ObservabilityPipelineDatadogMetricsDestination, ) - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination import ( - ObservabilityPipelineSplunkHecMetricsDestination, - ) from datadog_api_client.v2.model.observability_pipeline_datadog_agent_source import ( ObservabilityPipelineDatadogAgentSource, ) @@ -203,7 +200,6 @@ def __init__( ObservabilityPipelineSyslogNgDestination, ObservabilityPipelineDatabricksZerobusDestination, ObservabilityPipelineDatadogMetricsDestination, - ObservabilityPipelineSplunkHecMetricsDestination, ] ], sources: List[ diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py b/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py index be0e39e2c7..0ddc4d1ff8 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py @@ -226,12 +226,6 @@ def __init__(self, **kwargs): :param unity_catalog_endpoint_key: Name of the environment variable or the secret identifier that references your Databricks workspace URL, which is used to communicate with the Unity Catalog API. :type unity_catalog_endpoint_key: str, optional - - :param default_namespace: Optional default namespace for metrics sent to Splunk HEC. - :type default_namespace: str, optional - - :param source: The Splunk source field value for metric events. - :type source: str, optional """ super().__init__(kwargs) @@ -315,9 +309,6 @@ def _composed_schemas(_): from datadog_api_client.v2.model.observability_pipeline_datadog_metrics_destination import ( ObservabilityPipelineDatadogMetricsDestination, ) - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination import ( - ObservabilityPipelineSplunkHecMetricsDestination, - ) return { "oneOf": [ @@ -346,6 +337,5 @@ def _composed_schemas(_): ObservabilityPipelineSyslogNgDestination, ObservabilityPipelineDatabricksZerobusDestination, ObservabilityPipelineDatadogMetricsDestination, - ObservabilityPipelineSplunkHecMetricsDestination, ], } diff --git a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination.py b/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination.py deleted file mode 100644 index 477fcd1092..0000000000 --- a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination.py +++ /dev/null @@ -1,163 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import List, Union, TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_compression import ( - ObservabilityPipelineSplunkHecMetricsDestinationCompression, - ) - from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_type import ( - ObservabilityPipelineSplunkHecMetricsDestinationType, - ) - from datadog_api_client.v2.model.observability_pipeline_disk_buffer_options import ( - ObservabilityPipelineDiskBufferOptions, - ) - from datadog_api_client.v2.model.observability_pipeline_memory_buffer_options import ( - ObservabilityPipelineMemoryBufferOptions, - ) - from datadog_api_client.v2.model.observability_pipeline_memory_buffer_size_options import ( - ObservabilityPipelineMemoryBufferSizeOptions, - ) - - -class ObservabilityPipelineSplunkHecMetricsDestination(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_compression import ( - ObservabilityPipelineSplunkHecMetricsDestinationCompression, - ) - from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls - from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_type import ( - ObservabilityPipelineSplunkHecMetricsDestinationType, - ) - - return { - "buffer": (ObservabilityPipelineBufferOptions,), - "compression": (ObservabilityPipelineSplunkHecMetricsDestinationCompression,), - "default_namespace": (str,), - "endpoint_url_key": (str,), - "id": (str,), - "index": (str,), - "inputs": ([str],), - "source": (str,), - "sourcetype": (str,), - "tls": (ObservabilityPipelineTls,), - "token_key": (str,), - "type": (ObservabilityPipelineSplunkHecMetricsDestinationType,), - } - - attribute_map = { - "buffer": "buffer", - "compression": "compression", - "default_namespace": "default_namespace", - "endpoint_url_key": "endpoint_url_key", - "id": "id", - "index": "index", - "inputs": "inputs", - "source": "source", - "sourcetype": "sourcetype", - "tls": "tls", - "token_key": "token_key", - "type": "type", - } - - def __init__( - self_, - id: str, - inputs: List[str], - type: ObservabilityPipelineSplunkHecMetricsDestinationType, - buffer: Union[ - ObservabilityPipelineBufferOptions, - ObservabilityPipelineDiskBufferOptions, - ObservabilityPipelineMemoryBufferOptions, - ObservabilityPipelineMemoryBufferSizeOptions, - UnsetType, - ] = unset, - compression: Union[ObservabilityPipelineSplunkHecMetricsDestinationCompression, UnsetType] = unset, - default_namespace: Union[str, UnsetType] = unset, - endpoint_url_key: Union[str, UnsetType] = unset, - index: Union[str, UnsetType] = unset, - source: Union[str, UnsetType] = unset, - sourcetype: Union[str, UnsetType] = unset, - tls: Union[ObservabilityPipelineTls, UnsetType] = unset, - token_key: Union[str, UnsetType] = unset, - **kwargs, - ): - """ - The ``splunk_hec_metrics`` destination forwards metrics to Splunk using the HTTP Event Collector (HEC). - - **Supported pipeline types:** metrics - - :param buffer: Configuration for buffer settings on destination components. - :type buffer: ObservabilityPipelineBufferOptions, optional - - :param compression: Compression algorithm applied when sending metrics to Splunk HEC. - :type compression: ObservabilityPipelineSplunkHecMetricsDestinationCompression, optional - - :param default_namespace: Optional default namespace for metrics sent to Splunk HEC. - :type default_namespace: str, optional - - :param endpoint_url_key: Name of the environment variable or secret that holds the Splunk HEC endpoint URL. - :type endpoint_url_key: str, optional - - :param id: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the ``input`` to downstream components). - :type id: str - - :param index: Optional name of the Splunk index where metrics are written. - :type index: str, optional - - :param inputs: A list of component IDs whose output is used as the ``input`` for this component. - :type inputs: [str] - - :param source: The Splunk source field value for metric events. - :type source: str, optional - - :param sourcetype: The Splunk sourcetype to assign to metric events. - :type sourcetype: str, optional - - :param tls: Configuration for enabling TLS encryption between the pipeline component and external services. - :type tls: ObservabilityPipelineTls, optional - - :param token_key: Name of the environment variable or secret that holds the Splunk HEC token. - :type token_key: str, optional - - :param type: The destination type. Always ``splunk_hec_metrics``. - :type type: ObservabilityPipelineSplunkHecMetricsDestinationType - """ - if buffer is not unset: - kwargs["buffer"] = buffer - if compression is not unset: - kwargs["compression"] = compression - if default_namespace is not unset: - kwargs["default_namespace"] = default_namespace - if endpoint_url_key is not unset: - kwargs["endpoint_url_key"] = endpoint_url_key - if index is not unset: - kwargs["index"] = index - if source is not unset: - kwargs["source"] = source - if sourcetype is not unset: - kwargs["sourcetype"] = sourcetype - if tls is not unset: - kwargs["tls"] = tls - if token_key is not unset: - kwargs["token_key"] = token_key - super().__init__(kwargs) - - self_.id = id - self_.inputs = inputs - self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_compression.py b/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_compression.py deleted file mode 100644 index a0fb62edb8..0000000000 --- a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_compression.py +++ /dev/null @@ -1,42 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - - -from datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - -from typing import ClassVar - - -class ObservabilityPipelineSplunkHecMetricsDestinationCompression(ModelSimple): - """ - Compression algorithm applied when sending metrics to Splunk HEC. - - :param value: If omitted defaults to "none". Must be one of ["none", "gzip"]. - :type value: str - """ - - allowed_values = { - "none", - "gzip", - } - NONE: ClassVar["ObservabilityPipelineSplunkHecMetricsDestinationCompression"] - GZIP: ClassVar["ObservabilityPipelineSplunkHecMetricsDestinationCompression"] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -ObservabilityPipelineSplunkHecMetricsDestinationCompression.NONE = ( - ObservabilityPipelineSplunkHecMetricsDestinationCompression("none") -) -ObservabilityPipelineSplunkHecMetricsDestinationCompression.GZIP = ( - ObservabilityPipelineSplunkHecMetricsDestinationCompression("gzip") -) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_type.py b/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_type.py deleted file mode 100644 index 825a741bb2..0000000000 --- a/src/datadog_api_client/v2/model/observability_pipeline_splunk_hec_metrics_destination_type.py +++ /dev/null @@ -1,37 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - - -from datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - -from typing import ClassVar - - -class ObservabilityPipelineSplunkHecMetricsDestinationType(ModelSimple): - """ - The destination type. Always `splunk_hec_metrics`. - - :param value: If omitted defaults to "splunk_hec_metrics". Must be one of ["splunk_hec_metrics"]. - :type value: str - """ - - allowed_values = { - "splunk_hec_metrics", - } - SPLUNK_HEC_METRICS: ClassVar["ObservabilityPipelineSplunkHecMetricsDestinationType"] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -ObservabilityPipelineSplunkHecMetricsDestinationType.SPLUNK_HEC_METRICS = ( - ObservabilityPipelineSplunkHecMetricsDestinationType("splunk_hec_metrics") -) diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 43f1649b2a..71577769a7 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -5199,15 +5199,6 @@ from datadog_api_client.v2.model.observability_pipeline_splunk_hec_destination_type import ( ObservabilityPipelineSplunkHecDestinationType, ) -from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination import ( - ObservabilityPipelineSplunkHecMetricsDestination, -) -from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_compression import ( - ObservabilityPipelineSplunkHecMetricsDestinationCompression, -) -from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_type import ( - ObservabilityPipelineSplunkHecMetricsDestinationType, -) from datadog_api_client.v2.model.observability_pipeline_splunk_hec_source import ObservabilityPipelineSplunkHecSource from datadog_api_client.v2.model.observability_pipeline_splunk_hec_source_type import ( ObservabilityPipelineSplunkHecSourceType, @@ -12070,9 +12061,6 @@ "ObservabilityPipelineSplunkHecDestinationEncoding", "ObservabilityPipelineSplunkHecDestinationTokenStrategy", "ObservabilityPipelineSplunkHecDestinationType", - "ObservabilityPipelineSplunkHecMetricsDestination", - "ObservabilityPipelineSplunkHecMetricsDestinationCompression", - "ObservabilityPipelineSplunkHecMetricsDestinationType", "ObservabilityPipelineSplunkHecSource", "ObservabilityPipelineSplunkHecSourceType", "ObservabilityPipelineSplunkHecSourceValidToken",