From e90b4c47d00a689266697a1cb89c6e5e3387b822 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 17 Jul 2024 08:41:00 +0000 Subject: [PATCH] Regenerate client from commit f77e7cb2 of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v1/openapi.yaml | 2 ++ .../model/model_formula_and_function_slo_query_type.rs | 3 +++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 9db8aea52..5221a3112 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-07-16 18:49:17.201925", - "spec_repo_commit": "a669b93e" + "regenerated": "2024-07-17 08:36:10.969102", + "spec_repo_commit": "f77e7cb2" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-07-16 18:49:17.219639", - "spec_repo_commit": "a669b93e" + "regenerated": "2024-07-17 08:36:10.987094", + "spec_repo_commit": "f77e7cb2" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 4e5dd7aba..84367ca5a 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3087,10 +3087,12 @@ components: description: Name of the query for use in formulas. enum: - metric + - time_slice example: metric type: string x-enum-varnames: - METRIC + - TIME_SLICE FormulaType: description: Set the sort type to formula. enum: diff --git a/src/datadogV1/model/model_formula_and_function_slo_query_type.rs b/src/datadogV1/model/model_formula_and_function_slo_query_type.rs index 507e5e4bf..55090cce7 100644 --- a/src/datadogV1/model/model_formula_and_function_slo_query_type.rs +++ b/src/datadogV1/model/model_formula_and_function_slo_query_type.rs @@ -8,6 +8,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer}; #[derive(Clone, Debug, Eq, PartialEq)] pub enum FormulaAndFunctionSLOQueryType { METRIC, + TIME_SLICE, UnparsedObject(crate::datadog::UnparsedObject), } @@ -15,6 +16,7 @@ impl ToString for FormulaAndFunctionSLOQueryType { fn to_string(&self) -> String { match self { Self::METRIC => String::from("metric"), + Self::TIME_SLICE => String::from("time_slice"), Self::UnparsedObject(v) => v.value.to_string(), } } @@ -40,6 +42,7 @@ impl<'de> Deserialize<'de> for FormulaAndFunctionSLOQueryType { let s: String = String::deserialize(deserializer)?; Ok(match s.as_str() { "metric" => Self::METRIC, + "time_slice" => Self::TIME_SLICE, _ => Self::UnparsedObject(crate::datadog::UnparsedObject { value: serde_json::Value::String(s.into()), }),