Class: Google::Apis::StoragetransferV1::TransferOptions
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::TransferOptions
- 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
TransferOptions define the actions to be performed on objects in a transfer.
Instance Attribute Summary collapse
-
#delete_objects_from_source_after_transfer ⇒ Boolean
(also: #delete_objects_from_source_after_transfer?)
Whether objects should be deleted from the source after they are transferred to the sink.
-
#delete_objects_unique_in_sink ⇒ Boolean
(also: #delete_objects_unique_in_sink?)
Whether objects that exist only in the sink should be deleted.
-
#metadata_options ⇒ Google::Apis::StoragetransferV1::MetadataOptions
Specifies the metadata options for running a transfer.
-
#overwrite_objects_already_existing_in_sink ⇒ Boolean
(also: #overwrite_objects_already_existing_in_sink?)
When to overwrite objects that already exist in the sink.
-
#overwrite_when ⇒ String
When to overwrite objects that already exist in the sink.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransferOptions
constructor
A new instance of TransferOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransferOptions
Returns a new instance of TransferOptions.
1623 1624 1625 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1623 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delete_objects_from_source_after_transfer ⇒ Boolean Also known as: delete_objects_from_source_after_transfer?
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
1593 1594 1595 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1593 def delete_objects_from_source_after_transfer @delete_objects_from_source_after_transfer end |
#delete_objects_unique_in_sink ⇒ Boolean Also known as: delete_objects_unique_in_sink?
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
1600 1601 1602 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1600 def delete_objects_unique_in_sink @delete_objects_unique_in_sink end |
#metadata_options ⇒ Google::Apis::StoragetransferV1::MetadataOptions
Specifies the metadata options for running a transfer.
Corresponds to the JSON property metadataOptions
1606 1607 1608 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1606 def @metadata_options end |
#overwrite_objects_already_existing_in_sink ⇒ Boolean Also known as: overwrite_objects_already_existing_in_sink?
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
1614 1615 1616 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1614 def overwrite_objects_already_existing_in_sink @overwrite_objects_already_existing_in_sink end |
#overwrite_when ⇒ String
When to overwrite objects that already exist in the sink. If not set,
overwrite behavior is determined by overwrite_objects_already_existing_in_sink.
Corresponds to the JSON property overwriteWhen
1621 1622 1623 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1621 def overwrite_when @overwrite_when end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1628 1629 1630 1631 1632 1633 1634 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1628 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) @metadata_options = args[:metadata_options] if args.key?(:metadata_options) @overwrite_objects_already_existing_in_sink = args[:overwrite_objects_already_existing_in_sink] if args.key?(:overwrite_objects_already_existing_in_sink) @overwrite_when = args[:overwrite_when] if args.key?(:overwrite_when) end |