Class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeLikelihood

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2InfoTypeLikelihood

Returns a new instance of GooglePrivacyDlpV2InfoTypeLikelihood.



5407
5408
5409
# File 'lib/google/apis/dlp_v2/classes.rb', line 5407

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

Instance Attribute Details

#info_typeGoogle::Apis::DlpV2::GooglePrivacyDlpV2InfoType

Type of information detected by the API. Corresponds to the JSON property infoType



5399
5400
5401
# File 'lib/google/apis/dlp_v2/classes.rb', line 5399

def info_type
  @info_type
end

#min_likelihoodString

Only returns findings equal to or above this threshold. This field is required or else the configuration fails. Corresponds to the JSON property minLikelihood

Returns:

  • (String)


5405
5406
5407
# File 'lib/google/apis/dlp_v2/classes.rb', line 5405

def min_likelihood
  @min_likelihood
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5412
5413
5414
5415
# File 'lib/google/apis/dlp_v2/classes.rb', line 5412

def update!(**args)
  @info_type = args[:info_type] if args.key?(:info_type)
  @min_likelihood = args[:min_likelihood] if args.key?(:min_likelihood)
end