Method: limits.getLabel

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

בקשת HTTP

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

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

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

פרמטרים
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)

הערך המינימלי לסוג השדה 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

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