From fea16f126fc5dcc0409af0f435cdae706054919f Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 19:23:11 +0000 Subject: [PATCH] Set macV as `type any` (#1851) Co-authored-by: ci.datadog-api-spec --- .apigentools-info | 8 ++++---- .generator/schemas/v1/openapi.yaml | 2 -- api/datadogV1/model_host_meta.go | 14 +++++++------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index fb748ee1411..3abe0d7bd88 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 47eed269118..4e153d23c9a 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3441,8 +3441,6 @@ components: items: description: Version name. example: Mac - nullable: true - type: string type: array machine: description: The machine architecture. diff --git a/api/datadogV1/model_host_meta.go b/api/datadogV1/model_host_meta.go index 8729e712430..5f7e0096777 100644 --- a/api/datadogV1/model_host_meta.go +++ b/api/datadogV1/model_host_meta.go @@ -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. @@ -231,9 +231,9 @@ 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 @@ -241,7 +241,7 @@ func (o *HostMeta) GetMacV() []*string { // 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 } @@ -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 } @@ -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"`