Class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectionRule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2/classes.rb,
generated/google/apis/dlp_v2/representations.rb,
generated/google/apis/dlp_v2/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2InspectionRule

Returns a new instance of GooglePrivacyDlpV2InspectionRule.



3157
3158
3159
# File 'generated/google/apis/dlp_v2/classes.rb', line 3157

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#exclusion_ruleGoogle::Apis::DlpV2::GooglePrivacyDlpV2ExclusionRule

The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results. Corresponds to the JSON property exclusionRule



3149
3150
3151
# File 'generated/google/apis/dlp_v2/classes.rb', line 3149

def exclusion_rule
  @exclusion_rule
end

#hotword_ruleGoogle::Apis::DlpV2::GooglePrivacyDlpV2HotwordRule

The rule that adjusts the likelihood of findings within a certain proximity of hotwords. Corresponds to the JSON property hotwordRule



3155
3156
3157
# File 'generated/google/apis/dlp_v2/classes.rb', line 3155

def hotword_rule
  @hotword_rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3162
3163
3164
3165
# File 'generated/google/apis/dlp_v2/classes.rb', line 3162

def update!(**args)
  @exclusion_rule = args[:exclusion_rule] if args.key?(:exclusion_rule)
  @hotword_rule = args[:hotword_rule] if args.key?(:hotword_rule)
end