pub struct AutomatedBackupPolicy {
pub enabled: Option<bool>,
pub backup_window: Option<Duration>,
pub encryption_config: Option<EncryptionConfig>,
pub location: String,
pub labels: HashMap<String, String>,
pub schedule: Option<Schedule>,
pub retention: Option<Retention>,
}
Expand description
Message describing the user-specified automated backup policy.
All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set.
Fields§
§enabled: Option<bool>
Whether automated automated backups are enabled. If not set, defaults to true.
backup_window: Option<Duration>
The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed.
The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
encryption_config: Option<EncryptionConfig>
Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
location: String
The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster.
If empty, defaults to the region of the cluster.
labels: HashMap<String, String>
Labels to apply to backups created using this configuration.
schedule: Option<Schedule>
The schedule for this automated backup policy.
A schedule specifies times at which to start a backup. If a backup window is also provided, the backup is guaranteed to be started and completed within the start time plus the backup window. If the backup is not completed within the backup window it is marked as failed.
If not set, the schedule defaults to a weekly schedule with one backup per day and a start time chosen arbitrarily.
retention: Option<Retention>
The retention policy for automated backups.
The retention policy for a backup is fixed at the time the backup is created. Changes to this field only apply to new backups taken with the policy; the retentions of existing backups remain unchanged.
If no retention policy is set, a default of 14 days is used.
Implementations§
Trait Implementations§
Source§impl Clone for AutomatedBackupPolicy
impl Clone for AutomatedBackupPolicy
Source§fn clone(&self) -> AutomatedBackupPolicy
fn clone(&self) -> AutomatedBackupPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AutomatedBackupPolicy
impl Debug for AutomatedBackupPolicy
Source§impl Default for AutomatedBackupPolicy
impl Default for AutomatedBackupPolicy
Source§impl Message for AutomatedBackupPolicy
impl Message for AutomatedBackupPolicy
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 AutomatedBackupPolicy
impl PartialEq for AutomatedBackupPolicy
impl StructuralPartialEq for AutomatedBackupPolicy
Auto Trait Implementations§
impl Freeze for AutomatedBackupPolicy
impl RefUnwindSafe for AutomatedBackupPolicy
impl Send for AutomatedBackupPolicy
impl Sync for AutomatedBackupPolicy
impl Unpin for AutomatedBackupPolicy
impl UnwindSafe for AutomatedBackupPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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