class Google::Apis::DlpV2::GooglePrivacyDlpV2HotwordRule
The rule that adjusts the likelihood of findings within a certain proximity of hotwords.
Attributes
hotword_regex[RW]
Message defining a custom regular expression. Corresponds to the JSON property `hotwordRegex` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Regex]
likelihood_adjustment[RW]
Message for specifying an adjustment to the likelihood of a finding as part of a detection rule. Corresponds to the JSON property `likelihoodAdjustment` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2LikelihoodAdjustment]
proximity[RW]
Message for specifying a window around a finding to apply a detection rule. Corresponds to the JSON property `proximity` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Proximity]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/dlp_v2/classes.rb, line 2655 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 2660 def update!(**args) @hotword_regex = args[:hotword_regex] if args.key?(:hotword_regex) @likelihood_adjustment = args[:likelihood_adjustment] if args.key?(:likelihood_adjustment) @proximity = args[:proximity] if args.key?(:proximity) end