Class: Google::Spanner::Admin::Database::V1::Database

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#nameString

Returns Required. The name of the database. Values are of the form +projects//instances//databases/+, where ++ is as specified in the +CREATE DATABASE+ statement. This name can be passed to other API methods to identify the database.

Returns:

  • (String)

    Required. The name of the database. Values are of the form +projects//instances//databases/+, where ++ is as specified in the +CREATE DATABASE+ statement. This name can be passed to other API methods to identify the database.



31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb', line 31

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

#stateGoogle::Spanner::Admin::Database::V1::Database::State

Returns Output only. The current database state.

Returns:



31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb', line 31

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