diff --git a/.generated-info b/.generated-info index e86fa933c5f..0244d4f9274 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "0f24b8e", - "generated": "2025-07-18 16:54:43.860" + "spec_repo_commit": "06ccc32", + "generated": "2025-07-21 13:56:48.290" } diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 4cfe65c3f41..3d5e6d29830 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -18895,6 +18895,14 @@ components: description: The total account usage. format: int64 type: integer + account_committed_usage: + description: The total account committed usage. + format: int64 + type: integer + account_on_demand_usage: + description: The total account on-demand usage. + format: int64 + type: integer elapsed_usage_hours: description: Elapsed usage hours for some billable product. format: int64 diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 5a4d2ba1227..28f8b98b025 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -55235,6 +55235,7 @@ paths: default: navy.oncall.datadoghq.com description: The globally available endpoint for On-Call. enum: + - lava.oncall.datadoghq.com - saffron.oncall.datadoghq.com - navy.oncall.datadoghq.com - coral.oncall.datadoghq.com @@ -55290,6 +55291,7 @@ paths: default: navy.oncall.datadoghq.com description: The globally available endpoint for On-Call. enum: + - lava.oncall.datadoghq.com - saffron.oncall.datadoghq.com - navy.oncall.datadoghq.com - coral.oncall.datadoghq.com @@ -55345,6 +55347,7 @@ paths: default: navy.oncall.datadoghq.com description: The globally available endpoint for On-Call. enum: + - lava.oncall.datadoghq.com - saffron.oncall.datadoghq.com - navy.oncall.datadoghq.com - coral.oncall.datadoghq.com @@ -55400,6 +55403,7 @@ paths: default: navy.oncall.datadoghq.com description: The globally available endpoint for On-Call. enum: + - lava.oncall.datadoghq.com - saffron.oncall.datadoghq.com - navy.oncall.datadoghq.com - coral.oncall.datadoghq.com diff --git a/api/datadog/configuration.go b/api/datadog/configuration.go index 1b85fb028ea..315cd89b5ea 100644 --- a/api/datadog/configuration.go +++ b/api/datadog/configuration.go @@ -415,6 +415,7 @@ func NewConfiguration() *Configuration { Description: "The globally available endpoint for On-Call.", DefaultValue: "navy.oncall.datadoghq.com", EnumValues: []string{ + "lava.oncall.datadoghq.com", "saffron.oncall.datadoghq.com", "navy.oncall.datadoghq.com", "coral.oncall.datadoghq.com", @@ -462,6 +463,7 @@ func NewConfiguration() *Configuration { Description: "The globally available endpoint for On-Call.", DefaultValue: "navy.oncall.datadoghq.com", EnumValues: []string{ + "lava.oncall.datadoghq.com", "saffron.oncall.datadoghq.com", "navy.oncall.datadoghq.com", "coral.oncall.datadoghq.com", @@ -509,6 +511,7 @@ func NewConfiguration() *Configuration { Description: "The globally available endpoint for On-Call.", DefaultValue: "navy.oncall.datadoghq.com", EnumValues: []string{ + "lava.oncall.datadoghq.com", "saffron.oncall.datadoghq.com", "navy.oncall.datadoghq.com", "coral.oncall.datadoghq.com", @@ -556,6 +559,7 @@ func NewConfiguration() *Configuration { Description: "The globally available endpoint for On-Call.", DefaultValue: "navy.oncall.datadoghq.com", EnumValues: []string{ + "lava.oncall.datadoghq.com", "saffron.oncall.datadoghq.com", "navy.oncall.datadoghq.com", "coral.oncall.datadoghq.com", diff --git a/api/datadogV1/model_usage_billable_summary_body.go b/api/datadogV1/model_usage_billable_summary_body.go index 1d8413cbc79..9a7b6cb71b1 100644 --- a/api/datadogV1/model_usage_billable_summary_body.go +++ b/api/datadogV1/model_usage_billable_summary_body.go @@ -14,6 +14,10 @@ import ( type UsageBillableSummaryBody struct { // The total account usage. AccountBillableUsage *int64 `json:"account_billable_usage,omitempty"` + // The total account committed usage. + AccountCommittedUsage *int64 `json:"account_committed_usage,omitempty"` + // The total account on-demand usage. + AccountOnDemandUsage *int64 `json:"account_on_demand_usage,omitempty"` // Elapsed usage hours for some billable product. ElapsedUsageHours *int64 `json:"elapsed_usage_hours,omitempty"` // The first billable hour for the org. @@ -76,6 +80,62 @@ func (o *UsageBillableSummaryBody) SetAccountBillableUsage(v int64) { o.AccountBillableUsage = &v } +// GetAccountCommittedUsage returns the AccountCommittedUsage field value if set, zero value otherwise. +func (o *UsageBillableSummaryBody) GetAccountCommittedUsage() int64 { + if o == nil || o.AccountCommittedUsage == nil { + var ret int64 + return ret + } + return *o.AccountCommittedUsage +} + +// GetAccountCommittedUsageOk returns a tuple with the AccountCommittedUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageBillableSummaryBody) GetAccountCommittedUsageOk() (*int64, bool) { + if o == nil || o.AccountCommittedUsage == nil { + return nil, false + } + return o.AccountCommittedUsage, true +} + +// HasAccountCommittedUsage returns a boolean if a field has been set. +func (o *UsageBillableSummaryBody) HasAccountCommittedUsage() bool { + return o != nil && o.AccountCommittedUsage != nil +} + +// SetAccountCommittedUsage gets a reference to the given int64 and assigns it to the AccountCommittedUsage field. +func (o *UsageBillableSummaryBody) SetAccountCommittedUsage(v int64) { + o.AccountCommittedUsage = &v +} + +// GetAccountOnDemandUsage returns the AccountOnDemandUsage field value if set, zero value otherwise. +func (o *UsageBillableSummaryBody) GetAccountOnDemandUsage() int64 { + if o == nil || o.AccountOnDemandUsage == nil { + var ret int64 + return ret + } + return *o.AccountOnDemandUsage +} + +// GetAccountOnDemandUsageOk returns a tuple with the AccountOnDemandUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageBillableSummaryBody) GetAccountOnDemandUsageOk() (*int64, bool) { + if o == nil || o.AccountOnDemandUsage == nil { + return nil, false + } + return o.AccountOnDemandUsage, true +} + +// HasAccountOnDemandUsage returns a boolean if a field has been set. +func (o *UsageBillableSummaryBody) HasAccountOnDemandUsage() bool { + return o != nil && o.AccountOnDemandUsage != nil +} + +// SetAccountOnDemandUsage gets a reference to the given int64 and assigns it to the AccountOnDemandUsage field. +func (o *UsageBillableSummaryBody) SetAccountOnDemandUsage(v int64) { + o.AccountOnDemandUsage = &v +} + // GetElapsedUsageHours returns the ElapsedUsageHours field value if set, zero value otherwise. func (o *UsageBillableSummaryBody) GetElapsedUsageHours() int64 { if o == nil || o.ElapsedUsageHours == nil { @@ -253,6 +313,12 @@ func (o UsageBillableSummaryBody) MarshalJSON() ([]byte, error) { if o.AccountBillableUsage != nil { toSerialize["account_billable_usage"] = o.AccountBillableUsage } + if o.AccountCommittedUsage != nil { + toSerialize["account_committed_usage"] = o.AccountCommittedUsage + } + if o.AccountOnDemandUsage != nil { + toSerialize["account_on_demand_usage"] = o.AccountOnDemandUsage + } if o.ElapsedUsageHours != nil { toSerialize["elapsed_usage_hours"] = o.ElapsedUsageHours } @@ -290,6 +356,8 @@ func (o UsageBillableSummaryBody) MarshalJSON() ([]byte, error) { func (o *UsageBillableSummaryBody) UnmarshalJSON(bytes []byte) (err error) { all := struct { AccountBillableUsage *int64 `json:"account_billable_usage,omitempty"` + AccountCommittedUsage *int64 `json:"account_committed_usage,omitempty"` + AccountOnDemandUsage *int64 `json:"account_on_demand_usage,omitempty"` ElapsedUsageHours *int64 `json:"elapsed_usage_hours,omitempty"` FirstBillableUsageHour *time.Time `json:"first_billable_usage_hour,omitempty"` LastBillableUsageHour *time.Time `json:"last_billable_usage_hour,omitempty"` @@ -302,11 +370,13 @@ func (o *UsageBillableSummaryBody) UnmarshalJSON(bytes []byte) (err error) { } additionalProperties := make(map[string]interface{}) if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil { - 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"}) + 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"}) } else { return err } o.AccountBillableUsage = all.AccountBillableUsage + o.AccountCommittedUsage = all.AccountCommittedUsage + o.AccountOnDemandUsage = all.AccountOnDemandUsage o.ElapsedUsageHours = all.ElapsedUsageHours o.FirstBillableUsageHour = all.FirstBillableUsageHour o.LastBillableUsageHour = all.LastBillableUsageHour