Generated from protobuf enumDISK_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 enumREAD_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 enumREAD_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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Backup Dr V1 Client - Class DiskMode (0.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.7.0 (latest)](/php/docs/reference/cloud-backupdr/latest/V1.AttachedDisk.DiskMode)\n- [0.6.2](/php/docs/reference/cloud-backupdr/0.6.2/V1.AttachedDisk.DiskMode)\n- [0.5.1](/php/docs/reference/cloud-backupdr/0.5.1/V1.AttachedDisk.DiskMode)\n- [0.4.2](/php/docs/reference/cloud-backupdr/0.4.2/V1.AttachedDisk.DiskMode)\n- [0.3.0](/php/docs/reference/cloud-backupdr/0.3.0/V1.AttachedDisk.DiskMode)\n- [0.2.0](/php/docs/reference/cloud-backupdr/0.2.0/V1.AttachedDisk.DiskMode)\n- [0.1.0](/php/docs/reference/cloud-backupdr/0.1.0/V1.AttachedDisk.DiskMode) \nReference documentation and code samples for the Google Cloud Backup Dr V1 Client class DiskMode.\n\nList of the Disk Modes.\n\nProtobuf type `google.cloud.backupdr.v1.AttachedDisk.DiskMode`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BackupDR \\\\ V1 \\\\ AttachedDisk\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### DISK_MODE_UNSPECIFIED\n\n Value: 0\n\nDefault value, which is unused.\n\nGenerated from protobuf enum `DISK_MODE_UNSPECIFIED = 0;`\n\n### READ_WRITE\n\n Value: 1\n\nAttaches this disk in read-write mode. Only one\nvirtual machine at a time can be attached to a disk in read-write mode.\n\nGenerated from protobuf enum `READ_WRITE = 1;`\n\n### READ_ONLY\n\n Value: 2\n\nAttaches this disk in read-only mode. Multiple virtual machines can use\na disk in read-only mode at a time.\n\nGenerated from protobuf enum `READ_ONLY = 2;`\n\n### LOCKED\n\n Value: 3\n\nThe disk is locked for administrative reasons. Nobody else\ncan use the disk. This mode is used (for example) when taking\na snapshot of a disk to prevent mounting the disk while it is\nbeing snapshotted.\n\nGenerated from protobuf enum `LOCKED = 3;`"]]