Class: Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageResourceReference
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageResourceReference
- 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
Identifies a single Cloud Storage bucket.
Instance Attribute Summary collapse
-
#bucket_name ⇒ String
Required.
-
#project_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2CloudStorageResourceReference
constructor
A new instance of GooglePrivacyDlpV2CloudStorageResourceReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2CloudStorageResourceReference
Returns a new instance of GooglePrivacyDlpV2CloudStorageResourceReference.
1457 1458 1459 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1457 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket_name ⇒ String
Required. The bucket to scan.
Corresponds to the JSON property bucketName
1449 1450 1451 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1449 def bucket_name @bucket_name end |
#project_id ⇒ String
Required. If within a project-level config, then this must match the config's
project id.
Corresponds to the JSON property projectId
1455 1456 1457 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1455 def project_id @project_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1462 1463 1464 1465 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1462 def update!(**args) @bucket_name = args[:bucket_name] if args.key?(:bucket_name) @project_id = args[:project_id] if args.key?(:project_id) end |