REST Resource: projects.locations.catalogs.databases

資源:資料庫

資料庫是資料表的容器。

JSON 表示法
{
  "name": string,
  "createTime": string,
  "updateTime": string,
  "deleteTime": string,
  "expireTime": string,
  "type": enum (Type),

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "hiveOptions": {
    object (HiveDatabaseOptions)
  }
  // End of mutually exclusive fields.
}
欄位
name

string

僅供輸出。資源名稱。格式:projects/{project_id_or_number}/locations/{locationId}/catalogs/{catalogId}/databases/{databaseId}

createTime

string (Timestamp format)

僅供輸出。資料庫的建立時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

updateTime

string (Timestamp format)

僅供輸出。資料庫的上次修改時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

deleteTime

string (Timestamp format)

僅供輸出。資料庫的刪除時間。只有在刪除資料庫後才能設定。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

expireTime

string (Timestamp format)

僅供輸出。資料庫的到期時間。只有在刪除資料庫後才能設定。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

type

enum (Type)

資料庫類型。

為資料庫類型指定的選項。以下列出互斥欄位。回應中最多會設定一個欄位:
hiveOptions

object (HiveDatabaseOptions)

Hive 資料庫的選項。

互斥欄位的結尾。

HiveDatabaseOptions

Hive 資料庫的選項。

JSON 表示法
{
  "locationUri": string,
  "parameters": {
    string: string,
    ...
  }
}
欄位
locationUri

string

資料庫資料的 Cloud Storage 資料夾 URI,開頭為「gs://」。

parameters

map (key: string, value: string)

儲存使用者提供的 Hive 資料庫參數。

包含 "key": value 組合清單的物件,範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }。

類型

資料庫類型。

列舉
TYPE_UNSPECIFIED 未指定類型。
HIVE 代表儲存與 Hive Metastore 資料表相容資料表的資料庫。

方法

create

建立新的資料庫。

delete

刪除資料庫 ID 指定的現有資料庫。

get

取得資源名稱指定的資料庫。

list

列出指定目錄中的所有資料庫。

patch

更新資料庫 ID 指定的現有資料庫。