From ab9dc9cd9aa5047b4e19af018a8a34f0e7ab7e91 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 15 Oct 2025 17:51:10 +0000 Subject: [PATCH] Regenerate client from commit 6bb96c9 of spec repo --- .generator/schemas/v2/openapi.yaml | 4 ++ .../model_observability_pipeline_config.go | 43 +++++++++++++++++-- 2 files changed, 43 insertions(+), 4 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d1ea8725c69..fac0ebcd514 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -31470,6 +31470,10 @@ components: items: $ref: '#/components/schemas/ObservabilityPipelineConfigSourceItem' type: array + use_legacy_search_syntax: + description: Use this field to configure the pipeline's filter queries to + use the deprecated search syntax. + type: boolean required: - sources - destinations diff --git a/api/datadogV2/model_observability_pipeline_config.go b/api/datadogV2/model_observability_pipeline_config.go index 411ab08fc3b..b05ebc8eb26 100644 --- a/api/datadogV2/model_observability_pipeline_config.go +++ b/api/datadogV2/model_observability_pipeline_config.go @@ -18,6 +18,8 @@ type ObservabilityPipelineConfig struct { Processors []ObservabilityPipelineConfigProcessorItem `json:"processors,omitempty"` // A list of configured data sources for the pipeline. Sources []ObservabilityPipelineConfigSourceItem `json:"sources"` + // Use this field to configure the pipeline's filter queries to use the deprecated search syntax. + UseLegacySearchSyntax *bool `json:"use_legacy_search_syntax,omitempty"` // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct UnparsedObject map[string]interface{} `json:"-"` AdditionalProperties map[string]interface{} `json:"-"` @@ -116,6 +118,34 @@ func (o *ObservabilityPipelineConfig) SetSources(v []ObservabilityPipelineConfig o.Sources = v } +// GetUseLegacySearchSyntax returns the UseLegacySearchSyntax field value if set, zero value otherwise. +func (o *ObservabilityPipelineConfig) GetUseLegacySearchSyntax() bool { + if o == nil || o.UseLegacySearchSyntax == nil { + var ret bool + return ret + } + return *o.UseLegacySearchSyntax +} + +// GetUseLegacySearchSyntaxOk returns a tuple with the UseLegacySearchSyntax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObservabilityPipelineConfig) GetUseLegacySearchSyntaxOk() (*bool, bool) { + if o == nil || o.UseLegacySearchSyntax == nil { + return nil, false + } + return o.UseLegacySearchSyntax, true +} + +// HasUseLegacySearchSyntax returns a boolean if a field has been set. +func (o *ObservabilityPipelineConfig) HasUseLegacySearchSyntax() bool { + return o != nil && o.UseLegacySearchSyntax != nil +} + +// SetUseLegacySearchSyntax gets a reference to the given bool and assigns it to the UseLegacySearchSyntax field. +func (o *ObservabilityPipelineConfig) SetUseLegacySearchSyntax(v bool) { + o.UseLegacySearchSyntax = &v +} + // MarshalJSON serializes the struct using spec logic. func (o ObservabilityPipelineConfig) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} @@ -127,6 +157,9 @@ func (o ObservabilityPipelineConfig) MarshalJSON() ([]byte, error) { toSerialize["processors"] = o.Processors } toSerialize["sources"] = o.Sources + if o.UseLegacySearchSyntax != nil { + toSerialize["use_legacy_search_syntax"] = o.UseLegacySearchSyntax + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -137,9 +170,10 @@ func (o ObservabilityPipelineConfig) MarshalJSON() ([]byte, error) { // UnmarshalJSON deserializes the given payload. func (o *ObservabilityPipelineConfig) UnmarshalJSON(bytes []byte) (err error) { all := struct { - Destinations *[]ObservabilityPipelineConfigDestinationItem `json:"destinations"` - Processors []ObservabilityPipelineConfigProcessorItem `json:"processors,omitempty"` - Sources *[]ObservabilityPipelineConfigSourceItem `json:"sources"` + Destinations *[]ObservabilityPipelineConfigDestinationItem `json:"destinations"` + Processors []ObservabilityPipelineConfigProcessorItem `json:"processors,omitempty"` + Sources *[]ObservabilityPipelineConfigSourceItem `json:"sources"` + UseLegacySearchSyntax *bool `json:"use_legacy_search_syntax,omitempty"` }{} if err = datadog.Unmarshal(bytes, &all); err != nil { return datadog.Unmarshal(bytes, &o.UnparsedObject) @@ -152,13 +186,14 @@ func (o *ObservabilityPipelineConfig) UnmarshalJSON(bytes []byte) (err error) { } additionalProperties := make(map[string]interface{}) if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil { - datadog.DeleteKeys(additionalProperties, &[]string{"destinations", "processors", "sources"}) + datadog.DeleteKeys(additionalProperties, &[]string{"destinations", "processors", "sources", "use_legacy_search_syntax"}) } else { return err } o.Destinations = *all.Destinations o.Processors = all.Processors o.Sources = *all.Sources + o.UseLegacySearchSyntax = all.UseLegacySearchSyntax if len(additionalProperties) > 0 { o.AdditionalProperties = additionalProperties