Skip to content

Commit ced8485

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[APITL-1060] Merging team.yaml (#2155)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 2eaf844 commit ced8485

13 files changed

+491
-24
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-09-12 09:36:29.560282",
8-
"spec_repo_commit": "7c86a87a"
7+
"regenerated": "2024-09-13 13:31:54.562583",
8+
"spec_repo_commit": "bee8c3e1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-09-12 09:36:29.577754",
13-
"spec_repo_commit": "7c86a87a"
12+
"regenerated": "2024-09-13 13:31:54.580011",
13+
"spec_repo_commit": "bee8c3e1"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 97 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,64 @@ components:
950950
$ref: '#/components/schemas/AWSRelatedAccount'
951951
type: array
952952
type: object
953+
AbbreviatedTeam:
954+
description: The definition of `AbbreviatedTeam` object.
955+
properties:
956+
attributes:
957+
$ref: '#/components/schemas/AbbreviatedTeamAttributes'
958+
id:
959+
description: ID of the team
960+
type: string
961+
type:
962+
$ref: '#/components/schemas/AbbreviatedTeamType'
963+
required:
964+
- attributes
965+
- type
966+
type: object
967+
AbbreviatedTeamAttributes:
968+
description: The definition of `AbbreviatedTeamAttributes` object.
969+
properties:
970+
avatar:
971+
description: Unicode representation of the avatar for the team, limited
972+
to a single grapheme
973+
nullable: true
974+
type: string
975+
banner:
976+
description: Banner selection for the team
977+
format: int64
978+
type: integer
979+
handle:
980+
description: The team's identifier
981+
example: ''
982+
type: string
983+
handles:
984+
description: The `AbbreviatedTeamAttributes` `handles`.
985+
type: string
986+
is_open_membership:
987+
description: The `AbbreviatedTeamAttributes` `is_open_membership`.
988+
readOnly: true
989+
type: boolean
990+
name:
991+
description: The name of the team
992+
example: ''
993+
type: string
994+
summary:
995+
description: A brief summary of the team
996+
readOnly: true
997+
type: string
998+
required:
999+
- handle
1000+
- name
1001+
type: object
1002+
AbbreviatedTeamType:
1003+
default: team
1004+
description: The definition of `AbbreviatedTeamType` object.
1005+
enum:
1006+
- team
1007+
example: team
1008+
type: string
1009+
x-enum-varnames:
1010+
- TEAM
9531011
ActiveBillingDimensionsAttributes:
9541012
description: List of active billing dimensions.
9551013
properties:
@@ -23947,12 +24005,6 @@ components:
2394724005
format: int64
2394824006
nullable: true
2394924007
type: integer
23950-
color:
23951-
description: An identifier for the color representing the team
23952-
format: int32
23953-
maximum: 13
23954-
minimum: 0
23955-
type: integer
2395624008
description:
2395724009
description: Free-form markdown description/content for the team's homepage
2395824010
type: string
@@ -24774,6 +24826,8 @@ components:
2477424826
oneOf:
2477524827
- $ref: '#/components/schemas/User'
2477624828
- $ref: '#/components/schemas/Team'
24829+
- $ref: '#/components/schemas/AbbreviatedTeam'
24830+
- $ref: '#/components/schemas/UserTeamUser'
2477724831
UserTeamPermission:
2477824832
description: A user's permissions for a given team
2477924833
properties:
@@ -24878,6 +24932,42 @@ components:
2487824932
required:
2487924933
- data
2488024934
type: object
24935+
UserTeamUser:
24936+
description: The definition of `UserTeamUser` object.
24937+
properties:
24938+
attributes:
24939+
$ref: '#/components/schemas/UserTeamUserAttributes'
24940+
id:
24941+
description: The `UserTeamUser` ID.
24942+
type: string
24943+
type:
24944+
$ref: '#/components/schemas/UserTeamUserType'
24945+
required:
24946+
- type
24947+
type: object
24948+
UserTeamUserAttributes:
24949+
description: The definition of `UserTeamUserAttributes` object.
24950+
properties:
24951+
disabled:
24952+
description: The `UserTeamUserAttributes` `disabled`.
24953+
type: boolean
24954+
email:
24955+
description: The `UserTeamUserAttributes` `email`.
24956+
type: string
24957+
handle:
24958+
description: The `UserTeamUserAttributes` `handle`.
24959+
type: string
24960+
icon:
24961+
description: The `UserTeamUserAttributes` `icon`.
24962+
type: string
24963+
name:
24964+
description: The `UserTeamUserAttributes` `name`.
24965+
nullable: true
24966+
type: string
24967+
service_account:
24968+
description: The `UserTeamUserAttributes` `service_account`.
24969+
type: boolean
24970+
type: object
2488124971
UserTeamUserType:
2488224972
default: users
2488324973
description: User team user type
@@ -37849,6 +37939,7 @@ paths:
3784937939
name: filter[keyword]
3785037940
required: false
3785137941
schema:
37942+
description: Search query, can be user email or name.
3785237943
type: string
3785337944
responses:
3785437945
'200':

docs/datadog_api_client.v2.model.rst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@ datadog\_api\_client.v2.model package
44
Submodules
55
----------
66

7+
datadog\_api\_client.v2.model.abbreviated\_team module
8+
------------------------------------------------------
9+
10+
.. automodule:: datadog_api_client.v2.model.abbreviated_team
11+
:members:
12+
:show-inheritance:
13+
14+
datadog\_api\_client.v2.model.abbreviated\_team\_attributes module
15+
------------------------------------------------------------------
16+
17+
.. automodule:: datadog_api_client.v2.model.abbreviated_team_attributes
18+
:members:
19+
:show-inheritance:
20+
21+
datadog\_api\_client.v2.model.abbreviated\_team\_type module
22+
------------------------------------------------------------
23+
24+
.. automodule:: datadog_api_client.v2.model.abbreviated_team_type
25+
:members:
26+
:show-inheritance:
27+
728
datadog\_api\_client.v2.model.active\_billing\_dimensions\_attributes module
829
----------------------------------------------------------------------------
930

@@ -11155,6 +11176,20 @@ datadog\_api\_client.v2.model.user\_team\_update\_request module
1115511176
:members:
1115611177
:show-inheritance:
1115711178

11179+
datadog\_api\_client.v2.model.user\_team\_user module
11180+
-----------------------------------------------------
11181+
11182+
.. automodule:: datadog_api_client.v2.model.user_team_user
11183+
:members:
11184+
:show-inheritance:
11185+
11186+
datadog\_api\_client.v2.model.user\_team\_user\_attributes module
11187+
-----------------------------------------------------------------
11188+
11189+
.. automodule:: datadog_api_client.v2.model.user_team_user_attributes
11190+
:members:
11191+
:show-inheritance:
11192+
1115811193
datadog\_api\_client.v2.model.user\_team\_user\_type module
1115911194
-----------------------------------------------------------
1116011195

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.abbreviated_team_attributes import AbbreviatedTeamAttributes
18+
from datadog_api_client.v2.model.abbreviated_team_type import AbbreviatedTeamType
19+
20+
21+
class AbbreviatedTeam(ModelNormal):
22+
@cached_property
23+
def openapi_types(_):
24+
from datadog_api_client.v2.model.abbreviated_team_attributes import AbbreviatedTeamAttributes
25+
from datadog_api_client.v2.model.abbreviated_team_type import AbbreviatedTeamType
26+
27+
return {
28+
"attributes": (AbbreviatedTeamAttributes,),
29+
"id": (str,),
30+
"type": (AbbreviatedTeamType,),
31+
}
32+
33+
attribute_map = {
34+
"attributes": "attributes",
35+
"id": "id",
36+
"type": "type",
37+
}
38+
39+
def __init__(
40+
self_,
41+
attributes: AbbreviatedTeamAttributes,
42+
type: AbbreviatedTeamType,
43+
id: Union[str, UnsetType] = unset,
44+
**kwargs,
45+
):
46+
"""
47+
The definition of ``AbbreviatedTeam`` object.
48+
49+
:param attributes: The definition of ``AbbreviatedTeamAttributes`` object.
50+
:type attributes: AbbreviatedTeamAttributes
51+
52+
:param id: ID of the team
53+
:type id: str, optional
54+
55+
:param type: The definition of ``AbbreviatedTeamType`` object.
56+
:type type: AbbreviatedTeamType
57+
"""
58+
if id is not unset:
59+
kwargs["id"] = id
60+
super().__init__(kwargs)
61+
62+
self_.attributes = attributes
63+
self_.type = type
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
none_type,
12+
unset,
13+
UnsetType,
14+
)
15+
16+
17+
class AbbreviatedTeamAttributes(ModelNormal):
18+
@cached_property
19+
def openapi_types(_):
20+
return {
21+
"avatar": (str, none_type),
22+
"banner": (int,),
23+
"handle": (str,),
24+
"handles": (str,),
25+
"is_open_membership": (bool,),
26+
"name": (str,),
27+
"summary": (str,),
28+
}
29+
30+
attribute_map = {
31+
"avatar": "avatar",
32+
"banner": "banner",
33+
"handle": "handle",
34+
"handles": "handles",
35+
"is_open_membership": "is_open_membership",
36+
"name": "name",
37+
"summary": "summary",
38+
}
39+
read_only_vars = {
40+
"is_open_membership",
41+
"summary",
42+
}
43+
44+
def __init__(
45+
self_,
46+
handle: str,
47+
name: str,
48+
avatar: Union[str, none_type, UnsetType] = unset,
49+
banner: Union[int, UnsetType] = unset,
50+
handles: Union[str, UnsetType] = unset,
51+
is_open_membership: Union[bool, UnsetType] = unset,
52+
summary: Union[str, UnsetType] = unset,
53+
**kwargs,
54+
):
55+
"""
56+
The definition of ``AbbreviatedTeamAttributes`` object.
57+
58+
:param avatar: Unicode representation of the avatar for the team, limited to a single grapheme
59+
:type avatar: str, none_type, optional
60+
61+
:param banner: Banner selection for the team
62+
:type banner: int, optional
63+
64+
:param handle: The team's identifier
65+
:type handle: str
66+
67+
:param handles: The ``AbbreviatedTeamAttributes`` ``handles``.
68+
:type handles: str, optional
69+
70+
:param is_open_membership: The ``AbbreviatedTeamAttributes`` ``is_open_membership``.
71+
:type is_open_membership: bool, optional
72+
73+
:param name: The name of the team
74+
:type name: str
75+
76+
:param summary: A brief summary of the team
77+
:type summary: str, optional
78+
"""
79+
if avatar is not unset:
80+
kwargs["avatar"] = avatar
81+
if banner is not unset:
82+
kwargs["banner"] = banner
83+
if handles is not unset:
84+
kwargs["handles"] = handles
85+
if is_open_membership is not unset:
86+
kwargs["is_open_membership"] = is_open_membership
87+
if summary is not unset:
88+
kwargs["summary"] = summary
89+
super().__init__(kwargs)
90+
91+
self_.handle = handle
92+
self_.name = name
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class AbbreviatedTeamType(ModelSimple):
16+
"""
17+
The definition of `AbbreviatedTeamType` object.
18+
19+
:param value: If omitted defaults to "team". Must be one of ["team"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"team",
25+
}
26+
TEAM: ClassVar["AbbreviatedTeamType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
AbbreviatedTeamType.TEAM = AbbreviatedTeamType("team")

0 commit comments

Comments
 (0)