Class: Google::Cloud::Spanner::Database::BackupInfo
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::Database::BackupInfo
- Defined in:
- lib/google/cloud/spanner/database/backup_info.rb
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.
44 45 46 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 44 def backup_id @grpc.backup.split("/")[5] end |
#create_time ⇒ Time
The timestamp indicating the creation of the backup.
89 90 91 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 89 def create_time Convert. @grpc.create_time end |
#instance_id ⇒ String
The unique identifier for the instance.
37 38 39 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 37 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>
.
52 53 54 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 52 def path @grpc.backup end |
#project_id ⇒ String
The unique identifier for the project.
30 31 32 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 30 def project_id @grpc.backup.split("/")[1] end |
#source_database_id ⇒ String
Name of the database the backup was created from.
59 60 61 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 59 def source_database_id @grpc.source_database.split("/")[5] end |
#source_database_instance_id ⇒ String
The unique identifier for the source database instance.
73 74 75 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 73 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>
.
82 83 84 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 82 def source_database_path @grpc.source_database end |
#source_database_project_id ⇒ String
The unique identifier for the source database project.
66 67 68 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 66 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
.
100 101 102 |
# File 'lib/google/cloud/spanner/database/backup_info.rb', line 100 def version_time Convert. @grpc.version_time end |