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}
[[["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\u003eDataDisk\u003c/code\u003e class in the Google.Cloud.Notebooks.V2 API represents an instance-attached disk resource for use in notebooks.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, for various functionalities like message handling and deep cloning.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eDataDisk\u003c/code\u003e include \u003ccode\u003eDiskEncryption\u003c/code\u003e, \u003ccode\u003eDiskSizeGb\u003c/code\u003e, \u003ccode\u003eDiskType\u003c/code\u003e, and \u003ccode\u003eKmsKey\u003c/code\u003e, allowing configuration of disk encryption, size, type, and KMS key for CMEK encryption.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDataDisk\u003c/code\u003e class has a default constructor and a constructor that takes another \u003ccode\u003eDataDisk\u003c/code\u003e object for creating a copy.\u003c/p\u003e\n"]]],[],null,["# Notebooks v2 API - Class DataDisk (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.DataDisk)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.1.0/Google.Cloud.Notebooks.V2.DataDisk)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.0.0/Google.Cloud.Notebooks.V2.DataDisk) \n\n public sealed class DataDisk : IMessage\u003cDataDisk\u003e, IEquatable\u003cDataDisk\u003e, IDeepCloneable\u003cDataDisk\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Notebooks v2 API class DataDisk.\n\nAn instance-attached disk resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DataDisk \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DataDisk](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.DataDisk), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DataDisk](/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](/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) \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### DataDisk()\n\n public DataDisk()\n\n### DataDisk(DataDisk)\n\n public DataDisk(DataDisk other)\n\nProperties\n----------\n\n### DiskEncryption\n\n public DiskEncryption DiskEncryption { get; set; }\n\nOptional. Input only. Disk encryption method used on the boot and data\ndisks, defaults to GMEK.\n\n### DiskSizeGb\n\n public long DiskSizeGb { get; set; }\n\nOptional. The size of the disk in GB attached to this VM instance, up to a\nmaximum of 64000 GB (64 TB). If not specified, this defaults to 100.\n\n### DiskType\n\n public DiskType DiskType { get; set; }\n\nOptional. Input only. Indicates the type of the disk.\n\n### KmsKey\n\n public string KmsKey { get; set; }\n\nOptional. Input only. The KMS key used to encrypt the disks, only\napplicable if disk_encryption is CMEK. Format:\n`projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}`\n\nLearn more about using your own encryption keys."]]