Skip to content

Commit 2a936fe

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add include data to get team memberships response (#1889)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 4268b0c commit 2a936fe

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
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.6",
7-
"regenerated": "2024-03-19 16:19:39.787987",
8-
"spec_repo_commit": "a75cff58"
7+
"regenerated": "2024-03-19 19:35:49.311297",
8+
"spec_repo_commit": "a7489f2d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-03-19 16:19:39.804901",
13-
"spec_repo_commit": "a75cff58"
12+
"regenerated": "2024-03-19 19:35:49.331556",
13+
"spec_repo_commit": "a7489f2d"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22320,6 +22320,11 @@ components:
2232022320
items:
2232122321
$ref: '#/components/schemas/UserTeam'
2232222322
type: array
22323+
included:
22324+
description: Resources related to the team memberships
22325+
items:
22326+
$ref: '#/components/schemas/UserTeamIncluded'
22327+
type: array
2232322328
links:
2232422329
$ref: '#/components/schemas/TeamsResponseLinks'
2232522330
meta:

src/datadog_api_client/v2/model/user_teams_response.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,38 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.user_team import UserTeam
18+
from datadog_api_client.v2.model.user_team_included import UserTeamIncluded
1819
from datadog_api_client.v2.model.teams_response_links import TeamsResponseLinks
1920
from datadog_api_client.v2.model.teams_response_meta import TeamsResponseMeta
21+
from datadog_api_client.v2.model.user import User
2022

2123

2224
class UserTeamsResponse(ModelNormal):
2325
@cached_property
2426
def openapi_types(_):
2527
from datadog_api_client.v2.model.user_team import UserTeam
28+
from datadog_api_client.v2.model.user_team_included import UserTeamIncluded
2629
from datadog_api_client.v2.model.teams_response_links import TeamsResponseLinks
2730
from datadog_api_client.v2.model.teams_response_meta import TeamsResponseMeta
2831

2932
return {
3033
"data": ([UserTeam],),
34+
"included": ([UserTeamIncluded],),
3135
"links": (TeamsResponseLinks,),
3236
"meta": (TeamsResponseMeta,),
3337
}
3438

3539
attribute_map = {
3640
"data": "data",
41+
"included": "included",
3742
"links": "links",
3843
"meta": "meta",
3944
}
4045

4146
def __init__(
4247
self_,
4348
data: Union[List[UserTeam], UnsetType] = unset,
49+
included: Union[List[Union[UserTeamIncluded, User]], UnsetType] = unset,
4450
links: Union[TeamsResponseLinks, UnsetType] = unset,
4551
meta: Union[TeamsResponseMeta, UnsetType] = unset,
4652
**kwargs,
@@ -51,6 +57,9 @@ def __init__(
5157
:param data: Team memberships response data
5258
:type data: [UserTeam], optional
5359
60+
:param included: Resources related to the team memberships
61+
:type included: [UserTeamIncluded], optional
62+
5463
:param links: Teams response links.
5564
:type links: TeamsResponseLinks, optional
5665
@@ -59,6 +68,8 @@ def __init__(
5968
"""
6069
if data is not unset:
6170
kwargs["data"] = data
71+
if included is not unset:
72+
kwargs["included"] = included
6273
if links is not unset:
6374
kwargs["links"] = links
6475
if meta is not unset:

0 commit comments

Comments
 (0)