# Vertex AI Notebooks v1beta1 API - Class VmImage (2.0.0-beta06)

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

- [2.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V1Beta1/latest/Google.Cloud.Notebooks.V1Beta1.VmImage)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V1Beta1/2.0.0-beta05/Google.Cloud.Notebooks.V1Beta1.VmImage)
- [1.0.0-beta04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V1Beta1/1.0.0-beta04/Google.Cloud.Notebooks.V1Beta1.VmImage)

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

Reference documentation and code samples for the Vertex AI Notebooks v1beta1 API class VmImage.

Definition of a custom Compute Engine virtual machine image for starting a
notebook instance with the environment installed directly on the VM.

## Inheritance

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

## Implements

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

## 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.Notebooks.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V1Beta1/latest/Google.Cloud.Notebooks.V1Beta1)

## Assembly

Google.Cloud.Notebooks.V1Beta1.dll

## Constructors

### VmImage()

    public VmImage()

### VmImage(VmImage)

    public VmImage(VmImage other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V1Beta1/latest/Google.Cloud.Notebooks.V1Beta1.VmImage` |

## Properties

### HasImageFamily

    public bool HasImageFamily { get; }

Gets whether the "image_family" field is set

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

### HasImageName

    public bool HasImageName { get; }

Gets whether the "image_name" field is set

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

### ImageCase

    public VmImage.ImageOneofCase ImageCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V1Beta1/latest/Google.Cloud.Notebooks.V1Beta1.VmImagehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V1Beta1/latest/Google.Cloud.Notebooks.V1Beta1.VmImage.ImageOneofCase` |   |

### ImageFamily

    public string ImageFamily { get; set; }

Use this VM image family to find the image; the newest image in this
family will be used.

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

### ImageName

    public string ImageName { get; set; }

Use VM image name to find the image.

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

### Project

    public string Project { get; set; }

Required. The name of the Google Cloud project that this VM image belongs to.
Format: `projects/{project_id}`

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