Class: Google::Cloud::Spanner::Database::BackupInfo Deprecated
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::Database::BackupInfo
- Defined in:
- lib/google/cloud/spanner/database/backup_info.rb
Overview
Use
Admin::Database::V1::BackupInfo instead.
Instance Method Summary collapse
-
#backup_id ⇒ String
The unique identifier for the backup.
-
#create_time ⇒ Time
The timestamp indicating the creation of the backup.
-
#instance_id ⇒ String
The unique identifier for the instance.
-
#path ⇒ String
The full path for the backup.
-
#project_id ⇒ String
The unique identifier for the project.
-
#source_database_id ⇒ String
Name of the database the backup was created from.
-
#source_database_instance_id ⇒ String
The unique identifier for the source database instance.
-
#source_database_path ⇒ String
The full path for the source database the backup was created from.
-
#source_database_project_id ⇒ String
The unique identifier for the source database project.
-
#version_time ⇒ Time
The backup contains an externally consistent copy of
source_database
at the timestamp specified by theversion_time
received.
Instance Method Details
#backup_id ⇒ String
The unique identifier for the backup.
49 50 51 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 49 def backup_id @grpc.backup.split("/")[5] end |
#create_time ⇒ Time
The timestamp indicating the creation of the backup.
94 95 96 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 94 def create_time Convert. @grpc.create_time end |
#instance_id ⇒ String
The unique identifier for the instance.
42 43 44 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 42 def instance_id @grpc.backup.split("/")[3] end |
#path ⇒ String
The full path for the backup. Values are of the form
projects/<project>/instances/<instance>/backups/<backup_id>
.
57 58 59 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 57 def path @grpc.backup end |
#project_id ⇒ String
The unique identifier for the project.
35 36 37 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 35 def project_id @grpc.backup.split("/")[1] end |
#source_database_id ⇒ String
Name of the database the backup was created from.
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_id ⇒ String
The unique identifier for the source database instance.
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_path ⇒ String
The full path for the source database the backup was created from.
Values are of the form
projects/<project>/instances/<instance>/database/<database_id>
.
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_id ⇒ String
The unique identifier for the source database project.
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_time ⇒ Time
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
.
105 106 107 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 105 def version_time Convert. @grpc.version_time end |