GoogleApi.Spanner.V1.Model.RestoreDatabaseRequest (google_api_spanner v0.32.0) View Source

The request for RestoreDatabase.


  • backup (type: String.t, default: nil) - Name of the backup from which to restore. Values are of the form projects//instances//backups/.
  • databaseId (type: String.t, default: nil) - 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//instances//databases/.
  • encryptionConfig (type: GoogleApi.Spanner.V1.Model.RestoreDatabaseEncryptionConfig.t, default: nil) - 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 = USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION.

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() :: %GoogleApi.Spanner.V1.Model.RestoreDatabaseRequest{
  backup: String.t() | nil,
  databaseId: String.t() | nil,
    GoogleApi.Spanner.V1.Model.RestoreDatabaseEncryptionConfig.t() | nil

Link to this section Functions


decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.