From 72617bbf4d9d31d03aad85ff61ff75ae8e03a22f Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 12 Dec 2024 14:33:08 +0000 Subject: [PATCH] Regenerate client from commit 3ebe762b of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 2 ++ src/datadogV2/model/model_slo_report_interval.rs | 3 +++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 6f391c666..55e7548e6 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-12 13:29:27.994176", - "spec_repo_commit": "f0c3c0f4" + "regenerated": "2024-12-12 14:27:14.493663", + "spec_repo_commit": "3ebe762b" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-12 13:29:28.013354", - "spec_repo_commit": "f0c3c0f4" + "regenerated": "2024-12-12 14:27:14.513351", + "spec_repo_commit": "3ebe762b" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 643901c6d..05e8f325c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -21110,11 +21110,13 @@ components: SLOReportInterval: description: The frequency at which report data is to be generated. enum: + - daily - weekly - monthly example: weekly type: string x-enum-varnames: + - DAILY - WEEKLY - MONTHLY SLOReportPostResponse: diff --git a/src/datadogV2/model/model_slo_report_interval.rs b/src/datadogV2/model/model_slo_report_interval.rs index 3f74ea8ba..d30566a1f 100644 --- a/src/datadogV2/model/model_slo_report_interval.rs +++ b/src/datadogV2/model/model_slo_report_interval.rs @@ -7,6 +7,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer}; #[non_exhaustive] #[derive(Clone, Debug, Eq, PartialEq)] pub enum SLOReportInterval { + DAILY, WEEKLY, MONTHLY, UnparsedObject(crate::datadog::UnparsedObject), @@ -15,6 +16,7 @@ pub enum SLOReportInterval { impl ToString for SLOReportInterval { fn to_string(&self) -> String { match self { + Self::DAILY => String::from("daily"), Self::WEEKLY => String::from("weekly"), Self::MONTHLY => String::from("monthly"), Self::UnparsedObject(v) => v.value.to_string(), @@ -41,6 +43,7 @@ impl<'de> Deserialize<'de> for SLOReportInterval { { let s: String = String::deserialize(deserializer)?; Ok(match s.as_str() { + "daily" => Self::DAILY, "weekly" => Self::WEEKLY, "monthly" => Self::MONTHLY, _ => Self::UnparsedObject(crate::datadog::UnparsedObject {