Class: Google::Cloud::Spanner::Database::RestoreInfo
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::Database::RestoreInfo
- Defined in:
- lib/google/cloud/spanner/database/restore_info.rb
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.
48 49 50 51 |
# File 'lib/google/cloud/spanner/database/restore_info.rb', line 48 def backup_info return nil unless @grpc.backup_info BackupInfo.from_grpc @grpc.backup_info end |
#source_backup? ⇒ Boolean
Database restored from backup.
40 41 42 |
# File 'lib/google/cloud/spanner/database/restore_info.rb', line 40 def source_backup? @grpc.source_type == :BACKUP end |
#source_type ⇒ Symbol
The database restored from source type :BACKUP
.
32 33 34 |
# File 'lib/google/cloud/spanner/database/restore_info.rb', line 32 def source_type @grpc.source_type end |