Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ native-tls,https://github.com/sfackler/rust-native-tls,MIT OR Apache-2.0,Steven
num-conv,https://github.com/jhpratt/num-conv,MIT OR Apache-2.0,Jacob Pratt <[email protected]>
num-traits,https://github.com/rust-num/num-traits,MIT OR Apache-2.0,The Rust Project Developers
once_cell,https://github.com/matklad/once_cell,MIT OR Apache-2.0,Aleksey Kladov <[email protected]>
openssl,https://github.com/sfackler/rust-openssl,Apache-2.0,Steven Fackler <[email protected]>
openssl,https://github.com/rust-openssl/rust-openssl,Apache-2.0,Steven Fackler <[email protected]>
openssl-macros,https://github.com/sfackler/rust-openssl,MIT OR Apache-2.0,The openssl-macros Authors
openssl-probe,https://github.com/alexcrichton/openssl-probe,MIT OR Apache-2.0,Alex Crichton <[email protected]>
openssl-sys,https://github.com/sfackler/rust-openssl,MIT,"Alex Crichton <[email protected]>, Steven Fackler <[email protected]>"
openssl-sys,https://github.com/rust-openssl/rust-openssl,MIT,"Alex Crichton <[email protected]>, Steven Fackler <[email protected]>"
parking_lot,https://github.com/Amanieu/parking_lot,Apache-2.0 OR MIT,Amanieu d'Antras <[email protected]>
parking_lot_core,https://github.com/Amanieu/parking_lot,Apache-2.0 OR MIT,Amanieu d'Antras <[email protected]>
percent-encoding,https://github.com/servo/rust-url,MIT OR Apache-2.0,The rust-url developers
Expand Down
18 changes: 18 additions & 0 deletions src/datadogV2/model/model_observability_pipeline_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ pub struct ObservabilityPipelineConfig {
/// A list of configured data sources for the pipeline.
#[serde(rename = "sources")]
pub sources: Vec<crate::datadogV2::model::ObservabilityPipelineConfigSourceItem>,
/// Use this field to configure the pipeline's filter queries to use the deprecated search syntax.
#[serde(rename = "use_legacy_search_syntax")]
pub use_legacy_search_syntax: Option<bool>,
#[serde(flatten)]
pub additional_properties: std::collections::BTreeMap<String, serde_json::Value>,
#[serde(skip)]
Expand All @@ -36,6 +39,7 @@ impl ObservabilityPipelineConfig {
destinations,
processors: None,
sources,
use_legacy_search_syntax: None,
additional_properties: std::collections::BTreeMap::new(),
_unparsed: false,
}
Expand All @@ -49,6 +53,11 @@ impl ObservabilityPipelineConfig {
self
}

pub fn use_legacy_search_syntax(mut self, value: bool) -> Self {
self.use_legacy_search_syntax = Some(value);
self
}

pub fn additional_properties(
mut self,
value: std::collections::BTreeMap<String, serde_json::Value>,
Expand Down Expand Up @@ -84,6 +93,7 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineConfig {
let mut sources: Option<
Vec<crate::datadogV2::model::ObservabilityPipelineConfigSourceItem>,
> = None;
let mut use_legacy_search_syntax: Option<bool> = None;
let mut additional_properties: std::collections::BTreeMap<
String,
serde_json::Value,
Expand All @@ -105,6 +115,13 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineConfig {
"sources" => {
sources = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"use_legacy_search_syntax" => {
if v.is_null() {
continue;
}
use_legacy_search_syntax =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
&_ => {
if let Ok(value) = serde_json::from_value(v.clone()) {
additional_properties.insert(k, value);
Expand All @@ -120,6 +137,7 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineConfig {
destinations,
processors,
sources,
use_legacy_search_syntax,
additional_properties,
_unparsed,
};
Expand Down