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
9 changes: 8 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45293,6 +45293,13 @@ components:
description: When enabled, Datadog collects metrics where location is explicitly stated as "global" or where location information cannot be deduced from GCP labels.
example: true
type: boolean
is_org_folder_resource_collection_enabled:
default: false
description: |-
When enabled, Datadog scans for organization and folder-level resources
under the organization the service account belongs to.
example: false
type: boolean
is_per_project_quota_enabled:
default: false
description: |-
Expand Down Expand Up @@ -45332,7 +45339,7 @@ components:
type: array
resource_collection_enabled:
description: |-
When enabled, Datadog scans for all resources in your GCP environment.
When enabled, Datadog scans for all project-level resources in your GCP environment.
type: boolean
type: object
GCPSTSServiceAccountCreateRequest:
Expand Down
14 changes: 14 additions & 0 deletions features/generated-test/test-runner-data/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5705,6 +5705,13 @@
"scenario": "Create a new entry for your service account with cspm enabled returns \"OK\" response",
"version": "v2"
},
{
"feature": "GCP Integration",
"feature_file": "../../v2/gcp_integration.feature",
"file": "v2/gcp-integration/create-a-new-entry-for-your-service-account-with-org-folder-resource-collection-enabled-returns-ok-response.json",
"scenario": "Create a new entry for your service account with org folder resource collection enabled returns \"OK\" response",
"version": "v2"
},
{
"feature": "GCP Integration",
"feature_file": "../../v2/gcp_integration.feature",
Expand Down Expand Up @@ -5761,6 +5768,13 @@
"scenario": "Update STS Service Account returns \"OK\" response with enable resource collection turned on",
"version": "v2"
},
{
"feature": "GCP Integration",
"feature_file": "../../v2/gcp_integration.feature",
"file": "v2/gcp-integration/update-sts-service-account-returns-ok-response-with-org-folder-resource-collection-enabled.json",
"scenario": "Update STS Service Account returns \"OK\" response with org folder resource collection enabled",
"version": "v2"
},
{
"feature": "Google Chat Integration",
"feature_file": "../../v2/google_chat_integration.feature",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"api": "GCPIntegration",
"expected_status": 201,
"feature": "GCP Integration",
"id": "v2/GCP Integration/Create a new entry for your service account with org folder resource collection enabled returns \"OK\" response",
"operation_id": "CreateGCPSTSAccount",
"request": {
"body": {
"schema": {
"format": null,
"ref": "GCPSTSServiceAccountCreateRequest",
"type": "object"
},
"source": "inline",
"value": {
"data": {
"attributes": {
"client_email": "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com",
"host_filters": [],
"is_org_folder_resource_collection_enabled": true
},
"type": "gcp_service_account"
}
}
},
"content_type": "application/json",
"method": "POST",
"pagination": false,
"parameters": [],
"path": "/api/v2/integration/gcp/accounts"
},
"scenario": "Create a new entry for your service account with org folder resource collection enabled returns \"OK\" response",
"schema_version": 1,
"version": "v2"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"api": "GCPIntegration",
"expected_status": 201,
"feature": "GCP Integration",
"id": "v2/GCP Integration/Update STS Service Account returns \"OK\" response with org folder resource collection enabled",
"operation_id": "UpdateGCPSTSAccount",
"request": {
"body": {
"schema": {
"format": null,
"ref": "GCPSTSServiceAccountUpdateRequest",
"type": "object"
},
"source": "inline",
"value": {
"data": {
"attributes": {
"client_email": "Test-{{ unique_hash }}@example.com",
"is_org_folder_resource_collection_enabled": true
},
"id": "{{ gcp_sts_account.data.id }}",
"type": "gcp_service_account"
}
}
},
"content_type": "application/json",
"method": "PATCH",
"pagination": false,
"parameters": [
{
"explode": null,
"in": "path",
"name": "account_id",
"required": true,
"schema": {
"format": null,
"ref": null,
"type": "string"
},
"source": {
"path": "gcp_sts_account.data.id",
"type": "fixture"
},
"style": null
}
],
"path": "/api/v2/integration/gcp/accounts/{account_id}"
},
"scenario": "Update STS Service Account returns \"OK\" response with org folder resource collection enabled",
"schema_version": 1,
"version": "v2"
}
153 changes: 153 additions & 0 deletions features/generated-test/test-server-data/v2/gcp-integration.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,67 @@
"scenario": "Create a new entry for your service account with cspm enabled returns \"OK\" response",
"version": "v2"
},
{
"feature": "GCP Integration",
"frozen_at": "2026-09-21T12:55:57.467Z",
"interactions": [
{
"request": {
"body": {
"type": "json",
"value": {
"data": {
"attributes": {
"client_email": "Test-adf02e78612f5af0@test-project.iam.gserviceaccount.com",
"host_filters": [],
"is_org_folder_resource_collection_enabled": true
},
"type": "gcp_service_account"
}
}
},
"content_type": "application/json",
"method": "POST",
"path": "/api/v2/integration/gcp/accounts",
"query": []
},
"response": {
"body": {
"encoding": "text",
"value": "{\"data\":{\"id\":\"9f54448b-f2db-4b40-a311-db7bf0eba7f8\",\"type\":\"gcp_service_account\",\"attributes\":{\"account_tags\":[],\"automute\":false,\"client_email\":\"Test-adf02e78612f5af0@test-project.iam.gserviceaccount.com\",\"cloud_run_revision_filters\":[],\"host_filters\":[],\"is_cspm_enabled\":false,\"is_global_location_enabled\":true,\"is_org_folder_resource_collection_enabled\":true,\"is_per_project_quota_enabled\":false,\"is_resource_change_collection_enabled\":false,\"is_security_command_center_enabled\":false,\"metric_namespace_configs\":[{\"id\":\"prometheus\",\"disabled\":true,\"filters\":[]}],\"monitored_resource_configs\":[],\"region_filter_configs\":[],\"resource_collection_enabled\":true}}}"
},
"headers": {
"content-type": "application/vnd.api+json"
},
"reason": "Created",
"status": 201
}
},
{
"request": {
"body": {
"type": "empty",
"value": null
},
"content_type": "",
"method": "DELETE",
"path": "/api/v2/integration/gcp/accounts/9f54448b-f2db-4b40-a311-db7bf0eba7f8",
"query": []
},
"response": {
"body": {
"encoding": "text",
"value": ""
},
"headers": {},
"reason": "No Content",
"status": 204
}
}
],
"scenario": "Create a new entry for your service account with org folder resource collection enabled returns \"OK\" response",
"version": "v2"
},
{
"feature": "GCP Integration",
"frozen_at": "2024-03-11T19:47:24.676Z",
Expand Down Expand Up @@ -889,6 +950,98 @@
],
"scenario": "Update STS Service Account returns \"OK\" response with enable resource collection turned on",
"version": "v2"
},
{
"feature": "GCP Integration",
"frozen_at": "2026-09-21T12:55:59.538Z",
"interactions": [
{
"request": {
"body": {
"type": "json",
"value": {
"data": {
"attributes": {
"client_email": "Test-746106a10e59cd21@example.com",
"host_filters": []
},
"type": "gcp_service_account"
}
}
},
"content_type": "application/json",
"method": "POST",
"path": "/api/v2/integration/gcp/accounts",
"query": []
},
"response": {
"body": {
"encoding": "text",
"value": "{\"data\":{\"id\":\"fcf23df5-89e0-40af-b19c-f7dfa93c063c\",\"type\":\"gcp_service_account\",\"attributes\":{\"account_tags\":[],\"automute\":false,\"client_email\":\"Test-746106a10e59cd21@example.com\",\"cloud_run_revision_filters\":[],\"host_filters\":[],\"is_cspm_enabled\":false,\"is_global_location_enabled\":true,\"is_org_folder_resource_collection_enabled\":false,\"is_per_project_quota_enabled\":false,\"is_resource_change_collection_enabled\":false,\"is_security_command_center_enabled\":false,\"metric_namespace_configs\":[{\"id\":\"prometheus\",\"disabled\":true,\"filters\":[]}],\"monitored_resource_configs\":[],\"region_filter_configs\":[],\"resource_collection_enabled\":true}}}"
},
"headers": {
"content-type": "application/vnd.api+json"
},
"reason": "Created",
"status": 201
}
},
{
"request": {
"body": {
"type": "json",
"value": {
"data": {
"attributes": {
"client_email": "Test-746106a10e59cd21@example.com",
"is_org_folder_resource_collection_enabled": true
},
"id": "fcf23df5-89e0-40af-b19c-f7dfa93c063c",
"type": "gcp_service_account"
}
}
},
"content_type": "application/json",
"method": "PATCH",
"path": "/api/v2/integration/gcp/accounts/fcf23df5-89e0-40af-b19c-f7dfa93c063c",
"query": []
},
"response": {
"body": {
"encoding": "text",
"value": "{\"data\":{\"id\":\"fcf23df5-89e0-40af-b19c-f7dfa93c063c\",\"type\":\"gcp_service_account\",\"attributes\":{\"account_tags\":[],\"automute\":false,\"client_email\":\"Test-746106a10e59cd21@example.com\",\"cloud_run_revision_filters\":[],\"host_filters\":[],\"is_cspm_enabled\":false,\"is_global_location_enabled\":true,\"is_org_folder_resource_collection_enabled\":true,\"is_per_project_quota_enabled\":false,\"is_resource_change_collection_enabled\":false,\"is_security_command_center_enabled\":false,\"metric_namespace_configs\":[{\"id\":\"prometheus\",\"disabled\":true,\"filters\":[]}],\"monitored_resource_configs\":[],\"region_filter_configs\":[],\"resource_collection_enabled\":true}}}"
},
"headers": {
"content-type": "application/vnd.api+json"
},
"reason": "Created",
"status": 201
}
},
{
"request": {
"body": {
"type": "empty",
"value": null
},
"content_type": "",
"method": "DELETE",
"path": "/api/v2/integration/gcp/accounts/fcf23df5-89e0-40af-b19c-f7dfa93c063c",
"query": []
},
"response": {
"body": {
"encoding": "text",
"value": ""
},
"headers": {},
"reason": "No Content",
"status": 204
}
}
],
"scenario": "Update STS Service Account returns \"OK\" response with org folder resource collection enabled",
"version": "v2"
}
],
"schema_version": 1,
Expand Down
Loading
Loading