Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::ContentPolicy::PolicyRule.
A single policy rule. The first rule to match from the list above controls the result.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#action
def action() -> ::Google::Cloud::Dlp::V2::ContentPolicy::PolicyAction
Returns
- (::Google::Cloud::Dlp::V2::ContentPolicy::PolicyAction) — Required. Action to take if this rule applies.
#action=
def action=(value) -> ::Google::Cloud::Dlp::V2::ContentPolicy::PolicyAction
Parameter
- value (::Google::Cloud::Dlp::V2::ContentPolicy::PolicyAction) — Required. Action to take if this rule applies.
Returns
- (::Google::Cloud::Dlp::V2::ContentPolicy::PolicyAction) — Required. Action to take if this rule applies.
#conditions
def conditions() -> ::Array<::Google::Cloud::Dlp::V2::ContentPolicy::PolicyRule::PolicyCondition>
Returns
-
(::Array<::Google::Cloud::Dlp::V2::ContentPolicy::PolicyRule::PolicyCondition>) — Optional. Conditions that must match for this rule to apply.
All conditions must match (
AND). ForORconditions, use multiple rules.
#conditions=
def conditions=(value) -> ::Array<::Google::Cloud::Dlp::V2::ContentPolicy::PolicyRule::PolicyCondition>
Parameter
-
value (::Array<::Google::Cloud::Dlp::V2::ContentPolicy::PolicyRule::PolicyCondition>) — Optional. Conditions that must match for this rule to apply.
All conditions must match (
AND). ForORconditions, use multiple rules.
Returns
-
(::Array<::Google::Cloud::Dlp::V2::ContentPolicy::PolicyRule::PolicyCondition>) — Optional. Conditions that must match for this rule to apply.
All conditions must match (
AND). ForORconditions, use multiple rules.