Skip to content

Commit

Permalink
Set hosts versions as type any (#1868)
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 committed Feb 14, 2023
1 parent 805bcaa commit f413230
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 31 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-13 20:03:53.095048",
"spec_repo_commit": "ca2fb7b8"
"regenerated": "2023-02-14 15:23:53.465552",
"spec_repo_commit": "8652aeac"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-13 20:03:53.113924",
"spec_repo_commit": "ca2fb7b8"
"regenerated": "2023-02-14 15:23:53.477759",
"spec_repo_commit": "8652aeac"
}
}
}
6 changes: 0 additions & 6 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3425,8 +3425,6 @@ components:
items:
description: The version name.
example: FreeBSD
nullable: true
type: string
type: array
gohai:
description: JSON string containing system information.
Expand All @@ -3451,8 +3449,6 @@ components:
items:
description: Version name.
example: Ubuntu
nullable: true
type: string
type: array
platform:
description: The OS platform.
Expand All @@ -3479,8 +3475,6 @@ components:
items:
description: Version name.
example: Windows
nullable: true
type: string
type: array
type: object
HostMetaInstallMethod:
Expand Down
42 changes: 21 additions & 21 deletions api/datadogV1/model_host_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type HostMeta struct {
// The number of cores.
CpuCores *int64 `json:"cpuCores,omitempty"`
// An array of Mac versions.
FbsdV []*string `json:"fbsdV,omitempty"`
FbsdV []interface{} `json:"fbsdV,omitempty"`
// JSON string containing system information.
Gohai *string `json:"gohai,omitempty"`
// Agent install method.
Expand All @@ -27,7 +27,7 @@ type HostMeta struct {
// The machine architecture.
Machine *string `json:"machine,omitempty"`
// Array of Unix versions.
NixV []*string `json:"nixV,omitempty"`
NixV []interface{} `json:"nixV,omitempty"`
// The OS platform.
Platform *string `json:"platform,omitempty"`
// The processor.
Expand All @@ -39,7 +39,7 @@ type HostMeta struct {
// The socket hostname.
SocketHostname *string `json:"socket-hostname,omitempty"`
// An array of Windows versions.
WinV []*string `json:"winV,omitempty"`
WinV []interface{} `json:"winV,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
Expand Down Expand Up @@ -147,17 +147,17 @@ func (o *HostMeta) SetCpuCores(v int64) {
}

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

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

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

Expand Down Expand Up @@ -287,17 +287,17 @@ func (o *HostMeta) SetMachine(v string) {
}

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

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

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

Expand Down Expand Up @@ -455,17 +455,17 @@ func (o *HostMeta) SetSocketHostname(v string) {
}

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

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

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

Expand Down Expand Up @@ -547,18 +547,18 @@ func (o *HostMeta) UnmarshalJSON(bytes []byte) (err error) {
AgentChecks [][]interface{} `json:"agent_checks,omitempty"`
AgentVersion *string `json:"agent_version,omitempty"`
CpuCores *int64 `json:"cpuCores,omitempty"`
FbsdV []*string `json:"fbsdV,omitempty"`
FbsdV []interface{} `json:"fbsdV,omitempty"`
Gohai *string `json:"gohai,omitempty"`
InstallMethod *HostMetaInstallMethod `json:"install_method,omitempty"`
MacV []interface{} `json:"macV,omitempty"`
Machine *string `json:"machine,omitempty"`
NixV []*string `json:"nixV,omitempty"`
NixV []interface{} `json:"nixV,omitempty"`
Platform *string `json:"platform,omitempty"`
Processor *string `json:"processor,omitempty"`
PythonV *string `json:"pythonV,omitempty"`
SocketFqdn *string `json:"socket-fqdn,omitempty"`
SocketHostname *string `json:"socket-hostname,omitempty"`
WinV []*string `json:"winV,omitempty"`
WinV []interface{} `json:"winV,omitempty"`
}{}
err = json.Unmarshal(bytes, &all)
if err != nil {
Expand Down

0 comments on commit f413230

Please sign in to comment.