Skip to content

Commit aaeb7bd

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 72493ade of spec repo
1 parent 5b33374 commit aaeb7bd

File tree

15 files changed

+706
-4
lines changed

15 files changed

+706
-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": "2025-05-20 07:21:28.312845",
8-
"spec_repo_commit": "fec20f97"
7+
"regenerated": "2025-05-23 13:57:09.629621",
8+
"spec_repo_commit": "72493ade"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-20 07:21:28.331470",
13-
"spec_repo_commit": "fec20f97"
12+
"regenerated": "2025-05-23 13:57:09.644763",
13+
"spec_repo_commit": "72493ade"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,6 +2157,14 @@ components:
21572157
type: string
21582158
x-enum-varnames:
21592159
- BILLING_DIMENSIONS
2160+
AddMemberTeamRequest:
2161+
description: Request to add a member team to super team's hierarchy
2162+
properties:
2163+
data:
2164+
$ref: '#/components/schemas/MemberTeam'
2165+
required:
2166+
- data
2167+
type: object
21602168
Advisory:
21612169
description: Advisory.
21622170
properties:
@@ -20814,6 +20822,28 @@ components:
2081420822
- ms_channel_name
2081520823
- redirect_url
2081620824
type: object
20825+
MemberTeam:
20826+
description: A member team
20827+
properties:
20828+
id:
20829+
description: The member team's identifier
20830+
example: aeadc05e-98a8-11ec-ac2c-da7ad0900001
20831+
type: string
20832+
type:
20833+
$ref: '#/components/schemas/MemberTeamType'
20834+
required:
20835+
- id
20836+
- type
20837+
type: object
20838+
MemberTeamType:
20839+
default: member_teams
20840+
description: Member team type
20841+
enum:
20842+
- member_teams
20843+
example: member_teams
20844+
type: string
20845+
x-enum-varnames:
20846+
- MEMBER_TEAMS
2081720847
Metadata:
2081820848
description: The metadata related to this request.
2081920849
properties:
@@ -59331,6 +59361,156 @@ paths:
5933159361
permissions:
5933259362
- teams_read
5933359363
- teams_manage
59364+
/api/v2/team/{super_team_id}/member_teams:
59365+
get:
59366+
description: Get all member teams.
59367+
operationId: ListMemberTeams
59368+
parameters:
59369+
- description: None
59370+
in: path
59371+
name: super_team_id
59372+
required: true
59373+
schema:
59374+
type: string
59375+
- $ref: '#/components/parameters/PageSize'
59376+
- $ref: '#/components/parameters/PageNumber'
59377+
- description: List of fields that need to be fetched.
59378+
explode: false
59379+
in: query
59380+
name: fields[team]
59381+
required: false
59382+
schema:
59383+
items:
59384+
$ref: '#/components/schemas/TeamsField'
59385+
type: array
59386+
responses:
59387+
'200':
59388+
content:
59389+
application/json:
59390+
schema:
59391+
$ref: '#/components/schemas/TeamResponse'
59392+
description: OK
59393+
'403':
59394+
$ref: '#/components/responses/ForbiddenResponse'
59395+
'404':
59396+
content:
59397+
application/json:
59398+
schema:
59399+
$ref: '#/components/schemas/APIErrorResponse'
59400+
description: API error response.
59401+
'429':
59402+
$ref: '#/components/responses/TooManyRequestsResponse'
59403+
security:
59404+
- apiKeyAuth: []
59405+
appKeyAuth: []
59406+
- AuthZ:
59407+
- teams_read
59408+
summary: Get all member teams
59409+
tags:
59410+
- Teams
59411+
x-pagination:
59412+
limitParam: page[size]
59413+
pageParam: page[number]
59414+
resultsPath: data
59415+
x-permission:
59416+
operator: OR
59417+
permissions:
59418+
- teams_read
59419+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59420+
59421+
contact [Datadog support](https://docs.datadoghq.com/help/).'
59422+
post:
59423+
description: 'Add a member team.
59424+
59425+
Adds the team given by the `id` in the body as a member team of the super
59426+
team.'
59427+
operationId: AddMemberTeam
59428+
parameters:
59429+
- description: None
59430+
in: path
59431+
name: super_team_id
59432+
required: true
59433+
schema:
59434+
type: string
59435+
requestBody:
59436+
content:
59437+
application/json:
59438+
schema:
59439+
$ref: '#/components/schemas/AddMemberTeamRequest'
59440+
required: true
59441+
responses:
59442+
'204':
59443+
description: Added
59444+
'403':
59445+
$ref: '#/components/responses/ForbiddenResponse'
59446+
'409':
59447+
content:
59448+
application/json:
59449+
schema:
59450+
$ref: '#/components/schemas/APIErrorResponse'
59451+
description: API error response.
59452+
'429':
59453+
$ref: '#/components/responses/TooManyRequestsResponse'
59454+
security:
59455+
- apiKeyAuth: []
59456+
appKeyAuth: []
59457+
- AuthZ:
59458+
- teams_read
59459+
summary: Add a member team
59460+
tags:
59461+
- Teams
59462+
x-permission:
59463+
operator: OR
59464+
permissions:
59465+
- teams_read
59466+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59467+
59468+
contact [Datadog support](https://docs.datadoghq.com/help/).'
59469+
/api/v2/team/{super_team_id}/member_teams/{member_team_id}:
59470+
delete:
59471+
description: Remove a super team's member team identified by `member_team_id`.
59472+
operationId: RemoveMemberTeam
59473+
parameters:
59474+
- description: None
59475+
in: path
59476+
name: super_team_id
59477+
required: true
59478+
schema:
59479+
type: string
59480+
- description: None
59481+
in: path
59482+
name: member_team_id
59483+
required: true
59484+
schema:
59485+
type: string
59486+
responses:
59487+
'204':
59488+
description: No Content
59489+
'403':
59490+
$ref: '#/components/responses/ForbiddenResponse'
59491+
'404':
59492+
content:
59493+
application/json:
59494+
schema:
59495+
$ref: '#/components/schemas/APIErrorResponse'
59496+
description: API error response.
59497+
'429':
59498+
$ref: '#/components/responses/TooManyRequestsResponse'
59499+
security:
59500+
- apiKeyAuth: []
59501+
appKeyAuth: []
59502+
- AuthZ:
59503+
- teams_read
59504+
summary: Remove a member team
59505+
tags:
59506+
- Teams
59507+
x-permission:
59508+
operator: OR
59509+
permissions:
59510+
- teams_read
59511+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59512+
59513+
contact [Datadog support](https://docs.datadoghq.com/help/).'
5933459514
/api/v2/team/{team_id}:
5933559515
delete:
5933659516
description: Remove a team using the team's `id`.

docs/datadog_api_client.v2.model.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,13 @@ datadog\_api\_client.v2.model.active\_billing\_dimensions\_type module
207207
:members:
208208
:show-inheritance:
209209

210+
datadog\_api\_client.v2.model.add\_member\_team\_request module
211+
---------------------------------------------------------------
212+
213+
.. automodule:: datadog_api_client.v2.model.add_member_team_request
214+
:members:
215+
:show-inheritance:
216+
210217
datadog\_api\_client.v2.model.advisory module
211218
---------------------------------------------
212219

@@ -8775,6 +8782,20 @@ datadog\_api\_client.v2.model.logs\_warning module
87758782
:members:
87768783
:show-inheritance:
87778784

8785+
datadog\_api\_client.v2.model.member\_team module
8786+
-------------------------------------------------
8787+
8788+
.. automodule:: datadog_api_client.v2.model.member_team
8789+
:members:
8790+
:show-inheritance:
8791+
8792+
datadog\_api\_client.v2.model.member\_team\_type module
8793+
-------------------------------------------------------
8794+
8795+
.. automodule:: datadog_api_client.v2.model.member_team_type
8796+
:members:
8797+
:show-inheritance:
8798+
87788799
datadog\_api\_client.v2.model.metadata module
87798800
---------------------------------------------
87808801

examples/v2/teams/AddMemberTeam.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
"""
2+
Add a member team returns "Added" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.teams_api import TeamsApi
7+
from datadog_api_client.v2.model.add_member_team_request import AddMemberTeamRequest
8+
from datadog_api_client.v2.model.member_team import MemberTeam
9+
from datadog_api_client.v2.model.member_team_type import MemberTeamType
10+
11+
body = AddMemberTeamRequest(
12+
data=MemberTeam(
13+
id="aeadc05e-98a8-11ec-ac2c-da7ad0900001",
14+
type=MemberTeamType.MEMBER_TEAMS,
15+
),
16+
)
17+
18+
configuration = Configuration()
19+
configuration.unstable_operations["add_member_team"] = True
20+
with ApiClient(configuration) as api_client:
21+
api_instance = TeamsApi(api_client)
22+
api_instance.add_member_team(super_team_id="super_team_id", body=body)

examples/v2/teams/ListMemberTeams.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
Get all member teams returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.teams_api import TeamsApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["list_member_teams"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = TeamsApi(api_client)
12+
response = api_instance.list_member_teams(
13+
super_team_id="super_team_id",
14+
)
15+
16+
print(response)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
Get all member teams returns "OK" response with pagination
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.teams_api import TeamsApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["list_member_teams"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = TeamsApi(api_client)
12+
items = api_instance.list_member_teams_with_pagination(
13+
super_team_id="super_team_id",
14+
)
15+
for item in items:
16+
print(item)

examples/v2/teams/RemoveMemberTeam.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
Remove a member team returns "No Content" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.teams_api import TeamsApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["remove_member_team"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = TeamsApi(api_client)
12+
api_instance.remove_member_team(
13+
super_team_id="super_team_id",
14+
member_team_id="member_team_id",
15+
)

src/datadog_api_client/configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ def __init__(
316316
"v2.create_slo_report_job": False,
317317
"v2.get_slo_report": False,
318318
"v2.get_slo_report_job_status": False,
319+
"v2.add_member_team": False,
320+
"v2.list_member_teams": False,
321+
"v2.remove_member_team": False,
319322
"v2.create_incident_team": False,
320323
"v2.delete_incident_team": False,
321324
"v2.get_incident_team": False,

0 commit comments

Comments
 (0)