Skip to content

Commit 119cacd

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Workflow Automation - Add allowedValues to InputSchemaParameters (DataDog#2996)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent f00ac22 commit 119cacd

4 files changed

Lines changed: 32 additions & 31 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31064,6 +31064,11 @@ components:
3106431064
InputSchemaParameters:
3106531065
description: The definition of `InputSchemaParameters` object.
3106631066
properties:
31067+
allowExtraValues:
31068+
description: The `InputSchemaParameters` `allowExtraValues`.
31069+
type: boolean
31070+
allowedValues:
31071+
description: The `InputSchemaParameters` `allowedValues`.
3106731072
defaultValue:
3106831073
description: The `InputSchemaParameters` `defaultValue`.
3106931074
description:
@@ -40869,8 +40874,6 @@ components:
4086940874
type: integer
4087040875
type:
4087140876
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40872-
when_full:
40873-
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4087440877
type: object
4087540878
ObservabilityPipelineMemoryBufferSizeOptions:
4087640879
description: Options for configuring a memory buffer by queue length.
@@ -40882,8 +40885,6 @@ components:
4088240885
type: integer
4088340886
type:
4088440887
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40885-
when_full:
40886-
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4088740888
type: object
4088840889
ObservabilityPipelineMetadataEntry:
4088940890
description: A custom metadata entry.

lib/datadog_api_client/v2/models/input_schema_parameters.rb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ module DatadogAPIClient::V2
2121
class InputSchemaParameters
2222
include BaseGenericModel
2323

24+
# The `InputSchemaParameters` `allowExtraValues`.
25+
attr_accessor :allow_extra_values
26+
27+
# The `InputSchemaParameters` `allowedValues`.
28+
attr_accessor :allowed_values
29+
2430
# The `InputSchemaParameters` `defaultValue`.
2531
attr_accessor :default_value
2632

@@ -42,6 +48,8 @@ class InputSchemaParameters
4248
# @!visibility private
4349
def self.attribute_map
4450
{
51+
:'allow_extra_values' => :'allowExtraValues',
52+
:'allowed_values' => :'allowedValues',
4553
:'default_value' => :'defaultValue',
4654
:'description' => :'description',
4755
:'label' => :'label',
@@ -54,6 +62,8 @@ def self.attribute_map
5462
# @!visibility private
5563
def self.openapi_types
5664
{
65+
:'allow_extra_values' => :'Boolean',
66+
:'allowed_values' => :'Object',
5767
:'default_value' => :'Object',
5868
:'description' => :'String',
5969
:'label' => :'String',
@@ -80,6 +90,14 @@ def initialize(attributes = {})
8090
end
8191
}
8292

93+
if attributes.key?(:'allow_extra_values')
94+
self.allow_extra_values = attributes[:'allow_extra_values']
95+
end
96+
97+
if attributes.key?(:'allowed_values')
98+
self.allowed_values = attributes[:'allowed_values']
99+
end
100+
83101
if attributes.key?(:'default_value')
84102
self.default_value = attributes[:'default_value']
85103
end
@@ -156,6 +174,8 @@ def to_hash
156174
def ==(o)
157175
return true if self.equal?(o)
158176
self.class == o.class &&
177+
allow_extra_values == o.allow_extra_values &&
178+
allowed_values == o.allowed_values &&
159179
default_value == o.default_value &&
160180
description == o.description &&
161181
label == o.label &&
@@ -168,7 +188,7 @@ def ==(o)
168188
# @return [Integer] Hash code
169189
# @!visibility private
170190
def hash
171-
[default_value, description, label, name, type, additional_properties].hash
191+
[allow_extra_values, allowed_values, default_value, description, label, name, type, additional_properties].hash
172192
end
173193
end
174194
end

lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_options.rb

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,14 @@ class ObservabilityPipelineMemoryBufferOptions
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-
3330
attr_accessor :additional_properties
3431

3532
# Attribute mapping from ruby-style variable name to JSON key.
3633
# @!visibility private
3734
def self.attribute_map
3835
{
3936
:'max_size' => :'max_size',
40-
:'type' => :'type',
41-
:'when_full' => :'when_full'
37+
:'type' => :'type'
4238
}
4339
end
4440

@@ -47,8 +43,7 @@ def self.attribute_map
4743
def self.openapi_types
4844
{
4945
:'max_size' => :'Integer',
50-
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType',
51-
:'when_full' => :'ObservabilityPipelineBufferOptionsWhenFull'
46+
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType'
5247
}
5348
end
5449

@@ -77,10 +72,6 @@ def initialize(attributes = {})
7772
if attributes.key?(:'type')
7873
self.type = attributes[:'type']
7974
end
80-
81-
if attributes.key?(:'when_full')
82-
self.when_full = attributes[:'when_full']
83-
end
8475
end
8576

8677
# Returns the object in the form of hash, with additionalProperties support.
@@ -111,15 +102,14 @@ def ==(o)
111102
self.class == o.class &&
112103
max_size == o.max_size &&
113104
type == o.type &&
114-
when_full == o.when_full &&
115105
additional_properties == o.additional_properties
116106
end
117107

118108
# Calculates hash code according to all attributes.
119109
# @return [Integer] Hash code
120110
# @!visibility private
121111
def hash
122-
[max_size, type, when_full, additional_properties].hash
112+
[max_size, type, additional_properties].hash
123113
end
124114
end
125115
end

lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_size_options.rb

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,14 @@ 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-
3330
attr_accessor :additional_properties
3431

3532
# Attribute mapping from ruby-style variable name to JSON key.
3633
# @!visibility private
3734
def self.attribute_map
3835
{
3936
:'max_events' => :'max_events',
40-
:'type' => :'type',
41-
:'when_full' => :'when_full'
37+
:'type' => :'type'
4238
}
4339
end
4440

@@ -47,8 +43,7 @@ def self.attribute_map
4743
def self.openapi_types
4844
{
4945
:'max_events' => :'Integer',
50-
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType',
51-
:'when_full' => :'ObservabilityPipelineBufferOptionsWhenFull'
46+
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType'
5247
}
5348
end
5449

@@ -77,10 +72,6 @@ def initialize(attributes = {})
7772
if attributes.key?(:'type')
7873
self.type = attributes[:'type']
7974
end
80-
81-
if attributes.key?(:'when_full')
82-
self.when_full = attributes[:'when_full']
83-
end
8475
end
8576

8677
# Returns the object in the form of hash, with additionalProperties support.
@@ -111,15 +102,14 @@ def ==(o)
111102
self.class == o.class &&
112103
max_events == o.max_events &&
113104
type == o.type &&
114-
when_full == o.when_full &&
115105
additional_properties == o.additional_properties
116106
end
117107

118108
# Calculates hash code according to all attributes.
119109
# @return [Integer] Hash code
120110
# @!visibility private
121111
def hash
122-
[max_events, type, when_full, additional_properties].hash
112+
[max_events, type, additional_properties].hash
123113
end
124114
end
125115
end

0 commit comments

Comments
 (0)