VirtualMachine class

Carries information about a Compute Engine VM resource.

Constructors

VirtualMachine({List<Accelerator>? accelerators, int? bootDiskSizeGb, String? bootImage, String? cpuPlatform, List<Disk>? disks, List<String>? dockerCacheImages, bool? enableStackdriverMonitoring, Map<String, String>? labels, String? machineType, Network? network, String? nvidiaDriverVersion, bool? preemptible, String? reservation, ServiceAccount? serviceAccount, List<Volume>? volumes})
VirtualMachine.fromJson(Map _json)

Properties

accelerators List<Accelerator>?
The list of accelerators to attach to the VM.
getter/setter pair
bootDiskSizeGb int?
The size of the boot disk, in GB.
getter/setter pair
bootImage String?
The host operating system image to use.
getter/setter pair
cpuPlatform String?
The CPU platform to request.
getter/setter pair
disks List<Disk>?
The list of disks to create and attach to the VM.
getter/setter pair
dockerCacheImages List<String>?
The Compute Engine Disk Images to use as a Docker cache.
getter/setter pair
enableStackdriverMonitoring bool?
Whether Stackdriver monitoring should be enabled on the VM.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
labels Map<String, String>?
Optional set of labels to apply to the VM and any attached disk resources.
getter/setter pair
machineType String?
The machine type of the virtual machine to create.
getter/setter pair
network Network?
The VM network configuration.
getter/setter pair
nvidiaDriverVersion String?
The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator.
getter/setter pair
preemptible bool?
If true, allocate a preemptible VM.
getter/setter pair
reservation String?
If specified, the VM will only be allocated inside the matching reservation.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceAccount ServiceAccount?
The service account to install on the VM.
getter/setter pair
volumes List<Volume>?
The list of disks and other storage to create or attach to the VM.
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