Optional. Output only. Specifies whether the disk will be auto-deleted when the
instance is deleted (but not when the disk is detached from the instance).
Optional. Output only. Specifies a unique device name
of your choice that is reflected into the
/dev/disk/by-id/google-* tree of a Linux operating system running within
the instance. This name can be used to reference the device for mounting,
resizing, and so on, from within the instance.
If not specified, the server chooses a default device name to apply to this
disk, in the form persistent-disk-x, where x is a number assigned by Google
Compute Engine. This field is only applicable for persistent disks.
public RepeatedField<LocalDisk.Types.RuntimeGuestOsFeature> GuestOsFeatures { get; }
Output only. Indicates a list of features to enable on the guest operating system.
Applicable only for bootable images. Read Enabling guest operating
system features to see a list of available options.
Output only. A zero-based index to this disk, where 0 is reserved for the
boot disk. If you have many disks attached to an instance, each disk would
have a unique index number.
public LocalDiskInitializeParams InitializeParams { get; set; }
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 instance.
This property is mutually exclusive with the source property; you can only
define one or the other, but not both.
Specifies the disk interface to use for attaching this disk, which is
either SCSI or NVME. The default is SCSI. Persistent disks must always use
SCSI and the request will fail if you attempt to attach a persistent disk
in any other format than SCSI. Local SSDs can use either NVME or SCSI. For
performance characteristics of SCSI over NVMe, see Local SSD performance.
Valid values:
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
If not specified, the default is to attach the disk in READ_WRITE mode.
Valid values:
[[["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\u003eThis documentation covers the \u003ccode\u003eLocalDisk\u003c/code\u003e class within the Google Cloud Notebooks v1 API, offering detailed reference information and code samples.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocalDisk\u003c/code\u003e class represents a locally attached disk resource in the AI Platform Notebooks and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class, implementing multiple interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines the available versions of the \u003ccode\u003eLocalDisk\u003c/code\u003e class, from the latest 2.5.0 down to the 1.0.0-beta04 version.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLocalDisk\u003c/code\u003e properties include configurations like \u003ccode\u003eAutoDelete\u003c/code\u003e, \u003ccode\u003eBoot\u003c/code\u003e, \u003ccode\u003eDeviceName\u003c/code\u003e, \u003ccode\u003eInterface\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e, allowing users to define various disk behaviors and characteristics.\u003c/p\u003e\n"],["\u003cp\u003eThe class has multiple properties which defines its configuration, such as \u003ccode\u003eInitializeParams\u003c/code\u003e, which specifies parameters for creating a new disk alongside an instance, and \u003ccode\u003eGuestOsFeatures\u003c/code\u003e, which are features enabled on the guest operating system.\u003c/p\u003e\n"]]],[],null,["# AI Platform Notebooks v1 API - Class LocalDisk (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.LocalDisk)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.4.0/Google.Cloud.Notebooks.V1.LocalDisk)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.3.0/Google.Cloud.Notebooks.V1.LocalDisk)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.2.0/Google.Cloud.Notebooks.V1.LocalDisk)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.1.0/Google.Cloud.Notebooks.V1.LocalDisk)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.0.0/Google.Cloud.Notebooks.V1.LocalDisk)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/1.0.0-beta04/Google.Cloud.Notebooks.V1.LocalDisk) \n\n public sealed class LocalDisk : IMessage\u003cLocalDisk\u003e, IEquatable\u003cLocalDisk\u003e, IDeepCloneable\u003cLocalDisk\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AI Platform Notebooks v1 API class LocalDisk.\n\nA Local attached disk resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LocalDisk \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LocalDisk](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.LocalDisk), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LocalDisk](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.LocalDisk), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LocalDisk](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.LocalDisk), [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### LocalDisk()\n\n public LocalDisk()\n\n### LocalDisk(LocalDisk)\n\n public LocalDisk(LocalDisk other)\n\nProperties\n----------\n\n### AutoDelete\n\n public bool AutoDelete { get; set; }\n\nOptional. Output only. Specifies whether the disk will be auto-deleted when the\ninstance is deleted (but not when the disk is detached from the instance).\n\n### Boot\n\n public bool Boot { get; set; }\n\nOptional. Output only. Indicates that this is a boot disk. The virtual machine\nwill use the first partition of the disk for its root filesystem.\n\n### DeviceName\n\n public string DeviceName { get; set; }\n\nOptional. Output only. Specifies a unique device name\nof your choice that is reflected into the\n`/dev/disk/by-id/google-*` tree of a Linux operating system running within\nthe instance. This name can be used to reference the device for mounting,\nresizing, and so on, from within the instance.\n\nIf not specified, the server chooses a default device name to apply to this\ndisk, in the form persistent-disk-x, where x is a number assigned by Google\nCompute Engine. This field is only applicable for persistent disks.\n\n### GuestOsFeatures\n\n public RepeatedField\u003cLocalDisk.Types.RuntimeGuestOsFeature\u003e GuestOsFeatures { get; }\n\nOutput only. Indicates a list of features to enable on the guest operating system.\nApplicable only for bootable images. Read Enabling guest operating\nsystem features to see a list of available options.\n\n### Index\n\n public int Index { get; set; }\n\nOutput only. A zero-based index to this disk, where 0 is reserved for the\nboot disk. If you have many disks attached to an instance, each disk would\nhave a unique index number.\n\n### InitializeParams\n\n public LocalDiskInitializeParams InitializeParams { get; set; }\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 instance.\n\nThis property is mutually exclusive with the source property; you can only\ndefine one or the other, but not both.\n\n### Interface\n\n public string Interface { get; set; }\n\nSpecifies the disk interface to use for attaching this disk, which is\neither SCSI or NVME. The default is SCSI. Persistent disks must always use\nSCSI and the request will fail if you attempt to attach a persistent disk\nin any other format than SCSI. Local SSDs can use either NVME or SCSI. For\nperformance characteristics of SCSI over NVMe, see Local SSD performance.\nValid values:\n\n- `NVME`\n- `SCSI`\n\n### Kind\n\n public string Kind { get; set; }\n\nOutput only. Type of the resource. Always compute#attachedDisk for attached disks.\n\n### Licenses\n\n public RepeatedField\u003cstring\u003e Licenses { get; }\n\nOutput only. Any valid publicly visible licenses.\n\n### Mode\n\n public string Mode { get; set; }\n\nThe mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.\nIf not specified, the default is to attach the disk in `READ_WRITE` mode.\nValid values:\n\n- `READ_ONLY`\n- `READ_WRITE`\n\n### Source\n\n public string Source { get; set; }\n\nSpecifies a valid partial or full URL to an existing Persistent Disk\nresource.\n\n### Type\n\n public string Type { get; set; }\n\nSpecifies the type of the disk, either `SCRATCH` or `PERSISTENT`. If not\nspecified, the default is `PERSISTENT`.\nValid values:\n\n- `PERSISTENT`\n- `SCRATCH`"]]