Skip to content

Commit

Permalink
Regenerate client from commit 592474c8 of spec repo (#1639)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Aug 29, 2022
1 parent ebcb03c commit a6a8b67
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.4",
"regenerated": "2022-08-29 14:55:53.096373",
"spec_repo_commit": "71afb1ee"
"regenerated": "2022-08-29 15:23:44.590854",
"spec_repo_commit": "592474c8"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-08-29 14:55:53.109395",
"spec_repo_commit": "71afb1ee"
"regenerated": "2022-08-29 15:23:44.601908",
"spec_repo_commit": "592474c8"
}
}
}
6 changes: 6 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14040,6 +14040,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 @@ -15838,6 +15841,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 @@ -120,6 +120,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 @@ -1924,6 +1926,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 @@ -2447,6 +2481,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 @@ -2546,6 +2583,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 @@ -2622,6 +2660,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 a6a8b67

Please sign in to comment.