Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb

Overview

Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2beta2InspectConfig

Returns a new instance of GooglePrivacyDlpV2beta2InspectConfig



3644
3645
3646
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3644

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

Instance Attribute Details

#custom_info_typesArray<Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CustomInfoType>

Custom infoTypes provided by the user. Corresponds to the JSON property customInfoTypes



3611
3612
3613
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3611

def custom_info_types
  @custom_info_types
end

#exclude_info_typesBoolean Also known as: exclude_info_types?

When true, excludes type information of the findings. Corresponds to the JSON property excludeInfoTypes

Returns:

  • (Boolean)


3616
3617
3618
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3616

def exclude_info_types
  @exclude_info_types
end

#include_quoteBoolean Also known as: include_quote?

When true, a contextual quote from the data that triggered a finding is included in the response; see Finding.quote. Corresponds to the JSON property includeQuote

Returns:

  • (Boolean)


3623
3624
3625
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3623

def include_quote
  @include_quote
end

#info_typesArray<Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InfoType>

Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or found in documentation. Empty info_types runs all enabled detectors. Corresponds to the JSON property infoTypes



3631
3632
3633
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3631

def info_types
  @info_types
end

#limitsGoogle::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FindingLimits

Corresponds to the JSON property limits



3636
3637
3638
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3636

def limits
  @limits
end

#min_likelihoodString

Only returns findings equal or above this threshold. The default is POSSIBLE. Corresponds to the JSON property minLikelihood

Returns:

  • (String)


3642
3643
3644
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3642

def min_likelihood
  @min_likelihood
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3649
3650
3651
3652
3653
3654
3655
3656
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3649

def update!(**args)
  @custom_info_types = args[:custom_info_types] if args.key?(:custom_info_types)
  @exclude_info_types = args[:exclude_info_types] if args.key?(:exclude_info_types)
  @include_quote = args[:include_quote] if args.key?(:include_quote)
  @info_types = args[:info_types] if args.key?(:info_types)
  @limits = args[:limits] if args.key?(:limits)
  @min_likelihood = args[:min_likelihood] if args.key?(:min_likelihood)
end