Snapshot class

Represents a Persistent Disk Snapshot resource.

You can use snapshots to back up data on a regular interval. For more information, read Creating persistent disk snapshots.

Constructors

Snapshot({String? architecture, bool? autoCreated, String? chainName, String? creationSizeBytes, String? creationTimestamp, String? description, String? diskSizeGb, String? downloadBytes, bool? enableConfidentialCompute, List<GuestOsFeature>? guestOsFeatures, String? id, String? kind, String? labelFingerprint, Map<String, String>? labels, List<String>? licenseCodes, List<String>? licenses, String? locationHint, String? name, bool? satisfiesPzi, bool? satisfiesPzs, String? selfLink, CustomerEncryptionKey? snapshotEncryptionKey, String? snapshotType, String? sourceDisk, CustomerEncryptionKey? sourceDiskEncryptionKey, String? sourceDiskForRecoveryCheckpoint, String? sourceDiskId, String? sourceInstantSnapshot, CustomerEncryptionKey? sourceInstantSnapshotEncryptionKey, String? sourceInstantSnapshotId, String? sourceSnapshotSchedulePolicy, String? sourceSnapshotSchedulePolicyId, String? status, String? storageBytes, String? storageBytesStatus, List<String>? storageLocations})
Snapshot.fromJson(Map json_)

Properties

architecture String?
The architecture of the snapshot.
getter/setter pair
autoCreated bool?
Set to true if snapshots are automatically created by applying resource policy on the target disk.
getter/setter pair
chainName String?
Creates the new snapshot in the snapshot chain labeled with the specified name.
getter/setter pair
creationSizeBytes String?
Size in bytes of the snapshot at creation time.
getter/setter pair
creationTimestamp String?
Creation timestamp in RFC3339 text format.
getter/setter pair
description String?
An optional description of this resource.
getter/setter pair
diskSizeGb String?
Size of the source disk, specified in GB.
getter/setter pair
downloadBytes String?
Number of bytes downloaded to restore a snapshot to a disk.
getter/setter pair
enableConfidentialCompute bool?
Whether this snapshot is created from a confidential compute mode disk.
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
kind String?
Type of the resource.
getter/setter pair
labelFingerprint String?
A fingerprint for the labels being applied to this snapshot, 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 snapshot.
getter/setter pair
licenseCodes List<String>?
Integer license codes indicating which licenses are attached to this snapshot.
getter/setter pair
licenses List<String>?
A list of public visible licenses that apply to this snapshot.
getter/setter pair
locationHint String?
An opaque location hint used to place the snapshot close to other resources.
getter/setter pair
name String?
Name of the resource; provided by the client when the resource is created.
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
snapshotEncryptionKey CustomerEncryptionKey?
Encrypts the snapshot using a customer-supplied encryption key.
getter/setter pair
snapshotType String?
Indicates the type of the snapshot. Possible string values are:
getter/setter pair
sourceDisk String?
The source disk used to create this snapshot.
getter/setter pair
sourceDiskEncryptionKey CustomerEncryptionKey?
The customer-supplied encryption key of the source disk.
getter/setter pair
sourceDiskForRecoveryCheckpoint String?
The source disk whose recovery checkpoint will be used to create this snapshot.
getter/setter pair
sourceDiskId String?
The ID value of the disk used to create this snapshot.
getter/setter pair
sourceInstantSnapshot String?
The source instant snapshot used to create this snapshot.
getter/setter pair
sourceInstantSnapshotEncryptionKey CustomerEncryptionKey?
Customer provided encryption key when creating Snapshot from Instant Snapshot.
getter/setter pair
sourceInstantSnapshotId String?
The unique ID of the instant snapshot used to create this snapshot.
getter/setter pair
sourceSnapshotSchedulePolicy String?
URL of the resource policy which created this scheduled snapshot.
getter/setter pair
sourceSnapshotSchedulePolicyId String?
ID of the resource policy which created this scheduled snapshot.
getter/setter pair
status String?
The status of the snapshot.
getter/setter pair
storageBytes String?
A size of the storage used by the snapshot.
getter/setter pair
storageBytesStatus String?
An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.
getter/setter pair
storageLocations List<String>?
Cloud Storage bucket storage location of the snapshot (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