Class: Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageRegex

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2CloudStorageRegex

Returns a new instance of GooglePrivacyDlpV2CloudStorageRegex.



1226
1227
1228
# File 'lib/google/apis/dlp_v2/classes.rb', line 1226

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bucket_name_regexString

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

Returns:

  • (String)


1219
1220
1221
# File 'lib/google/apis/dlp_v2/classes.rb', line 1219

def bucket_name_regex
  @bucket_name_regex
end

#project_id_regexString

Optional. For organizations, if unset, will match all projects. Corresponds to the JSON property projectIdRegex

Returns:

  • (String)


1224
1225
1226
# File 'lib/google/apis/dlp_v2/classes.rb', line 1224

def project_id_regex
  @project_id_regex
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1231
1232
1233
1234
# File 'lib/google/apis/dlp_v2/classes.rb', line 1231

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