# Storage Transfer Service V1 API - Class Google::Cloud::StorageTransfer::V1::ReplicationSpec (v1.11.0)

1.11.0 (latest) 1.10.0 1.9.0 1.8.1 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.1 1.0.0 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.2 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-GcsData)) --- The Cloud Storage bucket to which to replicate objects.
**Returns**

- ([::Google::Cloud::StorageTransfer::V1::GcsData](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-GcsData)) --- The Cloud Storage bucket from which to replicate objects.
**Returns**

- ([::Google::Cloud::StorageTransfer::V1::GcsData](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-ObjectConditions)) --- Object conditions that determine which objects are transferred. For replication jobs, only `include_prefixes` and `exclude_prefixes` are supported.

### #object_conditions=

    def object_conditions=(value) -> ::Google::Cloud::StorageTransfer::V1::ObjectConditions

**Parameter**

- **value** ([::Google::Cloud::StorageTransfer::V1::ObjectConditions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-ObjectConditions)) --- Object conditions that determine which objects are transferred. For replication jobs, only `include_prefixes` and `exclude_prefixes` are supported.
**Returns**

- ([::Google::Cloud::StorageTransfer::V1::ObjectConditions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-ObjectConditions)) --- Object conditions that determine which objects are transferred. For replication jobs, only `include_prefixes` and `exclude_prefixes` are supported.

### #transfer_options

    def transfer_options() -> ::Google::Cloud::StorageTransfer::V1::TransferOptions

**Returns**

- ([::Google::Cloud::StorageTransfer::V1::TransferOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Rpc-Code#Google__Rpc__Code__INVALID_ARGUMENT "Google::Rpc::Code::INVALID_ARGUMENT (constant)") error.

### #transfer_options=

    def transfer_options=(value) -> ::Google::Cloud::StorageTransfer::V1::TransferOptions

**Parameter**

- **value** ([::Google::Cloud::StorageTransfer::V1::TransferOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Rpc-Code#Google__Rpc__Code__INVALID_ARGUMENT "Google::Rpc::Code::INVALID_ARGUMENT (constant)") error.
**Returns**

- ([::Google::Cloud::StorageTransfer::V1::TransferOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Rpc-Code#Google__Rpc__Code__INVALID_ARGUMENT "Google::Rpc::Code::INVALID_ARGUMENT (constant)") error.