Skip to content

Commit

Permalink
Regenerate client from commit 8c6f581a of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Dec 21, 2022
1 parent e322a87 commit ec6bd04
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 20 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-12-20 16:44:27.418644",
"spec_repo_commit": "ec3c91a9"
"regenerated": "2022-12-21 08:59:16.961898",
"spec_repo_commit": "8c6f581a"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-12-20 16:44:27.430114",
"spec_repo_commit": "ec3c91a9"
"regenerated": "2022-12-21 08:59:16.973588",
"spec_repo_commit": "8c6f581a"
}
}
}
12 changes: 10 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,11 @@ components:
by:
additionalProperties:
description: The values for each group-by.
type: string
oneOf:
- type: string
- format: double
type: number
- type: boolean
description: The key-value pairs for each group-by.
example:
'@ci.provider.name': gitlab
Expand Down Expand Up @@ -1687,7 +1691,11 @@ components:
by:
additionalProperties:
description: The values for each group-by.
type: string
oneOf:
- type: string
- format: double
type: number
- type: boolean
description: The key-value pairs for each group-by.
example:
'@test.service': web-ui-tests
Expand Down
14 changes: 7 additions & 7 deletions api/datadogV2/model_ci_app_pipelines_bucket_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
// CIAppPipelinesBucketResponse Bucket values.
type CIAppPipelinesBucketResponse struct {
// The key-value pairs for each group-by.
By map[string]string `json:"by,omitempty"`
By map[string]interface{} `json:"by,omitempty"`
// A map of the metric name to value for regular compute, or a list of values for a timeseries.
Computes map[string]CIAppAggregateBucketValue `json:"computes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
Expand All @@ -37,17 +37,17 @@ func NewCIAppPipelinesBucketResponseWithDefaults() *CIAppPipelinesBucketResponse
}

// GetBy returns the By field value if set, zero value otherwise.
func (o *CIAppPipelinesBucketResponse) GetBy() map[string]string {
func (o *CIAppPipelinesBucketResponse) GetBy() map[string]interface{} {
if o == nil || o.By == nil {
var ret map[string]string
var ret map[string]interface{}
return ret
}
return o.By
}

// GetByOk returns a tuple with the By field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CIAppPipelinesBucketResponse) GetByOk() (*map[string]string, bool) {
func (o *CIAppPipelinesBucketResponse) GetByOk() (*map[string]interface{}, bool) {
if o == nil || o.By == nil {
return nil, false
}
Expand All @@ -59,8 +59,8 @@ func (o *CIAppPipelinesBucketResponse) HasBy() bool {
return o != nil && o.By != nil
}

// SetBy gets a reference to the given map[string]string and assigns it to the By field.
func (o *CIAppPipelinesBucketResponse) SetBy(v map[string]string) {
// SetBy gets a reference to the given map[string]interface{} and assigns it to the By field.
func (o *CIAppPipelinesBucketResponse) SetBy(v map[string]interface{}) {
o.By = v
}

Expand Down Expand Up @@ -115,7 +115,7 @@ func (o CIAppPipelinesBucketResponse) MarshalJSON() ([]byte, error) {
func (o *CIAppPipelinesBucketResponse) UnmarshalJSON(bytes []byte) (err error) {
raw := map[string]interface{}{}
all := struct {
By map[string]string `json:"by,omitempty"`
By map[string]interface{} `json:"by,omitempty"`
Computes map[string]CIAppAggregateBucketValue `json:"computes,omitempty"`
}{}
err = json.Unmarshal(bytes, &all)
Expand Down
14 changes: 7 additions & 7 deletions api/datadogV2/model_ci_app_tests_bucket_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
// CIAppTestsBucketResponse Bucket values.
type CIAppTestsBucketResponse struct {
// The key-value pairs for each group-by.
By map[string]string `json:"by,omitempty"`
By map[string]interface{} `json:"by,omitempty"`
// A map of the metric name to value for regular compute, or a list of values for a timeseries.
Computes map[string]CIAppAggregateBucketValue `json:"computes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
Expand All @@ -37,17 +37,17 @@ func NewCIAppTestsBucketResponseWithDefaults() *CIAppTestsBucketResponse {
}

// GetBy returns the By field value if set, zero value otherwise.
func (o *CIAppTestsBucketResponse) GetBy() map[string]string {
func (o *CIAppTestsBucketResponse) GetBy() map[string]interface{} {
if o == nil || o.By == nil {
var ret map[string]string
var ret map[string]interface{}
return ret
}
return o.By
}

// GetByOk returns a tuple with the By field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CIAppTestsBucketResponse) GetByOk() (*map[string]string, bool) {
func (o *CIAppTestsBucketResponse) GetByOk() (*map[string]interface{}, bool) {
if o == nil || o.By == nil {
return nil, false
}
Expand All @@ -59,8 +59,8 @@ func (o *CIAppTestsBucketResponse) HasBy() bool {
return o != nil && o.By != nil
}

// SetBy gets a reference to the given map[string]string and assigns it to the By field.
func (o *CIAppTestsBucketResponse) SetBy(v map[string]string) {
// SetBy gets a reference to the given map[string]interface{} and assigns it to the By field.
func (o *CIAppTestsBucketResponse) SetBy(v map[string]interface{}) {
o.By = v
}

Expand Down Expand Up @@ -115,7 +115,7 @@ func (o CIAppTestsBucketResponse) MarshalJSON() ([]byte, error) {
func (o *CIAppTestsBucketResponse) UnmarshalJSON(bytes []byte) (err error) {
raw := map[string]interface{}{}
all := struct {
By map[string]string `json:"by,omitempty"`
By map[string]interface{} `json:"by,omitempty"`
Computes map[string]CIAppAggregateBucketValue `json:"computes,omitempty"`
}{}
err = json.Unmarshal(bytes, &all)
Expand Down

0 comments on commit ec6bd04

Please sign in to comment.