Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::InspectionRule (v1.7.0)

Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::InspectionRule.

A single inspection rule to be applied to infoTypes, specified in InspectionRuleSet.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#exclusion_rule

def exclusion_rule() -> ::Google::Cloud::Dlp::V2::ExclusionRule
Returns
  • (::Google::Cloud::Dlp::V2::ExclusionRule) — Exclusion rule.

    Note: The following fields are mutually exclusive: exclusion_rule, hotword_rule. If a field in that set is populated, all other fields in the set will automatically be cleared.

#exclusion_rule=

def exclusion_rule=(value) -> ::Google::Cloud::Dlp::V2::ExclusionRule
Parameter
  • value (::Google::Cloud::Dlp::V2::ExclusionRule) — Exclusion rule.

    Note: The following fields are mutually exclusive: exclusion_rule, hotword_rule. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::ExclusionRule) — Exclusion rule.

    Note: The following fields are mutually exclusive: exclusion_rule, hotword_rule. If a field in that set is populated, all other fields in the set will automatically be cleared.

#hotword_rule

def hotword_rule() -> ::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::HotwordRule
Returns

#hotword_rule=

def hotword_rule=(value) -> ::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::HotwordRule
Parameter
Returns