A user-supplied name for the disk. Used when mounting the disk into
actions. The name must contain only upper and lowercase alphanumeric
characters and hyphens and cannot start with a hyphen.
The size, in GB, of the disk to attach. If the size is not
specified, a default is chosen to ensure reasonable I/O performance.
If the disk type is specified as local-ssd, multiple local drives are
automatically combined to provide the requested size. Note, however, that
each physical SSD is 375GB in size, and no more than 8 drives can be
attached to a single instance.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDisk\u003c/code\u003e class in the Google Cloud Life Sciences v2beta API represents a disk that can be attached to a virtual machine (VM).\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify disk properties like \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eSizeGb\u003c/code\u003e, \u003ccode\u003eSourceImage\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e to configure the attached disk.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDisk\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing various functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the Disk class is \u003ccode\u003e2.0.0-beta06\u003c/code\u003e, with prior versions \u003ccode\u003e2.0.0-beta05\u003c/code\u003e and \u003ccode\u003e1.0.0-beta02\u003c/code\u003e also available.\u003c/p\u003e\n"],["\u003cp\u003eIf the disk \u003ccode\u003eSizeGb\u003c/code\u003e is unspecified, a default size will be chosen to ensure reasonable I/O performance, and if \u003ccode\u003eType\u003c/code\u003e is unspecified, it defaults to \u003ccode\u003epd-standard\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Cloud Life Sciences v2beta API - Class Disk (2.0.0-beta06)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta06 (latest)](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Disk)\n- [2.0.0-beta05](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/2.0.0-beta05/Google.Cloud.LifeSciences.V2Beta.Disk)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/1.0.0-beta02/Google.Cloud.LifeSciences.V2Beta.Disk) \n\n public sealed class Disk : IMessage\u003cDisk\u003e, IEquatable\u003cDisk\u003e, IDeepCloneable\u003cDisk\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Life Sciences v2beta API class Disk.\n\nCarries information about a disk that can be attached to a VM.\n\nSee \u003chttps://cloud.google.com/compute/docs/disks/performance\u003e for more\ninformation about disk type, size, and performance considerations.\n\nSpecify either \\[`Volume`\\]\\[google.cloud.lifesciences.v2beta.Volume\\] or\n\\[`Disk`\\]\\[google.cloud.lifesciences.v2beta.Disk\\], but not both. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Disk \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Disk](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Disk), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Disk](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Disk), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Disk](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Disk), [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.LifeSciences.V2Beta](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.LifeSciences.V2Beta.dll\n\nConstructors\n------------\n\n### Disk()\n\n public Disk()\n\n### Disk(Disk)\n\n public Disk(Disk other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nA user-supplied name for the disk. Used when mounting the disk into\nactions. The name must contain only upper and lowercase alphanumeric\ncharacters and hyphens and cannot start with a hyphen.\n\n### SizeGb\n\n public int SizeGb { get; set; }\n\nThe size, in GB, of the disk to attach. If the size is not\nspecified, a default is chosen to ensure reasonable I/O performance.\n\nIf the disk type is specified as `local-ssd`, multiple local drives are\nautomatically combined to provide the requested size. Note, however, that\neach physical SSD is 375GB in size, and no more than 8 drives can be\nattached to a single instance.\n\n### SourceImage\n\n public string SourceImage { get; set; }\n\nAn optional image to put on the disk before attaching it to the VM.\n\n### Type\n\n public string Type { get; set; }\n\nThe Compute Engine disk type. If unspecified, `pd-standard` is used."]]