Disk class

An instance-attached disk resource.

Constructors

Disk({bool? autoDelete, bool? boot, String? deviceName, String? diskSizeGb, List<GuestOsFeature>? guestOsFeatures, String? index, String? interface, String? kind, List<String>? licenses, String? mode, String? source, String? type})
Disk.fromJson(Map json_)

Properties

autoDelete bool?
Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
getter/setter pair
boot bool?
Indicates that this is a boot disk.
getter/setter pair
deviceName 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.
getter/setter pair
diskSizeGb String?
Indicates the size of the disk in base-2 GB.
getter/setter pair
guestOsFeatures List<GuestOsFeature>?
Indicates a list of features to enable on the guest operating system.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
index String?
A zero-based index to this disk, where 0 is reserved for the boot disk.
getter/setter pair
interface String?
Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.
getter/setter pair
kind String?
Type of the resource.
getter/setter pair
licenses List<String>?
A list of publicly visible licenses.
getter/setter pair
mode String?
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String?
Indicates a valid partial or full URL to an existing Persistent Disk resource.
getter/setter pair
type String?
Indicates the type of the disk, either SCRATCH or PERSISTENT.
getter/setter pair

Methods

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

Operators

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