# VM Migration v1 API - Class DiskMigrationJobTargetDetails (2.9.0)

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

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

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

Reference documentation and code samples for the VM Migration v1 API class DiskMigrationJobTargetDetails.

Details of the target disk in Compute Engine.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.VMMigration.V1.dll

## Constructors

### DiskMigrationJobTargetDetails()

    public DiskMigrationJobTargetDetails()

### DiskMigrationJobTargetDetails(DiskMigrationJobTargetDetails)

    public DiskMigrationJobTargetDetails(DiskMigrationJobTargetDetails other)

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

## Properties

### Encryption

    public Encryption Encryption { get; set; }

Optional. The encryption to apply to the disk.
If the DiskMigrationJob parent Source resource has an encryption, this
field must be set to the same encryption key.

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

### Labels

    public MapField<string, string> Labels { get; }

Optional. A map of labels to associate with the disk.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### TargetDisk

    public ComputeEngineDisk TargetDisk { get; set; }

Required. The target disk.

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

### TargetProject

    public string TargetProject { get; set; }

Required. The name of the resource of type TargetProject which represents
the Compute Engine project in which to create the disk. Should be of the
form: projects/{project}/locations/global/targetProjects/{target-project}

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

### TargetProjectAsTargetProjectName

    public TargetProjectName TargetProjectAsTargetProjectName { get; set; }

[TargetProjectName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.TargetProjectName)-typed view over the [TargetProject](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.DiskMigrationJobTargetDetails#Google_Cloud_VMMigration_V1_DiskMigrationJobTargetDetails_TargetProject) resource name property.

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

### TargetStorageCase

    public DiskMigrationJobTargetDetails.TargetStorageOneofCase TargetStorageCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.DiskMigrationJobTargetDetailshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.DiskMigrationJobTargetDetails.TargetStorageOneofCase` |   |