# VM Migration v1 API - Class ComputeEngineTargetDetails (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.ComputeEngineTargetDetails)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.8.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDetails)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.7.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDetails)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.6.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDetails)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.5.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDetails)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.4.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDetails)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.3.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDetails)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.2.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDetails)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.1.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDetails)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.0.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDetails)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/1.0.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDetails)

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

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

ComputeEngineTargetDetails is a collection of details for creating a VM in a
target Compute Engine project.

## Inheritance

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

## Implements

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

### ComputeEngineTargetDetails()

    public ComputeEngineTargetDetails()

### ComputeEngineTargetDetails(ComputeEngineTargetDetails)

    public ComputeEngineTargetDetails(ComputeEngineTargetDetails other)

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

## Properties

### AdaptationModifiers

    public RepeatedField<AdaptationModifier> AdaptationModifiers { get; }

Optional. Modifiers to be used as configuration of the OS adaptation
process.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.AdaptationModifier` |   |

### AdditionalLicenses

    public RepeatedField<string> AdditionalLicenses { get; }

Additional licenses to assign to the VM.

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

### AppliedLicense

    public AppliedLicense AppliedLicense { get; set; }

The OS license returned from the adaptation module report.

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

### BootConversion

    public BootConversion BootConversion { get; set; }

Optional. By default the virtual machine will keep its existing boot
option. Setting this property will trigger an internal process which will
convert the virtual machine from using the existing boot option to another.

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

### BootOption

    public ComputeEngineBootOption BootOption { get; set; }

The VM Boot Option, as set in the source VM.

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

### ComputeScheduling

    public ComputeScheduling ComputeScheduling { get; set; }

Compute instance scheduling information (if empty default is used).

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

### DiskReplicaZones

    public RepeatedField<string> DiskReplicaZones { get; }

Optional. Additional replica zones of the target regional disks.
If this list is not empty a regional disk will be created. The first
supported zone would be the one stated in the
\[zone\]\[google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone\] field.
The rest are taken from this list. Please refer to the [regional disk
creation
API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
for further details about regional vs zonal disks. If not specified, a
zonal disk will be created in the same zone the VM is created.

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

### DiskType

    public ComputeEngineDiskType DiskType { get; set; }

The disk type to use in the VM.

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

### EnableIntegrityMonitoring

    public bool EnableIntegrityMonitoring { get; set; }

Optional. Defines whether the instance has integrity monitoring enabled.

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

### EnableVtpm

    public bool EnableVtpm { get; set; }

Optional. Defines whether the instance has vTPM enabled.

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

### Encryption

    public Encryption Encryption { get; set; }

Optional. The encryption to apply to the VM disks.

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

### Hostname

    public string Hostname { get; set; }

The hostname to assign to the VM.

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

### Labels

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

A map of labels to associate with the VM.

| **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` |   |

### LicenseType

    public ComputeEngineLicenseType LicenseType { get; set; }

The license type to use in OS adaptation.

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

### MachineType

    public string MachineType { get; set; }

The machine type to create the VM with.

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

### MachineTypeSeries

    public string MachineTypeSeries { get; set; }

The machine type series to create the VM with.

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

### Metadata

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

The metadata key/value pairs to assign to the VM.

| **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` |   |

### NetworkInterfaces

    public RepeatedField<NetworkInterface> NetworkInterfaces { get; }

List of NICs connected to this VM.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.NetworkInterface` |   |

### NetworkTags

    public RepeatedField<string> NetworkTags { get; }

A list of network tags to associate with the VM.

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

### Project

    public string Project { get; set; }

The Google Cloud target project ID or project name.

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

### SecureBoot

    public bool SecureBoot { get; set; }

Defines whether the instance has Secure Boot enabled.
This can be set to true only if the VM boot option is EFI.

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

### ServiceAccount

    public string ServiceAccount { get; set; }

The service account to associate the VM with.

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

### StoragePool

    public string StoragePool { get; set; }

Optional. The storage pool used for the VM disks.
If specified this will be the storage pool in which the disk is created.
This is the full path of the storage pool resource, for example:
"projects/my-project/zones/us-central1-a/storagePools/my-storage-pool".
The storage pool must be in the same project and zone as the target disks.
The storage pool's type must match the disk type.

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

### VmName

    public string VmName { get; set; }

The name of the VM to create.

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

### Zone

    public string Zone { get; set; }

The zone in which to create the VM.

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