Skip to content

Commit a5786fd

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7131a437 of spec repo
1 parent 6e274ae commit a5786fd

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-27 17:12:13.841874",
8-
"spec_repo_commit": "ed439f7c"
7+
"regenerated": "2025-05-27 19:53:27.401469",
8+
"spec_repo_commit": "7131a437"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-27 17:12:13.857049",
13-
"spec_repo_commit": "ed439f7c"
12+
"regenerated": "2025-05-27 19:53:27.434700",
13+
"spec_repo_commit": "7131a437"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,6 +2192,14 @@ components:
21922192
type: string
21932193
x-enum-varnames:
21942194
- BILLING_DIMENSIONS
2195+
AddMemberTeamRequest:
2196+
description: Request to add a member team to super team's hierarchy
2197+
properties:
2198+
data:
2199+
$ref: '#/components/schemas/MemberTeam'
2200+
required:
2201+
- data
2202+
type: object
21952203
Advisory:
21962204
description: Advisory.
21972205
properties:
@@ -21003,6 +21011,28 @@ components:
2100321011
- ms_channel_name
2100421012
- redirect_url
2100521013
type: object
21014+
MemberTeam:
21015+
description: A member team
21016+
properties:
21017+
id:
21018+
description: The member team's identifier
21019+
example: aeadc05e-98a8-11ec-ac2c-da7ad0900001
21020+
type: string
21021+
type:
21022+
$ref: '#/components/schemas/MemberTeamType'
21023+
required:
21024+
- id
21025+
- type
21026+
type: object
21027+
MemberTeamType:
21028+
default: member_teams
21029+
description: Member team type
21030+
enum:
21031+
- member_teams
21032+
example: member_teams
21033+
type: string
21034+
x-enum-varnames:
21035+
- MEMBER_TEAMS
2100621036
Metadata:
2100721037
description: The metadata related to this request.
2100821038
properties:
@@ -59781,6 +59811,156 @@ paths:
5978159811
permissions:
5978259812
- teams_read
5978359813
- teams_manage
59814+
/api/v2/team/{super_team_id}/member_teams:
59815+
get:
59816+
description: Get all member teams.
59817+
operationId: ListMemberTeams
59818+
parameters:
59819+
- description: None
59820+
in: path
59821+
name: super_team_id
59822+
required: true
59823+
schema:
59824+
type: string
59825+
- $ref: '#/components/parameters/PageSize'
59826+
- $ref: '#/components/parameters/PageNumber'
59827+
- description: List of fields that need to be fetched.
59828+
explode: false
59829+
in: query
59830+
name: fields[team]
59831+
required: false
59832+
schema:
59833+
items:
59834+
$ref: '#/components/schemas/TeamsField'
59835+
type: array
59836+
responses:
59837+
'200':
59838+
content:
59839+
application/json:
59840+
schema:
59841+
$ref: '#/components/schemas/TeamsResponse'
59842+
description: OK
59843+
'403':
59844+
$ref: '#/components/responses/ForbiddenResponse'
59845+
'404':
59846+
content:
59847+
application/json:
59848+
schema:
59849+
$ref: '#/components/schemas/APIErrorResponse'
59850+
description: API error response.
59851+
'429':
59852+
$ref: '#/components/responses/TooManyRequestsResponse'
59853+
security:
59854+
- apiKeyAuth: []
59855+
appKeyAuth: []
59856+
- AuthZ:
59857+
- teams_read
59858+
summary: Get all member teams
59859+
tags:
59860+
- Teams
59861+
x-pagination:
59862+
limitParam: page[size]
59863+
pageParam: page[number]
59864+
resultsPath: data
59865+
x-permission:
59866+
operator: OR
59867+
permissions:
59868+
- teams_read
59869+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59870+
59871+
contact [Datadog support](https://docs.datadoghq.com/help/).'
59872+
post:
59873+
description: 'Add a member team.
59874+
59875+
Adds the team given by the `id` in the body as a member team of the super
59876+
team.'
59877+
operationId: AddMemberTeam
59878+
parameters:
59879+
- description: None
59880+
in: path
59881+
name: super_team_id
59882+
required: true
59883+
schema:
59884+
type: string
59885+
requestBody:
59886+
content:
59887+
application/json:
59888+
schema:
59889+
$ref: '#/components/schemas/AddMemberTeamRequest'
59890+
required: true
59891+
responses:
59892+
'204':
59893+
description: Added
59894+
'403':
59895+
$ref: '#/components/responses/ForbiddenResponse'
59896+
'409':
59897+
content:
59898+
application/json:
59899+
schema:
59900+
$ref: '#/components/schemas/APIErrorResponse'
59901+
description: API error response.
59902+
'429':
59903+
$ref: '#/components/responses/TooManyRequestsResponse'
59904+
security:
59905+
- apiKeyAuth: []
59906+
appKeyAuth: []
59907+
- AuthZ:
59908+
- teams_read
59909+
summary: Add a member team
59910+
tags:
59911+
- Teams
59912+
x-permission:
59913+
operator: OR
59914+
permissions:
59915+
- teams_read
59916+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59917+
59918+
contact [Datadog support](https://docs.datadoghq.com/help/).'
59919+
/api/v2/team/{super_team_id}/member_teams/{member_team_id}:
59920+
delete:
59921+
description: Remove a super team's member team identified by `member_team_id`.
59922+
operationId: RemoveMemberTeam
59923+
parameters:
59924+
- description: None
59925+
in: path
59926+
name: super_team_id
59927+
required: true
59928+
schema:
59929+
type: string
59930+
- description: None
59931+
in: path
59932+
name: member_team_id
59933+
required: true
59934+
schema:
59935+
type: string
59936+
responses:
59937+
'204':
59938+
description: No Content
59939+
'403':
59940+
$ref: '#/components/responses/ForbiddenResponse'
59941+
'404':
59942+
content:
59943+
application/json:
59944+
schema:
59945+
$ref: '#/components/schemas/APIErrorResponse'
59946+
description: API error response.
59947+
'429':
59948+
$ref: '#/components/responses/TooManyRequestsResponse'
59949+
security:
59950+
- apiKeyAuth: []
59951+
appKeyAuth: []
59952+
- AuthZ:
59953+
- teams_read
59954+
summary: Remove a member team
59955+
tags:
59956+
- Teams
59957+
x-permission:
59958+
operator: OR
59959+
permissions:
59960+
- teams_read
59961+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59962+
59963+
contact [Datadog support](https://docs.datadoghq.com/help/).'
5978459964
/api/v2/team/{team_id}:
5978559965
delete:
5978659966
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

@@ -8873,6 +8880,20 @@ datadog\_api\_client.v2.model.logs\_warning module
88738880
:members:
88748881
:show-inheritance:
88758882

8883+
datadog\_api\_client.v2.model.member\_team module
8884+
-------------------------------------------------
8885+
8886+
.. automodule:: datadog_api_client.v2.model.member_team
8887+
:members:
8888+
:show-inheritance:
8889+
8890+
datadog\_api\_client.v2.model.member\_team\_type module
8891+
-------------------------------------------------------
8892+
8893+
.. automodule:: datadog_api_client.v2.model.member_team_type
8894+
:members:
8895+
:show-inheritance:
8896+
88768897
datadog\_api\_client.v2.model.metadata module
88778898
---------------------------------------------
88788899

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)