REST Resource: projects.locations.dataStores.schemas

משאב: סכימה

הגדרה של המבנה והפריסה של סוג נתונים במסמך.

ייצוג ב-JSON
{
  "name": string,
  "fieldConfigs": [
    {
      object (FieldConfig)
    }
  ],

  // 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, עם מגבלת אורך של 1,024 תווים.

fieldConfigs[]

object (FieldConfig)

פלט בלבד. הגדרות של שדות בסכימה.

שדה איחוד schema. ייצוג סכימה. צריך לציין את אחד מהערכים struct_schema או json_schema, אחרת מוצגת שגיאה INVALID_ARGUMENT. הערך schema יכול להיות רק אחד מהבאים:
structSchema

object (Struct format)

הייצוג המובנה של הסכמה.

jsonSchema

string

ייצוג הסכימה ב-JSON.

Methods

create

יצירת Schema.

delete

מחיקת Schema.

get

הפונקציה מחזירה Schema.

list

מקבל רשימה של Schema.

patch

עדכון של Schema.