public sealed class ContentPolicy.Types.PolicyRule : IMessage<ContentPolicy.Types.PolicyRule>, IEquatable<ContentPolicy.Types.PolicyRule>, IDeepCloneable<ContentPolicy.Types.PolicyRule>, IBufferMessage, IMessageReference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class ContentPolicy.Types.PolicyRule.
A single policy rule. The first rule to match from the list above controls the result.
Implements
IMessageContentPolicyTypesPolicyRule, IEquatableContentPolicyTypesPolicyRule, IDeepCloneableContentPolicyTypesPolicyRule, IBufferMessage, IMessageNamespace
Google.Cloud.Dlp.V2Assembly
Google.Cloud.Dlp.V2.dll
Constructors
PolicyRule()
public PolicyRule()PolicyRule(PolicyRule)
public PolicyRule(ContentPolicy.Types.PolicyRule other)| Parameter | |
|---|---|
| Name | Description |
other |
ContentPolicyTypesPolicyRule |
Properties
Action
public ContentPolicy.Types.PolicyAction Action { get; set; }Required. Action to take if this rule applies.
| Property Value | |
|---|---|
| Type | Description |
ContentPolicyTypesPolicyAction |
|
Conditions
public RepeatedField<ContentPolicy.Types.PolicyRule.Types.PolicyCondition> Conditions { get; }Optional. Conditions that must match for this rule to apply.
All conditions must match (AND). For OR conditions, use multiple
rules.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldContentPolicyTypesPolicyRuleTypesPolicyCondition |
|