Struct google_api_proto::google::spanner::admin::database::v1::RestoreDatabaseRequest
source · pub struct RestoreDatabaseRequest {
pub parent: String,
pub database_id: String,
pub encryption_config: Option<RestoreDatabaseEncryptionConfig>,
pub source: Option<Source>,
}
Expand description
The request for [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase].
Fields§
§parent: String
Required. The name of the instance in which to create the
restored database. This instance must be in the same project and
have the same instance configuration as the instance containing
the source backup. Values are of the form
projects/<project>/instances/<instance>
.
database_id: String
Required. The id of the database to create and restore to. This
database must not already exist. The database_id
appended to
parent
forms the full database name of the form
projects/<project>/instances/<instance>/databases/<database_id>
.
encryption_config: Option<RestoreDatabaseEncryptionConfig>
Optional. An encryption configuration describing the encryption type and
key resources in Cloud KMS used to encrypt/decrypt the database to restore
to. If this field is not specified, the restored database will use the same
encryption configuration as the backup by default, namely
[encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
= USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION
.
source: Option<Source>
Required. The source from which to restore.
Trait Implementations§
source§impl Clone for RestoreDatabaseRequest
impl Clone for RestoreDatabaseRequest
source§fn clone(&self) -> RestoreDatabaseRequest
fn clone(&self) -> RestoreDatabaseRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RestoreDatabaseRequest
impl Debug for RestoreDatabaseRequest
source§impl Default for RestoreDatabaseRequest
impl Default for RestoreDatabaseRequest
source§impl Message for RestoreDatabaseRequest
impl Message for RestoreDatabaseRequest
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 RestoreDatabaseRequest
impl PartialEq for RestoreDatabaseRequest
source§fn eq(&self, other: &RestoreDatabaseRequest) -> bool
fn eq(&self, other: &RestoreDatabaseRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RestoreDatabaseRequest
Auto Trait Implementations§
impl Freeze for RestoreDatabaseRequest
impl RefUnwindSafe for RestoreDatabaseRequest
impl Send for RestoreDatabaseRequest
impl Sync for RestoreDatabaseRequest
impl Unpin for RestoreDatabaseRequest
impl UnwindSafe for RestoreDatabaseRequest
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