Class: Google::Apis::StoragetransferV1::GcsData
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::GcsData
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storagetransfer_v1/classes.rb,
generated/google/apis/storagetransfer_v1/representations.rb,
generated/google/apis/storagetransfer_v1/representations.rb
Overview
In a GcsData resource, an object's name is the Cloud Storage object's name and
its "last modification time" refers to the object's updated
property of
Cloud Storage objects, which changes when the content or the metadata of the
object is updated.
Instance Attribute Summary collapse
-
#bucket_name ⇒ String
Required.
-
#path ⇒ String
Root path to transfer objects.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GcsData
constructor
A new instance of GcsData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GcsData
Returns a new instance of GcsData.
309 310 311 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket_name ⇒ String
Required. Cloud Storage bucket name (see Bucket Name Requirements).
Corresponds to the JSON property bucketName
299 300 301 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 299 def bucket_name @bucket_name end |
#path ⇒ String
Root path to transfer objects. Must be an empty string or full path name that
ends with a '/'. This field is treated as an object prefix. As such, it should
generally not begin with a '/'. (must meet Object Name Requirements](https://
cloud.google.com/storage/docs/naming#objectnames)).
Corresponds to the JSON property path
307 308 309 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 307 def path @path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
314 315 316 317 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 314 def update!(**args) @bucket_name = args[:bucket_name] if args.key?(:bucket_name) @path = args[:path] if args.key?(:path) end |