Class: Google::Cloud::Spanner::Database::BackupInfo Deprecated

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

Overview

Deprecated.

Use

Admin::Database::V1::BackupInfo instead.

Instance Method Summary collapse

Instance Method Details

#backup_idString

The unique identifier for the backup.

Returns:

  • (String)


49
50
51
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 49

def backup_id
  @grpc.backup.split("/")[5]
end

#create_timeTime

The timestamp indicating the creation of the backup.

Returns:

  • (Time)


94
95
96
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 94

def create_time
  Convert.timestamp_to_time @grpc.create_time
end

#instance_idString

The unique identifier for the instance.

Returns:

  • (String)


42
43
44
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 42

def instance_id
  @grpc.backup.split("/")[3]
end

#pathString

The full path for the backup. Values are of the form projects/<project>/instances/<instance>/backups/<backup_id>.

Returns:

  • (String)


57
58
59
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 57

def path
  @grpc.backup
end

#project_idString

The unique identifier for the project.

Returns:

  • (String)


35
36
37
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 35

def project_id
  @grpc.backup.split("/")[1]
end

#source_database_idString

Name of the database the backup was created from.

Returns:

  • (String)


64
65
66
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 64

def source_database_id
  @grpc.source_database.split("/")[5]
end

#source_database_instance_idString

The unique identifier for the source database instance.

Returns:

  • (String)


78
79
80
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 78

def source_database_instance_id
  @grpc.backup.split("/")[3]
end

#source_database_pathString

The full path for the source database the backup was created from. Values are of the form projects/<project>/instances/<instance>/database/<database_id>.

Returns:

  • (String)


87
88
89
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 87

def source_database_path
  @grpc.source_database
end

#source_database_project_idString

The unique identifier for the source database project.

Returns:

  • (String)


71
72
73
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 71

def source_database_project_id
  @grpc.backup.split("/")[1]
end

#version_timeTime

The backup contains an externally consistent copy of source_database at the timestamp specified by the version_time received. If no version_time was given during the creation of the backup, the version_time will be the same as the create_time.

Returns:

  • (Time)


105
106
107
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 105

def version_time
  Convert.timestamp_to_time @grpc.version_time
end