Skip to content

Commit a19b80c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e99e5b10 of spec repo
1 parent 0cba2f6 commit a19b80c

File tree

3 files changed

+83
-5
lines changed

3 files changed

+83
-5
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-07-09 16:47:28.707448",
8-
"spec_repo_commit": "d0906173"
7+
"regenerated": "2025-07-09 18:24:10.553843",
8+
"spec_repo_commit": "e99e5b10"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-09 16:47:28.725222",
13-
"spec_repo_commit": "d0906173"
12+
"regenerated": "2025-07-09 18:24:10.570325",
13+
"spec_repo_commit": "e99e5b10"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18888,6 +18888,14 @@ components:
1888818888
description: The total account usage.
1888918889
format: int64
1889018890
type: integer
18891+
account_committed_usage:
18892+
description: The total account committed usage.
18893+
format: int64
18894+
type: integer
18895+
account_on_demand_usage:
18896+
description: The total account on-demand usage.
18897+
format: int64
18898+
type: integer
1889118899
elapsed_usage_hours:
1889218900
description: Elapsed usage hours for some billable product.
1889318901
format: int64

api/datadogV1/model_usage_billable_summary_body.go

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ import (
1414
type UsageBillableSummaryBody struct {
1515
// The total account usage.
1616
AccountBillableUsage *int64 `json:"account_billable_usage,omitempty"`
17+
// The total account committed usage.
18+
AccountCommittedUsage *int64 `json:"account_committed_usage,omitempty"`
19+
// The total account on-demand usage.
20+
AccountOnDemandUsage *int64 `json:"account_on_demand_usage,omitempty"`
1721
// Elapsed usage hours for some billable product.
1822
ElapsedUsageHours *int64 `json:"elapsed_usage_hours,omitempty"`
1923
// The first billable hour for the org.
@@ -76,6 +80,62 @@ func (o *UsageBillableSummaryBody) SetAccountBillableUsage(v int64) {
7680
o.AccountBillableUsage = &v
7781
}
7882

83+
// GetAccountCommittedUsage returns the AccountCommittedUsage field value if set, zero value otherwise.
84+
func (o *UsageBillableSummaryBody) GetAccountCommittedUsage() int64 {
85+
if o == nil || o.AccountCommittedUsage == nil {
86+
var ret int64
87+
return ret
88+
}
89+
return *o.AccountCommittedUsage
90+
}
91+
92+
// GetAccountCommittedUsageOk returns a tuple with the AccountCommittedUsage field value if set, nil otherwise
93+
// and a boolean to check if the value has been set.
94+
func (o *UsageBillableSummaryBody) GetAccountCommittedUsageOk() (*int64, bool) {
95+
if o == nil || o.AccountCommittedUsage == nil {
96+
return nil, false
97+
}
98+
return o.AccountCommittedUsage, true
99+
}
100+
101+
// HasAccountCommittedUsage returns a boolean if a field has been set.
102+
func (o *UsageBillableSummaryBody) HasAccountCommittedUsage() bool {
103+
return o != nil && o.AccountCommittedUsage != nil
104+
}
105+
106+
// SetAccountCommittedUsage gets a reference to the given int64 and assigns it to the AccountCommittedUsage field.
107+
func (o *UsageBillableSummaryBody) SetAccountCommittedUsage(v int64) {
108+
o.AccountCommittedUsage = &v
109+
}
110+
111+
// GetAccountOnDemandUsage returns the AccountOnDemandUsage field value if set, zero value otherwise.
112+
func (o *UsageBillableSummaryBody) GetAccountOnDemandUsage() int64 {
113+
if o == nil || o.AccountOnDemandUsage == nil {
114+
var ret int64
115+
return ret
116+
}
117+
return *o.AccountOnDemandUsage
118+
}
119+
120+
// GetAccountOnDemandUsageOk returns a tuple with the AccountOnDemandUsage field value if set, nil otherwise
121+
// and a boolean to check if the value has been set.
122+
func (o *UsageBillableSummaryBody) GetAccountOnDemandUsageOk() (*int64, bool) {
123+
if o == nil || o.AccountOnDemandUsage == nil {
124+
return nil, false
125+
}
126+
return o.AccountOnDemandUsage, true
127+
}
128+
129+
// HasAccountOnDemandUsage returns a boolean if a field has been set.
130+
func (o *UsageBillableSummaryBody) HasAccountOnDemandUsage() bool {
131+
return o != nil && o.AccountOnDemandUsage != nil
132+
}
133+
134+
// SetAccountOnDemandUsage gets a reference to the given int64 and assigns it to the AccountOnDemandUsage field.
135+
func (o *UsageBillableSummaryBody) SetAccountOnDemandUsage(v int64) {
136+
o.AccountOnDemandUsage = &v
137+
}
138+
79139
// GetElapsedUsageHours returns the ElapsedUsageHours field value if set, zero value otherwise.
80140
func (o *UsageBillableSummaryBody) GetElapsedUsageHours() int64 {
81141
if o == nil || o.ElapsedUsageHours == nil {
@@ -253,6 +313,12 @@ func (o UsageBillableSummaryBody) MarshalJSON() ([]byte, error) {
253313
if o.AccountBillableUsage != nil {
254314
toSerialize["account_billable_usage"] = o.AccountBillableUsage
255315
}
316+
if o.AccountCommittedUsage != nil {
317+
toSerialize["account_committed_usage"] = o.AccountCommittedUsage
318+
}
319+
if o.AccountOnDemandUsage != nil {
320+
toSerialize["account_on_demand_usage"] = o.AccountOnDemandUsage
321+
}
256322
if o.ElapsedUsageHours != nil {
257323
toSerialize["elapsed_usage_hours"] = o.ElapsedUsageHours
258324
}
@@ -290,6 +356,8 @@ func (o UsageBillableSummaryBody) MarshalJSON() ([]byte, error) {
290356
func (o *UsageBillableSummaryBody) UnmarshalJSON(bytes []byte) (err error) {
291357
all := struct {
292358
AccountBillableUsage *int64 `json:"account_billable_usage,omitempty"`
359+
AccountCommittedUsage *int64 `json:"account_committed_usage,omitempty"`
360+
AccountOnDemandUsage *int64 `json:"account_on_demand_usage,omitempty"`
293361
ElapsedUsageHours *int64 `json:"elapsed_usage_hours,omitempty"`
294362
FirstBillableUsageHour *time.Time `json:"first_billable_usage_hour,omitempty"`
295363
LastBillableUsageHour *time.Time `json:"last_billable_usage_hour,omitempty"`
@@ -302,11 +370,13 @@ func (o *UsageBillableSummaryBody) UnmarshalJSON(bytes []byte) (err error) {
302370
}
303371
additionalProperties := make(map[string]interface{})
304372
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
305-
datadog.DeleteKeys(additionalProperties, &[]string{"account_billable_usage", "elapsed_usage_hours", "first_billable_usage_hour", "last_billable_usage_hour", "org_billable_usage", "percentage_in_account", "usage_unit"})
373+
datadog.DeleteKeys(additionalProperties, &[]string{"account_billable_usage", "account_committed_usage", "account_on_demand_usage", "elapsed_usage_hours", "first_billable_usage_hour", "last_billable_usage_hour", "org_billable_usage", "percentage_in_account", "usage_unit"})
306374
} else {
307375
return err
308376
}
309377
o.AccountBillableUsage = all.AccountBillableUsage
378+
o.AccountCommittedUsage = all.AccountCommittedUsage
379+
o.AccountOnDemandUsage = all.AccountOnDemandUsage
310380
o.ElapsedUsageHours = all.ElapsedUsageHours
311381
o.FirstBillableUsageHour = all.FirstBillableUsageHour
312382
o.LastBillableUsageHour = all.LastBillableUsageHour

0 commit comments

Comments
 (0)