Skip to content

Commit 18412a1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 081d3b61 of spec repo
1 parent 70b59e5 commit 18412a1

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-23 16:55:09.290879",
8-
"spec_repo_commit": "6a0ddfd8"
7+
"regenerated": "2025-05-23 18:31:04.058919",
8+
"spec_repo_commit": "081d3b61"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-23 16:55:09.383837",
13-
"spec_repo_commit": "6a0ddfd8"
12+
"regenerated": "2025-05-23 18:31:04.075638",
13+
"spec_repo_commit": "081d3b61"
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:
@@ -20881,6 +20889,28 @@ components:
2088120889
- ms_channel_name
2088220890
- redirect_url
2088320891
type: object
20892+
MemberTeam:
20893+
description: A member team
20894+
properties:
20895+
id:
20896+
description: The member team's identifier
20897+
example: aeadc05e-98a8-11ec-ac2c-da7ad0900001
20898+
type: string
20899+
type:
20900+
$ref: '#/components/schemas/MemberTeamType'
20901+
required:
20902+
- id
20903+
- type
20904+
type: object
20905+
MemberTeamType:
20906+
default: member_teams
20907+
description: Member team type
20908+
enum:
20909+
- member_teams
20910+
example: member_teams
20911+
type: string
20912+
x-enum-varnames:
20913+
- MEMBER_TEAMS
2088420914
Metadata:
2088520915
description: The metadata related to this request.
2088620916
properties:
@@ -59548,6 +59578,156 @@ paths:
5954859578
permissions:
5954959579
- teams_read
5955059580
- teams_manage
59581+
/api/v2/team/{super_team_id}/member_teams:
59582+
get:
59583+
description: Get all member teams.
59584+
operationId: ListMemberTeams
59585+
parameters:
59586+
- description: None
59587+
in: path
59588+
name: super_team_id
59589+
required: true
59590+
schema:
59591+
type: string
59592+
- $ref: '#/components/parameters/PageSize'
59593+
- $ref: '#/components/parameters/PageNumber'
59594+
- description: List of fields that need to be fetched.
59595+
explode: false
59596+
in: query
59597+
name: fields[team]
59598+
required: false
59599+
schema:
59600+
items:
59601+
$ref: '#/components/schemas/TeamsField'
59602+
type: array
59603+
responses:
59604+
'200':
59605+
content:
59606+
application/json:
59607+
schema:
59608+
$ref: '#/components/schemas/TeamsResponse'
59609+
description: OK
59610+
'403':
59611+
$ref: '#/components/responses/ForbiddenResponse'
59612+
'404':
59613+
content:
59614+
application/json:
59615+
schema:
59616+
$ref: '#/components/schemas/APIErrorResponse'
59617+
description: API error response.
59618+
'429':
59619+
$ref: '#/components/responses/TooManyRequestsResponse'
59620+
security:
59621+
- apiKeyAuth: []
59622+
appKeyAuth: []
59623+
- AuthZ:
59624+
- teams_read
59625+
summary: Get all member teams
59626+
tags:
59627+
- Teams
59628+
x-pagination:
59629+
limitParam: page[size]
59630+
pageParam: page[number]
59631+
resultsPath: data
59632+
x-permission:
59633+
operator: OR
59634+
permissions:
59635+
- teams_read
59636+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59637+
59638+
contact [Datadog support](https://docs.datadoghq.com/help/).'
59639+
post:
59640+
description: 'Add a member team.
59641+
59642+
Adds the team given by the `id` in the body as a member team of the super
59643+
team.'
59644+
operationId: AddMemberTeam
59645+
parameters:
59646+
- description: None
59647+
in: path
59648+
name: super_team_id
59649+
required: true
59650+
schema:
59651+
type: string
59652+
requestBody:
59653+
content:
59654+
application/json:
59655+
schema:
59656+
$ref: '#/components/schemas/AddMemberTeamRequest'
59657+
required: true
59658+
responses:
59659+
'204':
59660+
description: Added
59661+
'403':
59662+
$ref: '#/components/responses/ForbiddenResponse'
59663+
'409':
59664+
content:
59665+
application/json:
59666+
schema:
59667+
$ref: '#/components/schemas/APIErrorResponse'
59668+
description: API error response.
59669+
'429':
59670+
$ref: '#/components/responses/TooManyRequestsResponse'
59671+
security:
59672+
- apiKeyAuth: []
59673+
appKeyAuth: []
59674+
- AuthZ:
59675+
- teams_read
59676+
summary: Add a member team
59677+
tags:
59678+
- Teams
59679+
x-permission:
59680+
operator: OR
59681+
permissions:
59682+
- teams_read
59683+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59684+
59685+
contact [Datadog support](https://docs.datadoghq.com/help/).'
59686+
/api/v2/team/{super_team_id}/member_teams/{member_team_id}:
59687+
delete:
59688+
description: Remove a super team's member team identified by `member_team_id`.
59689+
operationId: RemoveMemberTeam
59690+
parameters:
59691+
- description: None
59692+
in: path
59693+
name: super_team_id
59694+
required: true
59695+
schema:
59696+
type: string
59697+
- description: None
59698+
in: path
59699+
name: member_team_id
59700+
required: true
59701+
schema:
59702+
type: string
59703+
responses:
59704+
'204':
59705+
description: No Content
59706+
'403':
59707+
$ref: '#/components/responses/ForbiddenResponse'
59708+
'404':
59709+
content:
59710+
application/json:
59711+
schema:
59712+
$ref: '#/components/schemas/APIErrorResponse'
59713+
description: API error response.
59714+
'429':
59715+
$ref: '#/components/responses/TooManyRequestsResponse'
59716+
security:
59717+
- apiKeyAuth: []
59718+
appKeyAuth: []
59719+
- AuthZ:
59720+
- teams_read
59721+
summary: Remove a member team
59722+
tags:
59723+
- Teams
59724+
x-permission:
59725+
operator: OR
59726+
permissions:
59727+
- teams_read
59728+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59729+
59730+
contact [Datadog support](https://docs.datadoghq.com/help/).'
5955159731
/api/v2/team/{team_id}:
5955259732
delete:
5955359733
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

@@ -8789,6 +8796,20 @@ datadog\_api\_client.v2.model.logs\_warning module
87898796
:members:
87908797
:show-inheritance:
87918798

8799+
datadog\_api\_client.v2.model.member\_team module
8800+
-------------------------------------------------
8801+
8802+
.. automodule:: datadog_api_client.v2.model.member_team
8803+
:members:
8804+
:show-inheritance:
8805+
8806+
datadog\_api\_client.v2.model.member\_team\_type module
8807+
-------------------------------------------------------
8808+
8809+
.. automodule:: datadog_api_client.v2.model.member_team_type
8810+
:members:
8811+
:show-inheritance:
8812+
87928813
datadog\_api\_client.v2.model.metadata module
87938814
---------------------------------------------
87948815

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)