[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eVmImage\u003c/code\u003e class in the Google.Cloud.Notebooks.V2 API defines a custom Compute Engine virtual machine image for creating notebook instances.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVmImage\u003c/code\u003e class is available in multiple versions, with the latest being 1.2.0, and also implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties like \u003ccode\u003eFamily\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eProject\u003c/code\u003e, \u003ccode\u003eHasFamily\u003c/code\u003e, and \u003ccode\u003eHasName\u003c/code\u003e to configure and identify the VM image, with \u003ccode\u003eProject\u003c/code\u003e being a required field.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the VM image either by its family name using the \u003ccode\u003eFamily\u003c/code\u003e property or the specific image name with the \u003ccode\u003eName\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eImageCase\u003c/code\u003e property is available to identify whether the image is set by name, or family.\u003c/p\u003e\n"]]],[],null,["# Notebooks v2 API - Class VmImage (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.VmImage)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.1.0/Google.Cloud.Notebooks.V2.VmImage)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.0.0/Google.Cloud.Notebooks.V2.VmImage) \n\n public sealed class VmImage : IMessage\u003cVmImage\u003e, IEquatable\u003cVmImage\u003e, IDeepCloneable\u003cVmImage\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Notebooks v2 API class VmImage.\n\nDefinition of a custom Compute Engine virtual machine image for starting a\nnotebook instance with the environment installed directly on the VM. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e VmImage \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[VmImage](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.VmImage), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[VmImage](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.VmImage), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[VmImage](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.VmImage), [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.Notebooks.V2](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Notebooks.V2.dll\n\nConstructors\n------------\n\n### VmImage()\n\n public VmImage()\n\n### VmImage(VmImage)\n\n public VmImage(VmImage other)\n\nProperties\n----------\n\n### Family\n\n public string Family { get; set; }\n\nOptional. Use this VM image family to find the image; the newest image in\nthis family will be used.\n\n### HasFamily\n\n public bool HasFamily { get; }\n\nGets whether the \"family\" field is set\n\n### HasName\n\n public bool HasName { get; }\n\nGets whether the \"name\" field is set\n\n### ImageCase\n\n public VmImage.ImageOneofCase ImageCase { get; }\n\n### Name\n\n public string Name { get; set; }\n\nOptional. Use VM image name to find the image.\n\n### Project\n\n public string Project { get; set; }\n\nRequired. The name of the Google Cloud project that this VM image belongs\nto. Format: `{project_id}`"]]