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 for setting a minimum likelihood per infotype. Used to customize the minimum likelihood level for specific infotypes in the request. For example, use this if you want to lower the precision for PERSON_NAME without lowering the precision for the other infotypes in the request.
Instance Attribute Summary collapse
-
#info_type ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType
Type of information detected by the API.
-
#min_likelihood ⇒ String
Only returns findings equal to 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.
5446 5447 5448 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5446 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
5438 5439 5440 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5438 def info_type @info_type end |
#min_likelihood ⇒ String
Only returns findings equal to or above this threshold. This field is required
or else the configuration fails.
Corresponds to the JSON property minLikelihood
5444 5445 5446 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5444 def min_likelihood @min_likelihood end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5451 5452 5453 5454 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5451 def update!(**args) @info_type = args[:info_type] if args.key?(:info_type) @min_likelihood = args[:min_likelihood] if args.key?(:min_likelihood) end |