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 {