Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading