Google Cloud Data Loss Prevention v2 API - Class DiscoveryConfig (4.9.0)

public sealed class DiscoveryConfig : IMessage<DiscoveryConfig>, IEquatable<DiscoveryConfig>, IDeepCloneable<DiscoveryConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API 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.

Inheritance

object > DiscoveryConfig

Namespace

Google.Cloud.Dlp.V2

Assembly

Google.Cloud.Dlp.V2.dll

Constructors

DiscoveryConfig()

public DiscoveryConfig()

DiscoveryConfig(DiscoveryConfig)

public DiscoveryConfig(DiscoveryConfig other)
Parameter
Name Description
other DiscoveryConfig

Properties

Actions

public RepeatedField<DataProfileAction> Actions { get; }

Actions to execute at the completion of scanning.

Property Value
Type Description
RepeatedFieldDataProfileAction

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The creation timestamp of a DiscoveryConfig.

Property Value
Type Description
Timestamp

DiscoveryConfigName

public DiscoveryConfigName DiscoveryConfigName { get; set; }

DiscoveryConfigName-typed view over the Name resource name property.

Property Value
Type Description
DiscoveryConfigName

DisplayName

public string DisplayName { get; set; }

Display name (max 100 chars)

Property Value
Type Description
string

Errors

public RepeatedField<Error> Errors { get; }

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.

Property Value
Type Description
RepeatedFieldError

InspectTemplates

public RepeatedField<string> InspectTemplates { get; }

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.

Property Value
Type Description
RepeatedFieldstring

LastRunTime

public Timestamp LastRunTime { get; set; }

Output only. The timestamp of the last time this config was executed.

Property Value
Type Description
Timestamp

Name

public string Name { get; set; }

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.

Property Value
Type Description
string

OrgConfig

public DiscoveryConfig.Types.OrgConfig OrgConfig { get; set; }

Only set when the parent is an org.

Property Value
Type Description
DiscoveryConfigTypesOrgConfig

Status

public DiscoveryConfig.Types.Status Status { get; set; }

Required. A status for this configuration.

Property Value
Type Description
DiscoveryConfigTypesStatus

Targets

public RepeatedField<DiscoveryTarget> Targets { get; }

Target to match against for determining what to scan and how frequently.

Property Value
Type Description
RepeatedFieldDiscoveryTarget

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The last update timestamp of a DiscoveryConfig.

Property Value
Type Description
Timestamp