Class: Google::Cloud::StorageTransfer::V1::TransferOptions
- Inherits:
-
Object
- Object
- Google::Cloud::StorageTransfer::V1::TransferOptions
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/storagetransfer/v1/transfer_types.rb
Overview
TransferOptions define the actions to be performed on objects in a transfer.
Defined Under Namespace
Modules: OverwriteWhen
Instance Attribute Summary collapse
-
#delete_objects_from_source_after_transfer ⇒ ::Boolean
Whether objects should be deleted from the source after they are transferred to the sink.
-
#delete_objects_unique_in_sink ⇒ ::Boolean
Whether objects that exist only in the sink should be deleted.
-
#metadata_options ⇒ ::Google::Cloud::StorageTransfer::V1::MetadataOptions
Represents the selected metadata options for a transfer job.
-
#overwrite_objects_already_existing_in_sink ⇒ ::Boolean
When to overwrite objects that already exist in the sink.
-
#overwrite_when ⇒ ::Google::Cloud::StorageTransfer::V1::TransferOptions::OverwriteWhen
When to overwrite objects that already exist in the sink.
Instance Attribute Details
#delete_objects_from_source_after_transfer ⇒ ::Boolean
Returns 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.
652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 |
# File 'proto_docs/google/storagetransfer/v1/transfer_types.rb', line 652 class TransferOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies when to overwrite an object in the sink when an object with # matching name is found in the source. module OverwriteWhen # Overwrite behavior is unspecified. OVERWRITE_WHEN_UNSPECIFIED = 0 # Overwrites destination objects with the source objects, only if the # objects have the same name but different HTTP ETags or checksum values. DIFFERENT = 1 # Never overwrites a destination object if a source object has the # same name. In this case, the source object is not transferred. NEVER = 2 # Always overwrite the destination object with the source object, even if # the HTTP Etags or checksum values are the same. ALWAYS = 3 end end |
#delete_objects_unique_in_sink ⇒ ::Boolean
Returns Whether objects that exist only in the sink should be deleted.
Note: This option and delete_objects_from_source_after_transfer are mutually exclusive.
652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 |
# File 'proto_docs/google/storagetransfer/v1/transfer_types.rb', line 652 class TransferOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies when to overwrite an object in the sink when an object with # matching name is found in the source. module OverwriteWhen # Overwrite behavior is unspecified. OVERWRITE_WHEN_UNSPECIFIED = 0 # Overwrites destination objects with the source objects, only if the # objects have the same name but different HTTP ETags or checksum values. DIFFERENT = 1 # Never overwrites a destination object if a source object has the # same name. In this case, the source object is not transferred. NEVER = 2 # Always overwrite the destination object with the source object, even if # the HTTP Etags or checksum values are the same. ALWAYS = 3 end end |
#metadata_options ⇒ ::Google::Cloud::StorageTransfer::V1::MetadataOptions
Returns Represents the selected metadata options for a transfer job.
652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 |
# File 'proto_docs/google/storagetransfer/v1/transfer_types.rb', line 652 class TransferOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies when to overwrite an object in the sink when an object with # matching name is found in the source. module OverwriteWhen # Overwrite behavior is unspecified. OVERWRITE_WHEN_UNSPECIFIED = 0 # Overwrites destination objects with the source objects, only if the # objects have the same name but different HTTP ETags or checksum values. DIFFERENT = 1 # Never overwrites a destination object if a source object has the # same name. In this case, the source object is not transferred. NEVER = 2 # Always overwrite the destination object with the source object, even if # the HTTP Etags or checksum values are the same. ALWAYS = 3 end end |
#overwrite_objects_already_existing_in_sink ⇒ ::Boolean
Returns When to overwrite objects that already exist in the sink. The default is that only objects that are different from the source are overwritten. If true, all objects in the sink whose name matches an object in the source are overwritten with the source object.
652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 |
# File 'proto_docs/google/storagetransfer/v1/transfer_types.rb', line 652 class TransferOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies when to overwrite an object in the sink when an object with # matching name is found in the source. module OverwriteWhen # Overwrite behavior is unspecified. OVERWRITE_WHEN_UNSPECIFIED = 0 # Overwrites destination objects with the source objects, only if the # objects have the same name but different HTTP ETags or checksum values. DIFFERENT = 1 # Never overwrites a destination object if a source object has the # same name. In this case, the source object is not transferred. NEVER = 2 # Always overwrite the destination object with the source object, even if # the HTTP Etags or checksum values are the same. ALWAYS = 3 end end |
#overwrite_when ⇒ ::Google::Cloud::StorageTransfer::V1::TransferOptions::OverwriteWhen
Returns When to overwrite objects that already exist in the sink. If not set, overwrite behavior is determined by overwrite_objects_already_existing_in_sink.
652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 |
# File 'proto_docs/google/storagetransfer/v1/transfer_types.rb', line 652 class TransferOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies when to overwrite an object in the sink when an object with # matching name is found in the source. module OverwriteWhen # Overwrite behavior is unspecified. OVERWRITE_WHEN_UNSPECIFIED = 0 # Overwrites destination objects with the source objects, only if the # objects have the same name but different HTTP ETags or checksum values. DIFFERENT = 1 # Never overwrites a destination object if a source object has the # same name. In this case, the source object is not transferred. NEVER = 2 # Always overwrite the destination object with the source object, even if # the HTTP Etags or checksum values are the same. ALWAYS = 3 end end |