Struct google_api_proto::google::cloud::alloydb::v1::AutomatedBackupPolicy
source · pub struct AutomatedBackupPolicy {
pub enabled: Option<bool>,
pub backup_window: Option<Duration>,
pub encryption_config: Option<EncryptionConfig>,
pub location: String,
pub labels: BTreeMap<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: BTreeMap<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
source§fn eq(&self, other: &AutomatedBackupPolicy) -> bool
fn eq(&self, other: &AutomatedBackupPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.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
§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