From b98a530f93f6116c65cc9dde6533dad709b5cec3 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 11 Dec 2024 16:48:21 +0000 Subject: [PATCH] Regenerate client from commit aabcab59 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 63a1bb291..f2ca43f75 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-11 14:25:08.232155", - "spec_repo_commit": "7a9d0200" + "regenerated": "2024-12-11 16:42:25.593953", + "spec_repo_commit": "aabcab59" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-11 14:25:08.250711", - "spec_repo_commit": "7a9d0200" + "regenerated": "2024-12-11 16:42:25.613061", + "spec_repo_commit": "aabcab59" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 8b55ec7ed..48610f115 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -21001,11 +21001,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 {