Class: Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb

Overview

The request for RestoreDatabase.

Instance Attribute Summary collapse

Instance Attribute Details

#backup::String

Returns Name of the backup from which to restore. Values are of the form projects/<project>/instances/<instance>/backups/<backup>.

Returns:

  • (::String)

    Name of the backup from which to restore. Values are of the form projects/<project>/instances/<instance>/backups/<backup>.



562
563
564
565
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 562

class RestoreDatabaseRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#database_id::String

Returns 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>.

Returns:

  • (::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>.



562
563
564
565
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 562

class RestoreDatabaseRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#encryption_config::Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseEncryptionConfig

Returns 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.

Returns:



562
563
564
565
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 562

class RestoreDatabaseRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#parent::String

Returns 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>.

Returns:

  • (::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>.



562
563
564
565
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 562

class RestoreDatabaseRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end