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