Class DiscoveryConfig (3.25.0)

DiscoveryConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

Attributes

Name Description
name str
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 str
Display name (max 100 chars)
org_config google.cloud.dlp_v2.types.DiscoveryConfig.OrgConfig
Only set when the parent is an org.
other_cloud_starting_location google.cloud.dlp_v2.types.OtherCloudDiscoveryStartingLocation
Must be set only when scanning other clouds.
inspect_templates MutableSequence[str]
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 MutableSequence[google.cloud.dlp_v2.types.DataProfileAction]
Actions to execute at the completion of scanning.
targets MutableSequence[google.cloud.dlp_v2.types.DiscoveryTarget]
Target to match against for determining what to scan and how frequently.
errors MutableSequence[google.cloud.dlp_v2.types.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 google.protobuf.timestamp_pb2.Timestamp
Output only. The creation timestamp of a DiscoveryConfig.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The last update timestamp of a DiscoveryConfig.
last_run_time google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp of the last time this config was executed.
status google.cloud.dlp_v2.types.DiscoveryConfig.Status
Required. A status for this configuration.

Classes

OrgConfig

OrgConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Project and scan location information. Only set when the parent is an org.

Status

Status(value)

Whether the discovery config is currently active. New options may be added at a later time.