[−][src]Struct google_compute1::Snapshot
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).
- set iam policy snapshots (none)
- delete snapshots (none)
- get iam policy snapshots (none)
- test iam permissions snapshots (none)
- get snapshots (response)
- create snapshot region disks (request)
- create snapshot disks (request)
- list snapshots (none)
- set labels snapshots (none)
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(&self) -> 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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Snapshot
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Snapshot
impl Unpin for Snapshot
impl Sync for Snapshot
impl UnwindSafe for Snapshot
impl RefUnwindSafe for Snapshot
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,