Class: Google::Privacy::Dlp::V2::CloudStorageOptions
- Inherits:
-
Object
- Object
- Google::Privacy::Dlp::V2::CloudStorageOptions
- Defined in:
- lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb
Overview
Options defining a file or a set of files (path ending with *) within a Google Cloud Storage bucket.
Defined Under Namespace
Modules: SampleMethod Classes: FileSet
Instance Attribute Summary collapse
-
#bytes_limit_per_file ⇒ Integer
Max number of bytes to scan from a file.
- #file_set ⇒ Google::Privacy::Dlp::V2::CloudStorageOptions::FileSet
-
#file_types ⇒ Array<Google::Privacy::Dlp::V2::FileType>
List of file type groups to include in the scan.
-
#files_limit_percent ⇒ Integer
Limits the number of files to scan to this percentage of the input FileSet.
- #sample_method ⇒ Google::Privacy::Dlp::V2::CloudStorageOptions::SampleMethod
Instance Attribute Details
#bytes_limit_per_file ⇒ Integer
Returns 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.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 219 class CloudStorageOptions # Set of files to scan. # @!attribute [rw] url # @return [String] # The url, in the format +gs://<bucket>/<path>+. Trailing wildcard in the # path is allowed. class FileSet; end # How to sample bytes if not all bytes are scanned. Meaningful only when used # in conjunction with bytes_limit_per_file. If not specified, scanning would # start from the top. module SampleMethod SAMPLE_METHOD_UNSPECIFIED = 0 # Scan from the top (default). TOP = 1 # For each file larger than bytes_limit_per_file, randomly pick the offset # to start scanning. The scanned bytes are contiguous. RANDOM_START = 2 end end |
#file_set ⇒ Google::Privacy::Dlp::V2::CloudStorageOptions::FileSet
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 219 class CloudStorageOptions # Set of files to scan. # @!attribute [rw] url # @return [String] # The url, in the format +gs://<bucket>/<path>+. Trailing wildcard in the # path is allowed. class FileSet; end # How to sample bytes if not all bytes are scanned. Meaningful only when used # in conjunction with bytes_limit_per_file. If not specified, scanning would # start from the top. module SampleMethod SAMPLE_METHOD_UNSPECIFIED = 0 # Scan from the top (default). TOP = 1 # For each file larger than bytes_limit_per_file, randomly pick the offset # to start scanning. The scanned bytes are contiguous. RANDOM_START = 2 end end |
#file_types ⇒ Array<Google::Privacy::Dlp::V2::FileType>
Returns List of file type groups to include in the scan. If empty, all files are scanned and available data format processors are applied.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 219 class CloudStorageOptions # Set of files to scan. # @!attribute [rw] url # @return [String] # The url, in the format +gs://<bucket>/<path>+. Trailing wildcard in the # path is allowed. class FileSet; end # How to sample bytes if not all bytes are scanned. Meaningful only when used # in conjunction with bytes_limit_per_file. If not specified, scanning would # start from the top. module SampleMethod SAMPLE_METHOD_UNSPECIFIED = 0 # Scan from the top (default). TOP = 1 # For each file larger than bytes_limit_per_file, randomly pick the offset # to start scanning. The scanned bytes are contiguous. RANDOM_START = 2 end end |
#files_limit_percent ⇒ Integer
Returns Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 219 class CloudStorageOptions # Set of files to scan. # @!attribute [rw] url # @return [String] # The url, in the format +gs://<bucket>/<path>+. Trailing wildcard in the # path is allowed. class FileSet; end # How to sample bytes if not all bytes are scanned. Meaningful only when used # in conjunction with bytes_limit_per_file. If not specified, scanning would # start from the top. module SampleMethod SAMPLE_METHOD_UNSPECIFIED = 0 # Scan from the top (default). TOP = 1 # For each file larger than bytes_limit_per_file, randomly pick the offset # to start scanning. The scanned bytes are contiguous. RANDOM_START = 2 end end |
#sample_method ⇒ Google::Privacy::Dlp::V2::CloudStorageOptions::SampleMethod
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb', line 219 class CloudStorageOptions # Set of files to scan. # @!attribute [rw] url # @return [String] # The url, in the format +gs://<bucket>/<path>+. Trailing wildcard in the # path is allowed. class FileSet; end # How to sample bytes if not all bytes are scanned. Meaningful only when used # in conjunction with bytes_limit_per_file. If not specified, scanning would # start from the top. module SampleMethod SAMPLE_METHOD_UNSPECIFIED = 0 # Scan from the top (default). TOP = 1 # For each file larger than bytes_limit_per_file, randomly pick the offset # to start scanning. The scanned bytes are contiguous. RANDOM_START = 2 end end |