Skip to content

Commit

Permalink
Regenerate client from commit da544f48 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Oct 24, 2024
1 parent 436272e commit 02018f5
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-23 16:37:04.850584",
"spec_repo_commit": "a916f673"
"regenerated": "2024-10-24 15:38:49.959224",
"spec_repo_commit": "da544f48"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-23 16:37:04.869465",
"spec_repo_commit": "a916f673"
"regenerated": "2024-10-24 15:38:49.977906",
"spec_repo_commit": "da544f48"
}
}
}
15 changes: 12 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4506,10 +4506,13 @@ components:
example: test-name
type: string
resources:
description: An allowlist of resources to restrict pulling metrics for.
description: An allowlist of resources to restrict pulling metrics for including
`'web', 'dns', 'lb' (load balancer), and 'worker'`.
example:
- web
- dns
- lb
- worker
items:
type: string
type: array
Expand Down Expand Up @@ -4554,10 +4557,13 @@ components:
example: test-name
type: string
resources:
description: An allowlist of resources to restrict pulling metrics for.
description: An allowlist of resources to restrict pulling metrics for including
`'web', 'dns', 'lb' (load balancer), and 'worker'`.
example:
- web
- dns
- lb
- worker
items:
type: string
type: array
Expand Down Expand Up @@ -4621,10 +4627,13 @@ components:
description: The name of the Cloudflare account.
type: string
resources:
description: An allowlist of resources to restrict pulling metrics for.
description: An allowlist of resources to restrict pulling metrics for including
`'web', 'dns', 'lb' (load balancer), and 'worker'`.
example:
- web
- dns
- lb
- worker
items:
type: string
type: array
Expand Down
8 changes: 4 additions & 4 deletions features/v2/cloudflare_integration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Cloudflare Integration
@generated @skip @team:DataDog/saas-integrations
Scenario: Add Cloudflare account returns "Bad Request" response
Given new "CreateCloudflareAccount" request
And body with value {"data": {"attributes": {"api_key": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3", "email": "[email protected]", "name": "test-name", "resources": ["web", "dns"], "zones": ["zone_id_1", "zone_id_2"]}, "type": "cloudflare-accounts"}}
And body with value {"data": {"attributes": {"api_key": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3", "email": "[email protected]", "name": "test-name", "resources": ["web", "dns", "lb", "worker"], "zones": ["zone_id_1", "zone_id_2"]}, "type": "cloudflare-accounts"}}
When the request is sent
Then the response status is 400 Bad Request

Expand Down Expand Up @@ -44,7 +44,7 @@ Feature: Cloudflare Integration
@generated @skip @team:DataDog/saas-integrations
Scenario: Add Cloudflare account returns "Not Found" response
Given new "CreateCloudflareAccount" request
And body with value {"data": {"attributes": {"api_key": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3", "email": "[email protected]", "name": "test-name", "resources": ["web", "dns"], "zones": ["zone_id_1", "zone_id_2"]}, "type": "cloudflare-accounts"}}
And body with value {"data": {"attributes": {"api_key": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3", "email": "[email protected]", "name": "test-name", "resources": ["web", "dns", "lb", "worker"], "zones": ["zone_id_1", "zone_id_2"]}, "type": "cloudflare-accounts"}}
When the request is sent
Then the response status is 404 Not Found

Expand Down Expand Up @@ -118,7 +118,7 @@ Feature: Cloudflare Integration
Scenario: Update Cloudflare account returns "Bad Request" response
Given new "UpdateCloudflareAccount" request
And request contains "account_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"api_key": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3", "email": "[email protected]", "resources": ["web", "dns"], "zones": ["zone_id_1", "zone_id_2"]}, "type": "cloudflare-accounts"}}
And body with value {"data": {"attributes": {"api_key": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3", "email": "[email protected]", "resources": ["web", "dns", "lb", "worker"], "zones": ["zone_id_1", "zone_id_2"]}, "type": "cloudflare-accounts"}}
When the request is sent
Then the response status is 400 Bad Request

Expand All @@ -144,7 +144,7 @@ Feature: Cloudflare Integration
Scenario: Update Cloudflare account returns "Not Found" response
Given new "UpdateCloudflareAccount" request
And request contains "account_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"api_key": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3", "email": "[email protected]", "resources": ["web", "dns"], "zones": ["zone_id_1", "zone_id_2"]}, "type": "cloudflare-accounts"}}
And body with value {"data": {"attributes": {"api_key": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3", "email": "[email protected]", "resources": ["web", "dns", "lb", "worker"], "zones": ["zone_id_1", "zone_id_2"]}, "type": "cloudflare-accounts"}}
When the request is sent
Then the response status is 404 Not Found

Expand Down
2 changes: 1 addition & 1 deletion features/v2/given.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
"parameters": [
{
"name": "body",
"value": "{\n \"data\": {\n \"type\": \"cloudflare-accounts\",\n \"attributes\": {\n \"api_key\": \"fakekey\",\n \"name\": \"{{ unique_lower_alnum }}\",\n \"email\": \"[email protected]\",\n \"zones\": [\"zone-id-1\", \"zone-id-2\"],\n \"resources\": [\"web\", \"dns\"]\n }\n }\n}"
"value": "{\n \"data\": {\n \"type\": \"cloudflare-accounts\",\n \"attributes\": {\n \"api_key\": \"fakekey\",\n \"name\": \"{{ unique_lower_alnum }}\",\n \"email\": \"[email protected]\",\n \"zones\": [\"zone-id-1\", \"zone-id-2\"],\n \"resources\": [\"web\", \"dns\", \"lb\", \"worker\"]\n }\n }\n}"
}
],
"step": "there is a valid \"cloudflare_account\" in the system",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CloudflareAccountCreateRequestAttributes {
*/
"name": string;
/**
* An allowlist of resources to restrict pulling metrics for.
* An allowlist of resources to restrict pulling metrics for including `'web', 'dns', 'lb' (load balancer), and 'worker'`.
*/
"resources"?: Array<string>;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class CloudflareAccountResponseAttributes {
*/
"name": string;
/**
* An allowlist of resources to restrict pulling metrics for.
* An allowlist of resources to restrict pulling metrics for including `'web', 'dns', 'lb' (load balancer), and 'worker'`.
*/
"resources"?: Array<string>;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CloudflareAccountUpdateRequestAttributes {
*/
"name"?: string;
/**
* An allowlist of resources to restrict pulling metrics for.
* An allowlist of resources to restrict pulling metrics for including `'web', 'dns', 'lb' (load balancer), and 'worker'`.
*/
"resources"?: Array<string>;
/**
Expand Down

0 comments on commit 02018f5

Please sign in to comment.