class Google::Apis::StoragetransferV1::TransferOptions

TransferOptions uses three boolean parameters to 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. 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. 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. 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. Corresponds to the JSON property `deleteObjectsUniqueInSink` @return [Boolean]

overwrite_objects_already_existing_in_sink[RW]

Whether overwriting objects that already exist in the sink is allowed. Corresponds to the JSON property `overwriteObjectsAlreadyExistingInSink` @return [Boolean]

overwrite_objects_already_existing_in_sink?[RW]

Whether overwriting objects that already exist in the sink is allowed. Corresponds to the JSON property `overwriteObjectsAlreadyExistingInSink` @return [Boolean]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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