Image class

Represents an Image resource.

You can use images to create boot disks for your VM instances. For more information, read Images.

Constructors

Image({String? architecture, String? archiveSizeBytes, String? creationTimestamp, DeprecationStatus? deprecated, String? description, String? diskSizeGb, bool? enableConfidentialCompute, String? family, List<GuestOsFeature>? guestOsFeatures, String? id, CustomerEncryptionKey? imageEncryptionKey, String? kind, String? labelFingerprint, Map<String, String>? labels, List<String>? licenseCodes, List<String>? licenses, String? name, ImageRawDisk? rawDisk, bool? satisfiesPzi, bool? satisfiesPzs, String? selfLink, InitialStateConfig? shieldedInstanceInitialState, String? sourceDisk, CustomerEncryptionKey? sourceDiskEncryptionKey, String? sourceDiskId, String? sourceImage, CustomerEncryptionKey? sourceImageEncryptionKey, String? sourceImageId, String? sourceSnapshot, CustomerEncryptionKey? sourceSnapshotEncryptionKey, String? sourceSnapshotId, String? sourceType, String? status, List<String>? storageLocations})
Image.fromJson(Map json_)

Properties

architecture String?
The architecture of the image.
getter/setter pair
archiveSizeBytes String?
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
getter/setter pair
creationTimestamp String?
Creation timestamp in RFC3339 text format.
getter/setter pair
deprecated DeprecationStatus?
The deprecation status associated with this image.
getter/setter pair
description String?
An optional description of this resource.
getter/setter pair
diskSizeGb String?
Size of the image when restored onto a persistent disk (in GB).
getter/setter pair
enableConfidentialCompute bool?
Whether this image is created from a confidential compute mode disk.
getter/setter pair
family String?
The name of the image family to which this image belongs.
getter/setter pair
guestOsFeatures List<GuestOsFeature>?
A list of features to enable on the guest operating system.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The unique identifier for the resource.
getter/setter pair
imageEncryptionKey CustomerEncryptionKey?
Encrypts the image using a customer-supplied encryption key.
getter/setter pair
kind String?
Type of the resource.
getter/setter pair
labelFingerprint String?
A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking.
getter/setter pair
labelFingerprintAsBytes List<int>
getter/setter pair
labels Map<String, String>?
Labels to apply to this image.
getter/setter pair
licenseCodes List<String>?
Integer license codes indicating which licenses are attached to this image.
getter/setter pair
licenses List<String>?
Any applicable license URI.
getter/setter pair
name String?
Name of the resource; provided by the client when the resource is created.
getter/setter pair
rawDisk ImageRawDisk?
The parameters of the raw disk image.
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
Server-defined URL for the resource.
getter/setter pair
shieldedInstanceInitialState InitialStateConfig?
Set the secure boot keys of shielded instance.
getter/setter pair
sourceDisk String?
URL of the source disk used to create this image.
getter/setter pair
sourceDiskEncryptionKey CustomerEncryptionKey?
The customer-supplied encryption key of the source disk.
getter/setter pair
sourceDiskId String?
The ID value of the disk used to create this image.
getter/setter pair
sourceImage String?
URL of the source image used to create this image.
getter/setter pair
sourceImageEncryptionKey CustomerEncryptionKey?
The customer-supplied encryption key of the source image.
getter/setter pair
sourceImageId String?
The ID value of the image used to create this image.
getter/setter pair
sourceSnapshot String?
URL of the source snapshot used to create this image.
getter/setter pair
sourceSnapshotEncryptionKey CustomerEncryptionKey?
The customer-supplied encryption key of the source snapshot.
getter/setter pair
sourceSnapshotId String?
The ID value of the snapshot used to create this image.
getter/setter pair
sourceType String?
The type of the image used to create this disk.
getter/setter pair
status String?
The status of the image.
getter/setter pair
storageLocations List<String>?
Cloud Storage bucket storage location of the image (regional or multi-regional).
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