class Google::Apis::SpannerV1::CreateDatabaseRequest

The request for CreateDatabase.

Attributes

create_statement[RW]

Required. A `CREATE DATABASE` statement, which specifies the ID of the new database. The database ID must conform to the regular expression `a-z*` 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 (“ ` “). Corresponds to the JSON property `createStatement` @return [String]

encryption_config[RW]

Encryption configuration for a Cloud Spanner database. Corresponds to the JSON property `encryptionConfig` @return [Google::Apis::SpannerV1::EncryptionConfig]

extra_statements[RW]

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. Corresponds to the JSON property `extraStatements` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 878
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/spanner_v1/classes.rb, line 883
def update!(**args)
  @create_statement = args[:create_statement] if args.key?(:create_statement)
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
  @extra_statements = args[:extra_statements] if args.key?(:extra_statements)
end