pub struct Backup {
pub name: String,
pub state: i32,
pub description: String,
pub volume_usage_bytes: i64,
pub backup_type: i32,
pub source_volume: String,
pub source_snapshot: Option<String>,
pub create_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub chain_storage_bytes: i64,
}
Expand description
A NetApp Backup.
Fields§
§name: String
Identifier. The resource name of the backup.
Format:
projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
.
state: i32
Output only. The backup state.
description: String
A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
volume_usage_bytes: i64
Output only. Size of the file system when the backup was created. When creating a new volume from the backup, the volume capacity will have to be at least as big.
backup_type: i32
Output only. Type of backup, manually created or created by a backup policy.
source_volume: String
Volume full name of this backup belongs to.
Format:
projects/{projects_id}/locations/{location}/volumes/{volume_id}
source_snapshot: Option<String>
If specified, backup will be created from the given snapshot.
If not specified, there will be a new snapshot taken to initiate the backup
creation. Format:
projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}
create_time: Option<Timestamp>
Output only. The time when the backup was created.
labels: BTreeMap<String, String>
Resource labels to represent user provided metadata.
chain_storage_bytes: i64
Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size)
Implementations§
source§impl Backup
impl Backup
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn backup_type(&self) -> Type
pub fn backup_type(&self) -> Type
Returns the enum value of backup_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_backup_type(&mut self, value: Type)
pub fn set_backup_type(&mut self, value: Type)
Sets backup_type
to the provided enum value.
sourcepub fn source_snapshot(&self) -> &str
pub fn source_snapshot(&self) -> &str
Returns the value of source_snapshot
, or the default value if source_snapshot
is unset.
Trait Implementations§
source§impl Message for Backup
impl Message for Backup
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 Backup
impl PartialEq for Backup
impl StructuralPartialEq for Backup
Auto Trait Implementations§
impl Freeze for Backup
impl RefUnwindSafe for Backup
impl Send for Backup
impl Sync for Backup
impl Unpin for Backup
impl UnwindSafe for Backup
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