Struct google_api_proto::google::spanner::executor::v1::CreateCloudBackupAction
source · pub struct CreateCloudBackupAction {
pub project_id: String,
pub instance_id: String,
pub backup_id: String,
pub database_id: String,
pub expire_time: Option<Timestamp>,
pub version_time: Option<Timestamp>,
pub encryption_config: Option<EncryptionConfig>,
}
Expand description
Action that creates a Cloud Spanner database backup.
Fields§
§project_id: String
Cloud project ID, e.g. “spanner-cloud-systest”.
instance_id: String
Cloud instance ID (not path), e.g. “test-instance”.
backup_id: String
The id of the backup to be created, e.g. “test-backup”.
database_id: String
The id of the database from which this backup was created, e.g. “db0”. Note that this needs to be in the same instance as the backup.
expire_time: Option<Timestamp>
Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.
version_time: Option<Timestamp>
The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).
encryption_config: Option<EncryptionConfig>
The KMS key(s) used to encrypt the backup to be created if the backup should be CMEK protected.
Trait Implementations§
source§impl Clone for CreateCloudBackupAction
impl Clone for CreateCloudBackupAction
source§fn clone(&self) -> CreateCloudBackupAction
fn clone(&self) -> CreateCloudBackupAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateCloudBackupAction
impl Debug for CreateCloudBackupAction
source§impl Default for CreateCloudBackupAction
impl Default for CreateCloudBackupAction
source§impl Message for CreateCloudBackupAction
impl Message for CreateCloudBackupAction
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 CreateCloudBackupAction
impl PartialEq for CreateCloudBackupAction
source§fn eq(&self, other: &CreateCloudBackupAction) -> bool
fn eq(&self, other: &CreateCloudBackupAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateCloudBackupAction
Auto Trait Implementations§
impl Freeze for CreateCloudBackupAction
impl RefUnwindSafe for CreateCloudBackupAction
impl Send for CreateCloudBackupAction
impl Sync for CreateCloudBackupAction
impl Unpin for CreateCloudBackupAction
impl UnwindSafe for CreateCloudBackupAction
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