REST Resource: projects.locations.dataStores.schemas

משאב: סכימה

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

ייצוג JSON
{
  "name": string,

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

ייצוג סכימה. צריך לספק את אחד מהערכים struct_schema או json_schema, אחרת מוצגת שגיאה INVALID_ARGUMENT. בהמשך מפורטת רשימה של שדות שאי אפשר להשתמש בהם בו-זמנית. רק אחד מהשדות הבאים יוגדר בתשובה:
structSchema

object (Struct format)

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

jsonSchema

string

ייצוג ה-JSON של הסכימה.

סוף השדות הבלעדיים.

Methods

create

יצירת Schema.

delete

מחיקת Schema.

get

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

list

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

patch

עדכון של Schema.