Skip to content

Commit c120300

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f47923e of spec repo
1 parent 87dea61 commit c120300

23 files changed

+714
-346
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 210 additions & 65 deletions
Large diffs are not rendered by default.

lib/datadog_api_client/inflector.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3025,7 +3025,9 @@ def overrides
30253025
"v2.observability_pipeline_aws_auth" => "ObservabilityPipelineAwsAuth",
30263026
"v2.observability_pipeline_config" => "ObservabilityPipelineConfig",
30273027
"v2.observability_pipeline_config_destination_item" => "ObservabilityPipelineConfigDestinationItem",
3028+
"v2.observability_pipeline_config_processor_group" => "ObservabilityPipelineConfigProcessorGroup",
30283029
"v2.observability_pipeline_config_processor_item" => "ObservabilityPipelineConfigProcessorItem",
3030+
"v2.observability_pipeline_config_processors" => "ObservabilityPipelineConfigProcessors",
30293031
"v2.observability_pipeline_config_source_item" => "ObservabilityPipelineConfigSourceItem",
30303032
"v2.observability_pipeline_crowd_strike_next_gen_siem_destination" => "ObservabilityPipelineCrowdStrikeNextGenSiemDestination",
30313033
"v2.observability_pipeline_crowd_strike_next_gen_siem_destination_compression" => "ObservabilityPipelineCrowdStrikeNextGenSiemDestinationCompression",

lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ module DatadogAPIClient::V2
2121
class ObservabilityPipelineAddEnvVarsProcessor
2222
include BaseGenericModel
2323

24+
# Whether this processor is enabled.
25+
attr_accessor :enabled
26+
2427
# The unique identifier for this component. Used to reference this processor in the pipeline.
2528
attr_reader :id
2629

2730
# A Datadog search query used to determine which logs this processor targets.
2831
attr_reader :include
2932

30-
# A list of component IDs whose output is used as the input for this processor.
31-
attr_reader :inputs
33+
# A list of component IDs whose output is used as input for this processor. Required when used as a standalone processor, omit when used within a processor group.
34+
attr_accessor :inputs
3235

3336
# The processor type. The value should always be `add_env_vars`.
3437
attr_reader :type
@@ -42,6 +45,7 @@ class ObservabilityPipelineAddEnvVarsProcessor
4245
# @!visibility private
4346
def self.attribute_map
4447
{
48+
:'enabled' => :'enabled',
4549
:'id' => :'id',
4650
:'include' => :'include',
4751
:'inputs' => :'inputs',
@@ -54,6 +58,7 @@ def self.attribute_map
5458
# @!visibility private
5559
def self.openapi_types
5660
{
61+
:'enabled' => :'Boolean',
5762
:'id' => :'String',
5863
:'include' => :'String',
5964
:'inputs' => :'Array<String>',
@@ -80,6 +85,10 @@ def initialize(attributes = {})
8085
end
8186
}
8287

88+
if attributes.key?(:'enabled')
89+
self.enabled = attributes[:'enabled']
90+
end
91+
8392
if attributes.key?(:'id')
8493
self.id = attributes[:'id']
8594
end
@@ -111,7 +120,6 @@ def initialize(attributes = {})
111120
def valid?
112121
return false if @id.nil?
113122
return false if @include.nil?
114-
return false if @inputs.nil?
115123
return false if @type.nil?
116124
return false if @variables.nil?
117125
true
@@ -137,16 +145,6 @@ def include=(include)
137145
@include = include
138146
end
139147

140-
# Custom attribute writer method with validation
141-
# @param inputs [Object] Object to be assigned
142-
# @!visibility private
143-
def inputs=(inputs)
144-
if inputs.nil?
145-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
146-
end
147-
@inputs = inputs
148-
end
149-
150148
# Custom attribute writer method with validation
151149
# @param type [Object] Object to be assigned
152150
# @!visibility private
@@ -193,6 +191,7 @@ def to_hash
193191
def ==(o)
194192
return true if self.equal?(o)
195193
self.class == o.class &&
194+
enabled == o.enabled &&
196195
id == o.id &&
197196
include == o.include &&
198197
inputs == o.inputs &&
@@ -205,7 +204,7 @@ def ==(o)
205204
# @return [Integer] Hash code
206205
# @!visibility private
207206
def hash
208-
[id, include, inputs, type, variables, additional_properties].hash
207+
[enabled, id, include, inputs, type, variables, additional_properties].hash
209208
end
210209
end
211210
end

lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121
class ObservabilityPipelineAddFieldsProcessor
2222
include BaseGenericModel
2323

24+
# Whether this processor is enabled.
25+
attr_accessor :enabled
26+
2427
# A list of static fields (key-value pairs) that is added to each log event processed by this component.
2528
attr_reader :fields
2629

@@ -30,8 +33,8 @@ class ObservabilityPipelineAddFieldsProcessor
3033
# A Datadog search query used to determine which logs this processor targets.
3134
attr_reader :include
3235

33-
# A list of component IDs whose output is used as the `input` for this component.
34-
attr_reader :inputs
36+
# A list of component IDs whose output is used as input for this processor. Required when used as a standalone processor, omit when used within a processor group.
37+
attr_accessor :inputs
3538

3639
# The processor type. The value should always be `add_fields`.
3740
attr_reader :type
@@ -42,6 +45,7 @@ class ObservabilityPipelineAddFieldsProcessor
4245
# @!visibility private
4346
def self.attribute_map
4447
{
48+
:'enabled' => :'enabled',
4549
:'fields' => :'fields',
4650
:'id' => :'id',
4751
:'include' => :'include',
@@ -54,6 +58,7 @@ def self.attribute_map
5458
# @!visibility private
5559
def self.openapi_types
5660
{
61+
:'enabled' => :'Boolean',
5762
:'fields' => :'Array<ObservabilityPipelineFieldValue>',
5863
:'id' => :'String',
5964
:'include' => :'String',
@@ -80,6 +85,10 @@ def initialize(attributes = {})
8085
end
8186
}
8287

88+
if attributes.key?(:'enabled')
89+
self.enabled = attributes[:'enabled']
90+
end
91+
8392
if attributes.key?(:'fields')
8493
if (value = attributes[:'fields']).is_a?(Array)
8594
self.fields = value
@@ -112,7 +121,6 @@ def valid?
112121
return false if @fields.nil?
113122
return false if @id.nil?
114123
return false if @include.nil?
115-
return false if @inputs.nil?
116124
return false if @type.nil?
117125
true
118126
end
@@ -147,16 +155,6 @@ def include=(include)
147155
@include = include
148156
end
149157

150-
# Custom attribute writer method with validation
151-
# @param inputs [Object] Object to be assigned
152-
# @!visibility private
153-
def inputs=(inputs)
154-
if inputs.nil?
155-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
156-
end
157-
@inputs = inputs
158-
end
159-
160158
# Custom attribute writer method with validation
161159
# @param type [Object] Object to be assigned
162160
# @!visibility private
@@ -193,6 +191,7 @@ def to_hash
193191
def ==(o)
194192
return true if self.equal?(o)
195193
self.class == o.class &&
194+
enabled == o.enabled &&
196195
fields == o.fields &&
197196
id == o.id &&
198197
include == o.include &&
@@ -205,7 +204,7 @@ def ==(o)
205204
# @return [Integer] Hash code
206205
# @!visibility private
207206
def hash
208-
[fields, id, include, inputs, type, additional_properties].hash
207+
[enabled, fields, id, include, inputs, type, additional_properties].hash
209208
end
210209
end
211210
end

lib/datadog_api_client/v2/models/observability_pipeline_config.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ObservabilityPipelineConfig
2424
# A list of destination components where processed logs are sent.
2525
attr_reader :destinations
2626

27-
# A list of processors that transform or enrich log data.
27+
# A list of processors that transform or enrich log data, or a list of grouped processor configurations.
2828
attr_accessor :processors
2929

3030
# A list of configured data sources for the pipeline.
@@ -47,7 +47,7 @@ def self.attribute_map
4747
def self.openapi_types
4848
{
4949
:'destinations' => :'Array<ObservabilityPipelineConfigDestinationItem>',
50-
:'processors' => :'Array<ObservabilityPipelineConfigProcessorItem>',
50+
:'processors' => :'ObservabilityPipelineConfigProcessors',
5151
:'sources' => :'Array<ObservabilityPipelineConfigSourceItem>'
5252
}
5353
end
@@ -77,9 +77,7 @@ def initialize(attributes = {})
7777
end
7878

7979
if attributes.key?(:'processors')
80-
if (value = attributes[:'processors']).is_a?(Array)
81-
self.processors = value
82-
end
80+
self.processors = attributes[:'processors']
8381
end
8482

8583
if attributes.key?(:'sources')

0 commit comments

Comments
 (0)