Skip to content

Commit 32ca642

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e771d13 of spec repo
1 parent 53085a4 commit 32ca642

2 files changed

Lines changed: 24 additions & 3 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37916,6 +37916,15 @@ components:
3791637916
items:
3791737917
$ref: '#/components/schemas/ObservabilityPipelineConfigSourceItem'
3791837918
type: array
37919+
use_legacy_search_syntax:
37920+
description: '**Warning**: Use this field only when migrating existing pipelines
37921+
from the legacy search syntax to the new search syntax.
37922+
37923+
Requires Observability Pipelines Worker version 2.11 or later.
37924+
37925+
See [Upgrade Your Filter Queries to the New Search Syntax](https://docs.datadoghq.com/observability_pipelines/guide/upgrade_your_filter_queries_to_the_new_search_syntax/)
37926+
for more information.'
37927+
type: boolean
3791937928
required:
3792037929
- sources
3792137930
- destinations

lib/datadog_api_client/v2/models/observability_pipeline_config.rb

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ class ObservabilityPipelineConfig
3838
# A list of configured data sources for the pipeline.
3939
attr_reader :sources
4040

41+
# **Warning**: Use this field only when migrating existing pipelines from the legacy search syntax to the new search syntax.
42+
# Requires Observability Pipelines Worker version 2.11 or later.
43+
# See [Upgrade Your Filter Queries to the New Search Syntax](https://docs.datadoghq.com/observability_pipelines/guide/upgrade_your_filter_queries_to_the_new_search_syntax/) for more information.
44+
attr_accessor :use_legacy_search_syntax
45+
4146
attr_accessor :additional_properties
4247

4348
# Attribute mapping from ruby-style variable name to JSON key.
@@ -48,7 +53,8 @@ def self.attribute_map
4853
:'pipeline_type' => :'pipeline_type',
4954
:'processor_groups' => :'processor_groups',
5055
:'processors' => :'processors',
51-
:'sources' => :'sources'
56+
:'sources' => :'sources',
57+
:'use_legacy_search_syntax' => :'use_legacy_search_syntax'
5258
}
5359
end
5460

@@ -60,7 +66,8 @@ def self.openapi_types
6066
:'pipeline_type' => :'ObservabilityPipelineConfigPipelineType',
6167
:'processor_groups' => :'Array<ObservabilityPipelineConfigProcessorGroup>',
6268
:'processors' => :'Array<ObservabilityPipelineConfigProcessorGroup>',
63-
:'sources' => :'Array<ObservabilityPipelineConfigSourceItem>'
69+
:'sources' => :'Array<ObservabilityPipelineConfigSourceItem>',
70+
:'use_legacy_search_syntax' => :'Boolean'
6471
}
6572
end
6673

@@ -109,6 +116,10 @@ def initialize(attributes = {})
109116
self.sources = value
110117
end
111118
end
119+
120+
if attributes.key?(:'use_legacy_search_syntax')
121+
self.use_legacy_search_syntax = attributes[:'use_legacy_search_syntax']
122+
end
112123
end
113124

114125
# Check to see if the all the properties in the model are valid
@@ -171,14 +182,15 @@ def ==(o)
171182
processor_groups == o.processor_groups &&
172183
processors == o.processors &&
173184
sources == o.sources &&
185+
use_legacy_search_syntax == o.use_legacy_search_syntax &&
174186
additional_properties == o.additional_properties
175187
end
176188

177189
# Calculates hash code according to all attributes.
178190
# @return [Integer] Hash code
179191
# @!visibility private
180192
def hash
181-
[destinations, pipeline_type, processor_groups, processors, sources, additional_properties].hash
193+
[destinations, pipeline_type, processor_groups, processors, sources, use_legacy_search_syntax, additional_properties].hash
182194
end
183195
end
184196
end

0 commit comments

Comments
 (0)