Struct google_api_proto::google::spanner::admin::database::v1::BackupSchedule
source · pub struct BackupSchedule {
pub name: String,
pub spec: Option<BackupScheduleSpec>,
pub retention_duration: Option<Duration>,
pub encryption_config: Option<CreateBackupEncryptionConfig>,
pub update_time: Option<Timestamp>,
pub backup_type_spec: Option<BackupTypeSpec>,
}
Expand description
BackupSchedule expresses the automated backup creation specification for a Spanner database. Next ID: 10
Fields§
§name: String
Identifier. Output only for the
[CreateBackupSchedule][DatabaseAdmin.CreateBackupSchededule] operation.
Required for the
[UpdateBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackupSchedule]
operation. A globally unique identifier for the backup schedule which
cannot be changed. Values are of the form
projects/<project>/instances/<instance>/databases/<database>/backupSchedules/[a-z][a-z0-9_\-]*\[a-z0-9\]
The final segment of the name must be between 2 and 60 characters in
length.
spec: Option<BackupScheduleSpec>
Optional. The schedule specification based on which the backup creations are triggered.
retention_duration: Option<Duration>
Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.
encryption_config: Option<CreateBackupEncryptionConfig>
Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.
update_time: Option<Timestamp>
Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.
backup_type_spec: Option<BackupTypeSpec>
Required. Backup type spec determines the type of backup that is created by the backup schedule. Currently, only full backups are supported.
Trait Implementations§
source§impl Clone for BackupSchedule
impl Clone for BackupSchedule
source§fn clone(&self) -> BackupSchedule
fn clone(&self) -> BackupSchedule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BackupSchedule
impl Debug for BackupSchedule
source§impl Default for BackupSchedule
impl Default for BackupSchedule
source§impl Message for BackupSchedule
impl Message for BackupSchedule
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 BackupSchedule
impl PartialEq for BackupSchedule
source§fn eq(&self, other: &BackupSchedule) -> bool
fn eq(&self, other: &BackupSchedule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BackupSchedule
Auto Trait Implementations§
impl Freeze for BackupSchedule
impl RefUnwindSafe for BackupSchedule
impl Send for BackupSchedule
impl Sync for BackupSchedule
impl Unpin for BackupSchedule
impl UnwindSafe for BackupSchedule
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