Reference documentation and code samples for the Data Loss Prevention V2 Client class CreateDiscoveryConfigRequest.
Request message for CreateDiscoveryConfig.
Generated from protobuf messagegoogle.privacy.dlp.v2.CreateDiscoveryConfigRequest
Namespace
Google \ Cloud \ Dlp \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization): + Projects scope:projects/{project_id}/locations/{location_id}+ Organizations scope:organizations/{org_id}/locations/{location_id}The following exampleparentstring specifies a parent project with the identifierexample-project, and specifies theeurope-west3location for processing data: parent=projects/example-project/locations/europe-west3
The config ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression:[a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.
getParent
Required. Parent resource name.
The format of this value varies depending on the scope of the request
(project or organization):
Organizations scope:organizations/{org_id}/locations/{location_id}The following exampleparentstring specifies a parent project with the
identifierexample-project, and specifies theeurope-west3location
for processing data:
parent=projects/example-project/locations/europe-west3
Returns
Type
Description
string
setParent
Required. Parent resource name.
The format of this value varies depending on the scope of the request
(project or organization):
Organizations scope:organizations/{org_id}/locations/{location_id}The following exampleparentstring specifies a parent project with the
identifierexample-project, and specifies theeurope-west3location
for processing data:
parent=projects/example-project/locations/europe-west3
The config ID can contain uppercase and lowercase letters,
numbers, and hyphens; that is, it must match the regular
expression:[a-zA-Z\d-_]+. The maximum length is 100
characters. Can be empty to allow the system to generate one.
Returns
Type
Description
string
setConfigId
The config ID can contain uppercase and lowercase letters,
numbers, and hyphens; that is, it must match the regular
expression:[a-zA-Z\d-_]+. The maximum length is 100
characters. Can be empty to allow the system to generate one.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. Parent resource name.
The format of this value varies depending on the scope of the request
(project or organization):
The following exampleparentstring specifies a parent project with the
identifierexample-project, and specifies theeurope-west3location
for processing data:
parent=projects/example-project/locations/europe-west3
Please seeDlpServiceClient::locationName()for help formatting this field.
[[["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 CreateDiscoveryConfigRequest (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.CreateDiscoveryConfigRequest)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.CreateDiscoveryConfigRequest)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.CreateDiscoveryConfigRequest)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.CreateDiscoveryConfigRequest)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.CreateDiscoveryConfigRequest)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.CreateDiscoveryConfigRequest)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.CreateDiscoveryConfigRequest)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.CreateDiscoveryConfigRequest)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.CreateDiscoveryConfigRequest)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.CreateDiscoveryConfigRequest)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.CreateDiscoveryConfigRequest)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.CreateDiscoveryConfigRequest)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.CreateDiscoveryConfigRequest)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.CreateDiscoveryConfigRequest)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.CreateDiscoveryConfigRequest)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.CreateDiscoveryConfigRequest)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.CreateDiscoveryConfigRequest)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.CreateDiscoveryConfigRequest)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.CreateDiscoveryConfigRequest) \nReference documentation and code samples for the Data Loss Prevention V2 Client class CreateDiscoveryConfigRequest.\n\nRequest message for CreateDiscoveryConfig.\n\nGenerated from protobuf message `google.privacy.dlp.v2.CreateDiscoveryConfigRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. Parent resource name.\n\nThe format of this value varies depending on the scope of the request\n(project or organization):\n\n- Projects scope: `projects/{project_id}/locations/{location_id}`\n- Organizations scope: `organizations/{org_id}/locations/{location_id}` The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3\n\n### setParent\n\nRequired. Parent resource name.\n\nThe format of this value varies depending on the scope of the request\n(project or organization):\n\n- Projects scope: `projects/{project_id}/locations/{location_id}`\n- Organizations scope: `organizations/{org_id}/locations/{location_id}` The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3\n\n### getDiscoveryConfig\n\nRequired. The DiscoveryConfig to create.\n\n### hasDiscoveryConfig\n\n### clearDiscoveryConfig\n\n### setDiscoveryConfig\n\nRequired. The DiscoveryConfig to create.\n\n### getConfigId\n\nThe config ID can contain uppercase and lowercase letters,\nnumbers, and hyphens; that is, it must match the regular\nexpression: `[a-zA-Z\\d-_]+`. The maximum length is 100\ncharacters. Can be empty to allow the system to generate one.\n\n### setConfigId\n\nThe config ID can contain uppercase and lowercase letters,\nnumbers, and hyphens; that is, it must match the regular\nexpression: `[a-zA-Z\\d-_]+`. The maximum length is 100\ncharacters. Can be empty to allow the system to generate one.\n\n### static::build"]]