diff --git a/.apigentools-info b/.apigentools-info index e38dee8acf35..293140d9cffe 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 32377c157b09..7f9b23070edc 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 @@ -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 @@ -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 diff --git a/features/v2/cloudflare_integration.feature b/features/v2/cloudflare_integration.feature index aaca58aec12f..506d440826d1 100644 --- a/features/v2/cloudflare_integration.feature +++ b/features/v2/cloudflare_integration.feature @@ -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": "test-email@example.com", "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": "test-email@example.com", "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 @@ -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": "test-email@example.com", "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": "test-email@example.com", "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 @@ -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": "test-email@example.com", "resources": ["web", "dns"], "zones": ["zone_id_1", "zone_id_2"]}, "type": "cloudflare-accounts"}} + And body with value {"data": {"attributes": {"api_key": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3", "email": "test-email@example.com", "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 @@ -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": "test-email@example.com", "resources": ["web", "dns"], "zones": ["zone_id_1", "zone_id_2"]}, "type": "cloudflare-accounts"}} + And body with value {"data": {"attributes": {"api_key": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3", "email": "test-email@example.com", "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 diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb index abd5503f5f5e..8a6abd5f131e 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb @@ -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. diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb index 0f998e29a34a..0c21b8334efe 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb @@ -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. diff --git a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb index 4b21e73c79bb..136544c517f8 100644 --- a/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb @@ -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.