class Google::Apis::StoragetransferV1::TransferOptions

TransferOptions define the actions to be performed on objects in a transfer.

Attributes

delete_objects_from_source_after_transfer[RW]

Whether objects should be deleted from the source after they are transferred to the sink. Note: This option and delete_objects_unique_in_sink are mutually exclusive. Corresponds to the JSON property `deleteObjectsFromSourceAfterTransfer` @return [Boolean]

delete_objects_from_source_after_transfer?[RW]

Whether objects should be deleted from the source after they are transferred to the sink. Note: This option and delete_objects_unique_in_sink are mutually exclusive. Corresponds to the JSON property `deleteObjectsFromSourceAfterTransfer` @return [Boolean]

delete_objects_unique_in_sink[RW]

Whether objects that exist only in the sink should be deleted. Note: This option and delete_objects_from_source_after_transfer are mutually exclusive. Corresponds to the JSON property `deleteObjectsUniqueInSink` @return [Boolean]

delete_objects_unique_in_sink?[RW]

Whether objects that exist only in the sink should be deleted. Note: This option and delete_objects_from_source_after_transfer are mutually exclusive. Corresponds to the JSON property `deleteObjectsUniqueInSink` @return [Boolean]

overwrite_objects_already_existing_in_sink[RW]

When to overwrite objects that already exist in the sink. The default is that only objects that are different from the source are ovewritten. If true, all objects in the sink whose name matches an object in the source are overwritten with the source object. Corresponds to the JSON property `overwriteObjectsAlreadyExistingInSink` @return [Boolean]

overwrite_objects_already_existing_in_sink?[RW]

When to overwrite objects that already exist in the sink. The default is that only objects that are different from the source are ovewritten. If true, all objects in the sink whose name matches an object in the source are overwritten with the source object. Corresponds to the JSON property `overwriteObjectsAlreadyExistingInSink` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/storagetransfer_v1/classes.rb, line 1245
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/storagetransfer_v1/classes.rb, line 1250
def update!(**args)
  @delete_objects_from_source_after_transfer = args[:delete_objects_from_source_after_transfer] if args.key?(:delete_objects_from_source_after_transfer)
  @delete_objects_unique_in_sink = args[:delete_objects_unique_in_sink] if args.key?(:delete_objects_unique_in_sink)
  @overwrite_objects_already_existing_in_sink = args[:overwrite_objects_already_existing_in_sink] if args.key?(:overwrite_objects_already_existing_in_sink)
end