# Google Cloud Backup Dr V1 Client - Class DiskMode (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class DiskMode.

List of the Disk Modes.

Protobuf type `google.cloud.backupdr.v1.AttachedDisk.DiskMode`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1 \\ AttachedDisk

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### DISK_MODE_UNSPECIFIED

    Value: 0

Default value, which is unused.

Generated from protobuf enum `DISK_MODE_UNSPECIFIED = 0;`

### READ_WRITE

    Value: 1

Attaches this disk in read-write mode. Only one
virtual machine at a time can be attached to a disk in read-write mode.

Generated from protobuf enum `READ_WRITE = 1;`

### READ_ONLY

    Value: 2

Attaches this disk in read-only mode. Multiple virtual machines can use
a disk in read-only mode at a time.

Generated from protobuf enum `READ_ONLY = 2;`

### LOCKED

    Value: 3

The disk is locked for administrative reasons. Nobody else
can use the disk. This mode is used (for example) when taking
a snapshot of a disk to prevent mounting the disk while it is
being snapshotted.

Generated from protobuf enum `LOCKED = 3;`