Struct google_api_proto::google::cloud::gkebackup::v1::BackupPlan
source · pub struct BackupPlan {Show 17 fields
pub name: String,
pub uid: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub description: String,
pub cluster: String,
pub retention_policy: Option<RetentionPolicy>,
pub labels: BTreeMap<String, String>,
pub backup_schedule: Option<Schedule>,
pub etag: String,
pub deactivated: bool,
pub backup_config: Option<BackupConfig>,
pub protected_pod_count: i32,
pub state: i32,
pub state_reason: String,
pub rpo_risk_level: i32,
pub rpo_risk_reason: String,
}
Expand description
Defines the configuration and scheduling for a “line” of Backups.
Fields§
§name: String
Output only. The full name of the BackupPlan resource.
Format: projects/*/locations/*/backupPlans/*
uid: String
Output only. Server generated global unique identifier of UUID format.
create_time: Option<Timestamp>
Output only. The timestamp when this BackupPlan resource was created.
update_time: Option<Timestamp>
Output only. The timestamp when this BackupPlan resource was last updated.
description: String
Optional. User specified descriptive string for this BackupPlan.
cluster: String
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats:
projects/*/locations/*/clusters/*
projects/*/zones/*/clusters/*
retention_policy: Option<RetentionPolicy>
Optional. RetentionPolicy governs lifecycle of Backups created under this plan.
labels: BTreeMap<String, String>
Optional. A set of custom labels supplied by user.
backup_schedule: Option<Schedule>
Optional. Defines a schedule for automatic Backup creation via this BackupPlan.
etag: String
Output only. etag
is used for optimistic concurrency control as a way to
help prevent simultaneous updates of a backup plan from overwriting each
other. It is strongly suggested that systems make use of the ‘etag’ in the
read-modify-write cycle to perform BackupPlan updates in order to avoid
race conditions: An etag
is returned in the response to GetBackupPlan
,
and systems are expected to put that etag in the request to
UpdateBackupPlan
or DeleteBackupPlan
to ensure that their change
will be applied to the same version of the resource.
deactivated: bool
Optional. This flag indicates whether this BackupPlan has been deactivated. Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups).
Default: False
backup_config: Option<BackupConfig>
Optional. Defines the configuration of Backups created via this BackupPlan.
protected_pod_count: i32
Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.
state: i32
Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to “DEACTIVATED” if the BackupPlan is deactivated on an Update
state_reason: String
Output only. Human-readable description of why BackupPlan is in the current
state
rpo_risk_level: i32
Output only. A number that represents the current risk level of this BackupPlan from RPO perspective with 1 being no risk and 5 being highest risk.
rpo_risk_reason: String
Output only. Human-readable description of why the BackupPlan is in the current rpo_risk_level and action items if any.
Implementations§
Trait Implementations§
source§impl Clone for BackupPlan
impl Clone for BackupPlan
source§fn clone(&self) -> BackupPlan
fn clone(&self) -> BackupPlan
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BackupPlan
impl Debug for BackupPlan
source§impl Default for BackupPlan
impl Default for BackupPlan
source§impl Message for BackupPlan
impl Message for BackupPlan
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 BackupPlan
impl PartialEq for BackupPlan
source§fn eq(&self, other: &BackupPlan) -> bool
fn eq(&self, other: &BackupPlan) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BackupPlan
Auto Trait Implementations§
impl Freeze for BackupPlan
impl RefUnwindSafe for BackupPlan
impl Send for BackupPlan
impl Sync for BackupPlan
impl Unpin for BackupPlan
impl UnwindSafe for BackupPlan
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