Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2HotwordRule
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2HotwordRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb
Overview
Detection rule that adjusts the likelihood of findings within a certain proximity of hotwords.
Instance Attribute Summary collapse
-
#hotword_regex ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Regex
Message defining a custom regular expression.
-
#likelihood_adjustment ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2LikelihoodAdjustment
Message for specifying an adjustment to the likelihood of a finding as part of a detection rule.
-
#proximity ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Proximity
Message for specifying a window around a finding to apply a detection rule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2HotwordRule
constructor
A new instance of GooglePrivacyDlpV2beta2HotwordRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2HotwordRule
Returns a new instance of GooglePrivacyDlpV2beta2HotwordRule
3369 3370 3371 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3369 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hotword_regex ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Regex
Message defining a custom regular expression.
Corresponds to the JSON property hotwordRegex
3355 3356 3357 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3355 def hotword_regex @hotword_regex end |
#likelihood_adjustment ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2LikelihoodAdjustment
Message for specifying an adjustment to the likelihood of a finding as
part of a detection rule.
Corresponds to the JSON property likelihoodAdjustment
3361 3362 3363 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3361 def likelihood_adjustment @likelihood_adjustment end |
#proximity ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Proximity
Message for specifying a window around a finding to apply a detection
rule.
Corresponds to the JSON property proximity
3367 3368 3369 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3367 def proximity @proximity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3374 3375 3376 3377 3378 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3374 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 |