Class: Google::Cloud::Spanner::Admin::Database::V1::Database
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::Admin::Database::V1::Database
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb
Overview
A Cloud Spanner database.
Defined Under Namespace
Modules: State
Instance Attribute Summary collapse
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#database_dialect ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect
readonly
Output only.
-
#default_leader ⇒ ::String
readonly
Output only.
-
#earliest_version_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#enable_drop_protection ⇒ ::Boolean
Whether drop protection is enabled for this database.
-
#encryption_config ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::EncryptionConfig
readonly
Output only.
-
#encryption_info ⇒ ::Array<::Google::Cloud::Spanner::Admin::Database::V1::EncryptionInfo>
readonly
Output only.
-
#name ⇒ ::String
Required.
-
#reconciling ⇒ ::Boolean
readonly
Output only.
-
#restore_info ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::RestoreInfo
readonly
Output only.
-
#state ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::Database::State
readonly
Output only.
-
#version_retention_period ⇒ ::String
readonly
Output only.
Instance Attribute Details
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. If exists, the time at which the database creation started.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |
#database_dialect ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect (readonly)
Returns Output only. The dialect of the Cloud Spanner Database.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |
#default_leader ⇒ ::String (readonly)
Returns Output only. The read-write region which contains the database's leader replicas.
This is the same as the value of default_leader database option set using DatabaseAdmin.CreateDatabase or DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |
#earliest_version_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Earliest timestamp at which older versions of the data can be read. This value is continuously updated by Cloud Spanner and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |
#enable_drop_protection ⇒ ::Boolean
Returns Whether drop protection is enabled for this database. Defaults to false, if not set. For more details, please see how to prevent accidental database deletion.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |
#encryption_config ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::EncryptionConfig (readonly)
Returns Output only. For databases that are using customer managed encryption, this field contains the encryption configuration for the database. For databases that are using Google default or other types of encryption, this field is empty.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |
#encryption_info ⇒ ::Array<::Google::Cloud::Spanner::Admin::Database::V1::EncryptionInfo> (readonly)
Returns Output only. For databases that are using customer managed encryption, this
field contains the encryption information for the database, such as
all Cloud KMS key versions that are in use. The encryption_status' field
inside of each
EncryptionInfo` is not populated.
For databases that are using Google default or other types of encryption, this field is empty.
This field is propagated lazily from the backend. There might be a delay from when a key version is being used and when it appears in this field.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |
#name ⇒ ::String
Returns Required. The name of the database. Values are of the form
projects/<project>/instances/<instance>/databases/<database>
,
where <database>
is as specified in the CREATE DATABASE
statement. This name can be passed to other API methods to
identify the database.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |
#reconciling ⇒ ::Boolean (readonly)
Returns Output only. If true, the database is being updated. If false, there are no ongoing update operations for the database.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |
#restore_info ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::RestoreInfo (readonly)
Returns Output only. Applicable only for restored databases. Contains information about the restore source.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |
#state ⇒ ::Google::Cloud::Spanner::Admin::Database::V1::Database::State (readonly)
Returns Output only. The current database state.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |
#version_retention_period ⇒ ::String (readonly)
Returns Output only. The period in which Cloud Spanner retains all versions of data for the database. This is the same as the value of version_retention_period database option set using UpdateDatabaseDdl. Defaults to 1 hour, if not set.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb', line 110 class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Indicates the current state of the database. module State # Not specified. STATE_UNSPECIFIED = 0 # The database is still being created. Operations on the database may fail # with `FAILED_PRECONDITION` in this state. CREATING = 1 # The database is fully created and ready for use. READY = 2 # The database is fully created and ready for use, but is still # being optimized for performance and cannot handle full load. # # In this state, the database still references the backup # it was restore from, preventing the backup # from being deleted. When optimizations are complete, the full performance # of the database will be restored, and the database will transition to # `READY` state. READY_OPTIMIZING = 3 end end |