Class: Google::Cloud::Dlp::V2::ExclusionRule

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/privacy/dlp/v2/dlp.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#dictionary::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary

Returns 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.



84
85
86
87
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 84

class ExclusionRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#exclude_by_hotword::Google::Cloud::Dlp::V2::ExcludeByHotword

Returns 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.



84
85
86
87
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 84

class ExclusionRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#exclude_info_types::Google::Cloud::Dlp::V2::ExcludeInfoTypes

Returns 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.



84
85
86
87
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 84

class ExclusionRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#matching_type::Google::Cloud::Dlp::V2::MatchingType

Returns How the rule is applied, see MatchingType documentation for details.

Returns:



84
85
86
87
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 84

class ExclusionRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#regex::Google::Cloud::Dlp::V2::CustomInfoType::Regex

Returns 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.



84
85
86
87
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 84

class ExclusionRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end