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