Skip to content

Commit

Permalink
Regenerate client from commit f708c13c of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Aug 19, 2022
1 parent 7e3adba commit 368408d
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.2",
"regenerated": "2022-08-18 17:15:17.794514",
"spec_repo_commit": "0a894d5c"
"regenerated": "2022-08-19 19:04:36.466477",
"spec_repo_commit": "f708c13c"
},
"v2": {
"apigentools_version": "1.6.2",
"regenerated": "2022-08-18 17:15:17.806830",
"spec_repo_commit": "0a894d5c"
"regenerated": "2022-08-19 19:04:36.479303",
"spec_repo_commit": "f708c13c"
}
}
}
6 changes: 6 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14007,6 +14007,9 @@ components:
description: Shows usage aggregation for a billing period.
format: double
type: number
region:
description: The region of the organization.
type: string
start_date:
description: Shows the first date of usage.
format: date-time
Expand Down Expand Up @@ -15789,6 +15792,9 @@ components:
public_id:
description: The organization public id.
type: string
region:
description: The region of the organization.
type: string
rum_browser_and_mobile_session_count:
description: Shows the sum of all mobile sessions and all browser lite and
legacy sessions over all hours in the current date for the given org.
Expand Down
39 changes: 39 additions & 0 deletions api/datadogV1/model_usage_billable_summary_hour.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ type UsageBillableSummaryHour struct {
PublicId *string `json:"public_id,omitempty"`
// Shows usage aggregation for a billing period.
RatioInMonth *float64 `json:"ratio_in_month,omitempty"`
// The region of the organization.
Region *string `json:"region,omitempty"`
// Shows the first date of usage.
StartDate *time.Time `json:"start_date,omitempty"`
// Response with aggregated usage types.
Expand Down Expand Up @@ -241,6 +243,38 @@ func (o *UsageBillableSummaryHour) SetRatioInMonth(v float64) {
o.RatioInMonth = &v
}

// GetRegion returns the Region field value if set, zero value otherwise.
func (o *UsageBillableSummaryHour) GetRegion() string {
if o == nil || o.Region == nil {
var ret string
return ret
}
return *o.Region
}

// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageBillableSummaryHour) GetRegionOk() (*string, bool) {
if o == nil || o.Region == nil {
return nil, false
}
return o.Region, true
}

// HasRegion returns a boolean if a field has been set.
func (o *UsageBillableSummaryHour) HasRegion() bool {
if o != nil && o.Region != nil {
return true
}

return false
}

// SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *UsageBillableSummaryHour) SetRegion(v string) {
o.Region = &v
}

// GetStartDate returns the StartDate field value if set, zero value otherwise.
func (o *UsageBillableSummaryHour) GetStartDate() time.Time {
if o == nil || o.StartDate == nil {
Expand Down Expand Up @@ -333,6 +367,9 @@ func (o UsageBillableSummaryHour) MarshalJSON() ([]byte, error) {
if o.RatioInMonth != nil {
toSerialize["ratio_in_month"] = o.RatioInMonth
}
if o.Region != nil {
toSerialize["region"] = o.Region
}
if o.StartDate != nil {
if o.StartDate.Nanosecond() == 0 {
toSerialize["start_date"] = o.StartDate.Format("2006-01-02T15:04:05Z07:00")
Expand Down Expand Up @@ -360,6 +397,7 @@ func (o *UsageBillableSummaryHour) UnmarshalJSON(bytes []byte) (err error) {
OrgName *string `json:"org_name,omitempty"`
PublicId *string `json:"public_id,omitempty"`
RatioInMonth *float64 `json:"ratio_in_month,omitempty"`
Region *string `json:"region,omitempty"`
StartDate *time.Time `json:"start_date,omitempty"`
Usage *UsageBillableSummaryKeys `json:"usage,omitempty"`
}{}
Expand All @@ -378,6 +416,7 @@ func (o *UsageBillableSummaryHour) UnmarshalJSON(bytes []byte) (err error) {
o.OrgName = all.OrgName
o.PublicId = all.PublicId
o.RatioInMonth = all.RatioInMonth
o.Region = all.Region
o.StartDate = all.StartDate
if all.Usage != nil && all.Usage.UnparsedObject != nil && o.UnparsedObject == nil {
err = json.Unmarshal(bytes, &raw)
Expand Down
39 changes: 39 additions & 0 deletions api/datadogV1/model_usage_summary_date_org.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ type UsageSummaryDateOrg struct {
ProfilingHostTop99p *int64 `json:"profiling_host_top99p,omitempty"`
// The organization public id.
PublicId *string `json:"public_id,omitempty"`
// The region of the organization.
Region *string `json:"region,omitempty"`
// Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current date for the given org.
RumBrowserAndMobileSessionCount *int64 `json:"rum_browser_and_mobile_session_count,omitempty"`
// Shows the sum of all browser RUM Lite Sessions over all hours in the current date for the given org.
Expand Down Expand Up @@ -1890,6 +1892,38 @@ func (o *UsageSummaryDateOrg) SetPublicId(v string) {
o.PublicId = &v
}

// GetRegion returns the Region field value if set, zero value otherwise.
func (o *UsageSummaryDateOrg) GetRegion() string {
if o == nil || o.Region == nil {
var ret string
return ret
}
return *o.Region
}

// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageSummaryDateOrg) GetRegionOk() (*string, bool) {
if o == nil || o.Region == nil {
return nil, false
}
return o.Region, true
}

// HasRegion returns a boolean if a field has been set.
func (o *UsageSummaryDateOrg) HasRegion() bool {
if o != nil && o.Region != nil {
return true
}

return false
}

// SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *UsageSummaryDateOrg) SetRegion(v string) {
o.Region = &v
}

// GetRumBrowserAndMobileSessionCount returns the RumBrowserAndMobileSessionCount field value if set, zero value otherwise.
func (o *UsageSummaryDateOrg) GetRumBrowserAndMobileSessionCount() int64 {
if o == nil || o.RumBrowserAndMobileSessionCount == nil {
Expand Down Expand Up @@ -2410,6 +2444,9 @@ func (o UsageSummaryDateOrg) MarshalJSON() ([]byte, error) {
if o.PublicId != nil {
toSerialize["public_id"] = o.PublicId
}
if o.Region != nil {
toSerialize["region"] = o.Region
}
if o.RumBrowserAndMobileSessionCount != nil {
toSerialize["rum_browser_and_mobile_session_count"] = o.RumBrowserAndMobileSessionCount
}
Expand Down Expand Up @@ -2508,6 +2545,7 @@ func (o *UsageSummaryDateOrg) UnmarshalJSON(bytes []byte) (err error) {
OpentelemetryHostTop99p *int64 `json:"opentelemetry_host_top99p,omitempty"`
ProfilingHostTop99p *int64 `json:"profiling_host_top99p,omitempty"`
PublicId *string `json:"public_id,omitempty"`
Region *string `json:"region,omitempty"`
RumBrowserAndMobileSessionCount *int64 `json:"rum_browser_and_mobile_session_count,omitempty"`
RumSessionCountSum *int64 `json:"rum_session_count_sum,omitempty"`
RumTotalSessionCountSum *int64 `json:"rum_total_session_count_sum,omitempty"`
Expand Down Expand Up @@ -2583,6 +2621,7 @@ func (o *UsageSummaryDateOrg) UnmarshalJSON(bytes []byte) (err error) {
o.OpentelemetryHostTop99p = all.OpentelemetryHostTop99p
o.ProfilingHostTop99p = all.ProfilingHostTop99p
o.PublicId = all.PublicId
o.Region = all.Region
o.RumBrowserAndMobileSessionCount = all.RumBrowserAndMobileSessionCount
o.RumSessionCountSum = all.RumSessionCountSum
o.RumTotalSessionCountSum = all.RumTotalSessionCountSum
Expand Down

0 comments on commit 368408d

Please sign in to comment.