Struct google_api_proto::google::cloud::gkebackup::v1::RestorePlan
source · pub struct RestorePlan {
pub name: String,
pub uid: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub description: String,
pub backup_plan: String,
pub cluster: String,
pub restore_config: Option<RestoreConfig>,
pub labels: BTreeMap<String, String>,
pub etag: String,
pub state: i32,
pub state_reason: String,
}
Expand description
The configuration of a potential series of Restore operations to be performed against Backups belong to a particular BackupPlan.
Fields§
§name: String
Output only. The full name of the RestorePlan resource.
Format: projects/*/locations/*/restorePlans/*
.
uid: String
Output only. Server generated global unique identifier of UUID format.
create_time: Option<Timestamp>
Output only. The timestamp when this RestorePlan resource was created.
update_time: Option<Timestamp>
Output only. The timestamp when this RestorePlan resource was last updated.
description: String
Optional. User specified descriptive string for this RestorePlan.
backup_plan: String
Required. Immutable. A reference to the
[BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may
be used as the source for Restores created via this RestorePlan. Format:
projects/*/locations/*/backupPlans/*
.
cluster: String
Required. Immutable. The target cluster into which Restores created via this RestorePlan will restore data. NOTE: the cluster’s region must be the same as the RestorePlan. Valid formats:
projects/*/locations/*/clusters/*
projects/*/zones/*/clusters/*
restore_config: Option<RestoreConfig>
Required. Configuration of Restores created via this RestorePlan.
labels: BTreeMap<String, String>
Optional. A set of custom labels supplied by user.
etag: String
Output only. etag
is used for optimistic concurrency control as a way to
help prevent simultaneous updates of a restore from overwriting each other.
It is strongly suggested that systems make use of the etag
in the
read-modify-write cycle to perform restore updates in order to avoid
race conditions: An etag
is returned in the response to GetRestorePlan
,
and systems are expected to put that etag in the request to
UpdateRestorePlan
or DeleteRestorePlan
to ensure that their change
will be applied to the same version of the resource.
state: i32
Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.
state_reason: String
Output only. Human-readable description of why RestorePlan is in the
current state
Implementations§
Trait Implementations§
source§impl Clone for RestorePlan
impl Clone for RestorePlan
source§fn clone(&self) -> RestorePlan
fn clone(&self) -> RestorePlan
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RestorePlan
impl Debug for RestorePlan
source§impl Default for RestorePlan
impl Default for RestorePlan
source§impl Message for RestorePlan
impl Message for RestorePlan
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 RestorePlan
impl PartialEq for RestorePlan
source§fn eq(&self, other: &RestorePlan) -> bool
fn eq(&self, other: &RestorePlan) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RestorePlan
Auto Trait Implementations§
impl Freeze for RestorePlan
impl RefUnwindSafe for RestorePlan
impl Send for RestorePlan
impl Sync for RestorePlan
impl Unpin for RestorePlan
impl UnwindSafe for RestorePlan
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