AttachedDisk class

An instance-attached disk resource.

Constructors

AttachedDisk()
AttachedDisk.fromJson(Map _json)

Properties

autoDelete bool
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
read / write
boot bool
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
read / write
deviceName String
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. [...]
read / write
diskEncryptionKey CustomerEncryptionKey
Encrypts or decrypts a disk using a customer-supplied encryption key. [...]
read / write
diskSizeGb String
The size of the disk in GB.
read / write
guestOsFeatures List<GuestOsFeature>
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
index int
Output Only A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
read / write
initializeParams AttachedDiskInitializeParams
Input Only Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. [...]
read / write
interface String
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Possible string values are: [...]
read / write
kind String
Output Only Type of the resource. Always compute#attachedDisk for attached disks.
read / write
licenses List<String>
Output Only Any valid publicly visible licenses.
read / write
mode String
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Possible string values are: [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shieldedInstanceInitialState InitialStateConfig
Output Only shielded vm initial state stored on disk
read / write
source String
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. [...]
read / write
type String
Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Possible string values are: [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited