Skip to content

Commit 5ed354e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d09d7247 of spec repo
1 parent 2b6bf1a commit 5ed354e

File tree

9 files changed

+210
-19
lines changed

9 files changed

+210
-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.5",
7-
"regenerated": "2023-08-11 17:08:58.152185",
8-
"spec_repo_commit": "0b6bfbed"
7+
"regenerated": "2023-08-11 18:08:44.349133",
8+
"spec_repo_commit": "d09d7247"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-08-11 17:08:58.164642",
13-
"spec_repo_commit": "0b6bfbed"
12+
"regenerated": "2023-08-11 18:08:44.362154",
13+
"spec_repo_commit": "d09d7247"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15997,6 +15997,17 @@ components:
1599715997
TeamAttributes:
1599815998
description: Team attributes
1599915999
properties:
16000+
avatar:
16001+
description: Unicode representation of the avatar for the team, limited
16002+
to a single grapheme
16003+
example: "\U0001F951"
16004+
nullable: true
16005+
type: string
16006+
banner:
16007+
description: Banner selection for the team
16008+
format: int64
16009+
nullable: true
16010+
type: integer
1600016011
created_at:
1600116012
description: Creation date of the team
1600216013
format: date-time
@@ -16010,6 +16021,12 @@ components:
1601016021
example: example-team
1601116022
maxLength: 195
1601216023
type: string
16024+
hidden_modules:
16025+
description: Collection of hidden modules for the team
16026+
items:
16027+
description: String identifier of the module
16028+
type: string
16029+
type: array
1601316030
link_count:
1601416031
description: The number of links belonging to the team
1601516032
format: int32
@@ -16036,6 +16053,12 @@ components:
1603616053
maximum: 2147483647
1603716054
readOnly: true
1603816055
type: integer
16056+
visible_modules:
16057+
description: Collection of visible modules for the team
16058+
items:
16059+
description: String identifier of the module
16060+
type: string
16061+
type: array
1603916062
required:
1604016063
- handle
1604116064
- name
@@ -16056,6 +16079,17 @@ components:
1605616079
TeamCreateAttributes:
1605716080
description: Team creation attributes
1605816081
properties:
16082+
avatar:
16083+
description: Unicode representation of the avatar for the team, limited
16084+
to a single grapheme
16085+
example: "\U0001F951"
16086+
nullable: true
16087+
type: string
16088+
banner:
16089+
description: Banner selection for the team
16090+
format: int64
16091+
nullable: true
16092+
type: integer
1605916093
description:
1606016094
description: Free-form markdown description/content for the team's homepage
1606116095
type: string
@@ -16064,11 +16098,23 @@ components:
1606416098
example: example-team
1606516099
maxLength: 195
1606616100
type: string
16101+
hidden_modules:
16102+
description: Collection of hidden modules for the team
16103+
items:
16104+
description: String identifier of the module
16105+
type: string
16106+
type: array
1606716107
name:
1606816108
description: The name of the team
1606916109
example: Example Team
1607016110
maxLength: 200
1607116111
type: string
16112+
visible_modules:
16113+
description: Collection of visible modules for the team
16114+
items:
16115+
description: String identifier of the module
16116+
type: string
16117+
type: array
1607216118
required:
1607316119
- handle
1607416120
- name
@@ -16339,6 +16385,17 @@ components:
1633916385
TeamUpdateAttributes:
1634016386
description: Team update attributes
1634116387
properties:
16388+
avatar:
16389+
description: Unicode representation of the avatar for the team, limited
16390+
to a single grapheme
16391+
example: "\U0001F951"
16392+
nullable: true
16393+
type: string
16394+
banner:
16395+
description: Banner selection for the team
16396+
format: int64
16397+
nullable: true
16398+
type: integer
1634216399
color:
1634316400
description: An identifier for the color representing the team
1634416401
format: int32
@@ -16353,11 +16410,23 @@ components:
1635316410
example: example-team
1635416411
maxLength: 195
1635516412
type: string
16413+
hidden_modules:
16414+
description: Collection of hidden modules for the team
16415+
items:
16416+
description: String identifier of the module
16417+
type: string
16418+
type: array
1635616419
name:
1635716420
description: The name of the team
1635816421
example: Example Team
1635916422
maxLength: 200
1636016423
type: string
16424+
visible_modules:
16425+
description: Collection of visible modules for the team
16426+
items:
16427+
description: String identifier of the module
16428+
type: string
16429+
type: array
1636116430
required:
1636216431
- handle
1636316432
- name

examples/v2/teams/UpdateTeam.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
attributes=TeamUpdateAttributes(
2121
handle=DD_TEAM_DATA_ATTRIBUTES_HANDLE,
2222
name="Example Team updated",
23+
avatar="🥑",
24+
banner=None,
25+
hidden_modules=[],
26+
visible_modules=[],
2327
),
2428
type=TeamType.TEAM,
2529
),

src/datadog_api_client/v2/model/team_attributes.py

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

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

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -37,25 +37,33 @@ class TeamAttributes(ModelNormal):
3737
@cached_property
3838
def openapi_types(_):
3939
return {
40+
"avatar": (str, none_type),
41+
"banner": (int, none_type),
4042
"created_at": (datetime,),
4143
"description": (str, none_type),
4244
"handle": (str,),
45+
"hidden_modules": ([str],),
4346
"link_count": (int,),
4447
"modified_at": (datetime,),
4548
"name": (str,),
4649
"summary": (str, none_type),
4750
"user_count": (int,),
51+
"visible_modules": ([str],),
4852
}
4953

5054
attribute_map = {
55+
"avatar": "avatar",
56+
"banner": "banner",
5157
"created_at": "created_at",
5258
"description": "description",
5359
"handle": "handle",
60+
"hidden_modules": "hidden_modules",
5461
"link_count": "link_count",
5562
"modified_at": "modified_at",
5663
"name": "name",
5764
"summary": "summary",
5865
"user_count": "user_count",
66+
"visible_modules": "visible_modules",
5967
}
6068
read_only_vars = {
6169
"link_count",
@@ -66,17 +74,27 @@ def __init__(
6674
self_,
6775
handle: str,
6876
name: str,
77+
avatar: Union[str, none_type, UnsetType] = unset,
78+
banner: Union[int, none_type, UnsetType] = unset,
6979
created_at: Union[datetime, UnsetType] = unset,
7080
description: Union[str, none_type, UnsetType] = unset,
81+
hidden_modules: Union[List[str], UnsetType] = unset,
7182
link_count: Union[int, UnsetType] = unset,
7283
modified_at: Union[datetime, UnsetType] = unset,
7384
summary: Union[str, none_type, UnsetType] = unset,
7485
user_count: Union[int, UnsetType] = unset,
86+
visible_modules: Union[List[str], UnsetType] = unset,
7587
**kwargs,
7688
):
7789
"""
7890
Team attributes
7991
92+
:param avatar: Unicode representation of the avatar for the team, limited to a single grapheme
93+
:type avatar: str, none_type, optional
94+
95+
:param banner: Banner selection for the team
96+
:type banner: int, none_type, optional
97+
8098
:param created_at: Creation date of the team
8199
:type created_at: datetime, optional
82100
@@ -86,6 +104,9 @@ def __init__(
86104
:param handle: The team's identifier
87105
:type handle: str
88106
107+
:param hidden_modules: Collection of hidden modules for the team
108+
:type hidden_modules: [str], optional
109+
89110
:param link_count: The number of links belonging to the team
90111
:type link_count: int, optional
91112
@@ -100,11 +121,20 @@ def __init__(
100121
101122
:param user_count: The number of users belonging to the team
102123
:type user_count: int, optional
124+
125+
:param visible_modules: Collection of visible modules for the team
126+
:type visible_modules: [str], optional
103127
"""
128+
if avatar is not unset:
129+
kwargs["avatar"] = avatar
130+
if banner is not unset:
131+
kwargs["banner"] = banner
104132
if created_at is not unset:
105133
kwargs["created_at"] = created_at
106134
if description is not unset:
107135
kwargs["description"] = description
136+
if hidden_modules is not unset:
137+
kwargs["hidden_modules"] = hidden_modules
108138
if link_count is not unset:
109139
kwargs["link_count"] = link_count
110140
if modified_at is not unset:
@@ -113,6 +143,8 @@ def __init__(
113143
kwargs["summary"] = summary
114144
if user_count is not unset:
115145
kwargs["user_count"] = user_count
146+
if visible_modules is not unset:
147+
kwargs["visible_modules"] = visible_modules
116148
super().__init__(kwargs)
117149

118150
self_.handle = handle

src/datadog_api_client/v2/model/team_create_attributes.py

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

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

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
none_type,
1112
unset,
1213
UnsetType,
1314
)
@@ -26,32 +27,70 @@ class TeamCreateAttributes(ModelNormal):
2627
@cached_property
2728
def openapi_types(_):
2829
return {
30+
"avatar": (str, none_type),
31+
"banner": (int, none_type),
2932
"description": (str,),
3033
"handle": (str,),
34+
"hidden_modules": ([str],),
3135
"name": (str,),
36+
"visible_modules": ([str],),
3237
}
3338

3439
attribute_map = {
40+
"avatar": "avatar",
41+
"banner": "banner",
3542
"description": "description",
3643
"handle": "handle",
44+
"hidden_modules": "hidden_modules",
3745
"name": "name",
46+
"visible_modules": "visible_modules",
3847
}
3948

40-
def __init__(self_, handle: str, name: str, description: Union[str, UnsetType] = unset, **kwargs):
49+
def __init__(
50+
self_,
51+
handle: str,
52+
name: str,
53+
avatar: Union[str, none_type, UnsetType] = unset,
54+
banner: Union[int, none_type, UnsetType] = unset,
55+
description: Union[str, UnsetType] = unset,
56+
hidden_modules: Union[List[str], UnsetType] = unset,
57+
visible_modules: Union[List[str], UnsetType] = unset,
58+
**kwargs,
59+
):
4160
"""
4261
Team creation attributes
4362
63+
:param avatar: Unicode representation of the avatar for the team, limited to a single grapheme
64+
:type avatar: str, none_type, optional
65+
66+
:param banner: Banner selection for the team
67+
:type banner: int, none_type, optional
68+
4469
:param description: Free-form markdown description/content for the team's homepage
4570
:type description: str, optional
4671
4772
:param handle: The team's identifier
4873
:type handle: str
4974
75+
:param hidden_modules: Collection of hidden modules for the team
76+
:type hidden_modules: [str], optional
77+
5078
:param name: The name of the team
5179
:type name: str
80+
81+
:param visible_modules: Collection of visible modules for the team
82+
:type visible_modules: [str], optional
5283
"""
84+
if avatar is not unset:
85+
kwargs["avatar"] = avatar
86+
if banner is not unset:
87+
kwargs["banner"] = banner
5388
if description is not unset:
5489
kwargs["description"] = description
90+
if hidden_modules is not unset:
91+
kwargs["hidden_modules"] = hidden_modules
92+
if visible_modules is not unset:
93+
kwargs["visible_modules"] = visible_modules
5594
super().__init__(kwargs)
5695

5796
self_.handle = handle

0 commit comments

Comments
 (0)