diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 1d81e8b2f75f..03f9a175301f 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -31064,6 +31064,11 @@ components: InputSchemaParameters: description: The definition of `InputSchemaParameters` object. properties: + allowExtraValues: + description: The `InputSchemaParameters` `allowExtraValues`. + type: boolean + allowedValues: + description: The `InputSchemaParameters` `allowedValues`. defaultValue: description: The `InputSchemaParameters` `defaultValue`. description: @@ -40869,8 +40874,6 @@ components: type: integer type: $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType' - when_full: - $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull' type: object ObservabilityPipelineMemoryBufferSizeOptions: description: Options for configuring a memory buffer by queue length. @@ -40882,8 +40885,6 @@ components: type: integer type: $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType' - when_full: - $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull' type: object ObservabilityPipelineMetadataEntry: description: A custom metadata entry. diff --git a/.generator/src/generator/templates/example.j2 b/.generator/src/generator/templates/example.j2 index 50e662cff389..4e853a371395 100644 --- a/.generator/src/generator/templates/example.j2 +++ b/.generator/src/generator/templates/example.j2 @@ -1,4 +1,4 @@ -# {{ scenario.name|wordwrap(width=120)}} +# {{ scenario.name|wordwrap(width=120, wrapstring="\n# ")}} {%- set parameters, opts = format_parameters(context.api_request.kwargs, operation_spec, replace_values=context._replace_values, has_body=context.body) %} {%- if context.body %} {%- set body = format_data_with_schema(context.body.value, context.api_request.schema.spec, name_prefix="DatadogAPIClient::{}::".format(version.upper()), replace_values=context._replace_values)%} diff --git a/lib/datadog_api_client/v2/models/input_schema_parameters.rb b/lib/datadog_api_client/v2/models/input_schema_parameters.rb index 933955d00d77..7405e063422a 100644 --- a/lib/datadog_api_client/v2/models/input_schema_parameters.rb +++ b/lib/datadog_api_client/v2/models/input_schema_parameters.rb @@ -21,6 +21,12 @@ module DatadogAPIClient::V2 class InputSchemaParameters include BaseGenericModel + # The `InputSchemaParameters` `allowExtraValues`. + attr_accessor :allow_extra_values + + # The `InputSchemaParameters` `allowedValues`. + attr_accessor :allowed_values + # The `InputSchemaParameters` `defaultValue`. attr_accessor :default_value @@ -42,6 +48,8 @@ class InputSchemaParameters # @!visibility private def self.attribute_map { + :'allow_extra_values' => :'allowExtraValues', + :'allowed_values' => :'allowedValues', :'default_value' => :'defaultValue', :'description' => :'description', :'label' => :'label', @@ -54,6 +62,8 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'allow_extra_values' => :'Boolean', + :'allowed_values' => :'Object', :'default_value' => :'Object', :'description' => :'String', :'label' => :'String', @@ -80,6 +90,14 @@ def initialize(attributes = {}) end } + if attributes.key?(:'allow_extra_values') + self.allow_extra_values = attributes[:'allow_extra_values'] + end + + if attributes.key?(:'allowed_values') + self.allowed_values = attributes[:'allowed_values'] + end + if attributes.key?(:'default_value') self.default_value = attributes[:'default_value'] end @@ -156,6 +174,8 @@ def to_hash def ==(o) return true if self.equal?(o) self.class == o.class && + allow_extra_values == o.allow_extra_values && + allowed_values == o.allowed_values && default_value == o.default_value && description == o.description && label == o.label && @@ -168,7 +188,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [default_value, description, label, name, type, additional_properties].hash + [allow_extra_values, allowed_values, default_value, description, label, name, type, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_options.rb b/lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_options.rb index 76360b8bc15a..eb67ff1e90d7 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_options.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_options.rb @@ -27,9 +27,6 @@ class ObservabilityPipelineMemoryBufferOptions # The type of the buffer that will be configured, a memory buffer. attr_accessor :type - # Behavior when the buffer is full (block and stop accepting new events, or drop new events) - attr_accessor :when_full - attr_accessor :additional_properties # Attribute mapping from ruby-style variable name to JSON key. @@ -37,8 +34,7 @@ class ObservabilityPipelineMemoryBufferOptions def self.attribute_map { :'max_size' => :'max_size', - :'type' => :'type', - :'when_full' => :'when_full' + :'type' => :'type' } end @@ -47,8 +43,7 @@ def self.attribute_map def self.openapi_types { :'max_size' => :'Integer', - :'type' => :'ObservabilityPipelineBufferOptionsMemoryType', - :'when_full' => :'ObservabilityPipelineBufferOptionsWhenFull' + :'type' => :'ObservabilityPipelineBufferOptionsMemoryType' } end @@ -77,10 +72,6 @@ def initialize(attributes = {}) if attributes.key?(:'type') self.type = attributes[:'type'] end - - if attributes.key?(:'when_full') - self.when_full = attributes[:'when_full'] - end end # Returns the object in the form of hash, with additionalProperties support. @@ -111,7 +102,6 @@ def ==(o) self.class == o.class && max_size == o.max_size && type == o.type && - when_full == o.when_full && additional_properties == o.additional_properties end @@ -119,7 +109,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [max_size, type, when_full, additional_properties].hash + [max_size, type, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_size_options.rb b/lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_size_options.rb index f6d2b81f9e25..04f5e0b68aa2 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_size_options.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_size_options.rb @@ -27,9 +27,6 @@ class ObservabilityPipelineMemoryBufferSizeOptions # The type of the buffer that will be configured, a memory buffer. attr_accessor :type - # Behavior when the buffer is full (block and stop accepting new events, or drop new events) - attr_accessor :when_full - attr_accessor :additional_properties # Attribute mapping from ruby-style variable name to JSON key. @@ -37,8 +34,7 @@ class ObservabilityPipelineMemoryBufferSizeOptions def self.attribute_map { :'max_events' => :'max_events', - :'type' => :'type', - :'when_full' => :'when_full' + :'type' => :'type' } end @@ -47,8 +43,7 @@ def self.attribute_map def self.openapi_types { :'max_events' => :'Integer', - :'type' => :'ObservabilityPipelineBufferOptionsMemoryType', - :'when_full' => :'ObservabilityPipelineBufferOptionsWhenFull' + :'type' => :'ObservabilityPipelineBufferOptionsMemoryType' } end @@ -77,10 +72,6 @@ def initialize(attributes = {}) if attributes.key?(:'type') self.type = attributes[:'type'] end - - if attributes.key?(:'when_full') - self.when_full = attributes[:'when_full'] - end end # Returns the object in the form of hash, with additionalProperties support. @@ -111,7 +102,6 @@ def ==(o) self.class == o.class && max_events == o.max_events && type == o.type && - when_full == o.when_full && additional_properties == o.additional_properties end @@ -119,7 +109,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [max_events, type, when_full, additional_properties].hash + [max_events, type, additional_properties].hash end end end