Class: Google::Cloud::Spanner::Database::RestoreInfo Deprecated
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::Database::RestoreInfo
- Defined in:
- lib/google/cloud/spanner/database/restore_info.rb
Overview
Deprecated.
Use
Admin::Database::V1::RestoreInfo instead.
Instance Method Summary collapse
-
#backup_info ⇒ Google::Cloud::Spanner::Database::BackupInfo?
Information about the backup used to restore the database.
-
#source_backup? ⇒ Boolean
Database restored from backup.
-
#source_type ⇒ Symbol
The database restored from source type
:BACKUP
.
Instance Method Details
#backup_info ⇒ Google::Cloud::Spanner::Database::BackupInfo?
Information about the backup used to restore the database. The backup may no longer exist.
53 54 55 56 |
# File 'lib/google/cloud/spanner/database/restore_info.rb', line 53 def backup_info return nil unless @grpc.backup_info BackupInfo.from_grpc @grpc.backup_info end |
#source_backup? ⇒ Boolean
Database restored from backup.
45 46 47 |
# File 'lib/google/cloud/spanner/database/restore_info.rb', line 45 def source_backup? @grpc.source_type == :BACKUP end |
#source_type ⇒ Symbol
The database restored from source type :BACKUP
.
37 38 39 |
# File 'lib/google/cloud/spanner/database/restore_info.rb', line 37 def source_type @grpc.source_type end |