Method: limits.getLabel

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

בקשת HTTP

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

בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של 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)

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

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

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