Class: Google::Cloud::Spanner::Database::RestoreInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/spanner/database/restore_info.rb

Instance Method Summary collapse

Instance Method Details

#backup_infoGoogle::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.

Returns:

  • (Boolean)


40
41
42
# File 'lib/google/cloud/spanner/database/restore_info.rb', line 40

def source_backup?
  @grpc.source_type == :BACKUP
end

#source_typeSymbol

The database restored from source type :BACKUP.

Returns:

  • (Symbol)


32
33
34
# File 'lib/google/cloud/spanner/database/restore_info.rb', line 32

def source_type
  @grpc.source_type
end