Reference documentation and code samples for the Storage Transfer Service V1 API class Google::Cloud::StorageTransfer::V1::ReplicationSpec.
Specifies the configuration for a cross-bucket replication job. Cross-bucket replication copies new or updated objects from a source Cloud Storage bucket to a destination Cloud Storage bucket. Existing objects in the source bucket are not copied by a new cross-bucket replication job.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#gcs_data_sink
def gcs_data_sink() -> ::Google::Cloud::StorageTransfer::V1::GcsData
Returns
- (::Google::Cloud::StorageTransfer::V1::GcsData) — The Cloud Storage bucket to which to replicate objects.
#gcs_data_sink=
def gcs_data_sink=(value) -> ::Google::Cloud::StorageTransfer::V1::GcsData
Parameter
- value (::Google::Cloud::StorageTransfer::V1::GcsData) — The Cloud Storage bucket to which to replicate objects.
Returns
- (::Google::Cloud::StorageTransfer::V1::GcsData) — The Cloud Storage bucket to which to replicate objects.
#gcs_data_source
def gcs_data_source() -> ::Google::Cloud::StorageTransfer::V1::GcsData
Returns
- (::Google::Cloud::StorageTransfer::V1::GcsData) — The Cloud Storage bucket from which to replicate objects.
#gcs_data_source=
def gcs_data_source=(value) -> ::Google::Cloud::StorageTransfer::V1::GcsData
Parameter
- value (::Google::Cloud::StorageTransfer::V1::GcsData) — The Cloud Storage bucket from which to replicate objects.
Returns
- (::Google::Cloud::StorageTransfer::V1::GcsData) — The Cloud Storage bucket from which to replicate objects.
#object_conditions
def object_conditions() -> ::Google::Cloud::StorageTransfer::V1::ObjectConditions
Returns
-
(::Google::Cloud::StorageTransfer::V1::ObjectConditions) — Object conditions that determine which objects are transferred. For
replication jobs, only
include_prefixes
andexclude_prefixes
are supported.
#object_conditions=
def object_conditions=(value) -> ::Google::Cloud::StorageTransfer::V1::ObjectConditions
Parameter
-
value (::Google::Cloud::StorageTransfer::V1::ObjectConditions) — Object conditions that determine which objects are transferred. For
replication jobs, only
include_prefixes
andexclude_prefixes
are supported.
Returns
-
(::Google::Cloud::StorageTransfer::V1::ObjectConditions) — Object conditions that determine which objects are transferred. For
replication jobs, only
include_prefixes
andexclude_prefixes
are supported.
#transfer_options
def transfer_options() -> ::Google::Cloud::StorageTransfer::V1::TransferOptions
Returns
- (::Google::Cloud::StorageTransfer::V1::TransferOptions) — Specifies the metadata options to be applied during replication. Delete options are not supported. If a delete option is specified, the request fails with an INVALID_ARGUMENT error.
#transfer_options=
def transfer_options=(value) -> ::Google::Cloud::StorageTransfer::V1::TransferOptions
Parameter
- value (::Google::Cloud::StorageTransfer::V1::TransferOptions) — Specifies the metadata options to be applied during replication. Delete options are not supported. If a delete option is specified, the request fails with an INVALID_ARGUMENT error.
Returns
- (::Google::Cloud::StorageTransfer::V1::TransferOptions) — Specifies the metadata options to be applied during replication. Delete options are not supported. If a delete option is specified, the request fails with an INVALID_ARGUMENT error.