Reference documentation and code samples for the Google Cloud Storage Transfer V1 Client class 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.
Generated from protobuf message google.storagetransfer.v1.ReplicationSpec
Namespace
Google \ Cloud \ StorageTransfer \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ gcs_data_source
↳ gcs_data_sink
↳ object_conditions
ObjectConditions
Object conditions that determine which objects are transferred. For replication jobs, only include_prefixes
and exclude_prefixes
are supported.
↳ transfer_options
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.
getGcsDataSource
The Cloud Storage bucket from which to replicate objects.
hasGcsDataSource
setGcsDataSource
The Cloud Storage bucket from which to replicate objects.
$this
getGcsDataSink
The Cloud Storage bucket to which to replicate objects.
hasGcsDataSink
setGcsDataSink
The Cloud Storage bucket to which to replicate objects.
$this
getObjectConditions
Object conditions that determine which objects are transferred. For
replication jobs, only include_prefixes
and exclude_prefixes
are
supported.
hasObjectConditions
clearObjectConditions
setObjectConditions
Object conditions that determine which objects are transferred. For
replication jobs, only include_prefixes
and exclude_prefixes
are
supported.
$this
getTransferOptions
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.
hasTransferOptions
clearTransferOptions
setTransferOptions
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.
$this
getDataSource
string
getDataSink
string