Skip to content

Commit fe2f82d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Update team schemas (#1588)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 0708357 commit fe2f82d

File tree

62 files changed

+588
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+588
-230
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-07-24 15:54:34.121927",
8-
"spec_repo_commit": "b233d581"
7+
"regenerated": "2023-07-24 17:29:02.187302",
8+
"spec_repo_commit": "e6622470"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-24 15:54:34.134777",
13-
"spec_repo_commit": "b233d581"
12+
"regenerated": "2023-07-24 17:29:02.199608",
13+
"spec_repo_commit": "e6622470"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 83 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11592,6 +11592,8 @@ components:
1159211592
items:
1159311593
$ref: '#/components/schemas/RelationshipToTeamLinkData'
1159411594
type: array
11595+
links:
11596+
$ref: '#/components/schemas/TeamRelationshipsLinks'
1159511597
type: object
1159611598
RelationshipToUser:
1159711599
description: Relationship to user.
@@ -11619,6 +11621,8 @@ components:
1161911621
properties:
1162011622
data:
1162111623
$ref: '#/components/schemas/RelationshipToUserTeamPermissionData'
11624+
links:
11625+
$ref: '#/components/schemas/TeamRelationshipsLinks'
1162211626
type: object
1162311627
RelationshipToUserTeamPermissionData:
1162411628
description: Related user team permission data
@@ -15969,22 +15973,6 @@ components:
1596915973
required:
1597015974
- data
1597115975
type: object
15972-
TeamData:
15973-
description: A team
15974-
properties:
15975-
attributes:
15976-
$ref: '#/components/schemas/TeamAttributes'
15977-
id:
15978-
description: The team's identifier
15979-
example: aeadc05e-98a8-11ec-ac2c-da7ad0900001
15980-
type: string
15981-
type:
15982-
$ref: '#/components/schemas/TeamType'
15983-
required:
15984-
- attributes
15985-
- id
15986-
- type
15987-
type: object
1598815976
TeamIncluded:
1598915977
description: Included resources related to the team
1599015978
oneOf:
@@ -16198,11 +16186,19 @@ components:
1619816186
user_team_permissions:
1619916187
$ref: '#/components/schemas/RelationshipToUserTeamPermission'
1620016188
type: object
16189+
TeamRelationshipsLinks:
16190+
description: Links attributes.
16191+
properties:
16192+
related:
16193+
description: Related link.
16194+
example: /api/v2/team/c75a4a8e-20c7-11ee-a3a5-da7ad0900002/links
16195+
type: string
16196+
type: object
1620116197
TeamResponse:
1620216198
description: Response with a team
1620316199
properties:
1620416200
data:
16205-
$ref: '#/components/schemas/TeamData'
16201+
$ref: '#/components/schemas/Team'
1620616202
type: object
1620716203
TeamType:
1620816204
default: team
@@ -16279,6 +16275,72 @@ components:
1627916275
items:
1628016276
$ref: '#/components/schemas/TeamIncluded'
1628116277
type: array
16278+
links:
16279+
$ref: '#/components/schemas/TeamsResponseLinks'
16280+
meta:
16281+
$ref: '#/components/schemas/TeamsResponseMeta'
16282+
type: object
16283+
TeamsResponseLinks:
16284+
description: Teams response links.
16285+
properties:
16286+
first:
16287+
description: First link.
16288+
type: string
16289+
last:
16290+
description: Last link.
16291+
nullable: true
16292+
type: string
16293+
next:
16294+
description: Next link.
16295+
type: string
16296+
prev:
16297+
description: Previous link.
16298+
nullable: true
16299+
type: string
16300+
self:
16301+
description: Current link.
16302+
type: string
16303+
type: object
16304+
TeamsResponseMeta:
16305+
description: Teams response metadata.
16306+
properties:
16307+
pagination:
16308+
$ref: '#/components/schemas/TeamsResponseMetaPagination'
16309+
type: object
16310+
TeamsResponseMetaPagination:
16311+
description: Teams response metadata.
16312+
properties:
16313+
first_offset:
16314+
description: The first offset.
16315+
format: int64
16316+
type: integer
16317+
last_offset:
16318+
description: The last offset.
16319+
format: int64
16320+
type: integer
16321+
limit:
16322+
description: Pagination limit.
16323+
format: int64
16324+
type: integer
16325+
next_offset:
16326+
description: The next offset.
16327+
format: int64
16328+
type: integer
16329+
offset:
16330+
description: The offset.
16331+
format: int64
16332+
type: integer
16333+
prev_offset:
16334+
description: The previous offset.
16335+
format: int64
16336+
type: integer
16337+
total:
16338+
description: Total results.
16339+
format: int64
16340+
type: integer
16341+
type:
16342+
description: Offset type.
16343+
type: string
1628216344
type: object
1628316345
TimeseriesFormulaQueryRequest:
1628416346
description: A request wrapper around a single timeseries query to be executed.
@@ -16920,6 +16982,10 @@ components:
1692016982
items:
1692116983
$ref: '#/components/schemas/UserTeam'
1692216984
type: array
16985+
links:
16986+
$ref: '#/components/schemas/TeamsResponseLinks'
16987+
meta:
16988+
$ref: '#/components/schemas/TeamsResponseMeta'
1692316989
type: object
1692416990
UserUpdateAttributes:
1692516991
description: Attributes of the edited user.

docs/datadog_api_client.v2.model.rst

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7162,13 +7162,6 @@ team\_create\_request
71627162
:members:
71637163
:show-inheritance:
71647164

7165-
team\_data
7166-
----------
7167-
7168-
.. automodule:: datadog_api_client.v2.model.team_data
7169-
:members:
7170-
:show-inheritance:
7171-
71727165
team\_included
71737166
--------------
71747167

@@ -7309,6 +7302,13 @@ team\_relationships
73097302
:members:
73107303
:show-inheritance:
73117304

7305+
team\_relationships\_links
7306+
--------------------------
7307+
7308+
.. automodule:: datadog_api_client.v2.model.team_relationships_links
7309+
:members:
7310+
:show-inheritance:
7311+
73127312
team\_response
73137313
--------------
73147314

@@ -7358,6 +7358,27 @@ teams\_response
73587358
:members:
73597359
:show-inheritance:
73607360

7361+
teams\_response\_links
7362+
----------------------
7363+
7364+
.. automodule:: datadog_api_client.v2.model.teams_response_links
7365+
:members:
7366+
:show-inheritance:
7367+
7368+
teams\_response\_meta
7369+
---------------------
7370+
7371+
.. automodule:: datadog_api_client.v2.model.teams_response_meta
7372+
:members:
7373+
:show-inheritance:
7374+
7375+
teams\_response\_meta\_pagination
7376+
---------------------------------
7377+
7378+
.. automodule:: datadog_api_client.v2.model.teams_response_meta_pagination
7379+
:members:
7380+
:show-inheritance:
7381+
73617382
timeseries\_formula\_query\_request
73627383
-----------------------------------
73637384

src/datadog_api_client/v2/model/relationship_to_team_links.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,42 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.relationship_to_team_link_data import RelationshipToTeamLinkData
18+
from datadog_api_client.v2.model.team_relationships_links import TeamRelationshipsLinks
1819

1920

2021
class RelationshipToTeamLinks(ModelNormal):
2122
@cached_property
2223
def openapi_types(_):
2324
from datadog_api_client.v2.model.relationship_to_team_link_data import RelationshipToTeamLinkData
25+
from datadog_api_client.v2.model.team_relationships_links import TeamRelationshipsLinks
2426

2527
return {
2628
"data": ([RelationshipToTeamLinkData],),
29+
"links": (TeamRelationshipsLinks,),
2730
}
2831

2932
attribute_map = {
3033
"data": "data",
34+
"links": "links",
3135
}
3236

33-
def __init__(self_, data: Union[List[RelationshipToTeamLinkData], UnsetType] = unset, **kwargs):
37+
def __init__(
38+
self_,
39+
data: Union[List[RelationshipToTeamLinkData], UnsetType] = unset,
40+
links: Union[TeamRelationshipsLinks, UnsetType] = unset,
41+
**kwargs,
42+
):
3443
"""
3544
Relationship between a team and a team link
3645
3746
:param data: Related team links
3847
:type data: [RelationshipToTeamLinkData], optional
48+
49+
:param links: Links attributes.
50+
:type links: TeamRelationshipsLinks, optional
3951
"""
4052
if data is not unset:
4153
kwargs["data"] = data
54+
if links is not unset:
55+
kwargs["links"] = links
4256
super().__init__(kwargs)

src/datadog_api_client/v2/model/relationship_to_user_team_permission.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from datadog_api_client.v2.model.relationship_to_user_team_permission_data import (
1818
RelationshipToUserTeamPermissionData,
1919
)
20+
from datadog_api_client.v2.model.team_relationships_links import TeamRelationshipsLinks
2021

2122

2223
class RelationshipToUserTeamPermission(ModelNormal):
@@ -25,22 +26,35 @@ def openapi_types(_):
2526
from datadog_api_client.v2.model.relationship_to_user_team_permission_data import (
2627
RelationshipToUserTeamPermissionData,
2728
)
29+
from datadog_api_client.v2.model.team_relationships_links import TeamRelationshipsLinks
2830

2931
return {
3032
"data": (RelationshipToUserTeamPermissionData,),
33+
"links": (TeamRelationshipsLinks,),
3134
}
3235

3336
attribute_map = {
3437
"data": "data",
38+
"links": "links",
3539
}
3640

37-
def __init__(self_, data: Union[RelationshipToUserTeamPermissionData, UnsetType] = unset, **kwargs):
41+
def __init__(
42+
self_,
43+
data: Union[RelationshipToUserTeamPermissionData, UnsetType] = unset,
44+
links: Union[TeamRelationshipsLinks, UnsetType] = unset,
45+
**kwargs,
46+
):
3847
"""
3948
Relationship between a user team permission and a team
4049
4150
:param data: Related user team permission data
4251
:type data: RelationshipToUserTeamPermissionData, optional
52+
53+
:param links: Links attributes.
54+
:type links: TeamRelationshipsLinks, optional
4355
"""
4456
if data is not unset:
4557
kwargs["data"] = data
58+
if links is not unset:
59+
kwargs["links"] = links
4660
super().__init__(kwargs)

src/datadog_api_client/v2/model/team_data.py

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)