Method: projects.locations.collections.dataStores.schemas.create

יצירת Schema.

בקשת HTTP

POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/schemas

כתובת ה-URL כתובה בתחביר של gRPC Transcoding.

פרמטרים של נתיב

פרמטרים
parent

string

חובה. שם המשאב של מאגר הנתונים ההורה, בפורמט projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.

פרמטרים של שאילתה

פרמטרים
schemaId

string

חובה. המזהה לשימוש ב-Schema, שהופך לרכיב הסופי של Schema.name.

השדה הזה צריך להיות בהתאם לתקן RFC-1034, עם מגבלת אורך של 63 תווים.

גוף הבקשה

גוף הבקשה מכיל מופע של Schema.

גוף התשובה

אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל מופע חדש של Operation.

היקפי הרשאות

נדרש אחד מהיקפי ההרשאות הבאים של OAuth:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite

ניתן למצוא מידע נוסף כאן: Authentication Overview.

הרשאות IAM

נדרשת הרשאת IAM הבאה במשאב parent:

  • discoveryengine.schemas.create

מידע נוסף מופיע במאמרי העזרה בנושא IAM.