Skip to content

Commit

Permalink
Regenerate client from commit aabcab59 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Dec 11, 2024
1 parent a54aae3 commit b98a530
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
2 changes: 2 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions src/datadogV2/model/model_slo_report_interval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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(),
Expand All @@ -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 {
Expand Down

0 comments on commit b98a530

Please sign in to comment.