Class: Google::Apis::DlpV2::GooglePrivacyDlpV2HotwordRule
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2HotwordRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb
Overview
The rule that adjusts the likelihood of findings within a certain proximity of hotwords.
Instance Attribute Summary collapse
-
#hotword_regex ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Regex
Message defining a custom regular expression.
-
#likelihood_adjustment ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2LikelihoodAdjustment
Message for specifying an adjustment to the likelihood of a finding as part of a detection rule.
-
#proximity ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Proximity
Message for specifying a window around a finding to apply a detection rule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2HotwordRule
constructor
A new instance of GooglePrivacyDlpV2HotwordRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2HotwordRule
Returns a new instance of GooglePrivacyDlpV2HotwordRule.
5228 5229 5230 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5228 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hotword_regex ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Regex
Message defining a custom regular expression.
Corresponds to the JSON property hotwordRegex
5215 5216 5217 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5215 def hotword_regex @hotword_regex end |
#likelihood_adjustment ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2LikelihoodAdjustment
Message for specifying an adjustment to the likelihood of a finding as part of
a detection rule.
Corresponds to the JSON property likelihoodAdjustment
5221 5222 5223 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5221 def likelihood_adjustment @likelihood_adjustment end |
#proximity ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Proximity
Message for specifying a window around a finding to apply a detection rule.
Corresponds to the JSON property proximity
5226 5227 5228 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5226 def proximity @proximity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5233 5234 5235 5236 5237 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5233 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 |