# Vertex AI Notebooks v2 API - Class DataDisk (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.DataDisk)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.2.0/Google.Cloud.Notebooks.V2.DataDisk)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.1.0/Google.Cloud.Notebooks.V2.DataDisk)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.0.0/Google.Cloud.Notebooks.V2.DataDisk)

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

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

An instance-attached disk resource.

## Inheritance

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

## Implements

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

### DataDisk()

    public DataDisk()

### DataDisk(DataDisk)

    public DataDisk(DataDisk other)

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

## Properties

### DiskEncryption

    public DiskEncryption DiskEncryption { get; set; }

Optional. Input only. Disk encryption method used on the boot and data
disks, defaults to GMEK.

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

### DiskSizeGb

    public long DiskSizeGb { get; set; }

Optional. The size of the disk in GB attached to this VM instance, up to a
maximum of 64000 GB (64 TB). If not specified, this defaults to 100.

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

### DiskType

    public DiskType DiskType { get; set; }

Optional. Input only. Indicates the type of the disk.

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

### KmsKey

    public string KmsKey { get; set; }

Optional. Input only. The KMS key used to encrypt the disks, only
applicable if disk_encryption is CMEK. Format:
`projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}`

Learn more about using your own encryption keys.

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