Class: Google::Apis::DlpV2::GooglePrivacyDlpV2beta1InspectConfig
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2beta1InspectConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2/classes.rb,
generated/google/apis/dlp_v2/representations.rb,
generated/google/apis/dlp_v2/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
-
#custom_info_types ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2beta1CustomInfoType>
Custom info types provided by the user.
-
#exclude_types ⇒ Boolean
(also: #exclude_types?)
When true, excludes type information of the findings.
-
#include_quote ⇒ Boolean
(also: #include_quote?)
When true, a contextual quote from the data that triggered a finding is included in the response; see Finding.quote.
-
#info_type_limits ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2beta1InfoTypeLimit>
Configuration of findings limit given for specified info types.
-
#info_types ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2beta1InfoType>
Restricts what info_types to look for.
-
#max_findings ⇒ Fixnum
Limits the number of findings per content item or long running operation.
-
#min_likelihood ⇒ String
Only returns findings equal or above this threshold.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1InspectConfig
constructor
A new instance of GooglePrivacyDlpV2beta1InspectConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1InspectConfig
Returns a new instance of GooglePrivacyDlpV2beta1InspectConfig
5229 5230 5231 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5229 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_info_types ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2beta1CustomInfoType>
Custom info types provided by the user.
Corresponds to the JSON property customInfoTypes
5192 5193 5194 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5192 def custom_info_types @custom_info_types end |
#exclude_types ⇒ Boolean Also known as: exclude_types?
When true, excludes type information of the findings.
Corresponds to the JSON property excludeTypes
5197 5198 5199 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5197 def exclude_types @exclude_types end |
#include_quote ⇒ Boolean 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
5204 5205 5206 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5204 def include_quote @include_quote end |
#info_type_limits ⇒ Array<Google::Apis::DlpV2::GooglePrivacyDlpV2beta1InfoTypeLimit>
Configuration of findings limit given for specified info types.
Corresponds to the JSON property infoTypeLimits
5210 5211 5212 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5210 def info_type_limits @info_type_limits end |
#info_types ⇒ Array<Google::Apis::DlpV2::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
5217 5218 5219 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5217 def info_types @info_types end |
#max_findings ⇒ Fixnum
Limits the number of findings per content item or long running operation.
Corresponds to the JSON property maxFindings
5222 5223 5224 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5222 def max_findings @max_findings end |
#min_likelihood ⇒ String
Only returns findings equal or above this threshold.
Corresponds to the JSON property minLikelihood
5227 5228 5229 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5227 def min_likelihood @min_likelihood end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5234 5235 5236 5237 5238 5239 5240 5241 5242 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 5234 def update!(**args) @custom_info_types = args[:custom_info_types] if args.key?(:custom_info_types) @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 |