Struct google_api_proto::google::cloud::gkebackup::v1::backup_plan::BackupConfig
source · pub struct BackupConfig {
pub include_volume_data: bool,
pub include_secrets: bool,
pub encryption_key: Option<EncryptionKey>,
pub permissive_mode: bool,
pub backup_scope: Option<BackupScope>,
}
Expand description
BackupConfig defines the configuration of Backups created via this BackupPlan.
Fields§
§include_volume_data: bool
Optional. This flag specifies whether volume data should be backed up when PVCs are included in the scope of a Backup.
Default: False
include_secrets: bool
Optional. This flag specifies whether Kubernetes Secret resources should be included when they fall into the scope of Backups.
Default: False
encryption_key: Option<EncryptionKey>
Optional. This defines a customer managed encryption key that will be used to encrypt the “config” portion (the Kubernetes resources) of Backups created via this plan.
Default (empty): Config backup artifacts will not be encrypted.
permissive_mode: bool
Optional. If false, Backups will fail when Backup for GKE detects Kubernetes configuration that is non-standard or requires additional setup to restore.
Default: False
backup_scope: Option<BackupScope>
This defines the “scope” of the Backup - which namespaced resources in the cluster will be included in a Backup. Exactly one of the fields of backup_scope MUST be specified.
Trait Implementations§
source§impl Clone for BackupConfig
impl Clone for BackupConfig
source§fn clone(&self) -> BackupConfig
fn clone(&self) -> BackupConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BackupConfig
impl Debug for BackupConfig
source§impl Default for BackupConfig
impl Default for BackupConfig
source§impl Message for BackupConfig
impl Message for BackupConfig
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 BackupConfig
impl PartialEq for BackupConfig
source§fn eq(&self, other: &BackupConfig) -> bool
fn eq(&self, other: &BackupConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BackupConfig
Auto Trait Implementations§
impl Freeze for BackupConfig
impl RefUnwindSafe for BackupConfig
impl Send for BackupConfig
impl Sync for BackupConfig
impl Unpin for BackupConfig
impl UnwindSafe for BackupConfig
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