Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/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) ⇒ GooglePrivacyDlpV2beta1InspectConfig

Returns a new instance of GooglePrivacyDlpV2beta1InspectConfig



1498
1499
1500
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1498

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

Instance Attribute Details

#exclude_typesBoolean Also known as: exclude_types?

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

Returns:

  • (Boolean)


1466
1467
1468
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1466

def exclude_types
  @exclude_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)


1473
1474
1475
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1473

def include_quote
  @include_quote
end

#info_type_limitsArray<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeLimit>

Configuration of findings limit given for specified info types. Corresponds to the JSON property infoTypeLimits



1479
1480
1481
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1479

def info_type_limits
  @info_type_limits
end

#info_typesArray<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType>

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



1486
1487
1488
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1486

def info_types
  @info_types
end

#max_findingsFixnum

Limits the number of findings per content item or long running operation. Corresponds to the JSON property maxFindings

Returns:

  • (Fixnum)


1491
1492
1493
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1491

def max_findings
  @max_findings
end

#min_likelihoodString

Only returns findings equal or above this threshold. Corresponds to the JSON property minLikelihood

Returns:

  • (String)


1496
1497
1498
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1496

def min_likelihood
  @min_likelihood
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1503
1504
1505
1506
1507
1508
1509
1510
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1503

def update!(**args)
  @exclude_types = args[:exclude_types] if args.key?(:exclude_types)
  @include_quote = args[:include_quote] if args.key?(:include_quote)
  @info_type_limits = args[:info_type_limits] if args.key?(:info_type_limits)
  @info_types = args[:info_types] if args.key?(:info_types)
  @max_findings = args[:max_findings] if args.key?(:max_findings)
  @min_likelihood = args[:min_likelihood] if args.key?(:min_likelihood)
end