Skip to content

Commit f72c879

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 150ace98 of spec repo
1 parent b9e0c19 commit f72c879

File tree

27 files changed

+348
-183
lines changed

27 files changed

+348
-183
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": "2024-01-08 16:03:29.638037",
8-
"spec_repo_commit": "8b5aed97"
7+
"regenerated": "2024-01-08 19:23:22.398706",
8+
"spec_repo_commit": "150ace98"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-01-08 16:03:29.658618",
13-
"spec_repo_commit": "8b5aed97"
12+
"regenerated": "2024-01-08 19:23:22.417279",
13+
"spec_repo_commit": "150ace98"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+48
Original file line numberDiff line numberDiff line change
@@ -3776,6 +3776,22 @@ components:
37763776
description: The name of the Cloudflare account.
37773777
example: test-name
37783778
type: string
3779+
resources:
3780+
description: An allowlist of resources to restrict pulling metrics for.
3781+
example:
3782+
- web
3783+
- dns
3784+
items:
3785+
type: string
3786+
type: array
3787+
zones:
3788+
description: An allowlist of zones to restrict pulling metrics for.
3789+
example:
3790+
- zone_id_1
3791+
- zone_id_2
3792+
items:
3793+
type: string
3794+
type: array
37793795
required:
37803796
- api_key
37813797
- name
@@ -3808,6 +3824,22 @@ components:
38083824
description: The name of the Cloudflare account.
38093825
example: test-name
38103826
type: string
3827+
resources:
3828+
description: An allowlist of resources to restrict pulling metrics for.
3829+
example:
3830+
- web
3831+
- dns
3832+
items:
3833+
type: string
3834+
type: array
3835+
zones:
3836+
description: An allowlist of zones to restrict pulling metrics for.
3837+
example:
3838+
- zone_id_1
3839+
- zone_id_2
3840+
items:
3841+
type: string
3842+
type: array
38113843
required:
38123844
- name
38133845
type: object
@@ -3856,6 +3888,22 @@ components:
38563888
key is provided (and not a token), this field is also required.
38573889
example: test-email@example.com
38583890
type: string
3891+
resources:
3892+
description: An allowlist of resources to restrict pulling metrics for.
3893+
example:
3894+
- web
3895+
- dns
3896+
items:
3897+
type: string
3898+
type: array
3899+
zones:
3900+
description: An allowlist of zones to restrict pulling metrics for.
3901+
example:
3902+
- zone_id_1
3903+
- zone_id_2
3904+
items:
3905+
type: string
3906+
type: array
38593907
required:
38603908
- api_key
38613909
type: object
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-01-26T10:55:04.225Z"
1+
"2024-01-04T18:40:40.939Z"

cassettes/v2/Cloudflare-Integration_3236469660/Add-Cloudflare-account-returns-Bad-Request-response-due-to-missing-email_395186743/recording.har

+10-10
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "13c7d1458bac4a16202b30a082c2a497",
11+
"_id": "bb24d6bcd3c0f11c8b8830475507c52c",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 165,
15+
"bodySize": 160,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -26,23 +26,23 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 588,
29+
"headersSize": 586,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"api_key\":\"test-api-key\",\"name\":\"testaddcloudflareaccountreturnsbadrequestresponseduetomissingemail1674730504\"},\"type\":\"cloudflare-accounts\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"api_key\":\"fakekey\",\"name\":\"testaddcloudflareaccountreturnsbadrequestresponseduetomissingemail1704393640\"},\"type\":\"cloudflare-accounts\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts"
3939
},
4040
"response": {
41-
"bodySize": 104,
41+
"bodySize": 103,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 104,
45-
"text": "{\"errors\":[\"{u'_schema': ['Email address is required if providing an api key and not an api token.']}\"]}"
44+
"size": 103,
45+
"text": "{\"errors\":[\"{'_schema': ['Email address is required if providing an api key and not an api token.']}\"]}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,14 +51,14 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 674,
54+
"headersSize": 656,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 400,
5858
"statusText": "Bad Request"
5959
},
60-
"startedDateTime": "2023-01-26T10:55:04.235Z",
61-
"time": 467
60+
"startedDateTime": "2024-01-04T18:40:40.947Z",
61+
"time": 144
6262
}
6363
],
6464
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-01-26T10:54:47.296Z"
1+
"2024-01-04T18:40:41.099Z"

cassettes/v2/Cloudflare-Integration_3236469660/Add-Cloudflare-account-returns-Bad-Request-response-using-invalid-auth-key_761951192/recording.har

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "5a41a6ae4376a7f6721aa5390c12341c",
11+
"_id": "444e3883bd484044f716e510b926757c",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -26,13 +26,13 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 590,
29+
"headersSize": 586,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"api_key\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"name\":\"testaddcloudflareaccountreturnsbadrequestresponseusinginvalidauthkey1674730487\"},\"type\":\"cloudflare-accounts\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"api_key\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"name\":\"testaddcloudflareaccountreturnsbadrequestresponseusinginvalidauthkey1704393641\"},\"type\":\"cloudflare-accounts\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts"
@@ -42,7 +42,7 @@
4242
"content": {
4343
"mimeType": "application/json",
4444
"size": 222,
45-
"text": "{\"errors\":[\"Invalid account. Your Cloudflare configuration is invalid. Impossible to get zones for the account testaddcloudflareaccountreturnsbadrequestresponseusinginvalidauthkey1674730487: API key or email is unknown.\"]}"
45+
"text": "{\"errors\":[\"Invalid account. Your Cloudflare configuration is invalid. Impossible to get zones for the account testaddcloudflareaccountreturnsbadrequestresponseusinginvalidauthkey1704393641: API key or email is unknown.\"]}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,14 +51,14 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 674,
54+
"headersSize": 656,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 400,
5858
"statusText": "Bad Request"
5959
},
60-
"startedDateTime": "2023-01-26T10:54:47.307Z",
61-
"time": 645
60+
"startedDateTime": "2024-01-04T18:40:41.102Z",
61+
"time": 400
6262
}
6363
],
6464
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-01-03T19:17:37.850Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Cloudflare Integration/Add Cloudflare account returns \"CREATED\" response with optional filters",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "c0ca1dfb99176ddd010d615311c0623b",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 238,
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": 590,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"api_key\":\"fakekey\",\"email\":\"new@email\",\"name\":\"testaddcloudflareaccountreturnscreatedresponsewithoptionalfilters1704309457\",\"resources\":[\"lb\",\"dns\"],\"zones\":[\"zone-id-1\",\"zone-id-2\"]},\"type\":\"cloudflare-accounts\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts"
39+
},
40+
"response": {
41+
"bodySize": 237,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 237,
45+
"text": "{\"errors\":[\"Invalid account. Your Cloudflare configuration is invalid. Impossible to get zones for the account testaddcloudflareaccountreturnscreatedresponsewithoptionalfilters1704309457: API key or email is not in the correct format.\"]}"
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": "2024-01-03T19:17:37.857Z",
61+
"time": 296
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-01-26T10:54:24.725Z"
1+
"2024-01-04T18:40:41.520Z"

cassettes/v2/Cloudflare-Integration_3236469660/Add-Cloudflare-account-returns-CREATED-response_3783580918/recording.har

+16-16
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "41fa1fbc95320f1a52e81782dc9bc009",
11+
"_id": "d08b802d66c1fffabbff157f89f313be",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 193,
15+
"bodySize": 211,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -26,23 +26,23 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 590,
29+
"headersSize": 586,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"api_key\":\"fakekey\",\"email\":\"new@email\",\"name\":\"testaddcloudflareaccountreturnscreatedresponse1674730464\"},\"type\":\"cloudflare-accounts\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"api_key\":\"fakekey\",\"email\":\"dev@datadoghq.com\",\"name\":\"testaddcloudflareaccountreturnscreatedresponse1704393641\"},\"type\":\"cloudflare-accounts\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts"
3939
},
4040
"response": {
41-
"bodySize": 181,
41+
"bodySize": 225,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 181,
45-
"text": "{\"data\":{\"attributes\":{\"email\":\"new@email\",\"name\":\"testaddcloudflareaccountreturnscreatedresponse1674730464\"},\"type\":\"cloudflare-accounts\",\"id\":\"328432a98957fd7bcba6f70daea72519\"}}\n"
44+
"size": 225,
45+
"text": "{\"data\":{\"type\":\"cloudflare-accounts\",\"attributes\":{\"email\":\"dev@datadoghq.com\",\"name\":\"testaddcloudflareaccountreturnscreatedresponse1704393641\",\"resources\":[],\"zones\":[]},\"id\":\"baa2079200095466b080d75adfdb32fa\"}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,17 +51,17 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 631,
54+
"headersSize": 656,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2023-01-26T10:54:24.734Z",
61-
"time": 776
60+
"startedDateTime": "2024-01-04T18:40:41.527Z",
61+
"time": 606
6262
},
6363
{
64-
"_id": "5e39346df9380d1d0411e15a541576a3",
64+
"_id": "b373b463ee7f6fed378394b80664a234",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -74,11 +74,11 @@
7474
"value": "*/*"
7575
}
7676
],
77-
"headersSize": 559,
77+
"headersSize": 555,
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts/328432a98957fd7bcba6f70daea72519"
81+
"url": "https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts/baa2079200095466b080d75adfdb32fa"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -93,14 +93,14 @@
9393
"value": "text/html; charset=utf-8"
9494
}
9595
],
96-
"headersSize": 621,
96+
"headersSize": 646,
9797
"httpVersion": "HTTP/1.1",
9898
"redirectURL": "",
9999
"status": 204,
100100
"statusText": "No Content"
101101
},
102-
"startedDateTime": "2023-01-26T10:54:25.522Z",
103-
"time": 468
102+
"startedDateTime": "2024-01-04T18:40:42.141Z",
103+
"time": 162
104104
}
105105
],
106106
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-01-27T09:00:21.006Z"
1+
"2024-01-04T18:40:42.323Z"

0 commit comments

Comments
 (0)