Class: Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageOptions
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageOptions
- 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
Options defining a file or a set of files (path ending with *) within a Google Cloud Storage bucket.
Instance Attribute Summary collapse
-
#bytes_limit_per_file ⇒ Fixnum
Max number of bytes to scan from a file.
-
#file_set ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet
Set of files to scan.
-
#file_types ⇒ Array<String>
List of file type groups to include in the scan.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2CloudStorageOptions
constructor
A new instance of GooglePrivacyDlpV2CloudStorageOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2CloudStorageOptions
Returns a new instance of GooglePrivacyDlpV2CloudStorageOptions
582 583 584 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 582 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bytes_limit_per_file ⇒ Fixnum
Max number of bytes to scan from a file. If a scanned file's size is bigger
than this value then the rest of the bytes are omitted.
Corresponds to the JSON property bytesLimitPerFile
568 569 570 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 568 def bytes_limit_per_file @bytes_limit_per_file end |
#file_set ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet
Set of files to scan.
Corresponds to the JSON property fileSet
573 574 575 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 573 def file_set @file_set end |
#file_types ⇒ Array<String>
List of file type groups to include in the scan.
If empty, all files are scanned and available data format processors
are applied.
Corresponds to the JSON property fileTypes
580 581 582 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 580 def file_types @file_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
587 588 589 590 591 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 587 def update!(**args) @bytes_limit_per_file = args[:bytes_limit_per_file] if args.key?(:bytes_limit_per_file) @file_set = args[:file_set] if args.key?(:file_set) @file_types = args[:file_types] if args.key?(:file_types) end |