DiskResponse class

An instance-attached disk resource.

Constructors

DiskResponse({required Input<bool> autoDelete, required Input<bool> boot, required Input<String> deviceName, required Input<String> diskSizeGb, required Input<List<GuestOsFeatureResponse>> guestOsFeatures, required Input<String> index, required Input<String> interface, required Input<String> kind, required Input<List<String>> licenses, required Input<String> mode, required Input<String> source, required Input<String> type})
Creates a new DiskResponse. autoDelete Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). boot Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. deviceName Indicates 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. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks. diskSizeGb Indicates the size of the disk in base-2 GB. guestOsFeatures Indicates 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. index 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. interface Indicates 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. Valid values: * NVME * SCSI kind Type of the resource. Always compute#attachedDisk for attached disks. licenses A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images. mode 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. Valid values: * READ_ONLY * READ_WRITE source Indicates a valid partial or full URL to an existing Persistent Disk resource. type Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values: * PERSISTENT * SCRATCH
const
DiskResponse.fromMap(Map<String, dynamic> map)
factory

Properties

autoDelete → Input<bool>
Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
final
boot → Input<bool>
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
final
deviceName → Input<String>
Indicates 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. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks.
final
diskSizeGb → Input<String>
Indicates the size of the disk in base-2 GB.
final
guestOsFeatures → Input<List<GuestOsFeatureResponse>>
Indicates 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.
final
hashCode → int
The hash code for this object.
no setterinherited
index → Input<String>
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.
final
interface → Input<String>
Indicates 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. Valid values: * NVME * SCSI
final
kind → Input<String>
Type of the resource. Always compute#attachedDisk for attached disks.
final
licenses → Input<List<String>>
A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.
final
mode → Input<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. Valid values: * READ_ONLY * READ_WRITE
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → Input<String>
Indicates a valid partial or full URL to an existing Persistent Disk resource.
final
type → Input<String>
Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values: * PERSISTENT * SCRATCH
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited