public sealed class ComputeEngineTargetDefaults : IMessage<ComputeEngineTargetDefaults>, IEquatable<ComputeEngineTargetDefaults>, IDeepCloneable<ComputeEngineTargetDefaults>, IBufferMessage, IMessage
Reference documentation and code samples for the VM Migration v1 API class ComputeEngineTargetDefaults.
ComputeEngineTargetDefaults is a collection of details for creating a VM in a
target Compute Engine project.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eComputeEngineTargetDefaults\u003c/code\u003e class in the VM Migration v1 API provides details for creating a virtual machine (VM) in a target Compute Engine project, and is the latest version at 2.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows for the configuration of various VM properties, such as machine type, disk type, hostname, network interfaces, and license type.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities for message handling, comparison, deep cloning, and buffered message operations.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties to manage VM metadata, labels, network tags, and the specification of additional licenses.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eComputeEngineTargetDefaults\u003c/code\u003e class contains constructors to initialize the object with default settings or by cloning from an existing \u003ccode\u003eComputeEngineTargetDefaults\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# VM Migration v1 API - Class ComputeEngineTargetDefaults (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.5.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.4.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.3.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.2.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.1.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.0.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/1.0.0/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults) \n\n public sealed class ComputeEngineTargetDefaults : IMessage\u003cComputeEngineTargetDefaults\u003e, IEquatable\u003cComputeEngineTargetDefaults\u003e, IDeepCloneable\u003cComputeEngineTargetDefaults\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the VM Migration v1 API class ComputeEngineTargetDefaults.\n\nComputeEngineTargetDefaults is a collection of details for creating a VM in a\ntarget Compute Engine project. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ComputeEngineTargetDefaults \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ComputeEngineTargetDefaults](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ComputeEngineTargetDefaults](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ComputeEngineTargetDefaults](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.VMMigration.V1](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.VMMigration.V1.dll\n\nConstructors\n------------\n\n### ComputeEngineTargetDefaults()\n\n public ComputeEngineTargetDefaults()\n\n### ComputeEngineTargetDefaults(ComputeEngineTargetDefaults)\n\n public ComputeEngineTargetDefaults(ComputeEngineTargetDefaults other)\n\nProperties\n----------\n\n### AdditionalLicenses\n\n public RepeatedField\u003cstring\u003e AdditionalLicenses { get; }\n\nAdditional licenses to assign to the VM.\n\n### AppliedLicense\n\n public AppliedLicense AppliedLicense { get; set; }\n\nOutput only. The OS license returned from the adaptation module report.\n\n### BootOption\n\n public ComputeEngineBootOption BootOption { get; set; }\n\nOutput only. The VM Boot Option, as set in the source vm.\n\n### ComputeScheduling\n\n public ComputeScheduling ComputeScheduling { get; set; }\n\nCompute instance scheduling information (if empty default is used).\n\n### DiskType\n\n public ComputeEngineDiskType DiskType { get; set; }\n\nThe disk type to use in the VM.\n\n### Hostname\n\n public string Hostname { get; set; }\n\nThe hostname to assign to the VM.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nA map of labels to associate with the VM.\n\n### LicenseType\n\n public ComputeEngineLicenseType LicenseType { get; set; }\n\nThe license type to use in OS adaptation.\n\n### MachineType\n\n public string MachineType { get; set; }\n\nThe machine type to create the VM with.\n\n### MachineTypeSeries\n\n public string MachineTypeSeries { get; set; }\n\nThe machine type series to create the VM with.\n\n### Metadata\n\n public MapField\u003cstring, string\u003e Metadata { get; }\n\nThe metadata key/value pairs to assign to the VM.\n\n### NetworkInterfaces\n\n public RepeatedField\u003cNetworkInterface\u003e NetworkInterfaces { get; }\n\nList of NICs connected to this VM.\n\n### NetworkTags\n\n public RepeatedField\u003cstring\u003e NetworkTags { get; }\n\nA map of network tags to associate with the VM.\n\n### SecureBoot\n\n public bool SecureBoot { get; set; }\n\nDefines whether the instance has Secure Boot enabled.\nThis can be set to true only if the vm boot option is EFI.\n\n### ServiceAccount\n\n public string ServiceAccount { get; set; }\n\nThe service account to associate the VM with.\n\n### TargetProject\n\n public string TargetProject { get; set; }\n\nThe full path of the resource of type TargetProject which represents the\nCompute Engine project in which to create this VM.\n\n### TargetProjectAsTargetProjectName\n\n public TargetProjectName TargetProjectAsTargetProjectName { get; set; }\n\n[TargetProjectName](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.TargetProjectName)-typed view over the [TargetProject](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.ComputeEngineTargetDefaults#Google_Cloud_VMMigration_V1_ComputeEngineTargetDefaults_TargetProject) resource name property.\n\n### VmName\n\n public string VmName { get; set; }\n\nThe name of the VM to create.\n\n### Zone\n\n public string Zone { get; set; }\n\nThe zone in which to create the VM."]]