pub struct GoogleFirestoreAdminV1RestoreDatabaseRequest {
pub backup: Option<String>,
pub database_id: Option<String>,
pub kms_key_name: Option<String>,
pub use_backup_encryption: Option<Empty>,
pub use_google_default_encryption: Option<Empty>,
}
Expand description
The request message for FirestoreAdmin.RestoreDatabase.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- databases restore projects (request)
Fields§
§backup: Option<String>
Backup to restore from. Must be from the same project as the parent. Format is: projects/{project_id}/locations/{location}/backups/{backup}
database_id: Option<String>
Required. The ID to use for the database, which will become the final component of the database’s resource name. This database id must not be associated with an existing database. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. “(default)” database id is also valid.
kms_key_name: Option<String>
Use Customer Managed Encryption Keys (CMEK) for encryption. Only keys in the same location as this database are allowed to be used for encryption. For Firestore’s nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore’s eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations. The expected format is projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.
use_backup_encryption: Option<Empty>
The restored database will use the same encryption configuration as the backup. This is the default option when no encryption_config
is specified.
use_google_default_encryption: Option<Empty>
Use Google default encryption.
Trait Implementations§
Source§impl Clone for GoogleFirestoreAdminV1RestoreDatabaseRequest
impl Clone for GoogleFirestoreAdminV1RestoreDatabaseRequest
Source§fn clone(&self) -> GoogleFirestoreAdminV1RestoreDatabaseRequest
fn clone(&self) -> GoogleFirestoreAdminV1RestoreDatabaseRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleFirestoreAdminV1RestoreDatabaseRequest
impl Default for GoogleFirestoreAdminV1RestoreDatabaseRequest
Source§fn default() -> GoogleFirestoreAdminV1RestoreDatabaseRequest
fn default() -> GoogleFirestoreAdminV1RestoreDatabaseRequest
Source§impl<'de> Deserialize<'de> for GoogleFirestoreAdminV1RestoreDatabaseRequest
impl<'de> Deserialize<'de> for GoogleFirestoreAdminV1RestoreDatabaseRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for GoogleFirestoreAdminV1RestoreDatabaseRequest
Auto Trait Implementations§
impl Freeze for GoogleFirestoreAdminV1RestoreDatabaseRequest
impl RefUnwindSafe for GoogleFirestoreAdminV1RestoreDatabaseRequest
impl Send for GoogleFirestoreAdminV1RestoreDatabaseRequest
impl Sync for GoogleFirestoreAdminV1RestoreDatabaseRequest
impl Unpin for GoogleFirestoreAdminV1RestoreDatabaseRequest
impl UnwindSafe for GoogleFirestoreAdminV1RestoreDatabaseRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more