Skip to content

Commit

Permalink
Fix application_security_host_top99p usage field (#1916)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Mar 22, 2023
1 parent 902f47e commit 3d915ec
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 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": "2023-03-15 16:38:17.062151",
"spec_repo_commit": "315984bc"
"regenerated": "2023-03-21 10:00:54.057365",
"spec_repo_commit": "45be3462"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-03-15 16:38:17.076045",
"spec_repo_commit": "315984bc"
"regenerated": "2023-03-21 10:00:54.080286",
"spec_repo_commit": "45be3462"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15445,7 +15445,7 @@ components:
$ref: '#/components/schemas/UsageBillableSummaryBody'
application_security_host_sum:
$ref: '#/components/schemas/UsageBillableSummaryBody'
application_security_host_top99:
application_security_host_top99p:
$ref: '#/components/schemas/UsageBillableSummaryBody'
ci_pipeline_indexed_spans_sum:
$ref: '#/components/schemas/UsageBillableSummaryBody'
Expand Down
40 changes: 20 additions & 20 deletions api/datadogV1/model_usage_billable_summary_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type UsageBillableSummaryKeys struct {
// Response with properties for each aggregated usage type.
ApplicationSecurityHostSum *UsageBillableSummaryBody `json:"application_security_host_sum,omitempty"`
// Response with properties for each aggregated usage type.
ApplicationSecurityHostTop99 *UsageBillableSummaryBody `json:"application_security_host_top99,omitempty"`
ApplicationSecurityHostTop99p *UsageBillableSummaryBody `json:"application_security_host_top99p,omitempty"`
// Response with properties for each aggregated usage type.
CiPipelineIndexedSpansSum *UsageBillableSummaryBody `json:"ci_pipeline_indexed_spans_sum,omitempty"`
// Response with properties for each aggregated usage type.
Expand Down Expand Up @@ -460,32 +460,32 @@ func (o *UsageBillableSummaryKeys) SetApplicationSecurityHostSum(v UsageBillable
o.ApplicationSecurityHostSum = &v
}

// GetApplicationSecurityHostTop99 returns the ApplicationSecurityHostTop99 field value if set, zero value otherwise.
func (o *UsageBillableSummaryKeys) GetApplicationSecurityHostTop99() UsageBillableSummaryBody {
if o == nil || o.ApplicationSecurityHostTop99 == nil {
// GetApplicationSecurityHostTop99p returns the ApplicationSecurityHostTop99p field value if set, zero value otherwise.
func (o *UsageBillableSummaryKeys) GetApplicationSecurityHostTop99p() UsageBillableSummaryBody {
if o == nil || o.ApplicationSecurityHostTop99p == nil {
var ret UsageBillableSummaryBody
return ret
}
return *o.ApplicationSecurityHostTop99
return *o.ApplicationSecurityHostTop99p
}

// GetApplicationSecurityHostTop99Ok returns a tuple with the ApplicationSecurityHostTop99 field value if set, nil otherwise
// GetApplicationSecurityHostTop99pOk returns a tuple with the ApplicationSecurityHostTop99p field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageBillableSummaryKeys) GetApplicationSecurityHostTop99Ok() (*UsageBillableSummaryBody, bool) {
if o == nil || o.ApplicationSecurityHostTop99 == nil {
func (o *UsageBillableSummaryKeys) GetApplicationSecurityHostTop99pOk() (*UsageBillableSummaryBody, bool) {
if o == nil || o.ApplicationSecurityHostTop99p == nil {
return nil, false
}
return o.ApplicationSecurityHostTop99, true
return o.ApplicationSecurityHostTop99p, true
}

// HasApplicationSecurityHostTop99 returns a boolean if a field has been set.
func (o *UsageBillableSummaryKeys) HasApplicationSecurityHostTop99() bool {
return o != nil && o.ApplicationSecurityHostTop99 != nil
// HasApplicationSecurityHostTop99p returns a boolean if a field has been set.
func (o *UsageBillableSummaryKeys) HasApplicationSecurityHostTop99p() bool {
return o != nil && o.ApplicationSecurityHostTop99p != nil
}

// SetApplicationSecurityHostTop99 gets a reference to the given UsageBillableSummaryBody and assigns it to the ApplicationSecurityHostTop99 field.
func (o *UsageBillableSummaryKeys) SetApplicationSecurityHostTop99(v UsageBillableSummaryBody) {
o.ApplicationSecurityHostTop99 = &v
// SetApplicationSecurityHostTop99p gets a reference to the given UsageBillableSummaryBody and assigns it to the ApplicationSecurityHostTop99p field.
func (o *UsageBillableSummaryKeys) SetApplicationSecurityHostTop99p(v UsageBillableSummaryBody) {
o.ApplicationSecurityHostTop99p = &v
}

// GetCiPipelineIndexedSpansSum returns the CiPipelineIndexedSpansSum field value if set, zero value otherwise.
Expand Down Expand Up @@ -2705,8 +2705,8 @@ func (o UsageBillableSummaryKeys) MarshalJSON() ([]byte, error) {
if o.ApplicationSecurityHostSum != nil {
toSerialize["application_security_host_sum"] = o.ApplicationSecurityHostSum
}
if o.ApplicationSecurityHostTop99 != nil {
toSerialize["application_security_host_top99"] = o.ApplicationSecurityHostTop99
if o.ApplicationSecurityHostTop99p != nil {
toSerialize["application_security_host_top99p"] = o.ApplicationSecurityHostTop99p
}
if o.CiPipelineIndexedSpansSum != nil {
toSerialize["ci_pipeline_indexed_spans_sum"] = o.CiPipelineIndexedSpansSum
Expand Down Expand Up @@ -2962,7 +2962,7 @@ func (o *UsageBillableSummaryKeys) UnmarshalJSON(bytes []byte) (err error) {
ApmTraceSearchSum *UsageBillableSummaryBody `json:"apm_trace_search_sum,omitempty"`
ApplicationSecurityFargateAverage *UsageBillableSummaryBody `json:"application_security_fargate_average,omitempty"`
ApplicationSecurityHostSum *UsageBillableSummaryBody `json:"application_security_host_sum,omitempty"`
ApplicationSecurityHostTop99 *UsageBillableSummaryBody `json:"application_security_host_top99,omitempty"`
ApplicationSecurityHostTop99p *UsageBillableSummaryBody `json:"application_security_host_top99p,omitempty"`
CiPipelineIndexedSpansSum *UsageBillableSummaryBody `json:"ci_pipeline_indexed_spans_sum,omitempty"`
CiPipelineMaximum *UsageBillableSummaryBody `json:"ci_pipeline_maximum,omitempty"`
CiPipelineSum *UsageBillableSummaryBody `json:"ci_pipeline_sum,omitempty"`
Expand Down Expand Up @@ -3123,14 +3123,14 @@ func (o *UsageBillableSummaryKeys) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
}
o.ApplicationSecurityHostSum = all.ApplicationSecurityHostSum
if all.ApplicationSecurityHostTop99 != nil && all.ApplicationSecurityHostTop99.UnparsedObject != nil && o.UnparsedObject == nil {
if all.ApplicationSecurityHostTop99p != nil && all.ApplicationSecurityHostTop99p.UnparsedObject != nil && o.UnparsedObject == nil {
err = json.Unmarshal(bytes, &raw)
if err != nil {
return err
}
o.UnparsedObject = raw
}
o.ApplicationSecurityHostTop99 = all.ApplicationSecurityHostTop99
o.ApplicationSecurityHostTop99p = all.ApplicationSecurityHostTop99p
if all.CiPipelineIndexedSpansSum != nil && all.CiPipelineIndexedSpansSum.UnparsedObject != nil && o.UnparsedObject == nil {
err = json.Unmarshal(bytes, &raw)
if err != nil {
Expand Down

0 comments on commit 3d915ec

Please sign in to comment.