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

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

The request for CreateDatabase.

Instance Attribute Summary collapse

Instance Attribute Details

#create_statementString

Returns 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] and be between 2 and 30 characters in length.

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] and be between 2 and 30 characters in length.



89
# File 'lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb', line 89

class CreateDatabaseRequest; end

#extra_statementsArray<String>

Returns An optional 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>)

    An optional 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.



89
# File 'lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb', line 89

class CreateDatabaseRequest; end

#parentString

Returns 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>.



89
# File 'lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb', line 89

class CreateDatabaseRequest; end