Method: limits.getLabel

รับข้อจำกัดเกี่ยวกับโครงสร้างของป้ายกำกับ เช่น จำนวนฟิลด์สูงสุดที่อนุญาตและความยาวสูงสุดของชื่อป้ายกำกับ

คำขอ HTTP

GET https://drivelabels.googleapis.com/v2/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

จำนวนตัวเลือกที่ลบสูงสุด