Class: Google::Spanner::Admin::Database::V1::CreateDatabaseRequest
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Spanner::Admin::Database::V1::CreateDatabaseRequest
 
 
- 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
- 
  
    
      #create_statement  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #extra_statements  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
An optional list of DDL statements to run inside the newly created database.
 - 
  
    
      #parent  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 
Instance Attribute Details
#create_statement ⇒ String
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_-]*[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_statements ⇒ Array<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.
      89  | 
    
      # File 'lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb', line 89 class CreateDatabaseRequest; end  | 
  
#parent ⇒ String
Returns Required. The name of the instance that will serve the new database.
Values are of the form +projects/
      89  | 
    
      # File 'lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb', line 89 class CreateDatabaseRequest; end  |