2.16.0 (latest) 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class AllocationPolicy.Types.AttachedDisk : IMessage<AllocationPolicy.Types.AttachedDisk>, IEquatable<AllocationPolicy.Types.AttachedDisk>, IDeepCloneable<AllocationPolicy.Types.AttachedDisk>, IBufferMessage, IMessage

Reference documentation and code samples for the Batch v1 API class AllocationPolicy.Types.AttachedDisk.

A new or an existing persistent disk (PD) or a local ssd attached to a VM
instance.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[AllocationPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.AllocationPolicy.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.AllocationPolicy.Types.md.txt)[AttachedDisk](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.AllocationPolicy.Types.AttachedDisk.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AllocationPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.AllocationPolicy.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.AllocationPolicy.Types.md.txt)[AttachedDisk](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.AllocationPolicy.Types.AttachedDisk.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[AllocationPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.AllocationPolicy.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.AllocationPolicy.Types.md.txt)[AttachedDisk](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.AllocationPolicy.Types.AttachedDisk.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.Batch.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.md.txt)

## Assembly

Google.Cloud.Batch.V1.dll

## Constructors

### AttachedDisk()

    public AttachedDisk()

### AttachedDisk(AttachedDisk)

    public AttachedDisk(AllocationPolicy.Types.AttachedDisk other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `AllocationPolicyTypesAttachedDisk` |

## Properties

### AttachedCase

    public AllocationPolicy.Types.AttachedDisk.AttachedOneofCase AttachedCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AllocationPolicyTypesAttachedDiskAttachedOneofCase` |   |

### DeviceName

    public string DeviceName { get; set; }

Device name that the guest operating system will see.
It is used by Runnable.volumes field to mount disks. So please specify
the device_name if you want Batch to help mount the disk, and it should
match the device_name field in volumes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ExistingDisk

    public string ExistingDisk { get; set; }

Name of an existing PD.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### HasExistingDisk

    public bool HasExistingDisk { get; }

Gets whether the "existing_disk" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### NewDisk

    public AllocationPolicy.Types.Disk NewDisk { get; set; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AllocationPolicyTypesDisk` |   |