From 6ac038ace90c86bce4f15e9c358c26855cb2c5fc Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 27 Feb 2026 18:49:06 +0000 Subject: [PATCH] Regenerate client from commit f921e5c of spec repo --- .generator/schemas/v1/openapi.yaml | 3 ++- .../model/model_usage_billable_summary_hour.rs | 16 +++++++++++++++- ...reate-a-test-suite-returns-OK-response.frozen | 2 +- .../Create-a-test-suite-returns-OK-response.json | 10 +++++----- 4 files changed, 23 insertions(+), 8 deletions(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index bf2effce6..63cc1eeb5 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -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. diff --git a/src/datadogV1/model/model_usage_billable_summary_hour.rs b/src/datadogV1/model/model_usage_billable_summary_hour.rs index ab15a17b9..3720bed9e 100644 --- a/src/datadogV1/model/model_usage_billable_summary_hour.rs +++ b/src/datadogV1/model/model_usage_billable_summary_hour.rs @@ -17,7 +17,8 @@ pub struct UsageBillableSummaryHour { /// The account public ID. #[serde(rename = "account_public_id")] pub account_public_id: Option, - /// The billing plan. + /// The billing plan (metadata). (Deprecated from May 2026) + #[deprecated] #[serde(rename = "billing_plan")] pub billing_plan: Option, /// Shows the last date of usage. @@ -53,6 +54,7 @@ pub struct UsageBillableSummaryHour { impl UsageBillableSummaryHour { pub fn new() -> UsageBillableSummaryHour { + #[allow(deprecated)] UsageBillableSummaryHour { account_name: None, account_public_id: None, @@ -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) -> 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) -> 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 @@ -254,6 +267,7 @@ impl<'de> Deserialize<'de> for UsageBillableSummaryHour { } } + #[allow(deprecated)] let content = UsageBillableSummaryHour { account_name, account_public_id, diff --git a/tests/scenarios/cassettes/v2/synthetics/Create-a-test-suite-returns-OK-response.frozen b/tests/scenarios/cassettes/v2/synthetics/Create-a-test-suite-returns-OK-response.frozen index 957e037f2..62723cd8d 100644 --- a/tests/scenarios/cassettes/v2/synthetics/Create-a-test-suite-returns-OK-response.frozen +++ b/tests/scenarios/cassettes/v2/synthetics/Create-a-test-suite-returns-OK-response.frozen @@ -1 +1 @@ -2026-02-18T16:57:05.121Z \ No newline at end of file +2026-01-07T12:38:45.716Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/v2/synthetics/Create-a-test-suite-returns-OK-response.json b/tests/scenarios/cassettes/v2/synthetics/Create-a-test-suite-returns-OK-response.json index 5ca68869f..d3ec9a345 100644 --- a/tests/scenarios/cassettes/v2/synthetics/Create-a-test-suite-returns-OK-response.json +++ b/tests/scenarios/cassettes/v2/synthetics/Create-a-test-suite-returns-OK-response.json @@ -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": { @@ -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": { @@ -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": { @@ -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"