Skip to content

Commit cddc75f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e771d13 of spec repo
1 parent 118b5d4 commit cddc75f

File tree

2 files changed

+51
-2
lines changed

2 files changed

+51
-2
lines changed

.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

src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineConfig.java

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
ObservabilityPipelineConfig.JSON_PROPERTY_PIPELINE_TYPE,
2626
ObservabilityPipelineConfig.JSON_PROPERTY_PROCESSOR_GROUPS,
2727
ObservabilityPipelineConfig.JSON_PROPERTY_PROCESSORS,
28-
ObservabilityPipelineConfig.JSON_PROPERTY_SOURCES
28+
ObservabilityPipelineConfig.JSON_PROPERTY_SOURCES,
29+
ObservabilityPipelineConfig.JSON_PROPERTY_USE_LEGACY_SEARCH_SYNTAX
2930
})
3031
@jakarta.annotation.Generated(
3132
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -47,6 +48,9 @@ public class ObservabilityPipelineConfig {
4748
public static final String JSON_PROPERTY_SOURCES = "sources";
4849
private List<ObservabilityPipelineConfigSourceItem> sources = new ArrayList<>();
4950

51+
public static final String JSON_PROPERTY_USE_LEGACY_SEARCH_SYNTAX = "use_legacy_search_syntax";
52+
private Boolean useLegacySearchSyntax;
53+
5054
public ObservabilityPipelineConfig() {}
5155

5256
@JsonCreator
@@ -222,6 +226,31 @@ public void setSources(List<ObservabilityPipelineConfigSourceItem> sources) {
222226
this.sources = sources;
223227
}
224228

229+
public ObservabilityPipelineConfig useLegacySearchSyntax(Boolean useLegacySearchSyntax) {
230+
this.useLegacySearchSyntax = useLegacySearchSyntax;
231+
return this;
232+
}
233+
234+
/**
235+
* <strong>Warning</strong>: Use this field only when migrating existing pipelines from the legacy
236+
* search syntax to the new search syntax. Requires Observability Pipelines Worker version 2.11 or
237+
* later. See <a
238+
* href="https://docs.datadoghq.com/observability_pipelines/guide/upgrade_your_filter_queries_to_the_new_search_syntax/">Upgrade
239+
* Your Filter Queries to the New Search Syntax</a> for more information.
240+
*
241+
* @return useLegacySearchSyntax
242+
*/
243+
@jakarta.annotation.Nullable
244+
@JsonProperty(JSON_PROPERTY_USE_LEGACY_SEARCH_SYNTAX)
245+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
246+
public Boolean getUseLegacySearchSyntax() {
247+
return useLegacySearchSyntax;
248+
}
249+
250+
public void setUseLegacySearchSyntax(Boolean useLegacySearchSyntax) {
251+
this.useLegacySearchSyntax = useLegacySearchSyntax;
252+
}
253+
225254
/**
226255
* A container for additional, undeclared properties. This is a holder for any undeclared
227256
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -283,14 +312,22 @@ public boolean equals(Object o) {
283312
&& Objects.equals(this.processorGroups, observabilityPipelineConfig.processorGroups)
284313
&& Objects.equals(this.processors, observabilityPipelineConfig.processors)
285314
&& Objects.equals(this.sources, observabilityPipelineConfig.sources)
315+
&& Objects.equals(
316+
this.useLegacySearchSyntax, observabilityPipelineConfig.useLegacySearchSyntax)
286317
&& Objects.equals(
287318
this.additionalProperties, observabilityPipelineConfig.additionalProperties);
288319
}
289320

290321
@Override
291322
public int hashCode() {
292323
return Objects.hash(
293-
destinations, pipelineType, processorGroups, processors, sources, additionalProperties);
324+
destinations,
325+
pipelineType,
326+
processorGroups,
327+
processors,
328+
sources,
329+
useLegacySearchSyntax,
330+
additionalProperties);
294331
}
295332

296333
@Override
@@ -302,6 +339,9 @@ public String toString() {
302339
sb.append(" processorGroups: ").append(toIndentedString(processorGroups)).append("\n");
303340
sb.append(" processors: ").append(toIndentedString(processors)).append("\n");
304341
sb.append(" sources: ").append(toIndentedString(sources)).append("\n");
342+
sb.append(" useLegacySearchSyntax: ")
343+
.append(toIndentedString(useLegacySearchSyntax))
344+
.append("\n");
305345
sb.append(" additionalProperties: ")
306346
.append(toIndentedString(additionalProperties))
307347
.append("\n");

0 commit comments

Comments
 (0)