# Storage Transfer v1 API - Class TransferSpec (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.TransferSpec)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.9.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.8.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.7.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.6.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.5.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.4.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.3.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.2.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.1.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.0.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.2.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.1.0/Google.Cloud.StorageTransfer.V1.TransferSpec)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.0.0/Google.Cloud.StorageTransfer.V1.TransferSpec)

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

Reference documentation and code samples for the Storage Transfer v1 API class TransferSpec.

Configuration for running a transfer.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TransferSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.TransferSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TransferSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.TransferSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TransferSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.TransferSpec), [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

### TransferSpec()

    public TransferSpec()

### TransferSpec(TransferSpec)

    public TransferSpec(TransferSpec other)

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

## Properties

### AwsS3CompatibleDataSource

    public AwsS3CompatibleData AwsS3CompatibleDataSource { get; set; }

An AWS S3 compatible data source.

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

### AwsS3DataSource

    public AwsS3Data AwsS3DataSource { get; set; }

An AWS S3 data source.

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

### AzureBlobStorageDataSource

    public AzureBlobStorageData AzureBlobStorageDataSource { get; set; }

An Azure Blob Storage data source.

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

### DataSinkCase

    public TransferSpec.DataSinkOneofCase DataSinkCase { get; }

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

### DataSourceCase

    public TransferSpec.DataSourceOneofCase DataSourceCase { get; }

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

### GcsDataSink

    public GcsData GcsDataSink { get; set; }

A Cloud Storage data sink.

| **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; }

A Cloud Storage data source.

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

### GcsIntermediateDataLocation

    public GcsData GcsIntermediateDataLocation { get; set; }

For transfers between file systems, specifies a Cloud Storage bucket
to be used as an intermediate location through which to transfer data.

See [Transfer data between file
systems](https://cloud.google.com/storage-transfer/docs/file-to-file) for
more information.

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

### HdfsDataSource

    public HdfsData HdfsDataSource { get; set; }

An HDFS cluster data source.

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

### HttpDataSource

    public HttpData HttpDataSource { get; set; }

An HTTP URL data source.

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

### IntermediateDataLocationCase

    public TransferSpec.IntermediateDataLocationOneofCase IntermediateDataLocationCase { get; }

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

### ObjectConditions

    public ObjectConditions ObjectConditions { get; set; }

Only objects that satisfy these object conditions are included in the set
of data source and data sink objects. Object conditions based on
objects' "last modification time" do not exclude objects in a data sink.

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

### PosixDataSink

    public PosixFilesystem PosixDataSink { get; set; }

A POSIX Filesystem data sink.

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

### PosixDataSource

    public PosixFilesystem PosixDataSource { get; set; }

A POSIX Filesystem data source.

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

### SinkAgentPoolName

    public string SinkAgentPoolName { get; set; }

Specifies the agent pool name associated with the posix data sink. When
unspecified, the default name is used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### SourceAgentPoolName

    public string SourceAgentPoolName { get; set; }

Specifies the agent pool name associated with the posix data source. When
unspecified, the default name is used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### TransferManifest

    public TransferManifest TransferManifest { get; set; }

A manifest file provides a list of objects to be transferred from the data
source. This field points to the location of the manifest file.
Otherwise, the entire source bucket is used. ObjectConditions still apply.

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

### TransferOptions

    public TransferOptions TransferOptions { get; set; }

If the option
\[delete_objects_unique_in_sink\]\[google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink\]
is `true` and time-based object conditions such as 'last modification time'
are 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` |   |