Skip to content

Commit

Permalink
Set macV as type any (#1851)
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 Feb 6, 2023
1 parent 89aaa28 commit fea16f1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 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-02-06 14:54:29.293873",
"spec_repo_commit": "467a9b17"
"regenerated": "2023-02-06 19:15:22.999757",
"spec_repo_commit": "7d2f8965"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-06 14:54:29.306471",
"spec_repo_commit": "467a9b17"
"regenerated": "2023-02-06 19:15:23.014132",
"spec_repo_commit": "7d2f8965"
}
}
}
2 changes: 0 additions & 2 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3441,8 +3441,6 @@ components:
items:
description: Version name.
example: Mac
nullable: true
type: string
type: array
machine:
description: The machine architecture.
Expand Down
14 changes: 7 additions & 7 deletions api/datadogV1/model_host_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type HostMeta struct {
// Agent install method.
InstallMethod *HostMetaInstallMethod `json:"install_method,omitempty"`
// An array of Mac versions.
MacV []*string `json:"macV,omitempty"`
MacV []interface{} `json:"macV,omitempty"`
// The machine architecture.
Machine *string `json:"machine,omitempty"`
// Array of Unix versions.
Expand Down Expand Up @@ -231,17 +231,17 @@ func (o *HostMeta) SetInstallMethod(v HostMetaInstallMethod) {
}

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

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

// SetMacV gets a reference to the given []*string and assigns it to the MacV field.
func (o *HostMeta) SetMacV(v []*string) {
// SetMacV gets a reference to the given []interface{} and assigns it to the MacV field.
func (o *HostMeta) SetMacV(v []interface{}) {
o.MacV = v
}

Expand Down Expand Up @@ -550,7 +550,7 @@ func (o *HostMeta) UnmarshalJSON(bytes []byte) (err error) {
FbsdV []*string `json:"fbsdV,omitempty"`
Gohai *string `json:"gohai,omitempty"`
InstallMethod *HostMetaInstallMethod `json:"install_method,omitempty"`
MacV []*string `json:"macV,omitempty"`
MacV []interface{} `json:"macV,omitempty"`
Machine *string `json:"machine,omitempty"`
NixV []*string `json:"nixV,omitempty"`
Platform *string `json:"platform,omitempty"`
Expand Down

0 comments on commit fea16f1

Please sign in to comment.