[][src]Struct google_compute1::Snapshot

pub struct Snapshot {
    pub status: Option<String>,
    pub source_disk_encryption_key: Option<CustomerEncryptionKey>,
    pub description: Option<String>,
    pub label_fingerprint: Option<String>,
    pub labels: Option<HashMap<String, String>>,
    pub source_disk_id: Option<String>,
    pub licenses: Option<Vec<String>>,
    pub creation_timestamp: Option<String>,
    pub id: Option<String>,
    pub license_codes: Option<Vec<String>>,
    pub auto_created: Option<bool>,
    pub kind: Option<String>,
    pub storage_bytes: Option<String>,
    pub name: Option<String>,
    pub source_disk: Option<String>,
    pub disk_size_gb: Option<String>,
    pub storage_locations: Option<Vec<String>>,
    pub snapshot_encryption_key: Option<CustomerEncryptionKey>,
    pub storage_bytes_status: Option<String>,
    pub self_link: Option<String>,
}

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 ==)

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

status: Option<String>

[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.

source_disk_encryption_key: Option<CustomerEncryptionKey>

The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.

description: Option<String>

An optional description of this resource. Provide this property when you create the resource.

label_fingerprint: Option<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.

To see the latest fingerprint, make a get() request to retrieve a snapshot.

labels: Option<HashMap<String, String>>

Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.

source_disk_id: Option<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.

licenses: Option<Vec<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).

creation_timestamp: Option<String>

[Output Only] Creation timestamp in RFC3339 text format.

id: Option<String>

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

license_codes: Option<Vec<String>>

[Output Only] Integer license codes indicating which licenses are attached to this snapshot.

auto_created: Option<bool>

[Output Only] Set to true if snapshots are automatically by applying resource policy on the target disk.

kind: Option<String>

[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.

storage_bytes: Option<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.

name: Option<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.

source_disk: Option<String>

[Output Only] The source disk used to create this snapshot.

disk_size_gb: Option<String>

[Output Only] Size of the snapshot, specified in GB.

storage_locations: Option<Vec<String>>

GCS bucket storage location of the snapshot (regional or multi-regional).

snapshot_encryption_key: Option<CustomerEncryptionKey>

Encrypts the snapshot using a customer-supplied encryption key.

After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request.

Customer-supplied encryption keys do not protect access to metadata of the snapshot.

If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.

storage_bytes_status: Option<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.

self_link: Option<String>

[Output Only] Server-defined URL for the resource.

Trait Implementations

impl Resource for Snapshot[src]

impl ResponseResult for Snapshot[src]

impl RequestValue for Snapshot[src]

impl Default for Snapshot[src]

impl Clone for Snapshot[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Snapshot[src]

impl Serialize for Snapshot[src]

impl<'de> Deserialize<'de> for Snapshot[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]