Class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeLikelihood
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeLikelihood
- 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
Configuration to control custom minimum likelihoods per infotype. Used when certain infotypes need to return with higher or lower precision than the baseline, i.e. when wanting PERSON_NAME to return all possible names without lowering the precision of other infotypes.
Instance Attribute Summary collapse
-
#info_type ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType
Type of information detected by the API.
-
#min_likelihood ⇒ String
Only returns findings equal or above this threshold.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2InfoTypeLikelihood
constructor
A new instance of GooglePrivacyDlpV2InfoTypeLikelihood.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2InfoTypeLikelihood
Returns a new instance of GooglePrivacyDlpV2InfoTypeLikelihood.
3792 3793 3794 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 3792 def initialize(**args) update!(**args) end |
Instance Attribute Details
#info_type ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType
Type of information detected by the API.
Corresponds to the JSON property infoType
3784 3785 3786 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 3784 def info_type @info_type end |
#min_likelihood ⇒ String
Only returns findings equal or above this threshold. This field is required or
else the configuration fails.
Corresponds to the JSON property minLikelihood
3790 3791 3792 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 3790 def min_likelihood @min_likelihood end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3797 3798 3799 3800 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 3797 def update!(**args) @info_type = args[:info_type] if args.key?(:info_type) @min_likelihood = args[:min_likelihood] if args.key?(:min_likelihood) end |