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. (== resource_for beta.snapshots ==) (== resource_for v1.snapshots ==)
Constructors
- Snapshot()
- Snapshot.fromJson(Map _json)
Properties
- autoCreated ↔ bool
-
Output Only
Set to true if snapshots are automatically by applying resource policy on the target disk.read / write - creationTimestamp ↔ String
-
Output Only
Creation timestamp in RFC3339 text format.read / write - description ↔ String
-
An optional description of this resource. Provide this property when you
create the resource.
read / write
- diskSizeGb ↔ String
-
Output Only
Size of the snapshot, specified in GB.read / write - id ↔ String
-
Output Only
The unique identifier for the resource. This identifier is defined by the server.read / write - kind ↔ String
-
Output Only
Type of the resource. Always compute#snapshot for Snapshot resources.read / write - 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. The
fingerprint is initially generated by Compute Engine and changes after
every request to modify or update labels. You must always provide an
up-to-date fingerprint hash in order to update or change labels, otherwise
the request will fail with error 412 conditionNotMet. [...]
read / write
-
labelFingerprintAsBytes
↔ List<
int> -
read / write
-
labels
↔ Map<
String, String> -
Labels to apply to this snapshot. These can be later modified by the
setLabels method. Label values may be empty.
read / write
-
licenseCodes
↔ List<
String> -
Output Only
Integer license codes indicating which licenses are attached to this snapshot.read / write -
licenses
↔ List<
String> -
Output Only
A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).read / write - 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 with RFC1035.
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.read / write - selfLink ↔ String
-
Output Only
Server-defined URL for the resource.read / write - snapshotEncryptionKey ↔ CustomerEncryptionKey
-
Encrypts the snapshot using a customer-supplied encryption key. [...]
read / write
- sourceDisk ↔ String
-
Output Only
The source disk used to create this snapshot.read / write - sourceDiskEncryptionKey ↔ CustomerEncryptionKey
-
The customer-supplied encryption key of the source disk. Required if the
source disk is protected by a customer-supplied encryption key.
read / write
- sourceDiskId ↔ String
-
Output Only
The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.read / write - status ↔ String
-
Output Only
The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. Possible string values are: [...]read / write - storageBytes ↔ String
-
Output Only
A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.read / write - storageBytesStatus ↔ String
-
Output Only
An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Possible string values are: [...]read / write -
storageLocations
↔ List<
String> -
GCS bucket storage location of the snapshot (regional or multi-regional).
read / write
- hashCode → int
-
The hash code for this object.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
toJson(
) → Map< String, Object> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
inherited