Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19984,7 +19984,8 @@ components:
description: The account public ID.
type: string
billing_plan:
description: The billing plan.
deprecated: true
description: The billing plan (metadata). (Deprecated from May 2026)
type: string
end_date:
description: Shows the last date of usage.
Expand Down
16 changes: 15 additions & 1 deletion src/datadogV1/model/model_usage_billable_summary_hour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ pub struct UsageBillableSummaryHour {
/// The account public ID.
#[serde(rename = "account_public_id")]
pub account_public_id: Option<String>,
/// The billing plan.
/// The billing plan (metadata). (Deprecated from May 2026)
#[deprecated]
#[serde(rename = "billing_plan")]
pub billing_plan: Option<String>,
/// Shows the last date of usage.
Expand Down Expand Up @@ -53,6 +54,7 @@ pub struct UsageBillableSummaryHour {

impl UsageBillableSummaryHour {
pub fn new() -> UsageBillableSummaryHour {
#[allow(deprecated)]
UsageBillableSummaryHour {
account_name: None,
account_public_id: None,
Expand All @@ -70,56 +72,67 @@ impl UsageBillableSummaryHour {
}
}

#[allow(deprecated)]
pub fn account_name(mut self, value: String) -> Self {
self.account_name = Some(value);
self
}

#[allow(deprecated)]
pub fn account_public_id(mut self, value: String) -> Self {
self.account_public_id = Some(value);
self
}

#[allow(deprecated)]
pub fn billing_plan(mut self, value: String) -> Self {
self.billing_plan = Some(value);
self
}

#[allow(deprecated)]
pub fn end_date(mut self, value: chrono::DateTime<chrono::Utc>) -> Self {
self.end_date = Some(value);
self
}

#[allow(deprecated)]
pub fn num_orgs(mut self, value: i64) -> Self {
self.num_orgs = Some(value);
self
}

#[allow(deprecated)]
pub fn org_name(mut self, value: String) -> Self {
self.org_name = Some(value);
self
}

#[allow(deprecated)]
pub fn public_id(mut self, value: String) -> Self {
self.public_id = Some(value);
self
}

#[allow(deprecated)]
pub fn ratio_in_month(mut self, value: f64) -> Self {
self.ratio_in_month = Some(value);
self
}

#[allow(deprecated)]
pub fn region(mut self, value: String) -> Self {
self.region = Some(value);
self
}

#[allow(deprecated)]
pub fn start_date(mut self, value: chrono::DateTime<chrono::Utc>) -> Self {
self.start_date = Some(value);
self
}

#[allow(deprecated)]
pub fn usage(mut self, value: crate::datadogV1::model::UsageBillableSummaryKeys) -> Self {
self.usage = Some(value);
self
Expand Down Expand Up @@ -254,6 +267,7 @@ impl<'de> Deserialize<'de> for UsageBillableSummaryHour {
}
}

#[allow(deprecated)]
let content = UsageBillableSummaryHour {
account_name,
account_public_id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-02-18T16:57:05.121Z
2026-01-07T12:38:45.716Z
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"response": {
"body": {
"string": "{\"data\":{\"type\":\"suites\",\"attributes\":{\"type\":\"suite\",\"monitor_id\":259845717,\"name\":\"Example suite name\",\"options\":{},\"tests\":[],\"tags\":[\"env:production\"],\"public_id\":\"hik-xp5-9q6\",\"created_at\":\"2026-02-18T16:57:05.583051+00:00\",\"modified_at\":\"2026-02-18T16:57:05.583051+00:00\",\"created_by\":{\"name\":\"Corentin Girard\",\"email\":\"corentin.girard@datadoghq.com\",\"handle\":\"corentin.girard@datadoghq.com\"},\"message\":\"Notification message\",\"org_id\":321813,\"modified_by\":{\"name\":\"Corentin Girard\",\"email\":\"corentin.girard@datadoghq.com\",\"handle\":\"corentin.girard@datadoghq.com\"}},\"id\":\"hik-xp5-9q6\"}}\n",
"string": "{\"data\":{\"type\":\"suites\",\"id\":\"36n-bb6-njj\",\"attributes\":{\"tags\":[\"env:production\"],\"type\":\"suite\",\"created_by\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"},\"created_at\":\"2026-01-07T12:38:46.109472+00:00\",\"modified_at\":\"2026-01-07T12:38:46.109472+00:00\",\"message\":\"Notification message\",\"public_id\":\"36n-bb6-njj\",\"options\":{},\"modified_by\":{\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"},\"tests\":[],\"name\":\"Example suite name\",\"org_id\":321813,\"monitor_id\":249141773}}}\n",
"encoding": null
},
"headers": {
Expand All @@ -32,12 +32,12 @@
"message": "OK"
}
},
"recorded_at": "Wed, 18 Feb 2026 16:57:05 GMT"
"recorded_at": "Wed, 07 Jan 2026 12:38:45 GMT"
},
{
"request": {
"body": {
"string": "{\"data\":{\"attributes\":{\"public_ids\":[\"hik-xp5-9q6\"]},\"type\":\"delete_suites_request\"}}",
"string": "{\"data\":{\"attributes\":{\"public_ids\":[\"36n-bb6-njj\"]},\"type\":\"delete_suites_request\"}}",
"encoding": null
},
"headers": {
Expand All @@ -53,7 +53,7 @@
},
"response": {
"body": {
"string": "{\"data\":[{\"type\":\"suites\",\"attributes\":{\"deleted_at\":\"2026-02-18 16:57:06.420679\",\"public_id\":\"hik-xp5-9q6\"},\"id\":\"hik-xp5-9q6\"}]}\n",
"string": "{\"data\":[{\"type\":\"suites\",\"attributes\":{\"public_id\":\"36n-bb6-njj\",\"deleted_at\":\"2026-01-07 12:38:46.679914\"},\"id\":\"36n-bb6-njj\"}]}\n",
"encoding": null
},
"headers": {
Expand All @@ -66,7 +66,7 @@
"message": "OK"
}
},
"recorded_at": "Wed, 18 Feb 2026 16:57:05 GMT"
"recorded_at": "Wed, 07 Jan 2026 12:38:45 GMT"
}
],
"recorded_with": "VCR 6.0.0"
Expand Down