MachineImage class

Represents a machine image resource.

A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance.

For more information, seeMachine images.

Constructors

MachineImage({String? creationTimestamp, String? description, bool? guestFlush, String? id, InstanceProperties? instanceProperties, String? kind, String? labelFingerprint, Map<String, String>? labels, CustomerEncryptionKey? machineImageEncryptionKey, String? name, MachineImageParams? params, bool? satisfiesPzi, bool? satisfiesPzs, List<SavedDisk>? savedDisks, String? selfLink, List<SourceDiskEncryptionKey>? sourceDiskEncryptionKeys, String? sourceInstance, SourceInstanceProperties? sourceInstanceProperties, String? status, List<String>? storageLocations, String? totalStorageBytes})
MachineImage.fromJson(Map json_)

Properties

creationTimestamp String?
The creation timestamp for this machine image inRFC3339 text format.
getter/setter pair
description String?
An optional description of this resource.
getter/setter pair
guestFlush bool?
[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
A unique identifier for this machine image.
getter/setter pair
instanceProperties InstanceProperties?
Properties of source instance
getter/setter pair
kind String?
The resource type, which is alwayscompute#machineImage for machine image.
getter/setter pair
labelFingerprint String?
A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking.
getter/setter pair
labelFingerprintAsBytes List<int>
getter/setter pair
labels Map<String, String>?
Labels to apply to this machine image.
getter/setter pair
machineImageEncryptionKey CustomerEncryptionKey?
Encrypts the machine image using acustomer-supplied encryption key.
getter/setter pair
name String?
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
getter/setter pair
params MachineImageParams?
Input only.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
satisfiesPzi bool?
Reserved for future use.
getter/setter pair
satisfiesPzs bool?
Reserved for future use.
getter/setter pair
savedDisks List<SavedDisk>?
An array of Machine Image specific properties for disks attached to the source instance
getter/setter pair
The URL for this machine image.
getter/setter pair
sourceDiskEncryptionKeys List<SourceDiskEncryptionKey>?
[Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.
getter/setter pair
sourceInstance String?
The source instance used to create the machine image.
getter/setter pair
sourceInstanceProperties SourceInstanceProperties?
DEPRECATED: Please use instance_properties instead for source instance related properties.
getter/setter pair
status String?
The status of the machine image.
getter/setter pair
storageLocations List<String>?
The regional or multi-regional Cloud Storage bucket location where themachine image is stored.
getter/setter pair
totalStorageBytes String?
Total size of the storage used by the machine image.
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