# Vertex AI Notebooks v2 API - Class GceSetup (1.3.0)

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

- [1.3.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.GceSetup)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.2.0/Google.Cloud.Notebooks.V2.GceSetup)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.1.0/Google.Cloud.Notebooks.V2.GceSetup)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.0.0/Google.Cloud.Notebooks.V2.GceSetup)

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

Reference documentation and code samples for the Vertex AI Notebooks v2 API class GceSetup.

The definition of how to configure a VM instance outside of Resources and
Identity.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.Notebooks.V2.dll

## Constructors

### GceSetup()

    public GceSetup()

### GceSetup(GceSetup)

    public GceSetup(GceSetup other)

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

## Properties

### AcceleratorConfigs

    public RepeatedField<AcceleratorConfig> AcceleratorConfigs { get; }

Optional. The hardware accelerators used on this instance. If you use
accelerators, make sure that your configuration has
[enough vCPUs and memory to support the `machine_type` you have
selected](https://cloud.google.com/compute/docs/gpus/#gpus-list).
Currently supports only one accelerator configuration.

| **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.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.AcceleratorConfig` |   |

### BootDisk

    public BootDisk BootDisk { get; set; }

Optional. The boot disk for the VM.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.BootDisk` |   |

### ContainerImage

    public ContainerImage ContainerImage { get; set; }

Optional. Use a container image to start the notebook instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.ContainerImage` |   |

### DataDisks

    public RepeatedField<DataDisk> DataDisks { get; }

Optional. Data disks attached to the VM instance.
Currently supports only one data disk.

| **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.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.DataDisk` |   |

### DisablePublicIp

    public bool DisablePublicIp { get; set; }

Optional. If true, no external IP will be assigned to this VM instance.

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

### EnableIpForwarding

    public bool EnableIpForwarding { get; set; }

Optional. Flag to enable ip forwarding or not, default false/off.
<https://cloud.google.com/vpc/docs/using-routes#canipforward>

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

### GpuDriverConfig

    public GPUDriverConfig GpuDriverConfig { get; set; }

Optional. Configuration for GPU drivers.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.GPUDriverConfig` |   |

### ImageCase

    public GceSetup.ImageOneofCase ImageCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.GceSetuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.GceSetup.ImageOneofCase` |   |

### MachineType

    public string MachineType { get; set; }

Optional. The machine type of the VM instance.
<https://cloud.google.com/compute/docs/machine-resource>

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

### Metadata

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

Optional. Custom metadata to apply to this instance.

| **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; }

Optional. The network interfaces for the VM.
Supports only one interface.

| **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.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.NetworkInterface` |   |

### ServiceAccounts

    public RepeatedField<ServiceAccount> ServiceAccounts { get; }

Optional. The service account that serves as an identity for the VM
instance. Currently supports only one service account.

| **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.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.ServiceAccount` |   |

### ShieldedInstanceConfig

    public ShieldedInstanceConfig ShieldedInstanceConfig { get; set; }

Optional. Shielded VM configuration.
[Images using supported Shielded VM
features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.ShieldedInstanceConfig` |   |

### Tags

    public RepeatedField<string> Tags { get; }

Optional. The Compute Engine tags to add to runtime (see [Tagging
instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).

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

### VmImage

    public VmImage VmImage { get; set; }

Optional. Use a Compute Engine VM image to start the notebook instance.

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