REST Resource: projects.locations.dataStores.schemas

資源:結構定義

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

JSON 表示法
{
  "name": string,

  // Union field schema can be only one of the following:
  "structSchema": {
    object
  },
  "jsonSchema": string
  // End of list of possible types for union field schema.
}
欄位
name

string

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

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

聯集欄位 schema。結構定義表示方式。請提供 struct_schemajson_schema 其中一個,否則系統會擲回 INVALID_ARGUMENT 錯誤。schema 只能是下列其中一項:
structSchema

object (Struct format)

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

jsonSchema

string

結構定義的 JSON 表示法。

方法

create

建立 Schema

delete

刪除 Schema

get

取得 Schema

list

取得 Schema 清單。

patch

更新 Schema