# Storage Transfer v1 API - Class ReplicationSpec (2.10.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.9.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.8.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.7.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.6.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.5.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.4.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.3.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.2.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.1.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.0.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.2.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.1.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.0.0/Google.Cloud.StorageTransfer.V1.ReplicationSpec)

    public sealed class ReplicationSpec : IMessage<ReplicationSpec>, IEquatable<ReplicationSpec>, IDeepCloneable<ReplicationSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Storage Transfer v1 API 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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ReplicationSpec

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ReplicationSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.ReplicationSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ReplicationSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.ReplicationSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ReplicationSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.ReplicationSpec), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.StorageTransfer.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1)

## Assembly

Google.Cloud.StorageTransfer.V1.dll

## Constructors

### ReplicationSpec()

    public ReplicationSpec()

### ReplicationSpec(ReplicationSpec)

    public ReplicationSpec(ReplicationSpec other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.ReplicationSpec` |

## Properties

### DataSinkCase

    public ReplicationSpec.DataSinkOneofCase DataSinkCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.ReplicationSpechttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.ReplicationSpec.DataSinkOneofCase` |   |

### DataSourceCase

    public ReplicationSpec.DataSourceOneofCase DataSourceCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.ReplicationSpechttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.ReplicationSpec.DataSourceOneofCase` |   |

### GcsDataSink

    public GcsData GcsDataSink { get; set; }

The Cloud Storage bucket to which to replicate objects.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.GcsData` |   |

### GcsDataSource

    public GcsData GcsDataSource { get; set; }

The Cloud Storage bucket from which to replicate objects.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.GcsData` |   |

### ObjectConditions

    public ObjectConditions ObjectConditions { get; set; }

Object conditions that determine which objects are transferred. For
replication jobs, only `include_prefixes` and `exclude_prefixes` are
supported.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.ObjectConditions` |   |

### TransferOptions

    public TransferOptions TransferOptions { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.TransferOptions` |   |