# Cloud Life Sciences v2beta API - Class ExistingDisk (2.0.0-beta07)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta07 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.ExistingDisk)
- [2.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/2.0.0-beta06/Google.Cloud.LifeSciences.V2Beta.ExistingDisk)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/1.0.0-beta02/Google.Cloud.LifeSciences.V2Beta.ExistingDisk)

    public sealed class ExistingDisk : IMessage<ExistingDisk>, IEquatable<ExistingDisk>, IDeepCloneable<ExistingDisk>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Life Sciences v2beta API class ExistingDisk.

Configuration for an existing disk to be attached to the VM.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ExistingDisk

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ExistingDisk](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.ExistingDisk), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExistingDisk](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.LifeSciences.V2Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta)

## Assembly

Google.Cloud.LifeSciences.V2Beta.dll

## Constructors

### ExistingDisk()

    public ExistingDisk()

### ExistingDisk(ExistingDisk)

    public ExistingDisk(ExistingDisk other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.ExistingDisk` |

## Properties

### Disk

    public string Disk { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |