Skip to content

Commit 42aa49a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Set macV as type any (#1323)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 946c73a commit 42aa49a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
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-06 14:54:28.484540",
8-
"spec_repo_commit": "467a9b17"
7+
"regenerated": "2023-02-06 19:15:27.095481",
8+
"spec_repo_commit": "7d2f8965"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-02-06 14:54:28.498204",
13-
"spec_repo_commit": "467a9b17"
12+
"regenerated": "2023-02-06 19:15:27.107209",
13+
"spec_repo_commit": "7d2f8965"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3441,8 +3441,6 @@ components:
34413441
items:
34423442
description: Version name.
34433443
example: Mac
3444-
nullable: true
3445-
type: string
34463444
type: array
34473445
machine:
34483446
description: The machine architecture.

src/datadog_api_client/v1/model/host_meta.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import List, Union, TYPE_CHECKING
6+
from typing import Any, List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
date,
12+
datetime,
1113
none_type,
1214
unset,
1315
UnsetType,
@@ -32,7 +34,7 @@ def openapi_types(_):
3234
"fbsd_v": ([str, none_type],),
3335
"gohai": (str,),
3436
"install_method": (HostMetaInstallMethod,),
35-
"mac_v": ([str, none_type],),
37+
"mac_v": ([bool, date, datetime, dict, float, int, list, str, none_type],),
3638
"machine": (str,),
3739
"nix_v": ([str, none_type],),
3840
"platform": (str,),
@@ -69,7 +71,7 @@ def __init__(
6971
fbsd_v: Union[List[str], UnsetType] = unset,
7072
gohai: Union[str, UnsetType] = unset,
7173
install_method: Union[HostMetaInstallMethod, UnsetType] = unset,
72-
mac_v: Union[List[str], UnsetType] = unset,
74+
mac_v: Union[List[Any], UnsetType] = unset,
7375
machine: Union[str, UnsetType] = unset,
7476
nix_v: Union[List[str], UnsetType] = unset,
7577
platform: Union[str, UnsetType] = unset,
@@ -102,7 +104,7 @@ def __init__(
102104
:type install_method: HostMetaInstallMethod, optional
103105
104106
:param mac_v: An array of Mac versions.
105-
:type mac_v: [str, none_type], optional
107+
:type mac_v: [bool, date, datetime, dict, float, int, list, str, none_type], optional
106108
107109
:param machine: The machine architecture.
108110
:type machine: str, optional

0 commit comments

Comments
 (0)