Cloud Spanner Database Admin V1 API - Class Google::Cloud::Spanner::Admin::Database::V1::CreateDatabaseRequest (v0.13.0)

Reference documentation and code samples for the Cloud Spanner Database Admin V1 API class Google::Cloud::Spanner::Admin::Database::V1::CreateDatabaseRequest.

The request for CreateDatabase.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_statement

def create_statement() -> ::String
Returns
  • (::String) — Required. A CREATE DATABASE statement, which specifies the ID of the new database. The database ID must conform to the regular expression [a-z][a-z0-9_\-]*[a-z0-9] and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`).

#create_statement=

def create_statement=(value) -> ::String
Parameter
  • value (::String) — Required. A CREATE DATABASE statement, which specifies the ID of the new database. The database ID must conform to the regular expression [a-z][a-z0-9_\-]*[a-z0-9] and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`).
Returns
  • (::String) — Required. A CREATE DATABASE statement, which specifies the ID of the new database. The database ID must conform to the regular expression [a-z][a-z0-9_\-]*[a-z0-9] and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`).

#database_dialect

def database_dialect() -> ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect
Returns

#database_dialect=

def database_dialect=(value) -> ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect
Parameter
Returns

#encryption_config

def encryption_config() -> ::Google::Cloud::Spanner::Admin::Database::V1::EncryptionConfig
Returns

#encryption_config=

def encryption_config=(value) -> ::Google::Cloud::Spanner::Admin::Database::V1::EncryptionConfig
Parameter
Returns

#extra_statements

def extra_statements() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. A list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.

#extra_statements=

def extra_statements=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. A list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.
Returns
  • (::Array<::String>) — Optional. A list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.

#parent

def parent() -> ::String
Returns
  • (::String) — Required. The name of the instance that will serve the new database. Values are of the form projects/<project>/instances/<instance>.

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — Required. The name of the instance that will serve the new database. Values are of the form projects/<project>/instances/<instance>.
Returns
  • (::String) — Required. The name of the instance that will serve the new database. Values are of the form projects/<project>/instances/<instance>.