Method: limits.getLabel

קבלת האילוצים לגבי המבנה של תווית, כמו המספר המקסימלי של השדות המותרים והאורך המקסימלי של שם התווית.

בקשת HTTP

GET https://drivelabels.googleapis.com/v2/limits/label

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

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

פרמטרים
name

string

חובה. שם המשאב של עדכון התווית חייב להיות: limits/label.

גוף הבקשה

גוף הבקשה צריך להיות ריק.

גוף התשובה

מגבלות על תוויות שקובעות את המבנה של התווית, כמו מספר השדות המקסימלי המותר והאורך המקסימלי של שם התווית.

אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:

ייצוג ב-JSON
{
  "name": string,
  "maxTitleLength": integer,
  "maxDescriptionLength": integer,
  "maxFields": integer,
  "maxDeletedFields": integer,
  "maxDraftRevisions": integer,
  "fieldLimits": {
    object (FieldLimits)
  }
}
שדות
name

string

שם המשאב.

maxTitleLength

integer

מספר התווים המקסימלי שאפשר להזין בכותרת.

maxDescriptionLength

integer

מספר התווים המקסימלי שאפשר להזין בתיאור.

maxFields

integer

המספר המקסימלי של שדות שמותר להוסיף לתווית.

maxDeletedFields

integer

המספר המקסימלי של שדות שפורסמו שאפשר למחוק.

maxDraftRevisions

integer

המספר המקסימלי של טיוטות שיישארו לפני מחיקת טיוטות ישנות.

fieldLimits

object (FieldLimits)

המגבלות של השדות.

היקפי הרשאה

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

  • https://www.googleapis.com/auth/drive.labels
  • https://www.googleapis.com/auth/drive.labels.readonly
  • https://www.googleapis.com/auth/drive.admin.labels
  • https://www.googleapis.com/auth/drive.admin.labels.readonly

מידע נוסף זמין במדריך ההרשאות.

FieldLimits

קבועים של שדות שקובעים את המבנה של שדה, כמו אורך מקסימלי של שם, ערכי שדה מינימליים ומקסימליים או אורך מינימלי ומקסימלי וכו'.

ייצוג ב-JSON
{
  "maxIdLength": integer,
  "maxDisplayNameLength": integer,
  "maxDescriptionLength": integer,
  "textLimits": {
    object (TextLimits)
  },
  "longTextLimits": {
    object (LongTextLimits)
  },
  "integerLimits": {
    object (IntegerLimits)
  },
  "dateLimits": {
    object (DateLimits)
  },
  "userLimits": {
    object (UserLimits)
  },
  "selectionLimits": {
    object (SelectionLimits)
  }
}
שדות
maxIdLength

integer

האורך המקסימלי של הערך של מאפיין המזהה.

maxDisplayNameLength

integer

מגבלות על שם השדה.

maxDescriptionLength

integer

מגבלות לתיאור השדה, שנקרא גם טקסט עזרה.

textLimits

object (TextLimits)

המגבלות הרלוונטיות ל-Field.Type שצוין. מגבלות על שדות טקסט.

longTextLimits

object (LongTextLimits)

מגבלות על שדות טקסט ארוכים.

integerLimits

object (IntegerLimits)

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

dateLimits

object (DateLimits)

מגבלות על שדות תאריך.

userLimits

object (UserLimits)

מגבלות על שדות משתמשים.

selectionLimits

object (SelectionLimits)

מגבלות של שדה בחירה.

TextLimits

מגבלות על סוג שדה הטקסט.

ייצוג ב-JSON
{
  "minLength": integer,
  "maxLength": integer
}
שדות
minLength

integer

האורך המינימלי המותר לשדה מסוג טקסט.

maxLength

integer

האורך המקסימלי המותר לשדה מסוג טקסט.

LongTextLimits

מגבלות לסוג השדה 'טקסט ארוך'.

ייצוג ב-JSON
{
  "minLength": integer,
  "maxLength": integer
}
שדות
minLength

integer

האורך המינימלי המותר לסוג השדה 'טקסט ארוך'.

maxLength

integer

האורך המקסימלי המותר לסוג השדה 'טקסט ארוך'.

IntegerLimits

מגבלות לסוג השדה 'מספר שלם'.

ייצוג ב-JSON
{
  "minValue": string,
  "maxValue": string
}
שדות
minValue

string (int64 format)

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

maxValue

string (int64 format)

הערך המקסימלי לסוג שדה של מספר שלם.

DateLimits

מגבלות לסוג השדה 'תאריך'.

ייצוג ב-JSON
{
  "minValue": {
    object (Date)
  },
  "maxValue": {
    object (Date)
  }
}
שדות
minValue

object (Date)

הערך המינימלי לסוג השדה 'תאריך'.

maxValue

object (Date)

הערך המקסימלי לסוג השדה 'תאריך'.

UserLimits

מגבלות על Field.Type.USER.

ייצוג ב-JSON
{
  "listLimits": {
    object (ListLimits)
  }
}
שדות
listLimits

object (ListLimits)

מגבלות על שדה מסוג רשימה.

ListLimits

מגבלות על שדה מסוג רשימה.

ייצוג ב-JSON
{
  "maxEntries": integer
}
שדות
maxEntries

integer

מספר הערכים המקסימלי שמותר להזין בשדה מהסוג הזה.

SelectionLimits

מגבלות לסוג השדה 'בחירה'.

ייצוג ב-JSON
{
  "listLimits": {
    object (ListLimits)
  },
  "maxIdLength": integer,
  "maxDisplayNameLength": integer,
  "maxChoices": integer,
  "maxDeletedChoices": integer
}
שדות
listLimits

object (ListLimits)

מגבלות על שדה מסוג רשימה.

maxIdLength

integer

אורך המזהה המקסימלי לאפשרות בחירה.

maxDisplayNameLength

integer

האורך המקסימלי של השם המוצג.

maxChoices

integer

מספר הבחירות המקסימלי.

maxDeletedChoices

integer

המספר המקסימלי של בחירות שנמחקו.