Class: Google::Apis::DlpV2::GooglePrivacyDlpV2AmazonS3BucketRegex
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2AmazonS3BucketRegex
- 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
Amazon S3 bucket regex.
Instance Attribute Summary collapse
-
#aws_account_regex ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2AwsAccountRegex
AWS account regex.
-
#bucket_name_regex ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2AmazonS3BucketRegex
constructor
A new instance of GooglePrivacyDlpV2AmazonS3BucketRegex.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2AmazonS3BucketRegex
Returns a new instance of GooglePrivacyDlpV2AmazonS3BucketRegex.
283 284 285 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 283 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aws_account_regex ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2AwsAccountRegex
AWS account regex.
Corresponds to the JSON property awsAccountRegex
276 277 278 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 276 def aws_account_regex @aws_account_regex end |
#bucket_name_regex ⇒ String
Optional. Regex to test the bucket name against. If empty, all buckets match.
Corresponds to the JSON property bucketNameRegex
281 282 283 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 281 def bucket_name_regex @bucket_name_regex end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
288 289 290 291 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 288 def update!(**args) @aws_account_regex = args[:aws_account_regex] if args.key?(:aws_account_regex) @bucket_name_regex = args[:bucket_name_regex] if args.key?(:bucket_name_regex) end |