-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 150ace98 of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Jan 8, 2024
1 parent
9d8bd29
commit 614b85d
Showing
27 changed files
with
202 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3776,6 +3776,22 @@ components: | |
description: The name of the Cloudflare account. | ||
example: test-name | ||
type: string | ||
resources: | ||
description: An allowlist of resources to restrict pulling metrics for. | ||
example: | ||
- web | ||
- dns | ||
items: | ||
type: string | ||
type: array | ||
zones: | ||
description: An allowlist of zones to restrict pulling metrics for. | ||
example: | ||
- zone_id_1 | ||
- zone_id_2 | ||
items: | ||
type: string | ||
type: array | ||
required: | ||
- api_key | ||
- name | ||
|
@@ -3808,6 +3824,22 @@ components: | |
description: The name of the Cloudflare account. | ||
example: test-name | ||
type: string | ||
resources: | ||
description: An allowlist of resources to restrict pulling metrics for. | ||
example: | ||
- web | ||
- dns | ||
items: | ||
type: string | ||
type: array | ||
zones: | ||
description: An allowlist of zones to restrict pulling metrics for. | ||
example: | ||
- zone_id_1 | ||
- zone_id_2 | ||
items: | ||
type: string | ||
type: array | ||
required: | ||
- name | ||
type: object | ||
|
@@ -3856,6 +3888,22 @@ components: | |
key is provided (and not a token), this field is also required. | ||
example: [email protected] | ||
type: string | ||
resources: | ||
description: An allowlist of resources to restrict pulling metrics for. | ||
example: | ||
- web | ||
- dns | ||
items: | ||
type: string | ||
type: array | ||
zones: | ||
description: An allowlist of zones to restrict pulling metrics for. | ||
example: | ||
- zone_id_1 | ||
- zone_id_2 | ||
items: | ||
type: string | ||
type: array | ||
required: | ||
- api_key | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
data=CloudflareAccountCreateRequestData( | ||
attributes=CloudflareAccountCreateRequestAttributes( | ||
api_key="fakekey", | ||
email="new@email", | ||
email="[email protected]", | ||
name="examplecloudflareintegration", | ||
), | ||
type=CloudflareAccountType.CLOUDFLARE_ACCOUNTS, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,10 @@ | |
data=CloudflareAccountUpdateRequestData( | ||
attributes=CloudflareAccountUpdateRequestAttributes( | ||
api_key="fakekey", | ||
email="new@email", | ||
email="[email protected]", | ||
zones=[ | ||
"zone-id-3", | ||
], | ||
), | ||
type=CloudflareAccountType.CLOUDFLARE_ACCOUNTS, | ||
), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rios/test_add_cloudflare_account_returns_bad_request_response_due_to_missing_email.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2023-01-26T10:55:04.225Z | ||
2024-01-04T18:40:40.939Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...os/test_add_cloudflare_account_returns_bad_request_response_using_invalid_auth_key.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2023-01-26T10:54:47.296Z | ||
2024-01-04T18:40:41.099Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/v2/cassettes/test_scenarios/test_add_cloudflare_account_returns_created_response.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2023-01-26T10:54:24.725Z | ||
2024-01-04T18:40:41.520Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
interactions: | ||
- request: | ||
body: '{"data":{"attributes":{"api_key":"fakekey","email":"new@email","name":"testaddcloudflareaccountreturnscreatedresponse1674730464"},"type":"cloudflare-accounts"}}' | ||
body: '{"data":{"attributes":{"api_key":"fakekey","email":"[email protected]","name":"testaddcloudflareaccountreturnscreatedresponse1704393641"},"type":"cloudflare-accounts"}}' | ||
headers: | ||
accept: | ||
- application/json | ||
|
@@ -10,7 +10,7 @@ interactions: | |
uri: https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts | ||
response: | ||
body: | ||
string: '{"data":{"attributes":{"email":"new@email","name":"testaddcloudflareaccountreturnscreatedresponse1674730464"},"type":"cloudflare-accounts","id":"328432a98957fd7bcba6f70daea72519"}} | ||
string: '{"data":{"type":"cloudflare-accounts","attributes":{"email":"[email protected]","name":"testaddcloudflareaccountreturnscreatedresponse1704393641","resources":[],"zones":[]},"id":"baa2079200095466b080d75adfdb32fa"}} | ||
' | ||
headers: | ||
|
@@ -25,7 +25,7 @@ interactions: | |
accept: | ||
- '*/*' | ||
method: DELETE | ||
uri: https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts/328432a98957fd7bcba6f70daea72519 | ||
uri: https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts/baa2079200095466b080d75adfdb32fa | ||
response: | ||
body: | ||
string: '' | ||
|
1 change: 1 addition & 0 deletions
1
...enarios/test_add_cloudflare_account_returns_created_response_with_optional_filters.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2024-01-03T19:17:37.850Z |
22 changes: 22 additions & 0 deletions
22
...scenarios/test_add_cloudflare_account_returns_created_response_with_optional_filters.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
interactions: | ||
- request: | ||
body: '{"data":{"attributes":{"api_key":"fakekey","email":"new@email","name":"testaddcloudflareaccountreturnscreatedresponsewithoptionalfilters1704309457","resources":["lb","dns"],"zones":["zone-id-1","zone-id-2"]},"type":"cloudflare-accounts"}}' | ||
headers: | ||
accept: | ||
- application/json | ||
content-type: | ||
- application/json | ||
method: POST | ||
uri: https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts | ||
response: | ||
body: | ||
string: '{"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."]}' | ||
headers: | ||
content-type: | ||
- application/json | ||
status: | ||
code: 400 | ||
message: Bad Request | ||
version: 1 |
2 changes: 1 addition & 1 deletion
2
tests/v2/cassettes/test_scenarios/test_get_cloudflare_account_returns_ok_response.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2023-01-27T09:00:21.006Z | ||
2024-01-04T18:40:42.323Z |
Oops, something went wrong.