Skip to content

Commit f2e7ab9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
billing_plan field deprecation in billable-summary endpoint (#1289)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent ff67556 commit f2e7ab9

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20019,7 +20019,8 @@ components:
2001920019
description: The account public ID.
2002020020
type: string
2002120021
billing_plan:
20022-
description: The billing plan.
20022+
deprecated: true
20023+
description: The billing plan (metadata). (Deprecated from May 2026)
2002320024
type: string
2002420025
end_date:
2002520026
description: Shows the last date of usage.

src/datadogV1/model/model_usage_billable_summary_hour.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ pub struct UsageBillableSummaryHour {
1717
/// The account public ID.
1818
#[serde(rename = "account_public_id")]
1919
pub account_public_id: Option<String>,
20-
/// The billing plan.
20+
/// The billing plan (metadata). (Deprecated from May 2026)
21+
#[deprecated]
2122
#[serde(rename = "billing_plan")]
2223
pub billing_plan: Option<String>,
2324
/// Shows the last date of usage.
@@ -53,6 +54,7 @@ pub struct UsageBillableSummaryHour {
5354

5455
impl UsageBillableSummaryHour {
5556
pub fn new() -> UsageBillableSummaryHour {
57+
#[allow(deprecated)]
5658
UsageBillableSummaryHour {
5759
account_name: None,
5860
account_public_id: None,
@@ -70,56 +72,67 @@ impl UsageBillableSummaryHour {
7072
}
7173
}
7274

75+
#[allow(deprecated)]
7376
pub fn account_name(mut self, value: String) -> Self {
7477
self.account_name = Some(value);
7578
self
7679
}
7780

81+
#[allow(deprecated)]
7882
pub fn account_public_id(mut self, value: String) -> Self {
7983
self.account_public_id = Some(value);
8084
self
8185
}
8286

87+
#[allow(deprecated)]
8388
pub fn billing_plan(mut self, value: String) -> Self {
8489
self.billing_plan = Some(value);
8590
self
8691
}
8792

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

99+
#[allow(deprecated)]
93100
pub fn num_orgs(mut self, value: i64) -> Self {
94101
self.num_orgs = Some(value);
95102
self
96103
}
97104

105+
#[allow(deprecated)]
98106
pub fn org_name(mut self, value: String) -> Self {
99107
self.org_name = Some(value);
100108
self
101109
}
102110

111+
#[allow(deprecated)]
103112
pub fn public_id(mut self, value: String) -> Self {
104113
self.public_id = Some(value);
105114
self
106115
}
107116

117+
#[allow(deprecated)]
108118
pub fn ratio_in_month(mut self, value: f64) -> Self {
109119
self.ratio_in_month = Some(value);
110120
self
111121
}
112122

123+
#[allow(deprecated)]
113124
pub fn region(mut self, value: String) -> Self {
114125
self.region = Some(value);
115126
self
116127
}
117128

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

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

270+
#[allow(deprecated)]
257271
let content = UsageBillableSummaryHour {
258272
account_name,
259273
account_public_id,

0 commit comments

Comments
 (0)