pub struct Backup {Show 14 fields
pub name: String,
pub description: String,
pub state: i32,
pub create_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub capacity_gb: i64,
pub storage_bytes: i64,
pub source_instance: String,
pub source_file_share: String,
pub source_instance_tier: i32,
pub download_bytes: i64,
pub satisfies_pzs: Option<bool>,
pub satisfies_pzi: bool,
pub kms_key_name: String,
}
Expand description
A Filestore backup.
Fields§
§name: String
Output only. The resource name of the backup, in the format
projects/{project_id}/locations/{location_id}/backups/{backup_id}
.
description: String
A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
state: i32
Output only. The backup state.
create_time: Option<Timestamp>
Output only. The time when the backup was created.
labels: BTreeMap<String, String>
Resource labels to represent user provided metadata.
capacity_gb: i64
Output only. Capacity of the source file share when the backup was created.
storage_bytes: i64
Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.
source_instance: String
The resource name of the source Filestore instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}
,
used to create this backup.
Name of the file share in the source Filestore instance that the backup is created from.
source_instance_tier: i32
Output only. The service tier of the source Filestore instance that this backup is created from.
download_bytes: i64
Output only. Amount of bytes that will be downloaded if the backup is restored
satisfies_pzs: Option<bool>
Output only. Reserved for future use.
satisfies_pzi: bool
Output only. Reserved for future use.
kms_key_name: String
Immutable. KMS key name used for data encryption.
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 source_instance_tier(&self) -> Tier
pub fn source_instance_tier(&self) -> Tier
Returns the enum value of source_instance_tier
, or the default if the field is set to an invalid enum value.
sourcepub fn set_source_instance_tier(&mut self, value: Tier)
pub fn set_source_instance_tier(&mut self, value: Tier)
Sets source_instance_tier
to the provided enum value.
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