Method: limits.getLabel

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

คำขอ HTTP

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

URL ใช้ไวยากรณ์การแปลง gRPC

พารามิเตอร์การค้นหา

พารามิเตอร์
name

string

ต้องระบุ ชื่อทรัพยากรการแก้ไขป้ายกำกับต้องเป็น "ขีดจำกัด/ป้ายกำกับ"

เนื้อหาของคำขอ

เนื้อหาของคำขอต้องว่างเปล่า

เนื้อหาการตอบกลับ

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

หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้

การแสดง 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

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