Skip to content

Commit 4f5b310

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d65f3e10 of spec repo
1 parent 5079f76 commit 4f5b310

File tree

3 files changed

+100
-17
lines changed

3 files changed

+100
-17
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": "2023-09-26 14:16:48.035277",
8-
"spec_repo_commit": "0270a00c"
7+
"regenerated": "2023-09-27 08:03:06.767782",
8+
"spec_repo_commit": "d65f3e10"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-09-26 14:16:48.056865",
13-
"spec_repo_commit": "0270a00c"
12+
"regenerated": "2023-09-27 08:03:06.782175",
13+
"spec_repo_commit": "d65f3e10"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26450,6 +26450,8 @@ paths:
2645026450
schema:
2645126451
$ref: '#/components/schemas/TeamsResponse'
2645226452
description: OK
26453+
'403':
26454+
$ref: '#/components/responses/ForbiddenResponse'
2645326455
'429':
2645426456
$ref: '#/components/responses/TooManyRequestsResponse'
2645526457
security:
@@ -26482,6 +26484,8 @@ paths:
2648226484
schema:
2648326485
$ref: '#/components/schemas/TeamResponse'
2648426486
description: CREATED
26487+
'403':
26488+
$ref: '#/components/responses/ForbiddenResponse'
2648526489
'409':
2648626490
content:
2648726491
application/json:
@@ -26514,6 +26518,8 @@ paths:
2651426518
responses:
2651526519
'204':
2651626520
description: No Content
26521+
'403':
26522+
$ref: '#/components/responses/ForbiddenResponse'
2651726523
'404':
2651826524
content:
2651926525
application/json:
@@ -26548,6 +26554,8 @@ paths:
2654826554
schema:
2654926555
$ref: '#/components/schemas/TeamResponse'
2655026556
description: OK
26557+
'403':
26558+
$ref: '#/components/responses/ForbiddenResponse'
2655126559
'404':
2655226560
content:
2655326561
application/json:
@@ -26597,6 +26605,8 @@ paths:
2659726605
schema:
2659826606
$ref: '#/components/schemas/APIErrorResponse'
2659926607
description: API error response.
26608+
'403':
26609+
$ref: '#/components/responses/ForbiddenResponse'
2660026610
'404':
2660126611
content:
2660226612
application/json:
@@ -26638,6 +26648,8 @@ paths:
2663826648
schema:
2663926649
$ref: '#/components/schemas/TeamLinksResponse'
2664026650
description: OK
26651+
'403':
26652+
$ref: '#/components/responses/ForbiddenResponse'
2664126653
'404':
2664226654
content:
2664326655
application/json:
@@ -26677,6 +26689,8 @@ paths:
2667726689
schema:
2667826690
$ref: '#/components/schemas/TeamLinkResponse'
2667926691
description: OK
26692+
'403':
26693+
$ref: '#/components/responses/ForbiddenResponse'
2668026694
'404':
2668126695
content:
2668226696
application/json:
@@ -26720,6 +26734,8 @@ paths:
2672026734
responses:
2672126735
'204':
2672226736
description: No Content
26737+
'403':
26738+
$ref: '#/components/responses/ForbiddenResponse'
2672326739
'404':
2672426740
content:
2672526741
application/json:
@@ -26759,6 +26775,8 @@ paths:
2675926775
schema:
2676026776
$ref: '#/components/schemas/TeamLinkResponse'
2676126777
description: OK
26778+
'403':
26779+
$ref: '#/components/responses/ForbiddenResponse'
2676226780
'404':
2676326781
content:
2676426782
application/json:
@@ -26804,6 +26822,8 @@ paths:
2680426822
schema:
2680526823
$ref: '#/components/schemas/TeamLinkResponse'
2680626824
description: OK
26825+
'403':
26826+
$ref: '#/components/responses/ForbiddenResponse'
2680726827
'404':
2680826828
content:
2680926829
application/json:
@@ -26851,6 +26871,8 @@ paths:
2685126871
schema:
2685226872
$ref: '#/components/schemas/UserTeamsResponse'
2685326873
description: Represents a user's association to a team
26874+
'403':
26875+
$ref: '#/components/responses/ForbiddenResponse'
2685426876
'404':
2685526877
content:
2685626878
application/json:
@@ -26890,6 +26912,8 @@ paths:
2689026912
schema:
2689126913
$ref: '#/components/schemas/UserTeamResponse'
2689226914
description: Represents a user's association to a team
26915+
'403':
26916+
$ref: '#/components/responses/ForbiddenResponse'
2689326917
'404':
2689426918
content:
2689526919
application/json:
@@ -26933,6 +26957,8 @@ paths:
2693326957
responses:
2693426958
'204':
2693526959
description: No Content
26960+
'403':
26961+
$ref: '#/components/responses/ForbiddenResponse'
2693626962
'404':
2693726963
content:
2693826964
application/json:
@@ -26978,6 +27004,8 @@ paths:
2697827004
schema:
2697927005
$ref: '#/components/schemas/UserTeamResponse'
2698027006
description: Represents a user's association to a team
27007+
'403':
27008+
$ref: '#/components/responses/ForbiddenResponse'
2698127009
'404':
2698227010
content:
2698327011
application/json:
@@ -27013,6 +27041,8 @@ paths:
2701327041
schema:
2701427042
$ref: '#/components/schemas/TeamPermissionSettingsResponse'
2701527043
description: OK
27044+
'403':
27045+
$ref: '#/components/responses/ForbiddenResponse'
2701627046
'404':
2701727047
content:
2701827048
application/json:
@@ -27059,6 +27089,8 @@ paths:
2705927089
schema:
2706027090
$ref: '#/components/schemas/TeamPermissionSettingResponse'
2706127091
description: OK
27092+
'403':
27093+
$ref: '#/components/responses/ForbiddenResponse'
2706227094
'404':
2706327095
content:
2706427096
application/json:

packages/datadog-api-client-v2/apis/TeamsApi.ts

Lines changed: 64 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,11 @@ export class TeamsApiResponseProcessor {
844844
) as TeamResponse;
845845
return body;
846846
}
847-
if (response.httpStatusCode == 409 || response.httpStatusCode == 429) {
847+
if (
848+
response.httpStatusCode == 403 ||
849+
response.httpStatusCode == 409 ||
850+
response.httpStatusCode == 429
851+
) {
848852
const bodyText = ObjectSerializer.parse(
849853
await response.body.text(),
850854
contentType
@@ -903,6 +907,7 @@ export class TeamsApiResponseProcessor {
903907
return body;
904908
}
905909
if (
910+
response.httpStatusCode == 403 ||
906911
response.httpStatusCode == 404 ||
907912
response.httpStatusCode == 422 ||
908913
response.httpStatusCode == 429
@@ -965,6 +970,7 @@ export class TeamsApiResponseProcessor {
965970
return body;
966971
}
967972
if (
973+
response.httpStatusCode == 403 ||
968974
response.httpStatusCode == 404 ||
969975
response.httpStatusCode == 409 ||
970976
response.httpStatusCode == 429
@@ -1020,7 +1026,11 @@ export class TeamsApiResponseProcessor {
10201026
if (response.httpStatusCode == 204) {
10211027
return;
10221028
}
1023-
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
1029+
if (
1030+
response.httpStatusCode == 403 ||
1031+
response.httpStatusCode == 404 ||
1032+
response.httpStatusCode == 429
1033+
) {
10241034
const bodyText = ObjectSerializer.parse(
10251035
await response.body.text(),
10261036
contentType
@@ -1072,7 +1082,11 @@ export class TeamsApiResponseProcessor {
10721082
if (response.httpStatusCode == 204) {
10731083
return;
10741084
}
1075-
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
1085+
if (
1086+
response.httpStatusCode == 403 ||
1087+
response.httpStatusCode == 404 ||
1088+
response.httpStatusCode == 429
1089+
) {
10761090
const bodyText = ObjectSerializer.parse(
10771091
await response.body.text(),
10781092
contentType
@@ -1124,7 +1138,11 @@ export class TeamsApiResponseProcessor {
11241138
if (response.httpStatusCode == 204) {
11251139
return;
11261140
}
1127-
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
1141+
if (
1142+
response.httpStatusCode == 403 ||
1143+
response.httpStatusCode == 404 ||
1144+
response.httpStatusCode == 429
1145+
) {
11281146
const bodyText = ObjectSerializer.parse(
11291147
await response.body.text(),
11301148
contentType
@@ -1180,7 +1198,11 @@ export class TeamsApiResponseProcessor {
11801198
) as TeamResponse;
11811199
return body;
11821200
}
1183-
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
1201+
if (
1202+
response.httpStatusCode == 403 ||
1203+
response.httpStatusCode == 404 ||
1204+
response.httpStatusCode == 429
1205+
) {
11841206
const bodyText = ObjectSerializer.parse(
11851207
await response.body.text(),
11861208
contentType
@@ -1238,7 +1260,11 @@ export class TeamsApiResponseProcessor {
12381260
) as TeamLinkResponse;
12391261
return body;
12401262
}
1241-
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
1263+
if (
1264+
response.httpStatusCode == 403 ||
1265+
response.httpStatusCode == 404 ||
1266+
response.httpStatusCode == 429
1267+
) {
12421268
const bodyText = ObjectSerializer.parse(
12431269
await response.body.text(),
12441270
contentType
@@ -1296,7 +1322,11 @@ export class TeamsApiResponseProcessor {
12961322
) as TeamLinksResponse;
12971323
return body;
12981324
}
1299-
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
1325+
if (
1326+
response.httpStatusCode == 403 ||
1327+
response.httpStatusCode == 404 ||
1328+
response.httpStatusCode == 429
1329+
) {
13001330
const bodyText = ObjectSerializer.parse(
13011331
await response.body.text(),
13021332
contentType
@@ -1354,7 +1384,11 @@ export class TeamsApiResponseProcessor {
13541384
) as UserTeamsResponse;
13551385
return body;
13561386
}
1357-
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
1387+
if (
1388+
response.httpStatusCode == 403 ||
1389+
response.httpStatusCode == 404 ||
1390+
response.httpStatusCode == 429
1391+
) {
13581392
const bodyText = ObjectSerializer.parse(
13591393
await response.body.text(),
13601394
contentType
@@ -1412,7 +1446,11 @@ export class TeamsApiResponseProcessor {
14121446
) as TeamPermissionSettingsResponse;
14131447
return body;
14141448
}
1415-
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
1449+
if (
1450+
response.httpStatusCode == 403 ||
1451+
response.httpStatusCode == 404 ||
1452+
response.httpStatusCode == 429
1453+
) {
14161454
const bodyText = ObjectSerializer.parse(
14171455
await response.body.text(),
14181456
contentType
@@ -1526,7 +1564,7 @@ export class TeamsApiResponseProcessor {
15261564
) as TeamsResponse;
15271565
return body;
15281566
}
1529-
if (response.httpStatusCode == 429) {
1567+
if (response.httpStatusCode == 403 || response.httpStatusCode == 429) {
15301568
const bodyText = ObjectSerializer.parse(
15311569
await response.body.text(),
15321570
contentType
@@ -1584,6 +1622,7 @@ export class TeamsApiResponseProcessor {
15841622
}
15851623
if (
15861624
response.httpStatusCode == 400 ||
1625+
response.httpStatusCode == 403 ||
15871626
response.httpStatusCode == 404 ||
15881627
response.httpStatusCode == 409 ||
15891628
response.httpStatusCode == 429
@@ -1645,7 +1684,11 @@ export class TeamsApiResponseProcessor {
16451684
) as TeamLinkResponse;
16461685
return body;
16471686
}
1648-
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
1687+
if (
1688+
response.httpStatusCode == 403 ||
1689+
response.httpStatusCode == 404 ||
1690+
response.httpStatusCode == 429
1691+
) {
16491692
const bodyText = ObjectSerializer.parse(
16501693
await response.body.text(),
16511694
contentType
@@ -1703,7 +1746,11 @@ export class TeamsApiResponseProcessor {
17031746
) as UserTeamResponse;
17041747
return body;
17051748
}
1706-
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
1749+
if (
1750+
response.httpStatusCode == 403 ||
1751+
response.httpStatusCode == 404 ||
1752+
response.httpStatusCode == 429
1753+
) {
17071754
const bodyText = ObjectSerializer.parse(
17081755
await response.body.text(),
17091756
contentType
@@ -1761,7 +1808,11 @@ export class TeamsApiResponseProcessor {
17611808
) as TeamPermissionSettingResponse;
17621809
return body;
17631810
}
1764-
if (response.httpStatusCode == 404 || response.httpStatusCode == 429) {
1811+
if (
1812+
response.httpStatusCode == 403 ||
1813+
response.httpStatusCode == 404 ||
1814+
response.httpStatusCode == 429
1815+
) {
17651816
const bodyText = ObjectSerializer.parse(
17661817
await response.body.text(),
17671818
contentType

0 commit comments

Comments
 (0)