Skip to content

Commit 8dbdab1

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

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.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.

api/datadogV1/model_usage_billable_summary_hour.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ type UsageBillableSummaryHour struct {
1616
AccountName *string `json:"account_name,omitempty"`
1717
// The account public ID.
1818
AccountPublicId *string `json:"account_public_id,omitempty"`
19-
// The billing plan.
19+
// The billing plan (metadata). (Deprecated from May 2026)
20+
// Deprecated
2021
BillingPlan *string `json:"billing_plan,omitempty"`
2122
// Shows the last date of usage.
2223
EndDate *time.Time `json:"end_date,omitempty"`
@@ -113,6 +114,7 @@ func (o *UsageBillableSummaryHour) SetAccountPublicId(v string) {
113114
}
114115

115116
// GetBillingPlan returns the BillingPlan field value if set, zero value otherwise.
117+
// Deprecated
116118
func (o *UsageBillableSummaryHour) GetBillingPlan() string {
117119
if o == nil || o.BillingPlan == nil {
118120
var ret string
@@ -123,6 +125,7 @@ func (o *UsageBillableSummaryHour) GetBillingPlan() string {
123125

124126
// GetBillingPlanOk returns a tuple with the BillingPlan field value if set, nil otherwise
125127
// and a boolean to check if the value has been set.
128+
// Deprecated
126129
func (o *UsageBillableSummaryHour) GetBillingPlanOk() (*string, bool) {
127130
if o == nil || o.BillingPlan == nil {
128131
return nil, false
@@ -136,6 +139,7 @@ func (o *UsageBillableSummaryHour) HasBillingPlan() bool {
136139
}
137140

138141
// SetBillingPlan gets a reference to the given string and assigns it to the BillingPlan field.
142+
// Deprecated
139143
func (o *UsageBillableSummaryHour) SetBillingPlan(v string) {
140144
o.BillingPlan = &v
141145
}

0 commit comments

Comments
 (0)