From f327a558f65420ebe591d49105dff7a0804ec167 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 19 Nov 2025 11:29:20 +0000 Subject: [PATCH] Regenerate client from commit dfcbd9b of spec repo --- .generator/schemas/v2/openapi.yaml | 4 --- ...y_pipeline_google_chronicle_destination.rs | 14 ++++++--- ...peline_google_cloud_storage_destination.rs | 31 ++++++++++++++----- ...vability_pipeline_google_pub_sub_source.rs | 14 ++++++--- 4 files changed, 43 insertions(+), 20 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 71b4528bc..5c692d070 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -34514,7 +34514,6 @@ components: - id - type - inputs - - auth - customer_id type: object ObservabilityPipelineGoogleChronicleDestinationEncoding: @@ -34580,9 +34579,7 @@ components: - type - inputs - bucket - - auth - storage_class - - acl type: object ObservabilityPipelineGoogleCloudStorageDestinationAcl: description: Access control list setting for objects written to the bucket. @@ -34713,7 +34710,6 @@ components: required: - id - type - - auth - decoding - project - subscription diff --git a/src/datadogV2/model/model_observability_pipeline_google_chronicle_destination.rs b/src/datadogV2/model/model_observability_pipeline_google_chronicle_destination.rs index 0bcf08238..4c8ec789a 100644 --- a/src/datadogV2/model/model_observability_pipeline_google_chronicle_destination.rs +++ b/src/datadogV2/model/model_observability_pipeline_google_chronicle_destination.rs @@ -13,7 +13,7 @@ use std::fmt::{self, Formatter}; pub struct ObservabilityPipelineGoogleChronicleDestination { /// GCP credentials used to authenticate with Google Cloud Storage. #[serde(rename = "auth")] - pub auth: crate::datadogV2::model::ObservabilityPipelineGcpAuth, + pub auth: Option, /// The Google Chronicle customer ID. #[serde(rename = "customer_id")] pub customer_id: String, @@ -42,14 +42,13 @@ pub struct ObservabilityPipelineGoogleChronicleDestination { impl ObservabilityPipelineGoogleChronicleDestination { pub fn new( - auth: crate::datadogV2::model::ObservabilityPipelineGcpAuth, customer_id: String, id: String, inputs: Vec, type_: crate::datadogV2::model::ObservabilityPipelineGoogleChronicleDestinationType, ) -> ObservabilityPipelineGoogleChronicleDestination { ObservabilityPipelineGoogleChronicleDestination { - auth, + auth: None, customer_id, encoding: None, id, @@ -61,6 +60,11 @@ impl ObservabilityPipelineGoogleChronicleDestination { } } + pub fn auth(mut self, value: crate::datadogV2::model::ObservabilityPipelineGcpAuth) -> Self { + self.auth = Some(value); + self + } + pub fn encoding( mut self, value: crate::datadogV2::model::ObservabilityPipelineGoogleChronicleDestinationEncoding, @@ -118,6 +122,9 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineGoogleChronicleDestination { while let Some((k, v)) = map.next_entry::()? { match k.as_str() { "auth" => { + if v.is_null() { + continue; + } auth = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } "customer_id" => { @@ -168,7 +175,6 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineGoogleChronicleDestination { } } } - let auth = auth.ok_or_else(|| M::Error::missing_field("auth"))?; let customer_id = customer_id.ok_or_else(|| M::Error::missing_field("customer_id"))?; let id = id.ok_or_else(|| M::Error::missing_field("id"))?; diff --git a/src/datadogV2/model/model_observability_pipeline_google_cloud_storage_destination.rs b/src/datadogV2/model/model_observability_pipeline_google_cloud_storage_destination.rs index 9a3ff06b6..49e9625d0 100644 --- a/src/datadogV2/model/model_observability_pipeline_google_cloud_storage_destination.rs +++ b/src/datadogV2/model/model_observability_pipeline_google_cloud_storage_destination.rs @@ -14,10 +14,10 @@ use std::fmt::{self, Formatter}; pub struct ObservabilityPipelineGoogleCloudStorageDestination { /// Access control list setting for objects written to the bucket. #[serde(rename = "acl")] - pub acl: crate::datadogV2::model::ObservabilityPipelineGoogleCloudStorageDestinationAcl, + pub acl: Option, /// GCP credentials used to authenticate with Google Cloud Storage. #[serde(rename = "auth")] - pub auth: crate::datadogV2::model::ObservabilityPipelineGcpAuth, + pub auth: Option, /// Name of the GCS bucket. #[serde(rename = "bucket")] pub bucket: String, @@ -49,8 +49,6 @@ pub struct ObservabilityPipelineGoogleCloudStorageDestination { impl ObservabilityPipelineGoogleCloudStorageDestination { pub fn new( - acl: crate::datadogV2::model::ObservabilityPipelineGoogleCloudStorageDestinationAcl, - auth: crate::datadogV2::model::ObservabilityPipelineGcpAuth, bucket: String, id: String, inputs: Vec, @@ -58,8 +56,8 @@ impl ObservabilityPipelineGoogleCloudStorageDestination { type_: crate::datadogV2::model::ObservabilityPipelineGoogleCloudStorageDestinationType, ) -> ObservabilityPipelineGoogleCloudStorageDestination { ObservabilityPipelineGoogleCloudStorageDestination { - acl, - auth, + acl: None, + auth: None, bucket, id, inputs, @@ -72,6 +70,19 @@ impl ObservabilityPipelineGoogleCloudStorageDestination { } } + pub fn acl( + mut self, + value: crate::datadogV2::model::ObservabilityPipelineGoogleCloudStorageDestinationAcl, + ) -> Self { + self.acl = Some(value); + self + } + + pub fn auth(mut self, value: crate::datadogV2::model::ObservabilityPipelineGcpAuth) -> Self { + self.auth = Some(value); + self + } + pub fn key_prefix(mut self, value: String) -> Self { self.key_prefix = Some(value); self @@ -135,6 +146,9 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineGoogleCloudStorageDestinatio while let Some((k, v)) = map.next_entry::()? { match k.as_str() { "acl" => { + if v.is_null() { + continue; + } acl = Some(serde_json::from_value(v).map_err(M::Error::custom)?); if let Some(ref _acl) = acl { match _acl { @@ -146,6 +160,9 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineGoogleCloudStorageDestinatio } } "auth" => { + if v.is_null() { + continue; + } auth = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } "bucket" => { @@ -199,8 +216,6 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineGoogleCloudStorageDestinatio } } } - let acl = acl.ok_or_else(|| M::Error::missing_field("acl"))?; - let auth = auth.ok_or_else(|| M::Error::missing_field("auth"))?; let bucket = bucket.ok_or_else(|| M::Error::missing_field("bucket"))?; let id = id.ok_or_else(|| M::Error::missing_field("id"))?; let inputs = inputs.ok_or_else(|| M::Error::missing_field("inputs"))?; diff --git a/src/datadogV2/model/model_observability_pipeline_google_pub_sub_source.rs b/src/datadogV2/model/model_observability_pipeline_google_pub_sub_source.rs index f64e02501..cc379a73c 100644 --- a/src/datadogV2/model/model_observability_pipeline_google_pub_sub_source.rs +++ b/src/datadogV2/model/model_observability_pipeline_google_pub_sub_source.rs @@ -13,7 +13,7 @@ use std::fmt::{self, Formatter}; pub struct ObservabilityPipelineGooglePubSubSource { /// GCP credentials used to authenticate with Google Cloud Storage. #[serde(rename = "auth")] - pub auth: crate::datadogV2::model::ObservabilityPipelineGcpAuth, + pub auth: Option, /// The decoding format used to interpret incoming logs. #[serde(rename = "decoding")] pub decoding: crate::datadogV2::model::ObservabilityPipelineDecoding, @@ -41,7 +41,6 @@ pub struct ObservabilityPipelineGooglePubSubSource { impl ObservabilityPipelineGooglePubSubSource { pub fn new( - auth: crate::datadogV2::model::ObservabilityPipelineGcpAuth, decoding: crate::datadogV2::model::ObservabilityPipelineDecoding, id: String, project: String, @@ -49,7 +48,7 @@ impl ObservabilityPipelineGooglePubSubSource { type_: crate::datadogV2::model::ObservabilityPipelineGooglePubSubSourceType, ) -> ObservabilityPipelineGooglePubSubSource { ObservabilityPipelineGooglePubSubSource { - auth, + auth: None, decoding, id, project, @@ -61,6 +60,11 @@ impl ObservabilityPipelineGooglePubSubSource { } } + pub fn auth(mut self, value: crate::datadogV2::model::ObservabilityPipelineGcpAuth) -> Self { + self.auth = Some(value); + self + } + pub fn tls(mut self, value: crate::datadogV2::model::ObservabilityPipelineTls) -> Self { self.tls = Some(value); self @@ -111,6 +115,9 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineGooglePubSubSource { while let Some((k, v)) = map.next_entry::()? { match k.as_str() { "auth" => { + if v.is_null() { + continue; + } auth = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } "decoding" => { @@ -158,7 +165,6 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineGooglePubSubSource { } } } - let auth = auth.ok_or_else(|| M::Error::missing_field("auth"))?; let decoding = decoding.ok_or_else(|| M::Error::missing_field("decoding"))?; let id = id.ok_or_else(|| M::Error::missing_field("id"))?; let project = project.ok_or_else(|| M::Error::missing_field("project"))?;