From 44f3e0d6dd8f7a6fa5c9d5fde44fd2d65bc806d8 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 28 May 2026 09:04:22 +0000 Subject: [PATCH] Regenerate client from commit 94272a1 of spec repo --- .generator/schemas/v2/openapi.yaml | 79 +----- lib/datadog_api_client/inflector.rb | 3 - .../v2/api/security_monitoring_api.rb | 2 +- ...bility_pipeline_config_destination_item.rb | 3 +- ...pipeline_splunk_hec_metrics_destination.rb | 259 ------------------ ...unk_hec_metrics_destination_compression.rb | 27 -- ...ine_splunk_hec_metrics_destination_type.rb | 26 -- 7 files changed, 4 insertions(+), 395 deletions(-) delete mode 100644 lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination.rb delete mode 100644 lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination_compression.rb delete mode 100644 lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination_type.rb diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4afc8ca399d6..94f455378b66 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/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index abbf1654651c..8dfcde4a6339 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -4732,9 +4732,6 @@ def overrides "v2.observability_pipeline_splunk_hec_destination_encoding" => "ObservabilityPipelineSplunkHecDestinationEncoding", "v2.observability_pipeline_splunk_hec_destination_token_strategy" => "ObservabilityPipelineSplunkHecDestinationTokenStrategy", "v2.observability_pipeline_splunk_hec_destination_type" => "ObservabilityPipelineSplunkHecDestinationType", - "v2.observability_pipeline_splunk_hec_metrics_destination" => "ObservabilityPipelineSplunkHecMetricsDestination", - "v2.observability_pipeline_splunk_hec_metrics_destination_compression" => "ObservabilityPipelineSplunkHecMetricsDestinationCompression", - "v2.observability_pipeline_splunk_hec_metrics_destination_type" => "ObservabilityPipelineSplunkHecMetricsDestinationType", "v2.observability_pipeline_splunk_hec_source" => "ObservabilityPipelineSplunkHecSource", "v2.observability_pipeline_splunk_hec_source_type" => "ObservabilityPipelineSplunkHecSourceType", "v2.observability_pipeline_splunk_hec_source_valid_token" => "ObservabilityPipelineSplunkHecSourceValidToken", diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index 588888fdea20..0194fbca8903 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -8439,7 +8439,7 @@ def search_security_monitoring_histsignals_with_http_info(opts = {}) :api_version => "V2" ) - data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options) + data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: SecurityMonitoringAPI#search_security_monitoring_histsignals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb b/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb index f12386e67e6f..2da684a6eb50 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb @@ -50,8 +50,7 @@ def openapi_one_of :'ObservabilityPipelineSumoLogicDestination', :'ObservabilityPipelineSyslogNgDestination', :'ObservabilityPipelineDatabricksZerobusDestination', - :'ObservabilityPipelineDatadogMetricsDestination', - :'ObservabilityPipelineSplunkHecMetricsDestination' + :'ObservabilityPipelineDatadogMetricsDestination' ] end # Builds the object diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination.rb b/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination.rb deleted file mode 100644 index 606eaeb0a502..000000000000 --- a/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination.rb +++ /dev/null @@ -1,259 +0,0 @@ -=begin -#Datadog API V2 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator - - 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 2020-Present Datadog, Inc. - -=end - -require 'date' -require 'time' - -module DatadogAPIClient::V2 - # The `splunk_hec_metrics` destination forwards metrics to Splunk using the HTTP Event Collector (HEC). - # - # **Supported pipeline types:** metrics - class ObservabilityPipelineSplunkHecMetricsDestination - include BaseGenericModel - - # Configuration for buffer settings on destination components. - attr_accessor :buffer - - # Compression algorithm applied when sending metrics to Splunk HEC. - attr_accessor :compression - - # Optional default namespace for metrics sent to Splunk HEC. - attr_accessor :default_namespace - - # Name of the environment variable or secret that holds the Splunk HEC endpoint URL. - attr_accessor :endpoint_url_key - - # 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). - attr_reader :id - - # Optional name of the Splunk index where metrics are written. - attr_accessor :index - - # A list of component IDs whose output is used as the `input` for this component. - attr_reader :inputs - - # The Splunk source field value for metric events. - attr_accessor :source - - # The Splunk sourcetype to assign to metric events. - attr_accessor :sourcetype - - # Configuration for enabling TLS encryption between the pipeline component and external services. - attr_accessor :tls - - # Name of the environment variable or secret that holds the Splunk HEC token. - attr_accessor :token_key - - # The destination type. Always `splunk_hec_metrics`. - attr_reader :type - - attr_accessor :additional_properties - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.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' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'buffer' => :'ObservabilityPipelineBufferOptions', - :'compression' => :'ObservabilityPipelineSplunkHecMetricsDestinationCompression', - :'default_namespace' => :'String', - :'endpoint_url_key' => :'String', - :'id' => :'String', - :'index' => :'String', - :'inputs' => :'Array', - :'source' => :'String', - :'sourcetype' => :'String', - :'tls' => :'ObservabilityPipelineTls', - :'token_key' => :'String', - :'type' => :'ObservabilityPipelineSplunkHecMetricsDestinationType' - } - end - - # Initializes the object - # @param attributes [Hash] Model attributes in the form of hash - # @!visibility private - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineSplunkHecMetricsDestination` initialize method" - end - - self.additional_properties = {} - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - self.additional_properties[k.to_sym] = v - else - h[k.to_sym] = v - end - } - - if attributes.key?(:'buffer') - self.buffer = attributes[:'buffer'] - end - - if attributes.key?(:'compression') - self.compression = attributes[:'compression'] - end - - if attributes.key?(:'default_namespace') - self.default_namespace = attributes[:'default_namespace'] - end - - if attributes.key?(:'endpoint_url_key') - self.endpoint_url_key = attributes[:'endpoint_url_key'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'index') - self.index = attributes[:'index'] - end - - if attributes.key?(:'inputs') - if (value = attributes[:'inputs']).is_a?(Array) - self.inputs = value - end - end - - if attributes.key?(:'source') - self.source = attributes[:'source'] - end - - if attributes.key?(:'sourcetype') - self.sourcetype = attributes[:'sourcetype'] - end - - if attributes.key?(:'tls') - self.tls = attributes[:'tls'] - end - - if attributes.key?(:'token_key') - self.token_key = attributes[:'token_key'] - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - end - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - # @!visibility private - def valid? - return false if @id.nil? - return false if @inputs.nil? - return false if @type.nil? - true - end - - # Custom attribute writer method with validation - # @param id [Object] Object to be assigned - # @!visibility private - def id=(id) - if id.nil? - fail ArgumentError, 'invalid value for "id", id cannot be nil.' - end - @id = id - end - - # Custom attribute writer method with validation - # @param inputs [Object] Object to be assigned - # @!visibility private - def inputs=(inputs) - if inputs.nil? - fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.' - end - @inputs = inputs - end - - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - if type.nil? - fail ArgumentError, 'invalid value for "type", type cannot be nil.' - end - @type = type - end - - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - end - - # Checks equality by comparing each attribute. - # @param o [Object] Object to be compared - # @!visibility private - def ==(o) - return true if self.equal?(o) - self.class == o.class && - buffer == o.buffer && - compression == o.compression && - default_namespace == o.default_namespace && - endpoint_url_key == o.endpoint_url_key && - id == o.id && - index == o.index && - inputs == o.inputs && - source == o.source && - sourcetype == o.sourcetype && - tls == o.tls && - token_key == o.token_key && - type == o.type && - additional_properties == o.additional_properties - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [buffer, compression, default_namespace, endpoint_url_key, id, index, inputs, source, sourcetype, tls, token_key, type, additional_properties].hash - end - end -end diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination_compression.rb b/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination_compression.rb deleted file mode 100644 index dbbdfeae9f4a..000000000000 --- a/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination_compression.rb +++ /dev/null @@ -1,27 +0,0 @@ -=begin -#Datadog API V2 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator - - 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 2020-Present Datadog, Inc. - -=end - -require 'date' -require 'time' - -module DatadogAPIClient::V2 - # Compression algorithm applied when sending metrics to Splunk HEC. - class ObservabilityPipelineSplunkHecMetricsDestinationCompression - include BaseEnumModel - - NONE = "none".freeze - GZIP = "gzip".freeze - end -end diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination_type.rb b/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination_type.rb deleted file mode 100644 index 18ff7813e0e3..000000000000 --- a/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_metrics_destination_type.rb +++ /dev/null @@ -1,26 +0,0 @@ -=begin -#Datadog API V2 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator - - 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 2020-Present Datadog, Inc. - -=end - -require 'date' -require 'time' - -module DatadogAPIClient::V2 - # The destination type. Always `splunk_hec_metrics`. - class ObservabilityPipelineSplunkHecMetricsDestinationType - include BaseEnumModel - - SPLUNK_HEC_METRICS = "splunk_hec_metrics".freeze - end -end