public sealed class ContentPolicy : IMessage<ContentPolicy>, IEquatable<ContentPolicy>, IDeepCloneable<ContentPolicy>, IBufferMessage, IMessageReference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class ContentPolicy.
A policy to apply to content based on its inspection findings.
Implements
IMessageContentPolicy, IEquatableContentPolicy, IDeepCloneableContentPolicy, IBufferMessage, IMessageNamespace
Google.Cloud.Dlp.V2Assembly
Google.Cloud.Dlp.V2.dll
Constructors
ContentPolicy()
public ContentPolicy()ContentPolicy(ContentPolicy)
public ContentPolicy(ContentPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
ContentPolicy |
Properties
ContentPolicyName
public ContentPolicyName ContentPolicyName { get; set; }ContentPolicyName-typed view over the Name resource name property.
| Property Value | |
|---|---|
| Type | Description |
ContentPolicyName |
|
CreateTime
public Timestamp CreateTime { get; set; }Output only. The creation timestamp of a contentPolicy; output-only field.
| Property Value | |
|---|---|
| Type | Description |
Timestamp |
|
DefaultAction
public ContentPolicy.Types.PolicyAction DefaultAction { get; set; }Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set.
| Property Value | |
|---|---|
| Type | Description |
ContentPolicyTypesPolicyAction |
|
DisplayName
public string DisplayName { get; set; }Optional. Display name (max 63 chars)
| Property Value | |
|---|---|
| Type | Description |
string |
|
Errors
public RepeatedField<Error> Errors { get; }Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Whenever the policy is modified this list will be cleared.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldError |
|
FailedToScanSupportedFileType
public ContentPolicy.Types.PolicyAction FailedToScanSupportedFileType { get; set; }Optional. Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted.
| Property Value | |
|---|---|
| Type | Description |
ContentPolicyTypesPolicyAction |
|
InputTooLarge
public ContentPolicy.Types.PolicyAction InputTooLarge { get; set; }Optional. Action to take if the content is a supported file type but is too large to be scanned.
| Property Value | |
|---|---|
| Type | Description |
ContentPolicyTypesPolicyAction |
|
InspectConfig
public InspectConfig InspectConfig { get; set; }Optional. InspectConfig to use to produce findings.
| Property Value | |
|---|---|
| Type | Description |
InspectConfig |
|
LoggingConfigs
public RepeatedField<ContentPolicy.Types.LoggingConfig> LoggingConfigs { get; }Optional. Log the actions taken by the content policy to external systems.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldContentPolicyTypesLoggingConfig |
|
Name
public string Name { get; set; }Output only. Resource name of the policy.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Rules
public RepeatedField<ContentPolicy.Types.PolicyRule> Rules { get; }Required. Policies to apply, based on the findings returned by inspection. The first rule to match applies.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldContentPolicyTypesPolicyRule |
|
UnsupportedFileType
public ContentPolicy.Types.PolicyAction UnsupportedFileType { get; set; }Optional. Action to take if the content is an unsupported file type.
| Property Value | |
|---|---|
| Type | Description |
ContentPolicyTypesPolicyAction |
|
UpdateTime
public Timestamp UpdateTime { get; set; }Output only. The last update timestamp of a contentPolicy; output-only field.
| Property Value | |
|---|---|
| Type | Description |
Timestamp |
|