Class: Google::Apis::StoragetransferV1::GcsData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GcsData

Returns a new instance of GcsData.



221
222
223
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 221

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

Instance Attribute Details

#bucket_nameString

Required. Cloud Storage bucket name (see Bucket Name Requirements). Corresponds to the JSON property bucketName

Returns:

  • (String)


219
220
221
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 219

def bucket_name
  @bucket_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



226
227
228
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 226

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