diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 73c6d673719..b8661d93ff7 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -39639,6 +39639,8 @@ components: $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsDiskType' when_full: $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull' + required: + - max_size type: object ObservabilityPipelineElasticsearchDestination: description: 'The `elasticsearch` destination writes logs to an Elasticsearch @@ -40892,6 +40894,8 @@ components: $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType' when_full: $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull' + required: + - max_size type: object ObservabilityPipelineMemoryBufferSizeOptions: description: Options for configuring a memory buffer by queue length. @@ -40905,6 +40909,8 @@ components: $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType' when_full: $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull' + required: + - max_events type: object ObservabilityPipelineMetadataEntry: description: A custom metadata entry. diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_disk_buffer_options.rb b/lib/datadog_api_client/v2/models/observability_pipeline_disk_buffer_options.rb index 44be529f2c8..a6483f30349 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_disk_buffer_options.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_disk_buffer_options.rb @@ -22,7 +22,7 @@ class ObservabilityPipelineDiskBufferOptions include BaseGenericModel # Maximum size of the disk buffer. - attr_accessor :max_size + attr_reader :max_size # The type of the buffer that will be configured, a disk buffer. attr_accessor :type @@ -83,6 +83,24 @@ def initialize(attributes = {}) 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 @max_size.nil? + true + end + + # Custom attribute writer method with validation + # @param max_size [Object] Object to be assigned + # @!visibility private + def max_size=(max_size) + if max_size.nil? + fail ArgumentError, 'invalid value for "max_size", max_size cannot be nil.' + end + @max_size = max_size + end + # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private 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 76360b8bc15..b518042c5ca 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 @@ -22,7 +22,7 @@ class ObservabilityPipelineMemoryBufferOptions include BaseGenericModel # Maximum size of the memory buffer. - attr_accessor :max_size + attr_reader :max_size # The type of the buffer that will be configured, a memory buffer. attr_accessor :type @@ -83,6 +83,24 @@ def initialize(attributes = {}) 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 @max_size.nil? + true + end + + # Custom attribute writer method with validation + # @param max_size [Object] Object to be assigned + # @!visibility private + def max_size=(max_size) + if max_size.nil? + fail ArgumentError, 'invalid value for "max_size", max_size cannot be nil.' + end + @max_size = max_size + end + # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private 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 f6d2b81f9e2..a7ae15372dc 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 @@ -22,7 +22,7 @@ class ObservabilityPipelineMemoryBufferSizeOptions include BaseGenericModel # Maximum events for the memory buffer. - attr_accessor :max_events + attr_reader :max_events # The type of the buffer that will be configured, a memory buffer. attr_accessor :type @@ -83,6 +83,24 @@ def initialize(attributes = {}) 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 @max_events.nil? + true + end + + # Custom attribute writer method with validation + # @param max_events [Object] Object to be assigned + # @!visibility private + def max_events=(max_events) + if max_events.nil? + fail ArgumentError, 'invalid value for "max_events", max_events cannot be nil.' + end + @max_events = max_events + end + # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private