diff --git a/.apigentools-info b/.apigentools-info index 34557b45af4..27db4a66c88 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index b9769f28d70..9c50b90b77b 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -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. @@ -3451,8 +3449,6 @@ components: items: description: Version name. example: Ubuntu - nullable: true - type: string type: array platform: description: The OS platform. @@ -3479,8 +3475,6 @@ components: items: description: Version name. example: Windows - nullable: true - type: string type: array type: object HostMetaInstallMethod: diff --git a/api/datadogV1/model_host_meta.go b/api/datadogV1/model_host_meta.go index 5f7e0096777..0cb0c06239d 100644 --- a/api/datadogV1/model_host_meta.go +++ b/api/datadogV1/model_host_meta.go @@ -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. @@ -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. @@ -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{} @@ -147,9 +147,9 @@ 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 @@ -157,7 +157,7 @@ func (o *HostMeta) GetFbsdV() []*string { // 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 } @@ -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 } @@ -287,9 +287,9 @@ 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 @@ -297,7 +297,7 @@ func (o *HostMeta) GetNixV() []*string { // 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 } @@ -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 } @@ -455,9 +455,9 @@ 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 @@ -465,7 +465,7 @@ func (o *HostMeta) GetWinV() []*string { // 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 } @@ -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 } @@ -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 {