Skip to content

Commit 0e03968

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Update Cleanup script to use GCP STS endpoint (#1556)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 50a48fe commit 0e03968

File tree

34 files changed

+208
-202
lines changed

34 files changed

+208
-202
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": "2024-03-13 18:08:59.359763",
8-
"spec_repo_commit": "29884c34"
7+
"regenerated": "2024-03-13 19:22:35.943343",
8+
"spec_repo_commit": "5745e5bb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-03-13 18:08:59.377940",
13-
"spec_repo_commit": "29884c34"
12+
"regenerated": "2024-03-13 19:22:35.960822",
13+
"spec_repo_commit": "5745e5bb"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-09-29T12:39:55.710Z"
1+
"2024-03-11T19:47:20.859Z"

cassettes/v2/GCP-Integration_2417533655/Create-a-new-entry-for-your-service-account-returns-OK-response_1766852936/recording.har

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "d1521ff2cbc650411e9218068d5d6a7e",
11+
"_id": "4a486d974ff0dd094e916f0ae1f10a15",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 143,
15+
"bodySize": 148,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"client_email\":\"80e3f00106389e6e@test-project.iam.gserviceaccount.com\",\"host_filters\":[]},\"type\":\"gcp_service_account\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"client_email\":\"Test-8b2b196dd4bab7e2@test-project.iam.gserviceaccount.com\",\"host_filters\":[]},\"type\":\"gcp_service_account\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts"
3939
},
4040
"response": {
41-
"bodySize": 247,
41+
"bodySize": 363,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 247,
45-
"text": "{\"data\":{\"type\":\"gcp_service_account\",\"id\":\"d6c68645-2b52-43e9-838c-9b7fdb809a8d\",\"attributes\":{\"host_filters\":[],\"account_tags\":[],\"client_email\":\"80e3f00106389e6e@test-project.iam.gserviceaccount.com\",\"is_cspm_enabled\":false,\"automute\":false}}}\n"
44+
"size": 363,
45+
"text": "{\"data\":{\"type\":\"gcp_service_account\",\"attributes\":{\"client_email\":\"Test-8b2b196dd4bab7e2@test-project.iam.gserviceaccount.com\",\"is_security_command_center_enabled\":false,\"resource_collection_enabled\":false,\"cloud_run_revision_filters\":[],\"automute\":false,\"is_cspm_enabled\":false,\"account_tags\":[],\"host_filters\":[]},\"id\":\"e6f0237e-b9c2-4513-9940-d2473502e39e\"}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,17 +51,17 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 657,
54+
"headersSize": 658,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2023-09-29T12:39:55.993Z",
61-
"time": 223
60+
"startedDateTime": "2024-03-11T19:47:20.867Z",
61+
"time": 1738
6262
},
6363
{
64-
"_id": "7683c40f34536c346491142980d75660",
64+
"_id": "5bac2c7f8f0f98ad2275555ba6d08d4b",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,7 +78,7 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts/d6c68645-2b52-43e9-838c-9b7fdb809a8d"
81+
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts/e6f0237e-b9c2-4513-9940-d2473502e39e"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -93,14 +93,14 @@
9393
"value": "text/html; charset=utf-8"
9494
}
9595
],
96-
"headersSize": 644,
96+
"headersSize": 645,
9797
"httpVersion": "HTTP/1.1",
9898
"redirectURL": "",
9999
"status": 204,
100100
"statusText": "No Content"
101101
},
102-
"startedDateTime": "2023-09-29T12:39:56.226Z",
103-
"time": 202
102+
"startedDateTime": "2024-03-11T19:47:22.624Z",
103+
"time": 133
104104
}
105105
],
106106
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-09-27T14:45:59.771Z"
1+
"2024-03-11T19:47:22.769Z"

cassettes/v2/GCP-Integration_2417533655/Create-a-new-entry-for-your-service-account-with-account_tags-returns-OK-response_334123649/recording.har

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "4f5b930c5c9b1952a77d6f90ad34f1c6",
11+
"_id": "3061850eade41e3b170932ad999d6c88",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 176,
15+
"bodySize": 181,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"account_tags\":[\"lorem\",\"ipsum\"],\"client_email\":\"1f86730b653d0a57@test-project.iam.gserviceaccount.com\",\"host_filters\":[]},\"type\":\"gcp_service_account\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"account_tags\":[\"lorem\",\"ipsum\"],\"client_email\":\"Test-e5f8eebedfc95a5e@test-project.iam.gserviceaccount.com\",\"host_filters\":[]},\"type\":\"gcp_service_account\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts"
3939
},
4040
"response": {
41-
"bodySize": 262,
41+
"bodySize": 378,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 262,
45-
"text": "{\"data\":{\"type\":\"gcp_service_account\",\"attributes\":{\"host_filters\":[],\"client_email\":\"1f86730b653d0a57@test-project.iam.gserviceaccount.com\",\"is_cspm_enabled\":false,\"automute\":false,\"account_tags\":[\"lorem\",\"ipsum\"]},\"id\":\"1cdedba8-a0a3-4036-82b0-ad8088dd0c02\"}}\n"
44+
"size": 378,
45+
"text": "{\"data\":{\"type\":\"gcp_service_account\",\"attributes\":{\"is_cspm_enabled\":false,\"resource_collection_enabled\":false,\"account_tags\":[\"lorem\",\"ipsum\"],\"cloud_run_revision_filters\":[],\"is_security_command_center_enabled\":false,\"host_filters\":[],\"client_email\":\"Test-e5f8eebedfc95a5e@test-project.iam.gserviceaccount.com\",\"automute\":false},\"id\":\"62f1287b-89d6-414d-8b80-713208d91299\"}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2023-09-27T14:46:00.145Z",
61-
"time": 370
60+
"startedDateTime": "2024-03-11T19:47:22.787Z",
61+
"time": 402
6262
},
6363
{
64-
"_id": "ad93d1da3ff711df78b7add4d376ada9",
64+
"_id": "5205757877b2f2d9840c6fdaa9864d44",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,7 +78,7 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts/1cdedba8-a0a3-4036-82b0-ad8088dd0c02"
81+
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts/62f1287b-89d6-414d-8b80-713208d91299"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -99,8 +99,8 @@
9999
"status": 204,
100100
"statusText": "No Content"
101101
},
102-
"startedDateTime": "2023-09-27T14:46:00.560Z",
103-
"time": 295
102+
"startedDateTime": "2024-03-11T19:47:23.203Z",
103+
"time": 250
104104
}
105105
],
106106
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-01-31T21:16:04.924Z"
1+
"2024-03-11T19:47:23.464Z"

cassettes/v2/GCP-Integration_2417533655/Create-a-new-entry-for-your-service-account-with-cloud-run-revision-filters-enabled-return_462544755/recording.har

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "47a66398572b0d1d83f9556e64ce5555",
11+
"_id": "68a01f0dc95d3bcd643b72a378f86cfd",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 185,
15+
"bodySize": 190,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"client_email\":\"feb37f50ee7be467@test-project.iam.gserviceaccount.com\",\"cloud_run_revision_filters\":[\"meh:bleh\"],\"host_filters\":[]},\"type\":\"gcp_service_account\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"client_email\":\"Test-1701e5fecd52895c@test-project.iam.gserviceaccount.com\",\"cloud_run_revision_filters\":[\"meh:bleh\"],\"host_filters\":[]},\"type\":\"gcp_service_account\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts"
3939
},
4040
"response": {
41-
"bodySize": 368,
41+
"bodySize": 373,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 368,
45-
"text": "{\"data\":{\"type\":\"gcp_service_account\",\"attributes\":{\"cloud_run_revision_filters\":[\"meh:bleh\"],\"resource_collection_enabled\":false,\"host_filters\":[],\"automute\":false,\"is_cspm_enabled\":false,\"account_tags\":[],\"client_email\":\"feb37f50ee7be467@test-project.iam.gserviceaccount.com\",\"is_security_command_center_enabled\":false},\"id\":\"e1157377-8d5c-4a94-9730-10c3fa9d6ff5\"}}\n"
44+
"size": 373,
45+
"text": "{\"data\":{\"type\":\"gcp_service_account\",\"id\":\"58054a77-4ee0-44a8-8260-4eec67ddcced\",\"attributes\":{\"is_cspm_enabled\":false,\"automute\":false,\"is_security_command_center_enabled\":false,\"client_email\":\"Test-1701e5fecd52895c@test-project.iam.gserviceaccount.com\",\"resource_collection_enabled\":false,\"account_tags\":[],\"host_filters\":[],\"cloud_run_revision_filters\":[\"meh:bleh\"]}}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2024-01-31T21:16:05.187Z",
61-
"time": 392
60+
"startedDateTime": "2024-03-11T19:47:23.473Z",
61+
"time": 463
6262
},
6363
{
64-
"_id": "1a91e8834df76cf0f341faea9cbad7e6",
64+
"_id": "1aa9a33d40963ed07ae9414b22a39cb1",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,7 +78,7 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts/e1157377-8d5c-4a94-9730-10c3fa9d6ff5"
81+
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts/58054a77-4ee0-44a8-8260-4eec67ddcced"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -99,8 +99,8 @@
9999
"status": 204,
100100
"statusText": "No Content"
101101
},
102-
"startedDateTime": "2024-01-31T21:16:05.586Z",
103-
"time": 111
102+
"startedDateTime": "2024-03-11T19:47:23.949Z",
103+
"time": 132
104104
}
105105
],
106106
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-12-15T08:45:38.020Z"
1+
"2024-03-11T19:47:24.085Z"

cassettes/v2/GCP-Integration_2417533655/Create-a-new-entry-for-your-service-account-with-cspm-enabled-returns-OK-response_187382344/recording.har

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "9f43c5f20e3a3f77eabec51f945c2d38",
11+
"_id": "13ca4d0c4f3d06209dd7622c896dd7df",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 201,
15+
"bodySize": 206,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"client_email\":\"9f53cbf93a21704b@test-project.iam.gserviceaccount.com\",\"host_filters\":[],\"is_cspm_enabled\":true,\"resource_collection_enabled\":true},\"type\":\"gcp_service_account\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"client_email\":\"Test-e7179b69d4d565ed@test-project.iam.gserviceaccount.com\",\"host_filters\":[],\"is_cspm_enabled\":true,\"resource_collection_enabled\":true},\"type\":\"gcp_service_account\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts"
3939
},
4040
"response": {
41-
"bodySize": 324,
41+
"bodySize": 361,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 324,
45-
"text": "{\"data\":{\"type\":\"gcp_service_account\",\"attributes\":{\"is_cspm_enabled\":true,\"account_tags\":[],\"host_filters\":[],\"resource_collection_enabled\":true,\"is_security_command_center_enabled\":false,\"client_email\":\"9f53cbf93a21704b@test-project.iam.gserviceaccount.com\",\"automute\":false},\"id\":\"cf3c6e32-dad2-452e-8c09-f34c5f2211a1\"}}\n"
44+
"size": 361,
45+
"text": "{\"data\":{\"type\":\"gcp_service_account\",\"attributes\":{\"is_cspm_enabled\":true,\"host_filters\":[],\"resource_collection_enabled\":true,\"cloud_run_revision_filters\":[],\"client_email\":\"Test-e7179b69d4d565ed@test-project.iam.gserviceaccount.com\",\"automute\":false,\"is_security_command_center_enabled\":false,\"account_tags\":[]},\"id\":\"9d359745-b1c0-41ba-9624-db7abb36904b\"}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2023-12-15T08:45:38.028Z",
61-
"time": 692
60+
"startedDateTime": "2024-03-11T19:47:24.091Z",
61+
"time": 430
6262
},
6363
{
64-
"_id": "ad85416aab2d0560382c2997af729573",
64+
"_id": "9be7f5e0526e6b0863da1824cdca9c1a",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,7 +78,7 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts/cf3c6e32-dad2-452e-8c09-f34c5f2211a1"
81+
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts/9d359745-b1c0-41ba-9624-db7abb36904b"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -99,8 +99,8 @@
9999
"status": 204,
100100
"statusText": "No Content"
101101
},
102-
"startedDateTime": "2023-12-15T08:45:38.733Z",
103-
"time": 420
102+
"startedDateTime": "2024-03-11T19:47:24.533Z",
103+
"time": 134
104104
}
105105
],
106106
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-12-13T21:29:09.936Z"
1+
"2024-03-11T19:47:24.676Z"

cassettes/v2/GCP-Integration_2417533655/Create-a-new-entry-for-your-service-account-with-resource-collection-enabled-disabled-and_1067083028/recording.har

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "bb5dd9c90faea055d44ed8aadeb2ad6f",
11+
"_id": "7f6b902da63305eec62a40cbe34bba70",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 202,
15+
"bodySize": 207,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,7 +32,7 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"client_email\":\"328d5a676e7e2219@test-project.iam.gserviceaccount.com\",\"host_filters\":[],\"is_cspm_enabled\":true,\"resource_collection_enabled\":false},\"type\":\"gcp_service_account\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"client_email\":\"Test-f92057aa6491025d@test-project.iam.gserviceaccount.com\",\"host_filters\":[],\"is_cspm_enabled\":true,\"resource_collection_enabled\":false},\"type\":\"gcp_service_account\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts"
@@ -57,8 +57,8 @@
5757
"status": 400,
5858
"statusText": "Bad Request"
5959
},
60-
"startedDateTime": "2023-12-13T21:29:09.939Z",
61-
"time": 59
60+
"startedDateTime": "2024-03-11T19:47:24.686Z",
61+
"time": 101
6262
}
6363
],
6464
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-12-13T21:29:10.005Z"
1+
"2024-03-11T19:47:24.798Z"

0 commit comments

Comments
 (0)