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.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ gcs_data_source |
GcsData
The Cloud Storage bucket from which to replicate objects. |
↳ gcs_data_sink |
GcsData
The Cloud Storage bucket to which to replicate objects. |
↳ object_conditions |
ObjectConditions
Object conditions that determine which objects are transferred. For replication jobs, only |
↳ 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.
Returns | |
---|---|
Type | Description |
GcsData|null |
hasGcsDataSource
setGcsDataSource
The Cloud Storage bucket from which to replicate objects.
Parameter | |
---|---|
Name | Description |
var |
GcsData
|
Returns | |
---|---|
Type | Description |
$this |
getGcsDataSink
The Cloud Storage bucket to which to replicate objects.
Returns | |
---|---|
Type | Description |
GcsData|null |
hasGcsDataSink
setGcsDataSink
The Cloud Storage bucket to which to replicate objects.
Parameter | |
---|---|
Name | Description |
var |
GcsData
|
Returns | |
---|---|
Type | Description |
$this |
getObjectConditions
Object conditions that determine which objects are transferred. For
replication jobs, only include_prefixes
and exclude_prefixes
are
supported.
Returns | |
---|---|
Type | Description |
ObjectConditions|null |
hasObjectConditions
clearObjectConditions
setObjectConditions
Object conditions that determine which objects are transferred. For
replication jobs, only include_prefixes
and exclude_prefixes
are
supported.
Parameter | |
---|---|
Name | Description |
var |
ObjectConditions
|
Returns | |
---|---|
Type | Description |
$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.
Returns | |
---|---|
Type | Description |
TransferOptions|null |
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.
Parameter | |
---|---|
Name | Description |
var |
TransferOptions
|
Returns | |
---|---|
Type | Description |
$this |
getDataSource
Returns | |
---|---|
Type | Description |
string |
getDataSink
Returns | |
---|---|
Type | Description |
string |