Resource: Database
Database is the container of tables.
| JSON representation | 
|---|
{ "name": string, "createTime": string, "updateTime": string, "deleteTime": string, "expireTime": string, "type": enum (  | 
              
| Fields | |
|---|---|
name | 
                
                   
 Output only. The resource name. Format: projects/{project_id_or_number}/locations/{locationId}/catalogs/{catalogId}/databases/{databaseId}  | 
              
createTime | 
                
                   
 Output only. The creation time of the database. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples:   | 
              
updateTime | 
                
                   
 Output only. The last modification time of the database. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples:   | 
              
deleteTime | 
                
                   
 Output only. The deletion time of the database. Only set after the database is deleted. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples:   | 
              
expireTime | 
                
                   
 Output only. The time when this database is considered expired. Only set after the database is deleted. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples:   | 
              
type | 
                
                   
 The database type.  | 
              
Union field options. Options specified for the database type. options can be only one of the following: | 
              |
hiveOptions | 
                
                   
 Options of a Hive database.  | 
              
HiveDatabaseOptions
Options of a Hive database.
| JSON representation | 
|---|
{ "locationUri": string, "parameters": { string: string, ... } }  | 
              
| Fields | |
|---|---|
locationUri | 
                
                   
 Cloud Storage folder URI where the database data is stored, starting with "gs://".  | 
              
parameters | 
                
                   
 Stores user supplied Hive database parameters. An object containing a list of   | 
              
Type
The database type.
| Enums | |
|---|---|
TYPE_UNSPECIFIED | 
                The type is not specified. | 
HIVE | 
                Represents a database storing tables compatible with Hive Metastore tables. | 
Methods | 
            |
|---|---|
                
 | 
              Creates a new database. | 
                
 | 
              Deletes an existing database specified by the database ID. | 
                
 | 
              Gets the database specified by the resource name. | 
                
 | 
              List all databases in a specified catalog. | 
                
 | 
              Updates an existing database specified by the database ID. |