Skip to content

Commit c22c8df

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Add cloud run filter to GCP v1 and v2 spec (#1496)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 3e2a3c0 commit c22c8df

File tree

19 files changed

+642
-23
lines changed

19 files changed

+642
-23
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-02-15 17:40:09.256364",
8-
"spec_repo_commit": "45fd84e5"
7+
"regenerated": "2024-02-16 18:03:02.278194",
8+
"spec_repo_commit": "dc02d0d0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-02-15 17:40:09.270868",
13-
"spec_repo_commit": "45fd84e5"
12+
"regenerated": "2024-02-16 18:03:02.294405",
13+
"spec_repo_commit": "dc02d0d0"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3207,6 +3207,18 @@ components:
32073207
key.'
32083208
example: https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL
32093209
type: string
3210+
cloud_run_revision_filters:
3211+
description: 'Limit the Cloud Run revisions that are pulled into Datadog
3212+
by using tags.
3213+
3214+
Only Cloud Run revision resources that apply to specified filters are
3215+
imported into Datadog.'
3216+
example:
3217+
- $KEY:$VALUE
3218+
items:
3219+
description: Cloud Run Filters
3220+
type: string
3221+
type: array
32103222
errors:
32113223
description: An array of errors.
32123224
example:

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7388,6 +7388,18 @@ components:
73887388
description: Your service account email address.
73897389
example: datadog-service-account@test-project.iam.gserviceaccount.com
73907390
type: string
7391+
cloud_run_revision_filters:
7392+
description: 'List of filters to limit the Cloud Run revisions that are
7393+
pulled into Datadog by using tags.
7394+
7395+
Only Cloud Run revision resources that apply to specified filters are
7396+
imported into Datadog.'
7397+
example:
7398+
- $KEY:$VALUE
7399+
items:
7400+
description: Cloud Run Filters
7401+
type: string
7402+
type: array
73917403
host_filters:
73927404
description: Your Host Filters.
73937405
items:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-12-20T13:18:07.717Z"
1+
"2024-01-31T21:16:03.254Z"

cassettes/v1/GCP-Integration_2417533655/Create-a-GCP-integration-returns-OK-response_610294268/recording.har

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "b2cb47eb6ade915c2537254b4d580891",
11+
"_id": "39099d420474c6096e87c89c0c161c61",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 645,
15+
"bodySize": 685,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,7 +32,7 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"auth_provider_x509_cert_url\":\"https://www.googleapis.com/oauth2/v1/certs\",\"auth_uri\":\"https://accounts.google.com/o/oauth2/auth\",\"client_email\":\"e5bbc86fb86ab202@example.com\",\"client_id\":\"170307828717030782870\",\"client_x509_cert_url\":\"https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL\",\"host_filters\":\"key:value,filter:example\",\"is_cspm_enabled\":true,\"is_security_command_center_enabled\":true,\"private_key\":\"private_key\",\"private_key_id\":\"123456789abcdefghi123456789abcdefghijklm\",\"project_id\":\"datadog-apitest\",\"resource_collection_enabled\":true,\"token_uri\":\"https://accounts.google.com/o/oauth2/token\",\"type\":\"service_account\"}"
35+
"text": "{\"auth_provider_x509_cert_url\":\"https://www.googleapis.com/oauth2/v1/certs\",\"auth_uri\":\"https://accounts.google.com/o/oauth2/auth\",\"client_email\":\"3af93b0f1c973838@example.com\",\"client_id\":\"170673576317067357630\",\"client_x509_cert_url\":\"https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL\",\"cloud_run_revision_filters\":[\"dr:dre\"],\"host_filters\":\"key:value,filter:example\",\"is_cspm_enabled\":true,\"is_security_command_center_enabled\":true,\"private_key\":\"private_key\",\"private_key_id\":\"123456789abcdefghi123456789abcdefghijklm\",\"project_id\":\"datadog-apitest\",\"resource_collection_enabled\":true,\"token_uri\":\"https://accounts.google.com/o/oauth2/token\",\"type\":\"service_account\"}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v1/integration/gcp"
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2023-12-20T13:18:07.738Z",
61-
"time": 787
60+
"startedDateTime": "2024-01-31T21:16:03.264Z",
61+
"time": 428
6262
},
6363
{
64-
"_id": "ec417b17fee2cfb4bfe3bcf49d0d30e7",
64+
"_id": "06f3a96597322f4179870a809aaab104",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -79,13 +79,13 @@
7979
"value": "application/json"
8080
}
8181
],
82-
"headersSize": 572,
82+
"headersSize": 571,
8383
"httpVersion": "HTTP/1.1",
8484
"method": "DELETE",
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"client_email\":\"e5bbc86fb86ab202@example.com\",\"client_id\":\"170307828717030782870\",\"project_id\":\"datadog-apitest\"}"
88+
"text": "{\"client_email\":\"3af93b0f1c973838@example.com\",\"client_id\":\"170673576317067357630\",\"project_id\":\"datadog-apitest\"}"
8989
},
9090
"queryString": [],
9191
"url": "https://api.datadoghq.com/api/v1/integration/gcp"
@@ -110,8 +110,8 @@
110110
"status": 200,
111111
"statusText": "OK"
112112
},
113-
"startedDateTime": "2023-12-20T13:18:08.542Z",
114-
"time": 412
113+
"startedDateTime": "2024-01-31T21:16:03.699Z",
114+
"time": 121
115115
}
116116
],
117117
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-01-31T21:16:03.829Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
{
2+
"log": {
3+
"_recordingName": "GCP Integration/Update a GCP integration cloud run revision filters returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "d5af362cfd17a774895126db7016b73d",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 645,
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": 570,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"auth_provider_x509_cert_url\":\"https://www.googleapis.com/oauth2/v1/certs\",\"auth_uri\":\"https://accounts.google.com/o/oauth2/auth\",\"client_email\":\"edcdf6542ac6e6b6@example.com\",\"client_id\":\"170673576317067357630\",\"client_x509_cert_url\":\"https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL\",\"host_filters\":\"key:value,filter:example\",\"is_cspm_enabled\":true,\"is_security_command_center_enabled\":true,\"private_key\":\"private_key\",\"private_key_id\":\"123456789abcdefghi123456789abcdefghijklm\",\"project_id\":\"datadog-apitest\",\"resource_collection_enabled\":true,\"token_uri\":\"https://accounts.google.com/o/oauth2/token\",\"type\":\"service_account\"}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v1/integration/gcp"
39+
},
40+
"response": {
41+
"bodySize": 3,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 3,
45+
"text": "{}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 492,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2024-01-31T21:16:03.836Z",
61+
"time": 386
62+
},
63+
{
64+
"_id": "b6bc74a2d4a7d7dcd8c4a4480213d777",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 688,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "application/json"
75+
},
76+
{
77+
"_fromType": "array",
78+
"name": "content-type",
79+
"value": "application/json"
80+
}
81+
],
82+
"headersSize": 569,
83+
"httpVersion": "HTTP/1.1",
84+
"method": "PUT",
85+
"postData": {
86+
"mimeType": "application/json",
87+
"params": [],
88+
"text": "{\"auth_provider_x509_cert_url\":\"https://www.googleapis.com/oauth2/v1/certs\",\"auth_uri\":\"https://accounts.google.com/o/oauth2/auth\",\"client_email\":\"edcdf6542ac6e6b6@example.com\",\"client_id\":\"170673576317067357630\",\"client_x509_cert_url\":\"https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL\",\"cloud_run_revision_filters\":[\"merp:derp\"],\"host_filters\":\"key:value,filter:example\",\"is_cspm_enabled\":true,\"is_security_command_center_enabled\":true,\"private_key\":\"private_key\",\"private_key_id\":\"123456789abcdefghi123456789abcdefghijklm\",\"project_id\":\"datadog-apitest\",\"resource_collection_enabled\":true,\"token_uri\":\"https://accounts.google.com/o/oauth2/token\",\"type\":\"service_account\"}"
89+
},
90+
"queryString": [],
91+
"url": "https://api.datadoghq.com/api/v1/integration/gcp"
92+
},
93+
"response": {
94+
"bodySize": 3,
95+
"content": {
96+
"mimeType": "application/json",
97+
"size": 3,
98+
"text": "{}\n"
99+
},
100+
"cookies": [],
101+
"headers": [
102+
{
103+
"name": "content-type",
104+
"value": "application/json"
105+
}
106+
],
107+
"headersSize": 492,
108+
"httpVersion": "HTTP/1.1",
109+
"redirectURL": "",
110+
"status": 200,
111+
"statusText": "OK"
112+
},
113+
"startedDateTime": "2024-01-31T21:16:04.227Z",
114+
"time": 137
115+
},
116+
{
117+
"_id": "a91e4faee28489f69bbcf410954d7806",
118+
"_order": 0,
119+
"cache": {},
120+
"request": {
121+
"bodySize": 114,
122+
"cookies": [],
123+
"headers": [
124+
{
125+
"_fromType": "array",
126+
"name": "accept",
127+
"value": "application/json"
128+
},
129+
{
130+
"_fromType": "array",
131+
"name": "content-type",
132+
"value": "application/json"
133+
}
134+
],
135+
"headersSize": 572,
136+
"httpVersion": "HTTP/1.1",
137+
"method": "DELETE",
138+
"postData": {
139+
"mimeType": "application/json",
140+
"params": [],
141+
"text": "{\"client_email\":\"edcdf6542ac6e6b6@example.com\",\"client_id\":\"170673576317067357630\",\"project_id\":\"datadog-apitest\"}"
142+
},
143+
"queryString": [],
144+
"url": "https://api.datadoghq.com/api/v1/integration/gcp"
145+
},
146+
"response": {
147+
"bodySize": 3,
148+
"content": {
149+
"mimeType": "application/json",
150+
"size": 3,
151+
"text": "{}\n"
152+
},
153+
"cookies": [],
154+
"headers": [
155+
{
156+
"name": "content-type",
157+
"value": "application/json"
158+
}
159+
],
160+
"headersSize": 492,
161+
"httpVersion": "HTTP/1.1",
162+
"redirectURL": "",
163+
"status": 200,
164+
"statusText": "OK"
165+
},
166+
"startedDateTime": "2024-01-31T21:16:04.370Z",
167+
"time": 105
168+
}
169+
],
170+
"pages": [],
171+
"version": "1.2"
172+
}
173+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-01-31T21:16:04.924Z"

0 commit comments

Comments
 (0)