Skip to content

Commit fc8160b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Set hosts versions as type any (#1339)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 276dffc commit fc8160b

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2023-02-13 20:03:57.202739",
8-
"spec_repo_commit": "ca2fb7b8"
7+
"regenerated": "2023-02-14 15:26:41.161270",
8+
"spec_repo_commit": "8652aeac"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-02-13 20:03:57.220950",
13-
"spec_repo_commit": "ca2fb7b8"
12+
"regenerated": "2023-02-14 15:26:41.173216",
13+
"spec_repo_commit": "8652aeac"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3425,8 +3425,6 @@ components:
34253425
items:
34263426
description: The version name.
34273427
example: FreeBSD
3428-
nullable: true
3429-
type: string
34303428
type: array
34313429
gohai:
34323430
description: JSON string containing system information.
@@ -3451,8 +3449,6 @@ components:
34513449
items:
34523450
description: Version name.
34533451
example: Ubuntu
3454-
nullable: true
3455-
type: string
34563452
type: array
34573453
platform:
34583454
description: The OS platform.
@@ -3479,8 +3475,6 @@ components:
34793475
items:
34803476
description: Version name.
34813477
example: Windows
3482-
nullable: true
3483-
type: string
34843478
type: array
34853479
type: object
34863480
HostMetaInstallMethod:

src/datadog_api_client/v1/model/host_meta.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ def openapi_types(_):
3131
"agent_checks": ([AgentCheck],),
3232
"agent_version": (str,),
3333
"cpu_cores": (int,),
34-
"fbsd_v": ([str, none_type],),
34+
"fbsd_v": ([bool, date, datetime, dict, float, int, list, str, none_type],),
3535
"gohai": (str,),
3636
"install_method": (HostMetaInstallMethod,),
3737
"mac_v": ([bool, date, datetime, dict, float, int, list, str, none_type],),
3838
"machine": (str,),
39-
"nix_v": ([str, none_type],),
39+
"nix_v": ([bool, date, datetime, dict, float, int, list, str, none_type],),
4040
"platform": (str,),
4141
"processor": (str,),
4242
"python_v": (str,),
4343
"socket_fqdn": (str,),
4444
"socket_hostname": (str,),
45-
"win_v": ([str, none_type],),
45+
"win_v": ([bool, date, datetime, dict, float, int, list, str, none_type],),
4646
}
4747

4848
attribute_map = {
@@ -68,18 +68,18 @@ def __init__(
6868
agent_checks: Union[List[AgentCheck], UnsetType] = unset,
6969
agent_version: Union[str, UnsetType] = unset,
7070
cpu_cores: Union[int, UnsetType] = unset,
71-
fbsd_v: Union[List[str], UnsetType] = unset,
71+
fbsd_v: Union[List[Any], UnsetType] = unset,
7272
gohai: Union[str, UnsetType] = unset,
7373
install_method: Union[HostMetaInstallMethod, UnsetType] = unset,
7474
mac_v: Union[List[Any], UnsetType] = unset,
7575
machine: Union[str, UnsetType] = unset,
76-
nix_v: Union[List[str], UnsetType] = unset,
76+
nix_v: Union[List[Any], UnsetType] = unset,
7777
platform: Union[str, UnsetType] = unset,
7878
processor: Union[str, UnsetType] = unset,
7979
python_v: Union[str, UnsetType] = unset,
8080
socket_fqdn: Union[str, UnsetType] = unset,
8181
socket_hostname: Union[str, UnsetType] = unset,
82-
win_v: Union[List[str], UnsetType] = unset,
82+
win_v: Union[List[Any], UnsetType] = unset,
8383
**kwargs,
8484
):
8585
"""
@@ -95,7 +95,7 @@ def __init__(
9595
:type cpu_cores: int, optional
9696
9797
:param fbsd_v: An array of Mac versions.
98-
:type fbsd_v: [str, none_type], optional
98+
:type fbsd_v: [bool, date, datetime, dict, float, int, list, str, none_type], optional
9999
100100
:param gohai: JSON string containing system information.
101101
:type gohai: str, optional
@@ -110,7 +110,7 @@ def __init__(
110110
:type machine: str, optional
111111
112112
:param nix_v: Array of Unix versions.
113-
:type nix_v: [str, none_type], optional
113+
:type nix_v: [bool, date, datetime, dict, float, int, list, str, none_type], optional
114114
115115
:param platform: The OS platform.
116116
:type platform: str, optional
@@ -128,7 +128,7 @@ def __init__(
128128
:type socket_hostname: str, optional
129129
130130
:param win_v: An array of Windows versions.
131-
:type win_v: [str, none_type], optional
131+
:type win_v: [bool, date, datetime, dict, float, int, list, str, none_type], optional
132132
"""
133133
if agent_checks is not unset:
134134
kwargs["agent_checks"] = agent_checks

0 commit comments

Comments
 (0)