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

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

Overview

Deprecated.

Use

Admin::Database::V1::RestoreInfo instead.

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.



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.

Returns:

  • (Boolean)


45
46
47
# File 'lib/google/cloud/spanner/database/restore_info.rb', line 45

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

#source_typeSymbol

The database restored from source type :BACKUP.

Returns:

  • (Symbol)


37
38
39
# File 'lib/google/cloud/spanner/database/restore_info.rb', line 37

def source_type
  @grpc.source_type
end