Disk class

Carries information about a disk that can be attached to a VM.

See https://cloud.google.com/compute/docs/disks/performance for more information about disk type, size, and performance considerations. Specify either Volume or Disk, but not both.

Constructors

Disk({String? name, int? sizeGb, String? sourceImage, String? type})
Disk.fromJson(Map _json)

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
A user-supplied name for the disk.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeGb int?
The size, in GB, of the disk to attach.
getter/setter pair
sourceImage String?
An optional image to put on the disk before attaching it to the VM.
getter/setter pair
type String?
The Compute Engine disk type.
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