Struct google_api_proto::google::spanner::admin::database::v1::CopyBackupRequest
source · pub struct CopyBackupRequest {
pub parent: String,
pub backup_id: String,
pub source_backup: String,
pub expire_time: Option<Timestamp>,
pub encryption_config: Option<CopyBackupEncryptionConfig>,
}
Expand description
The request for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].
Fields§
§parent: String
Required. The name of the destination instance that will contain the backup
copy. Values are of the form: projects/<project>/instances/<instance>
.
backup_id: String
Required. The id of the backup copy.
The backup_id
appended to parent
forms the full backup_uri of the form
projects/<project>/instances/<instance>/backups/<backup>
.
source_backup: String
Required. The source backup to be copied.
The source backup needs to be in READY state for it to be copied.
Once CopyBackup is in progress, the source backup cannot be deleted or
cleaned up on expiration until CopyBackup is finished.
Values are of the form:
projects/<project>/instances/<instance>/backups/<backup>
.
expire_time: Option<Timestamp>
Required. The expiration time of the backup in microsecond granularity.
The expiration time must be at least 6 hours and at most 366 days
from the create_time
of the source backup. Once the expire_time
has
passed, the backup is eligible to be automatically deleted by Cloud Spanner
to free the resources used by the backup.
encryption_config: Option<CopyBackupEncryptionConfig>
Optional. The encryption configuration used to encrypt the backup. If this
field is not specified, the backup will use the same encryption
configuration as the source backup by default, namely
[encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
= USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION
.
Trait Implementations§
source§impl Clone for CopyBackupRequest
impl Clone for CopyBackupRequest
source§fn clone(&self) -> CopyBackupRequest
fn clone(&self) -> CopyBackupRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CopyBackupRequest
impl Debug for CopyBackupRequest
source§impl Default for CopyBackupRequest
impl Default for CopyBackupRequest
source§impl Message for CopyBackupRequest
impl Message for CopyBackupRequest
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 CopyBackupRequest
impl PartialEq for CopyBackupRequest
source§fn eq(&self, other: &CopyBackupRequest) -> bool
fn eq(&self, other: &CopyBackupRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CopyBackupRequest
Auto Trait Implementations§
impl Freeze for CopyBackupRequest
impl RefUnwindSafe for CopyBackupRequest
impl Send for CopyBackupRequest
impl Sync for CopyBackupRequest
impl Unpin for CopyBackupRequest
impl UnwindSafe for CopyBackupRequest
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