class Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig
Configuration description of the scanning process. When used with redactContent only info_types
and min_likelihood
are currently used.
Attributes
List of options defining data content to scan. If empty, text, images, and other content will be included. Corresponds to the JSON property `contentOptions` @return [Array<String>]
CustomInfoTypes provided by the user. See cloud.google.com/dlp/docs/ creating-custom-infotypes to learn more. Corresponds to the JSON property `customInfoTypes` @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2CustomInfoType>]
When true, excludes type information of the findings. Corresponds to the JSON property `excludeInfoTypes` @return [Boolean]
When true, excludes type information of the findings. Corresponds to the JSON property `excludeInfoTypes` @return [Boolean]
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` @return [Boolean]
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` @return [Boolean]
Restricts what info_types
to look for. The values must correspond to InfoType values returned by ListInfoTypes or listed at cloud.google.com/dlp/ docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. If you need precise control and predictability as to what detectors are run you should specify specific InfoTypes listed in the reference, otherwise a default list will be used, which may change over time. Corresponds to the JSON property `infoTypes` @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType>]
Configuration to control the number of findings returned. Cannot be set if de- identification is requested. Corresponds to the JSON property `limits` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FindingLimits]
Only returns findings equal or above this threshold. The default is POSSIBLE. See cloud.google.com/dlp/docs/likelihood to learn more. Corresponds to the JSON property `minLikelihood` @return [String]
Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type. Corresponds to the JSON property `ruleSet` @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2InspectionRuleSet>]
Public Class Methods
# File lib/google/apis/dlp_v2/classes.rb, line 3158 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dlp_v2/classes.rb, line 3163 def update!(**args) @content_options = args[:content_options] if args.key?(:content_options) @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) @rule_set = args[:rule_set] if args.key?(:rule_set) end