Struct google_api_proto::google::cloud::gkebackup::v1::VolumeBackup
source · pub struct VolumeBackup {Show 13 fields
pub name: String,
pub uid: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub source_pvc: Option<NamespacedName>,
pub volume_backup_handle: String,
pub format: i32,
pub storage_bytes: i64,
pub disk_size_bytes: i64,
pub complete_time: Option<Timestamp>,
pub state: i32,
pub state_message: String,
pub etag: String,
}
Expand description
Represents the backup of a specific persistent volume as a component of a Backup - both the record of the operation and a pointer to the underlying storage-specific artifacts.
Fields§
§name: String
Output only. The full name of the VolumeBackup resource.
Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
.
uid: String
Output only. Server generated global unique identifier of UUID format.
create_time: Option<Timestamp>
Output only. The timestamp when this VolumeBackup resource was created.
update_time: Option<Timestamp>
Output only. The timestamp when this VolumeBackup resource was last updated.
source_pvc: Option<NamespacedName>
Output only. A reference to the source Kubernetes PVC from which this VolumeBackup was created.
volume_backup_handle: String
Output only. A storage system-specific opaque handle to the underlying volume backup.
format: i32
Output only. The format used for the volume backup.
storage_bytes: i64
Output only. The aggregate size of the underlying artifacts associated with this VolumeBackup in the backup storage. This may change over time when multiple backups of the same volume share the same backup storage location. In particular, this is likely to increase in size when the immediately preceding backup of the same volume is deleted.
disk_size_bytes: i64
Output only. The minimum size of the disk to which this VolumeBackup can be restored.
complete_time: Option<Timestamp>
Output only. The timestamp when the associated underlying volume backup operation completed.
state: i32
Output only. The current state of this VolumeBackup.
state_message: String
Output only. A human readable message explaining why the VolumeBackup is in its current state.
etag: String
Output only. etag
is used for optimistic concurrency control as a way to
help prevent simultaneous updates of a volume backup from overwriting each
other. It is strongly suggested that systems make use of the etag
in the
read-modify-write cycle to perform volume backup updates in order to avoid
race conditions.
Implementations§
source§impl VolumeBackup
impl VolumeBackup
sourcepub fn format(&self) -> VolumeBackupFormat
pub fn format(&self) -> VolumeBackupFormat
Returns the enum value of format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_format(&mut self, value: VolumeBackupFormat)
pub fn set_format(&mut self, value: VolumeBackupFormat)
Sets format
to the provided enum value.
Trait Implementations§
source§impl Clone for VolumeBackup
impl Clone for VolumeBackup
source§fn clone(&self) -> VolumeBackup
fn clone(&self) -> VolumeBackup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VolumeBackup
impl Debug for VolumeBackup
source§impl Default for VolumeBackup
impl Default for VolumeBackup
source§impl Message for VolumeBackup
impl Message for VolumeBackup
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for VolumeBackup
impl PartialEq for VolumeBackup
source§fn eq(&self, other: &VolumeBackup) -> bool
fn eq(&self, other: &VolumeBackup) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VolumeBackup
Auto Trait Implementations§
impl Freeze for VolumeBackup
impl RefUnwindSafe for VolumeBackup
impl Send for VolumeBackup
impl Sync for VolumeBackup
impl Unpin for VolumeBackup
impl UnwindSafe for VolumeBackup
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request