Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add include data to get team memberships response #1889

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-03-19 16:19:39.787987",
"spec_repo_commit": "a75cff58"
"regenerated": "2024-03-19 19:35:49.311297",
"spec_repo_commit": "a7489f2d"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-03-19 16:19:39.804901",
"spec_repo_commit": "a75cff58"
"regenerated": "2024-03-19 19:35:49.331556",
"spec_repo_commit": "a7489f2d"
}
}
}
5 changes: 5 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22320,6 +22320,11 @@ components:
items:
$ref: '#/components/schemas/UserTeam'
type: array
included:
description: Resources related to the team memberships
items:
$ref: '#/components/schemas/UserTeamIncluded'
type: array
links:
$ref: '#/components/schemas/TeamsResponseLinks'
meta:
Expand Down
11 changes: 11 additions & 0 deletions src/datadog_api_client/v2/model/user_teams_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,38 @@

if TYPE_CHECKING:
from datadog_api_client.v2.model.user_team import UserTeam
from datadog_api_client.v2.model.user_team_included import UserTeamIncluded
from datadog_api_client.v2.model.teams_response_links import TeamsResponseLinks
from datadog_api_client.v2.model.teams_response_meta import TeamsResponseMeta
from datadog_api_client.v2.model.user import User


class UserTeamsResponse(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.user_team import UserTeam
from datadog_api_client.v2.model.user_team_included import UserTeamIncluded
from datadog_api_client.v2.model.teams_response_links import TeamsResponseLinks
from datadog_api_client.v2.model.teams_response_meta import TeamsResponseMeta

return {
"data": ([UserTeam],),
"included": ([UserTeamIncluded],),
"links": (TeamsResponseLinks,),
"meta": (TeamsResponseMeta,),
}

attribute_map = {
"data": "data",
"included": "included",
"links": "links",
"meta": "meta",
}

def __init__(
self_,
data: Union[List[UserTeam], UnsetType] = unset,
included: Union[List[Union[UserTeamIncluded, User]], UnsetType] = unset,
links: Union[TeamsResponseLinks, UnsetType] = unset,
meta: Union[TeamsResponseMeta, UnsetType] = unset,
**kwargs,
Expand All @@ -51,6 +57,9 @@ def __init__(
:param data: Team memberships response data
:type data: [UserTeam], optional

:param included: Resources related to the team memberships
:type included: [UserTeamIncluded], optional

:param links: Teams response links.
:type links: TeamsResponseLinks, optional

Expand All @@ -59,6 +68,8 @@ def __init__(
"""
if data is not unset:
kwargs["data"] = data
if included is not unset:
kwargs["included"] = included
if links is not unset:
kwargs["links"] = links
if meta is not unset:
Expand Down
Loading