public sealed class LocalDiskInitializeParams : IMessage<LocalDiskInitializeParams>, IEquatable<LocalDiskInitializeParams>, IDeepCloneable<LocalDiskInitializeParams>, IBufferMessage, IMessage
Reference documentation and code samples for the AI Platform Notebooks v1 API class LocalDiskInitializeParams.
Input only. Specifies the parameters for a new disk that will be created
alongside the new instance. Use initialization parameters to create boot
disks or local SSDs attached to the new runtime.
This property is mutually exclusive with the source property; you can only
define one or the other, but not both.
Optional. Specifies the disk name. If not specified, the default is to use the name
of the instance. If the disk with the instance name exists already in the
given zone/region, a new name will be automatically generated.
Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk
will be the same size as the image (usually 10GB). If specified, the size
must be equal to or larger than 10GB. Default 100 GB.
[[["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 \u003ccode\u003eLocalDiskInitializeParams\u003c/code\u003e class in the Google Cloud Notebooks v1 API defines parameters for creating new disks alongside new instances, including boot disks and local SSDs.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows configuration of a disk's properties like description, name, size (in GB), and type, with the size defaulting to 100 GB if not specified and the minimum requirement being 10GB.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDiskType\u003c/code\u003e property, by default set to \u003ccode\u003ePD_STANDARD\u003c/code\u003e, specifies the type of boot disk to be attached to the instance, and labels can be applied to the disk, if it is persistent.\u003c/p\u003e\n"],["\u003cp\u003eVersion 2.5.0 is the latest version available for \u003ccode\u003eLocalDiskInitializeParams\u003c/code\u003e, with previous versions dating back to 1.0.0-beta04 also being accessible.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocalDiskInitializeParams\u003c/code\u003e class implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, and the \u003ccode\u003esource\u003c/code\u003e property is mutually exclusive with other properties.\u003c/p\u003e\n"]]],[],null,["# AI Platform Notebooks v1 API - Class LocalDiskInitializeParams (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.LocalDiskInitializeParams)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.4.0/Google.Cloud.Notebooks.V1.LocalDiskInitializeParams)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.3.0/Google.Cloud.Notebooks.V1.LocalDiskInitializeParams)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.2.0/Google.Cloud.Notebooks.V1.LocalDiskInitializeParams)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.1.0/Google.Cloud.Notebooks.V1.LocalDiskInitializeParams)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.0.0/Google.Cloud.Notebooks.V1.LocalDiskInitializeParams)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/1.0.0-beta04/Google.Cloud.Notebooks.V1.LocalDiskInitializeParams) \n\n public sealed class LocalDiskInitializeParams : IMessage\u003cLocalDiskInitializeParams\u003e, IEquatable\u003cLocalDiskInitializeParams\u003e, IDeepCloneable\u003cLocalDiskInitializeParams\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AI Platform Notebooks v1 API class LocalDiskInitializeParams.\n\nInput only. Specifies the parameters for a new disk that will be created\nalongside the new instance. Use initialization parameters to create boot\ndisks or local SSDs attached to the new runtime.\nThis property is mutually exclusive with the source property; you can only\ndefine one or the other, but not both. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LocalDiskInitializeParams \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LocalDiskInitializeParams](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.LocalDiskInitializeParams), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LocalDiskInitializeParams](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.LocalDiskInitializeParams), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LocalDiskInitializeParams](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.LocalDiskInitializeParams), [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### LocalDiskInitializeParams()\n\n public LocalDiskInitializeParams()\n\n### LocalDiskInitializeParams(LocalDiskInitializeParams)\n\n public LocalDiskInitializeParams(LocalDiskInitializeParams other)\n\nProperties\n----------\n\n### Description\n\n public string Description { get; set; }\n\nOptional. Provide this property when creating the disk.\n\n### DiskName\n\n public string DiskName { get; set; }\n\nOptional. Specifies the disk name. If not specified, the default is to use the name\nof the instance. If the disk with the instance name exists already in the\ngiven zone/region, a new name will be automatically generated.\n\n### DiskSizeGb\n\n public long DiskSizeGb { get; set; }\n\nOptional. Specifies the size of the disk in base-2 GB. If not specified, the disk\nwill be the same size as the image (usually 10GB). If specified, the size\nmust be equal to or larger than 10GB. Default 100 GB.\n\n### DiskType\n\n public LocalDiskInitializeParams.Types.DiskType DiskType { get; set; }\n\nInput only. The type of the boot disk attached to this instance, defaults to\nstandard persistent disk (`PD_STANDARD`).\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nOptional. Labels to apply to this disk. These can be later modified by the\ndisks.setLabels method. This field is only applicable for persistent disks."]]