15
15
16
16
if TYPE_CHECKING :
17
17
from datadog_api_client .v2 .model .user_team import UserTeam
18
+ from datadog_api_client .v2 .model .user_team_included import UserTeamIncluded
18
19
from datadog_api_client .v2 .model .teams_response_links import TeamsResponseLinks
19
20
from datadog_api_client .v2 .model .teams_response_meta import TeamsResponseMeta
21
+ from datadog_api_client .v2 .model .user import User
20
22
21
23
22
24
class UserTeamsResponse (ModelNormal ):
23
25
@cached_property
24
26
def openapi_types (_ ):
25
27
from datadog_api_client .v2 .model .user_team import UserTeam
28
+ from datadog_api_client .v2 .model .user_team_included import UserTeamIncluded
26
29
from datadog_api_client .v2 .model .teams_response_links import TeamsResponseLinks
27
30
from datadog_api_client .v2 .model .teams_response_meta import TeamsResponseMeta
28
31
29
32
return {
30
33
"data" : ([UserTeam ],),
34
+ "included" : ([UserTeamIncluded ],),
31
35
"links" : (TeamsResponseLinks ,),
32
36
"meta" : (TeamsResponseMeta ,),
33
37
}
34
38
35
39
attribute_map = {
36
40
"data" : "data" ,
41
+ "included" : "included" ,
37
42
"links" : "links" ,
38
43
"meta" : "meta" ,
39
44
}
40
45
41
46
def __init__ (
42
47
self_ ,
43
48
data : Union [List [UserTeam ], UnsetType ] = unset ,
49
+ included : Union [List [Union [UserTeamIncluded , User ]], UnsetType ] = unset ,
44
50
links : Union [TeamsResponseLinks , UnsetType ] = unset ,
45
51
meta : Union [TeamsResponseMeta , UnsetType ] = unset ,
46
52
** kwargs ,
@@ -51,6 +57,9 @@ def __init__(
51
57
:param data: Team memberships response data
52
58
:type data: [UserTeam], optional
53
59
60
+ :param included: Resources related to the team memberships
61
+ :type included: [UserTeamIncluded], optional
62
+
54
63
:param links: Teams response links.
55
64
:type links: TeamsResponseLinks, optional
56
65
@@ -59,6 +68,8 @@ def __init__(
59
68
"""
60
69
if data is not unset :
61
70
kwargs ["data" ] = data
71
+ if included is not unset :
72
+ kwargs ["included" ] = included
62
73
if links is not unset :
63
74
kwargs ["links" ] = links
64
75
if meta is not unset :
0 commit comments