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.
5708 5709 5710 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5708 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
5700 5701 5702 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5700 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
5706 5707 5708 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5706 def min_likelihood @min_likelihood end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5713 5714 5715 5716 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 5713 def update!(**args) @info_type = args[:info_type] if args.key?(:info_type) @min_likelihood = args[:min_likelihood] if args.key?(:min_likelihood) end |