Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-31 14:51:29.321354",
"spec_repo_commit": "e9cc5e6a"
"regenerated": "2024-10-31 15:33:01.721264",
"spec_repo_commit": "a7602fa1"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-31 14:51:29.340011",
"spec_repo_commit": "e9cc5e6a"
"regenerated": "2024-10-31 15:33:01.739608",
"spec_repo_commit": "a7602fa1"
}
}
}
15 changes: 12 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4527,10 +4527,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), 'worker'`.
example:
- web
- dns
- lb
- worker
items:
type: string
type: array
Expand Down Expand Up @@ -4575,10 +4578,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), 'worker'`.
example:
- web
- dns
- lb
- worker
items:
type: string
type: array
Expand Down Expand Up @@ -4642,10 +4648,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), '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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CloudflareAccountCreateRequestAttributes
# The name of the Cloudflare account.
attr_reader :name

# An allowlist of resources to restrict pulling metrics for.
# An allowlist of resources to restrict pulling metrics for including `'web', 'dns', 'lb' (load balancer), 'worker'`.
attr_accessor :resources

# An allowlist of zones to restrict pulling metrics for.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CloudflareAccountResponseAttributes
# The name of the Cloudflare account.
attr_reader :name

# An allowlist of resources to restrict pulling metrics for.
# An allowlist of resources to restrict pulling metrics for including `'web', 'dns', 'lb' (load balancer), 'worker'`.
attr_accessor :resources

# An allowlist of zones to restrict pulling metrics for.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CloudflareAccountUpdateRequestAttributes
# The name of the Cloudflare account.
attr_accessor :name

# An allowlist of resources to restrict pulling metrics for.
# An allowlist of resources to restrict pulling metrics for including `'web', 'dns', 'lb' (load balancer), 'worker'`.
attr_accessor :resources

# An allowlist of zones to restrict pulling metrics for.
Expand Down
Loading