Skip to content

Commit 7609a4e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add Teams to cleanup script and add pagination to users and roles (#1288)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 1faddca commit 7609a4e

File tree

61 files changed

+494
-494
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+494
-494
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.5",
7-
"regenerated": "2023-08-22 13:14:15.204632",
8-
"spec_repo_commit": "32ed4727"
7+
"regenerated": "2023-08-22 13:54:25.014102",
8+
"spec_repo_commit": "51fe480e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-08-22 13:14:15.220922",
13-
"spec_repo_commit": "32ed4727"
12+
"regenerated": "2023-08-22 13:54:25.033704",
13+
"spec_repo_commit": "51fe480e"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-07-12T17:29:26.749Z"
1+
"2023-08-21T19:44:42.989Z"

cassettes/v2/Teams_3116892301/Create-a-team-link-returns-API-error-response-response_2927866376/recording.har

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "74d49ccec0c11e5ae74a243208eae988",
11+
"_id": "ae7ecbe701347428d57dd0c1ea807d48",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 105,
15+
"bodySize": 115,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"handle\":\"handle-93860ab913118caf\",\"name\":\"name-93860ab913118caf\"},\"type\":\"team\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-d92d2e08806acc4e\",\"name\":\"test-name-d92d2e08806acc4e\"},\"type\":\"team\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/team"
3939
},
4040
"response": {
41-
"bodySize": 540,
41+
"bodySize": 619,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 540,
45-
"text": "{\"data\":{\"type\":\"team\",\"id\":\"a68b555c-20d9-11ee-8739-da7ad0900002\",\"attributes\":{\"name\":\"name-93860ab913118caf\",\"handle\":\"handle-93860ab913118caf\",\"summary\":null,\"description\":null,\"created_at\":\"2023-07-12T17:29:26.918845+00:00\",\"modified_at\":\"2023-07-12T17:29:26.918850+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/a68b555c-20d9-11ee-8739-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/a68b555c-20d9-11ee-8739-da7ad0900002/permission-settings\"}}}}}\n"
44+
"size": 619,
45+
"text": "{\"data\":{\"type\":\"team\",\"id\":\"2cb8bb60-405b-11ee-8a69-da7ad0900002\",\"attributes\":{\"name\":\"test-name-d92d2e08806acc4e\",\"handle\":\"test-handle-d92d2e08806acc4e\",\"summary\":null,\"description\":null,\"avatar\":null,\"banner\":null,\"visible_modules\":[],\"hidden_modules\":[],\"created_at\":\"2023-08-21T19:44:43.155798+00:00\",\"modified_at\":\"2023-08-21T19:44:43.155804+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/2cb8bb60-405b-11ee-8a69-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/2cb8bb60-405b-11ee-8a69-da7ad0900002/permission-settings\"}}}}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2023-07-12T17:29:26.757Z",
61-
"time": 209
60+
"startedDateTime": "2023-08-21T19:44:42.999Z",
61+
"time": 257
6262
},
6363
{
64-
"_id": "b1391affc74ddcea5f68c408fdee1a8a",
64+
"_id": "4ea0331f31e0eb6e24164a766f1230cb",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -88,7 +88,7 @@
8888
"text": "{\"data\":{\"attributes\":{\"label\":\"\",\"position\":0,\"url\":\"https://example.com\"},\"type\":\"team_links\"}}"
8989
},
9090
"queryString": [],
91-
"url": "https://api.datadoghq.com/api/v2/team/a68b555c-20d9-11ee-8739-da7ad0900002/links"
91+
"url": "https://api.datadoghq.com/api/v2/team/2cb8bb60-405b-11ee-8a69-da7ad0900002/links"
9292
},
9393
"response": {
9494
"bodySize": 36,
@@ -110,11 +110,11 @@
110110
"status": 422,
111111
"statusText": "Unprocessable Entity"
112112
},
113-
"startedDateTime": "2023-07-12T17:29:26.978Z",
114-
"time": 133
113+
"startedDateTime": "2023-08-21T19:44:43.282Z",
114+
"time": 142
115115
},
116116
{
117-
"_id": "bb69daa424d3590600d315b3b54c234d",
117+
"_id": "4c3e54ffd65a7f907520a11c80e57b68",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -131,7 +131,7 @@
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/team/a68b555c-20d9-11ee-8739-da7ad0900002"
134+
"url": "https://api.datadoghq.com/api/v2/team/2cb8bb60-405b-11ee-8a69-da7ad0900002"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -147,8 +147,8 @@
147147
"status": 204,
148148
"statusText": "No Content"
149149
},
150-
"startedDateTime": "2023-07-12T17:29:27.122Z",
151-
"time": 196
150+
"startedDateTime": "2023-08-21T19:44:43.439Z",
151+
"time": 166
152152
}
153153
],
154154
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-07-12T17:29:27.327Z"
1+
"2023-08-21T19:44:43.622Z"

cassettes/v2/Teams_3116892301/Create-a-team-link-returns-OK-response_1577386527/recording.har

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "9f844089cdc44324444246bb44921286",
11+
"_id": "14b54f43642cf26fdd0bde2c81c4c00f",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 105,
15+
"bodySize": 115,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"handle\":\"handle-80cbaea63059dc94\",\"name\":\"name-80cbaea63059dc94\"},\"type\":\"team\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-95c34d7fe6d963ff\",\"name\":\"test-name-95c34d7fe6d963ff\"},\"type\":\"team\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/team"
3939
},
4040
"response": {
41-
"bodySize": 540,
41+
"bodySize": 619,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 540,
45-
"text": "{\"data\":{\"type\":\"team\",\"id\":\"a6db485a-20d9-11ee-ad41-da7ad0900002\",\"attributes\":{\"name\":\"name-80cbaea63059dc94\",\"handle\":\"handle-80cbaea63059dc94\",\"summary\":null,\"description\":null,\"created_at\":\"2023-07-12T17:29:27.442364+00:00\",\"modified_at\":\"2023-07-12T17:29:27.442369+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/a6db485a-20d9-11ee-ad41-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/a6db485a-20d9-11ee-ad41-da7ad0900002/permission-settings\"}}}}}\n"
44+
"size": 619,
45+
"text": "{\"data\":{\"type\":\"team\",\"id\":\"2d0e6d4e-405b-11ee-84bc-da7ad0900002\",\"attributes\":{\"name\":\"test-name-95c34d7fe6d963ff\",\"handle\":\"test-handle-95c34d7fe6d963ff\",\"summary\":null,\"description\":null,\"avatar\":null,\"banner\":null,\"visible_modules\":[],\"hidden_modules\":[],\"created_at\":\"2023-08-21T19:44:43.718259+00:00\",\"modified_at\":\"2023-08-21T19:44:43.718264+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/2d0e6d4e-405b-11ee-84bc-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/2d0e6d4e-405b-11ee-84bc-da7ad0900002/permission-settings\"}}}}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2023-07-12T17:29:27.329Z",
61-
"time": 174
60+
"startedDateTime": "2023-08-21T19:44:43.626Z",
61+
"time": 207
6262
},
6363
{
64-
"_id": "f88607f3081a7c3b60d11c8c6e791d13",
64+
"_id": "96b35eef12928033358da4edeb2f4c83",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -88,14 +88,14 @@
8888
"text": "{\"data\":{\"attributes\":{\"label\":\"Link label\",\"position\":0,\"url\":\"https://example.com\"},\"type\":\"team_links\"}}"
8989
},
9090
"queryString": [],
91-
"url": "https://api.datadoghq.com/api/v2/team/a6db485a-20d9-11ee-ad41-da7ad0900002/links"
91+
"url": "https://api.datadoghq.com/api/v2/team/2d0e6d4e-405b-11ee-84bc-da7ad0900002/links"
9292
},
9393
"response": {
9494
"bodySize": 201,
9595
"content": {
9696
"mimeType": "application/json",
9797
"size": 201,
98-
"text": "{\"data\":{\"type\":\"team_links\",\"id\":\"a6f9e918-20d9-11ee-b537-da7ad0900002\",\"attributes\":{\"team_id\":\"a6db485a-20d9-11ee-ad41-da7ad0900002\",\"label\":\"Link label\",\"url\":\"https://example.com\",\"position\":0}}}\n"
98+
"text": "{\"data\":{\"type\":\"team_links\",\"id\":\"2d348dee-405b-11ee-b5db-da7ad0900002\",\"attributes\":{\"team_id\":\"2d0e6d4e-405b-11ee-84bc-da7ad0900002\",\"label\":\"Link label\",\"url\":\"https://example.com\",\"position\":0}}}\n"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -110,11 +110,11 @@
110110
"status": 200,
111111
"statusText": "OK"
112112
},
113-
"startedDateTime": "2023-07-12T17:29:27.511Z",
114-
"time": 148
113+
"startedDateTime": "2023-08-21T19:44:43.841Z",
114+
"time": 176
115115
},
116116
{
117-
"_id": "ffb6cebee7e97230aa539111861c70dc",
117+
"_id": "a26fbc5a2d87f345bec5c68f206ce8c4",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -131,7 +131,7 @@
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/team/a6db485a-20d9-11ee-ad41-da7ad0900002/links/a6f9e918-20d9-11ee-b537-da7ad0900002"
134+
"url": "https://api.datadoghq.com/api/v2/team/2d0e6d4e-405b-11ee-84bc-da7ad0900002/links/2d348dee-405b-11ee-b5db-da7ad0900002"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -147,11 +147,11 @@
147147
"status": 204,
148148
"statusText": "No Content"
149149
},
150-
"startedDateTime": "2023-07-12T17:29:27.667Z",
151-
"time": 153
150+
"startedDateTime": "2023-08-21T19:44:44.026Z",
151+
"time": 151
152152
},
153153
{
154-
"_id": "ad0d3fee1ef3bfee6f83cf4209b42665",
154+
"_id": "3692338f5522fb0b6b32c510f8247e38",
155155
"_order": 0,
156156
"cache": {},
157157
"request": {
@@ -168,7 +168,7 @@
168168
"httpVersion": "HTTP/1.1",
169169
"method": "DELETE",
170170
"queryString": [],
171-
"url": "https://api.datadoghq.com/api/v2/team/a6db485a-20d9-11ee-ad41-da7ad0900002"
171+
"url": "https://api.datadoghq.com/api/v2/team/2d0e6d4e-405b-11ee-84bc-da7ad0900002"
172172
},
173173
"response": {
174174
"bodySize": 0,
@@ -184,8 +184,8 @@
184184
"status": 204,
185185
"statusText": "No Content"
186186
},
187-
"startedDateTime": "2023-07-12T17:29:27.825Z",
188-
"time": 187
187+
"startedDateTime": "2023-08-21T19:44:44.185Z",
188+
"time": 252
189189
}
190190
],
191191
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-07-12T17:29:28.021Z"
1+
"2023-08-21T19:44:44.449Z"

cassettes/v2/Teams_3116892301/Create-a-team-returns-API-error-response-response_811120702/recording.har

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "c1377e7e7f3b1cba3293bb03762c3f94",
11+
"_id": "107e7ed73c77d45ef572a0f8b41fc0a4",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 105,
15+
"bodySize": 115,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"handle\":\"handle-c12045e3c85ab6fe\",\"name\":\"name-c12045e3c85ab6fe\"},\"type\":\"team\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-b98be6aba3b71089\",\"name\":\"test-name-b98be6aba3b71089\"},\"type\":\"team\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/team"
3939
},
4040
"response": {
41-
"bodySize": 540,
41+
"bodySize": 619,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 540,
45-
"text": "{\"data\":{\"type\":\"team\",\"id\":\"a74521bc-20d9-11ee-be22-da7ad0900002\",\"attributes\":{\"name\":\"name-c12045e3c85ab6fe\",\"handle\":\"handle-c12045e3c85ab6fe\",\"summary\":null,\"description\":null,\"created_at\":\"2023-07-12T17:29:28.136431+00:00\",\"modified_at\":\"2023-07-12T17:29:28.136436+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/a74521bc-20d9-11ee-be22-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/a74521bc-20d9-11ee-be22-da7ad0900002/permission-settings\"}}}}}\n"
44+
"size": 619,
45+
"text": "{\"data\":{\"type\":\"team\",\"id\":\"2d8e0130-405b-11ee-869d-da7ad0900002\",\"attributes\":{\"name\":\"test-name-b98be6aba3b71089\",\"handle\":\"test-handle-b98be6aba3b71089\",\"summary\":null,\"description\":null,\"avatar\":null,\"banner\":null,\"visible_modules\":[],\"hidden_modules\":[],\"created_at\":\"2023-08-21T19:44:44.553464+00:00\",\"modified_at\":\"2023-08-21T19:44:44.553470+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/2d8e0130-405b-11ee-869d-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/2d8e0130-405b-11ee-869d-da7ad0900002/permission-settings\"}}}}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,15 +57,15 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2023-07-12T17:29:28.025Z",
61-
"time": 157
60+
"startedDateTime": "2023-08-21T19:44:44.457Z",
61+
"time": 202
6262
},
6363
{
64-
"_id": "a77c17c311e54bfeff731070ff9cfb7a",
64+
"_id": "292e6a390d768911db0e6a4c865feeb5",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
68-
"bodySize": 134,
68+
"bodySize": 139,
6969
"cookies": [],
7070
"headers": [
7171
{
@@ -85,7 +85,7 @@
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"data\":{\"attributes\":{\"handle\":\"handle-c12045e3c85ab6fe\",\"name\":\"Example Team\"},\"relationships\":{\"users\":{\"data\":[]}},\"type\":\"team\"}}"
88+
"text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-b98be6aba3b71089\",\"name\":\"Example Team\"},\"relationships\":{\"users\":{\"data\":[]}},\"type\":\"team\"}}"
8989
},
9090
"queryString": [],
9191
"url": "https://api.datadoghq.com/api/v2/team"
@@ -110,11 +110,11 @@
110110
"status": 409,
111111
"statusText": "Conflict"
112112
},
113-
"startedDateTime": "2023-07-12T17:29:28.203Z",
114-
"time": 130
113+
"startedDateTime": "2023-08-21T19:44:44.665Z",
114+
"time": 139
115115
},
116116
{
117-
"_id": "deacc6dea1932f0eb6c1f37f2e44beaa",
117+
"_id": "8133ffa66c73400bc7c3511932f0d220",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -131,7 +131,7 @@
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/team/a74521bc-20d9-11ee-be22-da7ad0900002"
134+
"url": "https://api.datadoghq.com/api/v2/team/2d8e0130-405b-11ee-869d-da7ad0900002"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -147,8 +147,8 @@
147147
"status": 204,
148148
"statusText": "No Content"
149149
},
150-
"startedDateTime": "2023-07-12T17:29:28.340Z",
151-
"time": 151
150+
"startedDateTime": "2023-08-21T19:44:44.812Z",
151+
"time": 164
152152
}
153153
],
154154
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-07-12T17:29:28.500Z"
1+
"2023-08-21T19:54:32.226Z"

0 commit comments

Comments
 (0)