Skip to content

Commit 23c1269

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6bb96c9 of spec repo
1 parent be44d1c commit 23c1269

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31470,6 +31470,10 @@ components:
3147031470
items:
3147131471
$ref: '#/components/schemas/ObservabilityPipelineConfigSourceItem'
3147231472
type: array
31473+
use_legacy_search_syntax:
31474+
description: Use this field to configure the pipeline's filter queries to
31475+
use the deprecated search syntax.
31476+
type: boolean
3147331477
required:
3147431478
- sources
3147531479
- destinations

LICENSE-3rdparty.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ native-tls,https://github.com/sfackler/rust-native-tls,MIT OR Apache-2.0,Steven
8383
num-conv,https://github.com/jhpratt/num-conv,MIT OR Apache-2.0,Jacob Pratt <[email protected]>
8484
num-traits,https://github.com/rust-num/num-traits,MIT OR Apache-2.0,The Rust Project Developers
8585
once_cell,https://github.com/matklad/once_cell,MIT OR Apache-2.0,Aleksey Kladov <[email protected]>
86-
openssl,https://github.com/sfackler/rust-openssl,Apache-2.0,Steven Fackler <[email protected]>
86+
openssl,https://github.com/rust-openssl/rust-openssl,Apache-2.0,Steven Fackler <[email protected]>
8787
openssl-macros,https://github.com/sfackler/rust-openssl,MIT OR Apache-2.0,The openssl-macros Authors
8888
openssl-probe,https://github.com/alexcrichton/openssl-probe,MIT OR Apache-2.0,Alex Crichton <[email protected]>
89-
openssl-sys,https://github.com/sfackler/rust-openssl,MIT,"Alex Crichton <[email protected]>, Steven Fackler <[email protected]>"
89+
openssl-sys,https://github.com/rust-openssl/rust-openssl,MIT,"Alex Crichton <[email protected]>, Steven Fackler <[email protected]>"
9090
parking_lot,https://github.com/Amanieu/parking_lot,Apache-2.0 OR MIT,Amanieu d'Antras <[email protected]>
9191
parking_lot_core,https://github.com/Amanieu/parking_lot,Apache-2.0 OR MIT,Amanieu d'Antras <[email protected]>
9292
percent-encoding,https://github.com/servo/rust-url,MIT OR Apache-2.0,The rust-url developers

src/datadogV2/model/model_observability_pipeline_config.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ pub struct ObservabilityPipelineConfig {
2020
/// A list of configured data sources for the pipeline.
2121
#[serde(rename = "sources")]
2222
pub sources: Vec<crate::datadogV2::model::ObservabilityPipelineConfigSourceItem>,
23+
/// Use this field to configure the pipeline's filter queries to use the deprecated search syntax.
24+
#[serde(rename = "use_legacy_search_syntax")]
25+
pub use_legacy_search_syntax: Option<bool>,
2326
#[serde(flatten)]
2427
pub additional_properties: std::collections::BTreeMap<String, serde_json::Value>,
2528
#[serde(skip)]
@@ -36,6 +39,7 @@ impl ObservabilityPipelineConfig {
3639
destinations,
3740
processors: None,
3841
sources,
42+
use_legacy_search_syntax: None,
3943
additional_properties: std::collections::BTreeMap::new(),
4044
_unparsed: false,
4145
}
@@ -49,6 +53,11 @@ impl ObservabilityPipelineConfig {
4953
self
5054
}
5155

56+
pub fn use_legacy_search_syntax(mut self, value: bool) -> Self {
57+
self.use_legacy_search_syntax = Some(value);
58+
self
59+
}
60+
5261
pub fn additional_properties(
5362
mut self,
5463
value: std::collections::BTreeMap<String, serde_json::Value>,
@@ -84,6 +93,7 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineConfig {
8493
let mut sources: Option<
8594
Vec<crate::datadogV2::model::ObservabilityPipelineConfigSourceItem>,
8695
> = None;
96+
let mut use_legacy_search_syntax: Option<bool> = None;
8797
let mut additional_properties: std::collections::BTreeMap<
8898
String,
8999
serde_json::Value,
@@ -105,6 +115,13 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineConfig {
105115
"sources" => {
106116
sources = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
107117
}
118+
"use_legacy_search_syntax" => {
119+
if v.is_null() {
120+
continue;
121+
}
122+
use_legacy_search_syntax =
123+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
124+
}
108125
&_ => {
109126
if let Ok(value) = serde_json::from_value(v.clone()) {
110127
additional_properties.insert(k, value);
@@ -120,6 +137,7 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineConfig {
120137
destinations,
121138
processors,
122139
sources,
140+
use_legacy_search_syntax,
123141
additional_properties,
124142
_unparsed,
125143
};

0 commit comments

Comments
 (0)