Skip to content

Commit 9161875

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fd0b0fcb of spec repo
1 parent 93354b6 commit 9161875

File tree

24 files changed

+822
-28
lines changed

24 files changed

+822
-28
lines changed

.apigentools-info

+4-4
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-12-14 10:49:26.566146",
8-
"spec_repo_commit": "43a99a56"
7+
"regenerated": "2023-12-14 16:38:28.882003",
8+
"spec_repo_commit": "fd0b0fcb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-12-14 10:49:26.586564",
13-
"spec_repo_commit": "43a99a56"
12+
"regenerated": "2023-12-14 16:38:28.897381",
13+
"spec_repo_commit": "fd0b0fcb"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

+15-2
Original file line numberDiff line numberDiff line change
@@ -3212,8 +3212,16 @@ components:
32123212
type: string
32133213
is_cspm_enabled:
32143214
default: false
3215-
description: When enabled, Datadog performs configuration checks across
3216-
your Google Cloud environment by continuously scanning every resource.
3215+
description: 'When enabled, Datadog will activate the Cloud Security Monitoring
3216+
product for this service account. Note: This requires resource_collection_enabled
3217+
to be set to true.'
3218+
example: true
3219+
type: boolean
3220+
is_security_command_center_enabled:
3221+
default: false
3222+
description: 'When enabled, Datadog will attempt to collect Security Command
3223+
Center Findings. Note: This requires additional permissions on the service
3224+
account.'
32173225
example: true
32183226
type: boolean
32193227
private_key:
@@ -3229,6 +3237,11 @@ components:
32293237
key.
32303238
example: datadog-apitest
32313239
type: string
3240+
resource_collection_enabled:
3241+
default: false
3242+
description: When enabled, Datadog scans for all resources in your GCP environment.
3243+
example: true
3244+
type: boolean
32323245
token_uri:
32333246
description: Should be `https://accounts.google.com/o/oauth2/token`.
32343247
example: https://accounts.google.com/o/oauth2/token

.generator/schemas/v2/openapi.yaml

+14-2
Original file line numberDiff line numberDiff line change
@@ -6393,8 +6393,20 @@ components:
63936393
type: string
63946394
type: array
63956395
is_cspm_enabled:
6396-
description: When enabled, Datadog performs configuration checks across
6397-
your Google Cloud environment by continuously scanning every resource.
6396+
description: 'When enabled, Datadog will activate the Cloud Security Monitoring
6397+
product for this service account. Note: This requires resource_collection_enabled
6398+
to be set to true.'
6399+
type: boolean
6400+
is_security_command_center_enabled:
6401+
default: false
6402+
description: 'When enabled, Datadog will attempt to collect Security Command
6403+
Center Findings. Note: This requires additional permissions on the service
6404+
account.'
6405+
example: true
6406+
type: boolean
6407+
resource_collection_enabled:
6408+
default: false
6409+
description: When enabled, Datadog scans for all resources in your GCP environment.
63986410
type: boolean
63996411
type: object
64006412
GCPSTSServiceAccountCreateRequest:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-12-13T21:29:09.202Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"log": {
3+
"_recordingName": "GCP Integration/Create a new entry for your service account with cspm enabled returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "1b48862f21d27174aad37cc173a7031b",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 166,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 578,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"client_email\":\"dfb9f119aee90526@test-project.iam.gserviceaccount.com\",\"host_filters\":[],\"is_cspm_enabled\":true},\"type\":\"gcp_service_account\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts"
39+
},
40+
"response": {
41+
"bodySize": 324,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 324,
45+
"text": "{\"data\":{\"type\":\"gcp_service_account\",\"attributes\":{\"is_security_command_center_enabled\":false,\"resource_collection_enabled\":true,\"is_cspm_enabled\":true,\"client_email\":\"dfb9f119aee90526@test-project.iam.gserviceaccount.com\",\"account_tags\":[],\"automute\":false,\"host_filters\":[]},\"id\":\"d2ef6458-62a4-4fbe-ad48-9429baa01867\"}}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 658,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 201,
58+
"statusText": "Created"
59+
},
60+
"startedDateTime": "2023-12-13T21:29:09.482Z",
61+
"time": 345
62+
},
63+
{
64+
"_id": "e44f2b57e01e28506212336846cc2df5",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 0,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "*/*"
75+
}
76+
],
77+
"headersSize": 550,
78+
"httpVersion": "HTTP/1.1",
79+
"method": "DELETE",
80+
"queryString": [],
81+
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts/d2ef6458-62a4-4fbe-ad48-9429baa01867"
82+
},
83+
"response": {
84+
"bodySize": 0,
85+
"content": {
86+
"mimeType": "text/html; charset=utf-8",
87+
"size": 0
88+
},
89+
"cookies": [],
90+
"headers": [
91+
{
92+
"name": "content-type",
93+
"value": "text/html; charset=utf-8"
94+
}
95+
],
96+
"headersSize": 645,
97+
"httpVersion": "HTTP/1.1",
98+
"redirectURL": "",
99+
"status": 204,
100+
"statusText": "No Content"
101+
},
102+
"startedDateTime": "2023-12-13T21:29:09.838Z",
103+
"time": 90
104+
}
105+
],
106+
"pages": [],
107+
"version": "1.2"
108+
}
109+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-12-13T21:29:09.936Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "GCP Integration/Create a new entry for your service account with resource collection enabled disabled and cspm enabled returns \"Bad Request\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "bb5dd9c90faea055d44ed8aadeb2ad6f",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 202,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 578,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"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\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts"
39+
},
40+
"response": {
41+
"bodySize": 72,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 72,
45+
"text": "{\"errors\":[\"Resource Collection must be enabled for CSM to be enabled\"]}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 657,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 400,
58+
"statusText": "Bad Request"
59+
},
60+
"startedDateTime": "2023-12-13T21:29:09.939Z",
61+
"time": 59
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-12-13T21:29:10.005Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"log": {
3+
"_recordingName": "GCP Integration/Create a new entry for your service account with resource collection enabled returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "bd2a1b519954a7fe88bcdab21eba06ab",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 178,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 578,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"client_email\":\"c200eb5fe37e7d26@test-project.iam.gserviceaccount.com\",\"host_filters\":[],\"resource_collection_enabled\":true},\"type\":\"gcp_service_account\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts"
39+
},
40+
"response": {
41+
"bodySize": 325,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 325,
45+
"text": "{\"data\":{\"type\":\"gcp_service_account\",\"attributes\":{\"automute\":false,\"is_security_command_center_enabled\":false,\"host_filters\":[],\"client_email\":\"c200eb5fe37e7d26@test-project.iam.gserviceaccount.com\",\"resource_collection_enabled\":true,\"account_tags\":[],\"is_cspm_enabled\":false},\"id\":\"e0e0b030-aba8-4eff-bcf2-7d4266d0d7fd\"}}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 658,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 201,
58+
"statusText": "Created"
59+
},
60+
"startedDateTime": "2023-12-13T21:29:10.008Z",
61+
"time": 355
62+
},
63+
{
64+
"_id": "f2ac0fa641154aad8c5fc5bb0c5f377e",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 0,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "*/*"
75+
}
76+
],
77+
"headersSize": 550,
78+
"httpVersion": "HTTP/1.1",
79+
"method": "DELETE",
80+
"queryString": [],
81+
"url": "https://api.datadoghq.com/api/v2/integration/gcp/accounts/e0e0b030-aba8-4eff-bcf2-7d4266d0d7fd"
82+
},
83+
"response": {
84+
"bodySize": 0,
85+
"content": {
86+
"mimeType": "text/html; charset=utf-8",
87+
"size": 0
88+
},
89+
"cookies": [],
90+
"headers": [
91+
{
92+
"name": "content-type",
93+
"value": "text/html; charset=utf-8"
94+
}
95+
],
96+
"headersSize": 645,
97+
"httpVersion": "HTTP/1.1",
98+
"redirectURL": "",
99+
"status": 204,
100+
"statusText": "No Content"
101+
},
102+
"startedDateTime": "2023-12-13T21:29:10.369Z",
103+
"time": 348
104+
}
105+
],
106+
"pages": [],
107+
"version": "1.2"
108+
}
109+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-12-13T21:29:10.722Z"

0 commit comments

Comments
 (0)