Class: Google::Spanner::Admin::Database::V1::Database
- Inherits:
-
Object
- Object
- Google::Spanner::Admin::Database::V1::Database
- Defined in:
- lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb
Overview
A Cloud Spanner database.
Defined Under Namespace
Modules: State
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#state ⇒ Google::Spanner::Admin::Database::V1::Database::State
Output only.
Instance Attribute Details
#name ⇒ String
Returns Required. The name of the database. Values are of the form
+projects/
42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb', line 42 class Database # 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 end end |
#state ⇒ Google::Spanner::Admin::Database::V1::Database::State
Returns Output only. The current database state.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb', line 42 class Database # 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 end end |