@@ -27,14 +27,18 @@ class ObservabilityPipelineMemoryBufferSizeOptions
2727 # The type of the buffer that will be configured, a memory buffer.
2828 attr_accessor :type
2929
30+ # Behavior when the buffer is full (block and stop accepting new events, or drop new events)
31+ attr_accessor :when_full
32+
3033 attr_accessor :additional_properties
3134
3235 # Attribute mapping from ruby-style variable name to JSON key.
3336 # @!visibility private
3437 def self . attribute_map
3538 {
3639 :'max_events' => :'max_events' ,
37- :'type' => :'type'
40+ :'type' => :'type' ,
41+ :'when_full' => :'when_full'
3842 }
3943 end
4044
@@ -43,7 +47,8 @@ def self.attribute_map
4347 def self . openapi_types
4448 {
4549 :'max_events' => :'Integer' ,
46- :'type' => :'ObservabilityPipelineBufferOptionsMemoryType'
50+ :'type' => :'ObservabilityPipelineBufferOptionsMemoryType' ,
51+ :'when_full' => :'ObservabilityPipelineBufferOptionsWhenFull'
4752 }
4853 end
4954
@@ -72,6 +77,10 @@ def initialize(attributes = {})
7277 if attributes . key? ( :'type' )
7378 self . type = attributes [ :'type' ]
7479 end
80+
81+ if attributes . key? ( :'when_full' )
82+ self . when_full = attributes [ :'when_full' ]
83+ end
7584 end
7685
7786 # Returns the object in the form of hash, with additionalProperties support.
@@ -102,14 +111,15 @@ def ==(o)
102111 self . class == o . class &&
103112 max_events == o . max_events &&
104113 type == o . type &&
114+ when_full == o . when_full &&
105115 additional_properties == o . additional_properties
106116 end
107117
108118 # Calculates hash code according to all attributes.
109119 # @return [Integer] Hash code
110120 # @!visibility private
111121 def hash
112- [ max_events , type , additional_properties ] . hash
122+ [ max_events , type , when_full , additional_properties ] . hash
113123 end
114124 end
115125end
0 commit comments