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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/storagetransfer_v1/classes.rb,
lib/google/apis/storagetransfer_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ GcsData

Returns a new instance of GcsData.



580
581
582
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 580

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

Instance Attribute Details

#bucket_nameString

Required. Cloud Storage bucket name. Must meet Bucket Name Requirements. Corresponds to the JSON property bucketName

Returns:

  • (String)


559
560
561
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 559

def bucket_name
  @bucket_name
end

#managed_folder_transfer_enabledBoolean Also known as: managed_folder_transfer_enabled?

Preview. Enables the transfer of managed folders between Cloud Storage buckets. Set this option on the gcs_data_source. If set to true: - Managed folders in the source bucket are transferred to the destination bucket. - Managed folders in the destination bucket are overwritten. Other OVERWRITE options are not supported. See Transfer Cloud Storage managed folders. Corresponds to the JSON property managedFolderTransferEnabled

Returns:

  • (Boolean)


569
570
571
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 569

def managed_folder_transfer_enabled
  @managed_folder_transfer_enabled
end

#pathString

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 '/'. The root path value must meet Object Name Requirements. Corresponds to the JSON property path

Returns:

  • (String)


578
579
580
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 578

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



585
586
587
588
589
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 585

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