Disk class

A new persistent disk or a local ssd.

A VM can only have one local SSD setting but multiple local SSD partitions. See https://cloud.google.com/compute/docs/disks#pdspecs and https://cloud.google.com/compute/docs/disks#localssds.

Constructors

Disk({String? diskInterface, String? image, String? sizeGb, String? snapshot, String? type})
Disk.fromJson(Map json_)

Properties

diskInterface String?
Local SSDs are available through both "SCSI" and "NVMe" interfaces.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
image String?
URL for a VM image to use as the data source for this disk.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeGb String?
Disk size in GB.
getter/setter pair
snapshot String?
Name of a snapshot used as the data source.
getter/setter pair
type String?
Disk type as shown in gcloud compute disk-types list.
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