Skip to content

Commit 6cf49a2

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit b359fdcc of spec repo (#2577)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent fc1ede8 commit 6cf49a2

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-06-16 16:45:04.093324",
8-
"spec_repo_commit": "6e1eb13f"
7+
"regenerated": "2025-06-17 14:56:02.884286",
8+
"spec_repo_commit": "b359fdcc"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-16 16:45:04.108012",
13-
"spec_repo_commit": "6e1eb13f"
12+
"regenerated": "2025-06-17 14:56:02.899290",
13+
"spec_repo_commit": "b359fdcc"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,6 +2200,14 @@ components:
22002200
type: string
22012201
x-enum-varnames:
22022202
- BILLING_DIMENSIONS
2203+
AddMemberTeamRequest:
2204+
description: Request to add a member team to super team's hierarchy
2205+
properties:
2206+
data:
2207+
$ref: '#/components/schemas/MemberTeam'
2208+
required:
2209+
- data
2210+
type: object
22032211
Advisory:
22042212
description: Advisory.
22052213
properties:
@@ -21300,6 +21308,28 @@ components:
2130021308
- ms_channel_name
2130121309
- redirect_url
2130221310
type: object
21311+
MemberTeam:
21312+
description: A member team
21313+
properties:
21314+
id:
21315+
description: The member team's identifier
21316+
example: aeadc05e-98a8-11ec-ac2c-da7ad0900001
21317+
type: string
21318+
type:
21319+
$ref: '#/components/schemas/MemberTeamType'
21320+
required:
21321+
- id
21322+
- type
21323+
type: object
21324+
MemberTeamType:
21325+
default: member_teams
21326+
description: Member team type
21327+
enum:
21328+
- member_teams
21329+
example: member_teams
21330+
type: string
21331+
x-enum-varnames:
21332+
- MEMBER_TEAMS
2130321333
Metadata:
2130421334
description: The metadata related to this request.
2130521335
properties:
@@ -60442,6 +60472,156 @@ paths:
6044260472
permissions:
6044360473
- teams_read
6044460474
- teams_manage
60475+
/api/v2/team/{super_team_id}/member_teams:
60476+
get:
60477+
description: Get all member teams.
60478+
operationId: ListMemberTeams
60479+
parameters:
60480+
- description: None
60481+
in: path
60482+
name: super_team_id
60483+
required: true
60484+
schema:
60485+
type: string
60486+
- $ref: '#/components/parameters/PageSize'
60487+
- $ref: '#/components/parameters/PageNumber'
60488+
- description: List of fields that need to be fetched.
60489+
explode: false
60490+
in: query
60491+
name: fields[team]
60492+
required: false
60493+
schema:
60494+
items:
60495+
$ref: '#/components/schemas/TeamsField'
60496+
type: array
60497+
responses:
60498+
'200':
60499+
content:
60500+
application/json:
60501+
schema:
60502+
$ref: '#/components/schemas/TeamsResponse'
60503+
description: OK
60504+
'403':
60505+
$ref: '#/components/responses/ForbiddenResponse'
60506+
'404':
60507+
content:
60508+
application/json:
60509+
schema:
60510+
$ref: '#/components/schemas/APIErrorResponse'
60511+
description: API error response.
60512+
'429':
60513+
$ref: '#/components/responses/TooManyRequestsResponse'
60514+
security:
60515+
- apiKeyAuth: []
60516+
appKeyAuth: []
60517+
- AuthZ:
60518+
- teams_read
60519+
summary: Get all member teams
60520+
tags:
60521+
- Teams
60522+
x-pagination:
60523+
limitParam: page[size]
60524+
pageParam: page[number]
60525+
resultsPath: data
60526+
x-permission:
60527+
operator: OR
60528+
permissions:
60529+
- teams_read
60530+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
60531+
60532+
contact [Datadog support](https://docs.datadoghq.com/help/).'
60533+
post:
60534+
description: 'Add a member team.
60535+
60536+
Adds the team given by the `id` in the body as a member team of the super
60537+
team.'
60538+
operationId: AddMemberTeam
60539+
parameters:
60540+
- description: None
60541+
in: path
60542+
name: super_team_id
60543+
required: true
60544+
schema:
60545+
type: string
60546+
requestBody:
60547+
content:
60548+
application/json:
60549+
schema:
60550+
$ref: '#/components/schemas/AddMemberTeamRequest'
60551+
required: true
60552+
responses:
60553+
'204':
60554+
description: Added
60555+
'403':
60556+
$ref: '#/components/responses/ForbiddenResponse'
60557+
'409':
60558+
content:
60559+
application/json:
60560+
schema:
60561+
$ref: '#/components/schemas/APIErrorResponse'
60562+
description: API error response.
60563+
'429':
60564+
$ref: '#/components/responses/TooManyRequestsResponse'
60565+
security:
60566+
- apiKeyAuth: []
60567+
appKeyAuth: []
60568+
- AuthZ:
60569+
- teams_read
60570+
summary: Add a member team
60571+
tags:
60572+
- Teams
60573+
x-permission:
60574+
operator: OR
60575+
permissions:
60576+
- teams_read
60577+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
60578+
60579+
contact [Datadog support](https://docs.datadoghq.com/help/).'
60580+
/api/v2/team/{super_team_id}/member_teams/{member_team_id}:
60581+
delete:
60582+
description: Remove a super team's member team identified by `member_team_id`.
60583+
operationId: RemoveMemberTeam
60584+
parameters:
60585+
- description: None
60586+
in: path
60587+
name: super_team_id
60588+
required: true
60589+
schema:
60590+
type: string
60591+
- description: None
60592+
in: path
60593+
name: member_team_id
60594+
required: true
60595+
schema:
60596+
type: string
60597+
responses:
60598+
'204':
60599+
description: No Content
60600+
'403':
60601+
$ref: '#/components/responses/ForbiddenResponse'
60602+
'404':
60603+
content:
60604+
application/json:
60605+
schema:
60606+
$ref: '#/components/schemas/APIErrorResponse'
60607+
description: API error response.
60608+
'429':
60609+
$ref: '#/components/responses/TooManyRequestsResponse'
60610+
security:
60611+
- apiKeyAuth: []
60612+
appKeyAuth: []
60613+
- AuthZ:
60614+
- teams_read
60615+
summary: Remove a member team
60616+
tags:
60617+
- Teams
60618+
x-permission:
60619+
operator: OR
60620+
permissions:
60621+
- teams_read
60622+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
60623+
60624+
contact [Datadog support](https://docs.datadoghq.com/help/).'
6044560625
/api/v2/team/{team_id}:
6044660626
delete:
6044760627
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

@@ -8971,6 +8978,20 @@ datadog\_api\_client.v2.model.logs\_warning module
89718978
:members:
89728979
:show-inheritance:
89738980

8981+
datadog\_api\_client.v2.model.member\_team module
8982+
-------------------------------------------------
8983+
8984+
.. automodule:: datadog_api_client.v2.model.member_team
8985+
:members:
8986+
:show-inheritance:
8987+
8988+
datadog\_api\_client.v2.model.member\_team\_type module
8989+
-------------------------------------------------------
8990+
8991+
.. automodule:: datadog_api_client.v2.model.member_team_type
8992+
:members:
8993+
:show-inheritance:
8994+
89748995
datadog\_api\_client.v2.model.metadata module
89758996
---------------------------------------------
89768997

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
@@ -314,6 +314,9 @@ def __init__(
314314
"v2.create_slo_report_job": False,
315315
"v2.get_slo_report": False,
316316
"v2.get_slo_report_job_status": False,
317+
"v2.add_member_team": False,
318+
"v2.list_member_teams": False,
319+
"v2.remove_member_team": False,
317320
"v2.create_incident_team": False,
318321
"v2.delete_incident_team": False,
319322
"v2.get_incident_team": False,

0 commit comments

Comments
 (0)