Class: Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageResourceReference

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

Identifies a single Cloud Storage bucket.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2CloudStorageResourceReference

Returns a new instance of GooglePrivacyDlpV2CloudStorageResourceReference.



1311
1312
1313
# File 'lib/google/apis/dlp_v2/classes.rb', line 1311

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

Instance Attribute Details

#bucket_nameString

Required. The bucket to scan. Corresponds to the JSON property bucketName

Returns:

  • (String)


1303
1304
1305
# File 'lib/google/apis/dlp_v2/classes.rb', line 1303

def bucket_name
  @bucket_name
end

#project_idString

Required. If within a project-level config, then this must match the config's project id. Corresponds to the JSON property projectId

Returns:

  • (String)


1309
1310
1311
# File 'lib/google/apis/dlp_v2/classes.rb', line 1309

def project_id
  @project_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1316
1317
1318
1319
# File 'lib/google/apis/dlp_v2/classes.rb', line 1316

def update!(**args)
  @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
  @project_id = args[:project_id] if args.key?(:project_id)
end