Class: Google::Apis::DlpV2::GooglePrivacyDlpV2HotwordRule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2HotwordRule

Returns a new instance of GooglePrivacyDlpV2HotwordRule.



4926
4927
4928
# File 'lib/google/apis/dlp_v2/classes.rb', line 4926

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

Instance Attribute Details

#hotword_regexGoogle::Apis::DlpV2::GooglePrivacyDlpV2Regex

Message defining a custom regular expression. Corresponds to the JSON property hotwordRegex



4913
4914
4915
# File 'lib/google/apis/dlp_v2/classes.rb', line 4913

def hotword_regex
  @hotword_regex
end

#likelihood_adjustmentGoogle::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



4919
4920
4921
# File 'lib/google/apis/dlp_v2/classes.rb', line 4919

def likelihood_adjustment
  @likelihood_adjustment
end

#proximityGoogle::Apis::DlpV2::GooglePrivacyDlpV2Proximity

Message for specifying a window around a finding to apply a detection rule. Corresponds to the JSON property proximity



4924
4925
4926
# File 'lib/google/apis/dlp_v2/classes.rb', line 4924

def proximity
  @proximity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4931
4932
4933
4934
4935
# File 'lib/google/apis/dlp_v2/classes.rb', line 4931

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