From 49c7038f39d955ded3ed6d133fb4fb28de9e58ca Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 24 Jul 2025 20:03:03 +0000 Subject: [PATCH] Regenerate client from commit c09ac23 of spec repo --- .generated-info | 4 ++-- .generator/schemas/v2/openapi.yaml | 13 ++++++++++++- .../model/model_metric_asset_attributes.rs | 19 ++++++++++++++++++- .../model/model_metric_monitor_asset.rs | 2 +- .../model/model_metric_notebook_asset.rs | 2 +- src/datadogV2/model/model_metric_slo_asset.rs | 2 +- 6 files changed, 35 insertions(+), 7 deletions(-) diff --git a/.generated-info b/.generated-info index 428ff86cc..44b4c4ab8 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "4727afe", - "generated": "2025-07-23 15:41:53.403" + "spec_repo_commit": "c09ac23", + "generated": "2025-07-24 20:03:03.255" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d6126b443..db8036425 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -22454,8 +22454,19 @@ components: readOnly: true type: object MetricAssetAttributes: - description: Assets related to the object, including title and url. + description: Assets related to the object, including title, url, and tags. properties: + tags: + description: List of tag keys used in the asset. + example: + - env + - service + - host + - datacenter + items: + description: Tag key used in assets. + type: string + type: array title: description: Title of the asset. type: string diff --git a/src/datadogV2/model/model_metric_asset_attributes.rs b/src/datadogV2/model/model_metric_asset_attributes.rs index e79970ee1..1a02b4941 100644 --- a/src/datadogV2/model/model_metric_asset_attributes.rs +++ b/src/datadogV2/model/model_metric_asset_attributes.rs @@ -6,11 +6,14 @@ use serde::{Deserialize, Deserializer, Serialize}; use serde_with::skip_serializing_none; use std::fmt::{self, Formatter}; -/// Assets related to the object, including title and url. +/// Assets related to the object, including title, url, and tags. #[non_exhaustive] #[skip_serializing_none] #[derive(Clone, Debug, PartialEq, Serialize)] pub struct MetricAssetAttributes { + /// List of tag keys used in the asset. + #[serde(rename = "tags")] + pub tags: Option>, /// Title of the asset. #[serde(rename = "title")] pub title: Option, @@ -27,6 +30,7 @@ pub struct MetricAssetAttributes { impl MetricAssetAttributes { pub fn new() -> MetricAssetAttributes { MetricAssetAttributes { + tags: None, title: None, url: None, additional_properties: std::collections::BTreeMap::new(), @@ -34,6 +38,11 @@ impl MetricAssetAttributes { } } + pub fn tags(mut self, value: Vec) -> Self { + self.tags = Some(value); + self + } + pub fn title(mut self, value: String) -> Self { self.title = Some(value); self @@ -76,6 +85,7 @@ impl<'de> Deserialize<'de> for MetricAssetAttributes { where M: MapAccess<'a>, { + let mut tags: Option> = None; let mut title: Option = None; let mut url: Option = None; let mut additional_properties: std::collections::BTreeMap< @@ -86,6 +96,12 @@ impl<'de> Deserialize<'de> for MetricAssetAttributes { while let Some((k, v)) = map.next_entry::()? { match k.as_str() { + "tags" => { + if v.is_null() { + continue; + } + tags = Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "title" => { if v.is_null() { continue; @@ -107,6 +123,7 @@ impl<'de> Deserialize<'de> for MetricAssetAttributes { } let content = MetricAssetAttributes { + tags, title, url, additional_properties, diff --git a/src/datadogV2/model/model_metric_monitor_asset.rs b/src/datadogV2/model/model_metric_monitor_asset.rs index 985d1a6fb..c90c5bed0 100644 --- a/src/datadogV2/model/model_metric_monitor_asset.rs +++ b/src/datadogV2/model/model_metric_monitor_asset.rs @@ -11,7 +11,7 @@ use std::fmt::{self, Formatter}; #[skip_serializing_none] #[derive(Clone, Debug, PartialEq, Serialize)] pub struct MetricMonitorAsset { - /// Assets related to the object, including title and url. + /// Assets related to the object, including title, url, and tags. #[serde(rename = "attributes")] pub attributes: Option, /// The related monitor's ID. diff --git a/src/datadogV2/model/model_metric_notebook_asset.rs b/src/datadogV2/model/model_metric_notebook_asset.rs index 7864a5113..4872196ab 100644 --- a/src/datadogV2/model/model_metric_notebook_asset.rs +++ b/src/datadogV2/model/model_metric_notebook_asset.rs @@ -11,7 +11,7 @@ use std::fmt::{self, Formatter}; #[skip_serializing_none] #[derive(Clone, Debug, PartialEq, Serialize)] pub struct MetricNotebookAsset { - /// Assets related to the object, including title and url. + /// Assets related to the object, including title, url, and tags. #[serde(rename = "attributes")] pub attributes: Option, /// The related notebook's ID. diff --git a/src/datadogV2/model/model_metric_slo_asset.rs b/src/datadogV2/model/model_metric_slo_asset.rs index 90d16e730..b799141f0 100644 --- a/src/datadogV2/model/model_metric_slo_asset.rs +++ b/src/datadogV2/model/model_metric_slo_asset.rs @@ -11,7 +11,7 @@ use std::fmt::{self, Formatter}; #[skip_serializing_none] #[derive(Clone, Debug, PartialEq, Serialize)] pub struct MetricSLOAsset { - /// Assets related to the object, including title and url. + /// Assets related to the object, including title, url, and tags. #[serde(rename = "attributes")] pub attributes: Option, /// The SLO ID.