Class ReplicationSpec (1.17.0)

ReplicationSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
gcs_data_source google.cloud.storage_transfer_v1.types.GcsData
The Cloud Storage bucket from which to replicate objects. This field is a member of oneof_ data_source.
gcs_data_sink google.cloud.storage_transfer_v1.types.GcsData
The Cloud Storage bucket to which to replicate objects. This field is a member of oneof_ data_sink.
object_conditions google.cloud.storage_transfer_v1.types.ObjectConditions
Object conditions that determine which objects are transferred. For replication jobs, only include_prefixes and exclude_prefixes are supported.
transfer_options google.cloud.storage_transfer_v1.types.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][google.rpc.Code.INVALID_ARGUMENT] error.