Reference documentation and code samples for the Data Loss Prevention V2 Client class DiscoveryConfig.
Configuration for discovery to scan resources for profile generation.
Only one discovery configuration may exist per organization, folder, or project. The generated data profiles are retained according to the data retention policy .
Generated from protobuf message google.privacy.dlp.v2.DiscoveryConfig
Namespace
Google \ Cloud \ Dlp \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example projects/dlp-test-project/locations/global/discoveryConfigs/53234423
.
↳ display_name
string
Display name (max 100 chars)
↳ org_config
↳ inspect_templates
array
Detection logic for profile generation. Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency .
↳ actions
↳ targets
array< Google\Cloud\Dlp\V2\DiscoveryTarget
>
Target to match against for determining what to scan and how frequently.
↳ errors
array< Google\Cloud\Dlp\V2\Error
>
Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.
↳ create_time
↳ update_time
↳ last_run_time
↳ status
int
Required. A status for this configuration.
getName
Unique resource name for the DiscoveryConfig, assigned by the service when
the DiscoveryConfig is created, for example projects/dlp-test-project/locations/global/discoveryConfigs/53234423
.
string
setName
Unique resource name for the DiscoveryConfig, assigned by the service when
the DiscoveryConfig is created, for example projects/dlp-test-project/locations/global/discoveryConfigs/53234423
.
var
string
$this
getDisplayName
Display name (max 100 chars)
string
setDisplayName
Display name (max 100 chars)
var
string
$this
getOrgConfig
Only set when the parent is an org.
hasOrgConfig
clearOrgConfig
setOrgConfig
Only set when the parent is an org.
$this
getInspectTemplates
Detection logic for profile generation.
Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency .
setInspectTemplates
Detection logic for profile generation.
Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency .
var
string[]
$this
getActions
Actions to execute at the completion of scanning.
setActions
Actions to execute at the completion of scanning.
$this
getTargets
Target to match against for determining what to scan and how frequently.
setTargets
Target to match against for determining what to scan and how frequently.
$this
getErrors
Output only. A stream of errors encountered when the config was activated.
Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.
setErrors
Output only. A stream of errors encountered when the config was activated.
Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.
$this
getCreateTime
Output only. The creation timestamp of a DiscoveryConfig.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The creation timestamp of a DiscoveryConfig.
$this
getUpdateTime
Output only. The last update timestamp of a DiscoveryConfig.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The last update timestamp of a DiscoveryConfig.
$this
getLastRunTime
Output only. The timestamp of the last time this config was executed.
hasLastRunTime
clearLastRunTime
setLastRunTime
Output only. The timestamp of the last time this config was executed.
$this
getStatus
Required. A status for this configuration.
int
setStatus
Required. A status for this configuration.
var
int
$this