REST Resource: projects.locations.dataStores.schemas

資源:結構定義

定義文件資料類型的結構和版面配置。

JSON 表示法
{
  "name": string,
  "fieldConfigs": [
    {
      object (FieldConfig)
    }
  ],

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "structSchema": {
    object
  },
  "jsonSchema": string
  // End of mutually exclusive fields.
}
欄位
name

string

不可變動。結構定義的完整資源名稱,格式為 projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}/schemas/{schema}。

這個欄位必須是 UTF-8 編碼的字串,長度上限為 1024 個字元。

fieldConfigs[]

object (FieldConfig)

僅供輸出。結構定義欄位的設定。

結構定義表示法。請提供 struct_schema 或 json_schema,否則系統會擲回 INVALID_ARGUMENT 錯誤。以下列出互斥的欄位。回應中最多只會設定一個欄位:
structSchema

object (Struct format)

結構定義的結構化表示法。

jsonSchema

string

結構定義的 JSON 表示法。

互斥欄位的結尾。

方法

create

建立 Schema。

delete

刪除 Schema。

get

取得 Schema。

list

取得 Schema 清單。

patch

更新 Schema。