Skip to content

Commit abf1952

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit b359fdcc of spec repo (#2266)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent a4025fc commit abf1952

File tree

16 files changed

+1048
-4
lines changed

16 files changed

+1048
-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:12.810645",
8-
"spec_repo_commit": "6e1eb13f"
7+
"regenerated": "2025-06-17 14:55:58.945526",
8+
"spec_repo_commit": "b359fdcc"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-16 16:45:12.828203",
13-
"spec_repo_commit": "6e1eb13f"
12+
"regenerated": "2025-06-17 14:55:58.961894",
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`.

examples/v2/teams/AddMemberTeam.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Add a member team returns "Added" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.addMemberTeam"] = true;
9+
const apiInstance = new v2.TeamsApi(configuration);
10+
11+
const params: v2.TeamsApiAddMemberTeamRequest = {
12+
body: {
13+
data: {
14+
id: "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
15+
type: "member_teams",
16+
},
17+
},
18+
superTeamId: "super_team_id",
19+
};
20+
21+
apiInstance
22+
.addMemberTeam(params)
23+
.then((data: any) => {
24+
console.log(
25+
"API called successfully. Returned data: " + JSON.stringify(data)
26+
);
27+
})
28+
.catch((error: any) => console.error(error));

examples/v2/teams/ListMemberTeams.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Get all member teams returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listMemberTeams"] = true;
9+
const apiInstance = new v2.TeamsApi(configuration);
10+
11+
const params: v2.TeamsApiListMemberTeamsRequest = {
12+
superTeamId: "super_team_id",
13+
};
14+
15+
apiInstance
16+
.listMemberTeams(params)
17+
.then((data: v2.TeamsResponse) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.catch((error: any) => console.error(error));
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* Get all member teams returns "OK" response with pagination
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listMemberTeams"] = true;
9+
const apiInstance = new v2.TeamsApi(configuration);
10+
11+
const params: v2.TeamsApiListMemberTeamsRequest = {
12+
superTeamId: "super_team_id",
13+
};
14+
15+
(async () => {
16+
try {
17+
for await (const item of apiInstance.listMemberTeamsWithPagination(
18+
params
19+
)) {
20+
console.log(item);
21+
}
22+
} catch (error) {
23+
console.error(error);
24+
}
25+
})();

examples/v2/teams/RemoveMemberTeam.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* Remove a member team returns "No Content" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.removeMemberTeam"] = true;
9+
const apiInstance = new v2.TeamsApi(configuration);
10+
11+
const params: v2.TeamsApiRemoveMemberTeamRequest = {
12+
superTeamId: "super_team_id",
13+
memberTeamId: "member_team_id",
14+
};
15+
16+
apiInstance
17+
.removeMemberTeam(params)
18+
.then((data: any) => {
19+
console.log(
20+
"API called successfully. Returned data: " + JSON.stringify(data)
21+
);
22+
})
23+
.catch((error: any) => console.error(error));

features/support/scenarios_model_mapping.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7254,6 +7254,47 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
72547254
},
72557255
"operationResponseType": "TeamResponse",
72567256
},
7257+
"v2.ListMemberTeams": {
7258+
"superTeamId": {
7259+
"type": "string",
7260+
"format": "",
7261+
},
7262+
"pageSize": {
7263+
"type": "number",
7264+
"format": "int64",
7265+
},
7266+
"pageNumber": {
7267+
"type": "number",
7268+
"format": "int64",
7269+
},
7270+
"fieldsTeam": {
7271+
"type": "Array<TeamsField>",
7272+
"format": "",
7273+
},
7274+
"operationResponseType": "TeamsResponse",
7275+
},
7276+
"v2.AddMemberTeam": {
7277+
"superTeamId": {
7278+
"type": "string",
7279+
"format": "",
7280+
},
7281+
"body": {
7282+
"type": "AddMemberTeamRequest",
7283+
"format": "",
7284+
},
7285+
"operationResponseType": "void",
7286+
},
7287+
"v2.RemoveMemberTeam": {
7288+
"superTeamId": {
7289+
"type": "string",
7290+
"format": "",
7291+
},
7292+
"memberTeamId": {
7293+
"type": "string",
7294+
"format": "",
7295+
},
7296+
"operationResponseType": "void",
7297+
},
72577298
"v2.DeleteTeam": {
72587299
"teamId": {
72597300
"type": "string",

0 commit comments

Comments
 (0)