Struct google_api_proto::google::cloud::gkebackup::v1::VolumeRestore
source · pub struct VolumeRestore {
pub name: String,
pub uid: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub volume_backup: String,
pub target_pvc: Option<NamespacedName>,
pub volume_handle: String,
pub volume_type: i32,
pub complete_time: Option<Timestamp>,
pub state: i32,
pub state_message: String,
pub etag: String,
}
Expand description
Represents the operation of restoring a volume from a VolumeBackup.
Fields§
§name: String
Output only. Full name of the VolumeRestore resource.
Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
uid: String
Output only. Server generated global unique identifier of UUID format.
create_time: Option<Timestamp>
Output only. The timestamp when this VolumeRestore resource was created.
update_time: Option<Timestamp>
Output only. The timestamp when this VolumeRestore resource was last updated.
volume_backup: String
Output only. The full name of the VolumeBackup from which the volume will
be restored. Format:
projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
.
target_pvc: Option<NamespacedName>
Output only. The reference to the target Kubernetes PVC to be restored.
volume_handle: String
Output only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup.
volume_type: i32
Output only. The type of volume provisioned
complete_time: Option<Timestamp>
Output only. The timestamp when the associated underlying volume restoration completed.
state: i32
Output only. The current state of this VolumeRestore.
state_message: String
Output only. A human readable message explaining why the VolumeRestore 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 restore from overwriting each
other. It is strongly suggested that systems make use of the etag
in the
read-modify-write cycle to perform volume restore updates in order to avoid
race conditions.
Implementations§
source§impl VolumeRestore
impl VolumeRestore
sourcepub fn volume_type(&self) -> VolumeType
pub fn volume_type(&self) -> VolumeType
Returns the enum value of volume_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_volume_type(&mut self, value: VolumeType)
pub fn set_volume_type(&mut self, value: VolumeType)
Sets volume_type
to the provided enum value.
Trait Implementations§
source§impl Clone for VolumeRestore
impl Clone for VolumeRestore
source§fn clone(&self) -> VolumeRestore
fn clone(&self) -> VolumeRestore
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VolumeRestore
impl Debug for VolumeRestore
source§impl Default for VolumeRestore
impl Default for VolumeRestore
source§impl Message for VolumeRestore
impl Message for VolumeRestore
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 VolumeRestore
impl PartialEq for VolumeRestore
source§fn eq(&self, other: &VolumeRestore) -> bool
fn eq(&self, other: &VolumeRestore) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VolumeRestore
Auto Trait Implementations§
impl Freeze for VolumeRestore
impl RefUnwindSafe for VolumeRestore
impl Send for VolumeRestore
impl Sync for VolumeRestore
impl Unpin for VolumeRestore
impl UnwindSafe for VolumeRestore
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