If disk contains slashes, the Cloud Life Sciences API assumes that it is
a complete URL for the disk. If disk does not contain slashes, the Cloud
Life Sciences API assumes that the disk is a zonal disk and a URL will be
generated of the form zones/<zone>/disks/<disk>, where <zone> is the
zone in which the instance is allocated. The disk must be ext4 formatted.
If all Mount references to this disk have the read_only flag set to
true, the disk will be attached in read-only mode and can be shared with
other instances. Otherwise, the disk will be available for writing but
cannot be shared.
[[["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\u003eExistingDisk\u003c/code\u003e class in the Google Cloud Life Sciences v2beta API represents the configuration for attaching an existing disk to a virtual machine.\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, indicating its role in message handling, equality comparison, cloning, and buffered message operations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDisk\u003c/code\u003e property allows specifying the disk to be attached, either as a full URL or as a zonal disk name, with the API inferring the full URL in the latter case.\u003c/p\u003e\n"],["\u003cp\u003eThe behaviour of the disk when it is attached, is determined based on the 'read_only' flag set by the mount references.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors: a default constructor \u003ccode\u003eExistingDisk()\u003c/code\u003e and a copy constructor \u003ccode\u003eExistingDisk(ExistingDisk other)\u003c/code\u003e for creating new \u003ccode\u003eExistingDisk\u003c/code\u003e objects.\u003c/p\u003e\n"]]],[],null,["# Cloud Life Sciences v2beta API - Class ExistingDisk (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.ExistingDisk)\n- [2.0.0-beta05](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/2.0.0-beta05/Google.Cloud.LifeSciences.V2Beta.ExistingDisk)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/1.0.0-beta02/Google.Cloud.LifeSciences.V2Beta.ExistingDisk) \n\n public sealed class ExistingDisk : IMessage\u003cExistingDisk\u003e, IEquatable\u003cExistingDisk\u003e, IDeepCloneable\u003cExistingDisk\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Life Sciences v2beta API class ExistingDisk.\n\nConfiguration for an existing disk to be attached to the VM. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ExistingDisk \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ExistingDisk](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.ExistingDisk), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExistingDisk](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.ExistingDisk), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ExistingDisk](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.ExistingDisk), [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### ExistingDisk()\n\n public ExistingDisk()\n\n### ExistingDisk(ExistingDisk)\n\n public ExistingDisk(ExistingDisk other)\n\nProperties\n----------\n\n### Disk\n\n public string Disk { get; set; }\n\nIf `disk` contains slashes, the Cloud Life Sciences API assumes that it is\na complete URL for the disk. If `disk` does not contain slashes, the Cloud\nLife Sciences API assumes that the disk is a zonal disk and a URL will be\ngenerated of the form `zones/\u003czone\u003e/disks/\u003cdisk\u003e`, where `\u003czone\u003e` is the\nzone in which the instance is allocated. The disk must be ext4 formatted.\n\nIf all `Mount` references to this disk have the `read_only` flag set to\ntrue, the disk will be attached in `read-only` mode and can be shared with\nother instances. Otherwise, the disk will be available for writing but\ncannot be shared."]]