class Google::Apis::DlpV2::GooglePrivacyDlpV2InspectionRule

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

Attributes

exclusion_rule[RW]

The rule that specifies conditions when findings of infoTypes specified in ` InspectionRuleSet` are removed from results. Corresponds to the JSON property `exclusionRule` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ExclusionRule]

hotword_rule[RW]

The rule that adjusts the likelihood of findings within a certain proximity of hotwords. Corresponds to the JSON property `hotwordRule` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2HotwordRule]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dlp_v2/classes.rb, line 3402
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dlp_v2/classes.rb, line 3407
def update!(**args)
  @exclusion_rule = args[:exclusion_rule] if args.key?(:exclusion_rule)
  @hotword_rule = args[:hotword_rule] if args.key?(:hotword_rule)
end