Class: Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageRegex
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageRegex
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb
Overview
A pattern to match against one or more file stores. At least one pattern must be specified. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
Instance Attribute Summary collapse
-
#bucket_name_regex ⇒ String
Optional.
-
#project_id_regex ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2CloudStorageRegex
constructor
A new instance of GooglePrivacyDlpV2CloudStorageRegex.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2CloudStorageRegex
Returns a new instance of GooglePrivacyDlpV2CloudStorageRegex.
1372 1373 1374 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1372 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket_name_regex ⇒ String
Optional. Regex to test the bucket name against. If empty, all buckets match.
Example: "marketing2021" or "(marketing)\d4
" will both match the bucket gs://
marketing2021
Corresponds to the JSON property bucketNameRegex
1365 1366 1367 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1365 def bucket_name_regex @bucket_name_regex end |
#project_id_regex ⇒ String
Optional. For organizations, if unset, will match all projects.
Corresponds to the JSON property projectIdRegex
1370 1371 1372 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1370 def project_id_regex @project_id_regex end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1377 1378 1379 1380 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1377 def update!(**args) @bucket_name_regex = args[:bucket_name_regex] if args.key?(:bucket_name_regex) @project_id_regex = args[:project_id_regex] if args.key?(:project_id_regex) end |