The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.
The project that will run the scan. The DLP service
account that exists within this project must have access to all resources
that are profiled, and the DLP API must be enabled.
Returns
Type
Description
string
setProjectId
The project that will run the scan. The DLP service
account that exists within this project must have access to all resources
that are profiled, and the DLP API must be enabled.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class OrgConfig (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.DiscoveryConfig.OrgConfig)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.DiscoveryConfig.OrgConfig)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.DiscoveryConfig.OrgConfig)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.DiscoveryConfig.OrgConfig)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.DiscoveryConfig.OrgConfig)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.DiscoveryConfig.OrgConfig)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.DiscoveryConfig.OrgConfig)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.DiscoveryConfig.OrgConfig)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.DiscoveryConfig.OrgConfig)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.DiscoveryConfig.OrgConfig)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.DiscoveryConfig.OrgConfig)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.DiscoveryConfig.OrgConfig)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.DiscoveryConfig.OrgConfig)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.DiscoveryConfig.OrgConfig)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.DiscoveryConfig.OrgConfig)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.DiscoveryConfig.OrgConfig)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.DiscoveryConfig.OrgConfig)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.DiscoveryConfig.OrgConfig)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.DiscoveryConfig.OrgConfig) \nReference documentation and code samples for the Data Loss Prevention V2 Client class OrgConfig.\n\nProject and scan location information. Only set when the parent is an org.\n\nGenerated from protobuf message `google.privacy.dlp.v2.DiscoveryConfig.OrgConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2 \\\\ DiscoveryConfig\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getLocation\n\nThe data to scan: folder, org, or project\n\n### hasLocation\n\n### clearLocation\n\n### setLocation\n\nThe data to scan: folder, org, or project\n\n### getProjectId\n\nThe project that will run the scan. The DLP service\naccount that exists within this project must have access to all resources\nthat are profiled, and the DLP API must be enabled.\n\n### setProjectId\n\nThe project that will run the scan. The DLP service\naccount that exists within this project must have access to all resources\nthat are profiled, and the DLP API must be enabled."]]