Class: Google::Apis::DlpV2::GooglePrivacyDlpV2AmazonS3BucketRegex

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

Amazon S3 bucket regex.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2AmazonS3BucketRegex

Returns a new instance of GooglePrivacyDlpV2AmazonS3BucketRegex.



414
415
416
# File 'lib/google/apis/dlp_v2/classes.rb', line 414

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

Instance Attribute Details

#aws_account_regexGoogle::Apis::DlpV2::GooglePrivacyDlpV2AwsAccountRegex

AWS account regex. Corresponds to the JSON property awsAccountRegex



407
408
409
# File 'lib/google/apis/dlp_v2/classes.rb', line 407

def 
  @aws_account_regex
end

#bucket_name_regexString

Optional. Regex to test the bucket name against. If empty, all buckets match. Corresponds to the JSON property bucketNameRegex

Returns:

  • (String)


412
413
414
# File 'lib/google/apis/dlp_v2/classes.rb', line 412

def bucket_name_regex
  @bucket_name_regex
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



419
420
421
422
# File 'lib/google/apis/dlp_v2/classes.rb', line 419

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