Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DetectionRule

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

Deprecated; use InspectionRuleSet instead. Rule for modifying a CustomInfoType to alter behavior under certain circumstances, depending on the specific details of the rule. Not supported for the surrogate_type custom infoType.

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) ⇒ GooglePrivacyDlpV2DetectionRule

Returns a new instance of GooglePrivacyDlpV2DetectionRule.



2101
2102
2103
# File 'generated/google/apis/dlp_v2/classes.rb', line 2101

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

Instance Attribute Details

#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



2099
2100
2101
# File 'generated/google/apis/dlp_v2/classes.rb', line 2099

def hotword_rule
  @hotword_rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2106
2107
2108
# File 'generated/google/apis/dlp_v2/classes.rb', line 2106

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