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

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

The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#dictionary

def dictionary() -> ::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary
Returns
  • (::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary) — Dictionary which defines the rule.

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

#dictionary=

def dictionary=(value) -> ::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary
Parameter
  • value (::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary) — Dictionary which defines the rule.

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

Returns
  • (::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary) — Dictionary which defines the rule.

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

#exclude_by_hotword

def exclude_by_hotword() -> ::Google::Cloud::Dlp::V2::ExcludeByHotword
Returns
  • (::Google::Cloud::Dlp::V2::ExcludeByHotword) — Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

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

#exclude_by_hotword=

def exclude_by_hotword=(value) -> ::Google::Cloud::Dlp::V2::ExcludeByHotword
Parameter
  • value (::Google::Cloud::Dlp::V2::ExcludeByHotword) — Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

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

Returns
  • (::Google::Cloud::Dlp::V2::ExcludeByHotword) — Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

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

#exclude_info_types

def exclude_info_types() -> ::Google::Cloud::Dlp::V2::ExcludeInfoTypes
Returns
  • (::Google::Cloud::Dlp::V2::ExcludeInfoTypes) — Set of infoTypes for which findings would affect this rule.

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

#exclude_info_types=

def exclude_info_types=(value) -> ::Google::Cloud::Dlp::V2::ExcludeInfoTypes
Parameter
  • value (::Google::Cloud::Dlp::V2::ExcludeInfoTypes) — Set of infoTypes for which findings would affect this rule.

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

Returns
  • (::Google::Cloud::Dlp::V2::ExcludeInfoTypes) — Set of infoTypes for which findings would affect this rule.

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

#matching_type

def matching_type() -> ::Google::Cloud::Dlp::V2::MatchingType
Returns

#matching_type=

def matching_type=(value) -> ::Google::Cloud::Dlp::V2::MatchingType
Parameter
Returns

#regex

def regex() -> ::Google::Cloud::Dlp::V2::CustomInfoType::Regex
Returns
  • (::Google::Cloud::Dlp::V2::CustomInfoType::Regex) — Regular expression which defines the rule.

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

#regex=

def regex=(value) -> ::Google::Cloud::Dlp::V2::CustomInfoType::Regex
Parameter
  • value (::Google::Cloud::Dlp::V2::CustomInfoType::Regex) — Regular expression which defines the rule.

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

Returns
  • (::Google::Cloud::Dlp::V2::CustomInfoType::Regex) — Regular expression which defines the rule.

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