[[["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-09-09 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eVmImage\u003c/code\u003e class within the AI Platform Notebooks v1 API is 2.5.0, and older versions are available for reference as well.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVmImage\u003c/code\u003e is a class that defines a custom Compute Engine virtual machine image for creating notebook instances with a pre-configured environment on the VM.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVmImage\u003c/code\u003e class includes properties like \u003ccode\u003eImageFamily\u003c/code\u003e, \u003ccode\u003eImageName\u003c/code\u003e, and \u003ccode\u003eProject\u003c/code\u003e that allow you to specify the details of the VM image you are using.\u003c/p\u003e\n"],["\u003cp\u003eThis class has specific constructors, including a default constructor and one that takes another \u003ccode\u003eVmImage\u003c/code\u003e object as a parameter for cloning purposes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVmImage\u003c/code\u003e has properties to check whether fields \u003ccode\u003eimage_family\u003c/code\u003e and \u003ccode\u003eimage_name\u003c/code\u003e have been set.\u003c/p\u003e\n"]]],[],null,["# AI Platform Notebooks v1 API - Class VmImage (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.VmImage)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.4.0/Google.Cloud.Notebooks.V1.VmImage)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.3.0/Google.Cloud.Notebooks.V1.VmImage)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.2.0/Google.Cloud.Notebooks.V1.VmImage)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.1.0/Google.Cloud.Notebooks.V1.VmImage)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.0.0/Google.Cloud.Notebooks.V1.VmImage)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/1.0.0-beta04/Google.Cloud.Notebooks.V1.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 AI Platform Notebooks v1 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.V1/latest/Google.Cloud.Notebooks.V1.VmImage), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[VmImage](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.VmImage), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[VmImage](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.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.V1](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Notebooks.V1.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### HasImageFamily\n\n public bool HasImageFamily { get; }\n\nGets whether the \"image_family\" field is set\n\n### HasImageName\n\n public bool HasImageName { get; }\n\nGets whether the \"image_name\" field is set\n\n### ImageCase\n\n public VmImage.ImageOneofCase ImageCase { get; }\n\n### ImageFamily\n\n public string ImageFamily { get; set; }\n\nUse this VM image family to find the image; the newest image in this\nfamily will be used.\n\n### ImageName\n\n public string ImageName { get; set; }\n\nUse 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 to.\nFormat: `{project_id}`"]]