@@ -14,6 +14,10 @@ import (
14
14
type UsageBillableSummaryBody struct {
15
15
// The total account usage.
16
16
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"`
17
21
// Elapsed usage hours for some billable product.
18
22
ElapsedUsageHours * int64 `json:"elapsed_usage_hours,omitempty"`
19
23
// The first billable hour for the org.
@@ -76,6 +80,62 @@ func (o *UsageBillableSummaryBody) SetAccountBillableUsage(v int64) {
76
80
o .AccountBillableUsage = & v
77
81
}
78
82
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
+
79
139
// GetElapsedUsageHours returns the ElapsedUsageHours field value if set, zero value otherwise.
80
140
func (o * UsageBillableSummaryBody ) GetElapsedUsageHours () int64 {
81
141
if o == nil || o .ElapsedUsageHours == nil {
@@ -253,6 +313,12 @@ func (o UsageBillableSummaryBody) MarshalJSON() ([]byte, error) {
253
313
if o .AccountBillableUsage != nil {
254
314
toSerialize ["account_billable_usage" ] = o .AccountBillableUsage
255
315
}
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
+ }
256
322
if o .ElapsedUsageHours != nil {
257
323
toSerialize ["elapsed_usage_hours" ] = o .ElapsedUsageHours
258
324
}
@@ -290,6 +356,8 @@ func (o UsageBillableSummaryBody) MarshalJSON() ([]byte, error) {
290
356
func (o * UsageBillableSummaryBody ) UnmarshalJSON (bytes []byte ) (err error ) {
291
357
all := struct {
292
358
AccountBillableUsage * int64 `json:"account_billable_usage,omitempty"`
359
+ AccountCommittedUsage * int64 `json:"account_committed_usage,omitempty"`
360
+ AccountOnDemandUsage * int64 `json:"account_on_demand_usage,omitempty"`
293
361
ElapsedUsageHours * int64 `json:"elapsed_usage_hours,omitempty"`
294
362
FirstBillableUsageHour * time.Time `json:"first_billable_usage_hour,omitempty"`
295
363
LastBillableUsageHour * time.Time `json:"last_billable_usage_hour,omitempty"`
@@ -302,11 +370,13 @@ func (o *UsageBillableSummaryBody) UnmarshalJSON(bytes []byte) (err error) {
302
370
}
303
371
additionalProperties := make (map [string ]interface {})
304
372
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" })
306
374
} else {
307
375
return err
308
376
}
309
377
o .AccountBillableUsage = all .AccountBillableUsage
378
+ o .AccountCommittedUsage = all .AccountCommittedUsage
379
+ o .AccountOnDemandUsage = all .AccountOnDemandUsage
310
380
o .ElapsedUsageHours = all .ElapsedUsageHours
311
381
o .FirstBillableUsageHour = all .FirstBillableUsageHour
312
382
o .LastBillableUsageHour = all .LastBillableUsageHour
0 commit comments