REST Resource: about

แหล่งข้อมูล: เกี่ยวกับ

รายการที่มีข้อมูลผู้ใช้และการตั้งค่า

การแสดง JSON
{
  "name": string,
  "quotaBytesTotal": string,
  "quotaBytesUsed": string,
  "quotaBytesUsedInTrash": string,
  "largestChangeId": string,
  "remainingChangeIds": string,
  "rootFolderId": string,
  "importFormats": [
    {
      "source": string,
      "targets": [
        string
      ]
    }
  ],
  "exportFormats": [
    {
      "source": string,
      "targets": [
        string
      ]
    }
  ],
  "additionalRoleInfo": [
    {
      "type": string,
      "roleSets": [
        {
          "primaryRole": string,
          "additionalRoles": [
            string
          ]
        }
      ]
    }
  ],
  "features": [
    {
      "featureName": string,
      "featureRate": number
    }
  ],
  "maxUploadSizes": [
    {
      "type": string,
      "size": string
    }
  ],
  "domainSharingPolicy": string,
  "kind": string,
  "permissionId": string,
  "isCurrentAppInstalled": boolean,
  "quotaBytesUsedAggregate": string,
  "user": {
    object (User)
  },
  "etag": string,
  "languageCode": string,
  "selfLink": string,
  "quotaType": string,
  "folderColorPalette": [
    string
  ],
  "driveThemes": [
    {
      "id": string,
      "backgroundImageLink": string,
      "colorRgb": string
    }
  ],
  "canCreateDrives": boolean,
  "quotaBytesByService": [
    {
      "serviceName": string,
      "bytesUsed": string
    }
  ],
  "teamDriveThemes": [
    {
      "id": string,
      "backgroundImageLink": string,
      "colorRgb": string
    }
  ],
  "canCreateTeamDrives": boolean
}
ช่อง
name

string

ชื่อของผู้ใช้ปัจจุบัน

quotaBytesTotal

string (int64 format)

จำนวนไบต์โควต้าทั้งหมด ซึ่งจะเกี่ยวข้องเมื่อ transactionType คือ LIMITED เท่านั้น

quotaBytesUsed

string (int64 format)

จำนวนไบต์ของโควต้าที่ Google ไดรฟ์ใช้

quotaBytesUsedInTrash

string (int64 format)

จำนวนไบต์โควต้าที่ใช้โดยรายการในถังขยะ

largestChangeId

string (int64 format)

รหัสการเปลี่ยนแปลงที่มากที่สุด

remainingChangeIds

string (int64 format)

จำนวนรหัสการเปลี่ยนแปลงที่เหลือ จำกัดไม่เกิน 2, 500 รายการ

rootFolderId

string

รหัสของโฟลเดอร์รูท

importFormats[]

object

รูปแบบการนำเข้าที่อนุญาต

importFormats[].source

string

ประเภทเนื้อหาของไฟล์ที่นำเข้าที่ต้องการแปลง

importFormats[].targets[]

string

ประเภทเนื้อหาที่เป็นไปได้ที่จะแปลงเป็น

exportFormats[]

object

รูปแบบการส่งออกที่อนุญาต

exportFormats[].source

string

ประเภทเนื้อหาที่จะแปลง

exportFormats[].targets[]

string

ประเภทเนื้อหาที่เป็นไปได้ที่จะแปลงเป็น

additionalRoleInfo[]

object

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

additionalRoleInfo[].type

string

ประเภทเนื้อหาที่จะนำข้อมูลบทบาทเพิ่มเติมนี้ไปใช้

additionalRoleInfo[].roleSets[]

object

บทบาทเพิ่มเติมที่รองรับต่อบทบาทหลัก

additionalRoleInfo[].roleSets[].primaryRole

string

บทบาทสิทธิ์หลัก

additionalRoleInfo[].roleSets[].additionalRoles[]

string

บทบาทเพิ่มเติมที่รองรับพร้อมบทบาทหลัก

features[]

object

รายการฟีเจอร์เพิ่มเติมที่เปิดใช้ในบัญชีนี้

features[].featureName

string

ชื่อของฟีเจอร์

features[].featureRate

number

อัตราขีดจำกัดคำขอสำหรับฟีเจอร์นี้ เป็นการค้นหาต่อวินาที

maxUploadSizes[]

object

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

maxUploadSizes[].type

string

ประเภทไฟล์

maxUploadSizes[].size

string (int64 format)

ขนาดการอัปโหลดสูงสุดสำหรับประเภทนี้

domainSharingPolicy

string

นโยบายการแชร์โดเมนสำหรับผู้ใช้ปัจจุบัน ค่าที่เป็นไปได้มีดังนี้

  • allowed
  • allowedWithWarning
  • incomingOnly
  • disallowed
kind

string

เป็น drive#about เสมอ

permissionId

string

รหัสผู้ใช้ปัจจุบันตามที่แสดงในคอลเล็กชันสิทธิ์

isCurrentAppInstalled

boolean

บูลีนที่ระบุว่าผู้ใช้ที่ตรวจสอบสิทธิ์แล้วติดตั้งแอปที่ตรวจสอบสิทธิ์แล้วหรือไม่

quotaBytesUsedAggregate

string (int64 format)

จำนวนไบต์ของโควต้าที่ใช้โดยแอปพลิเคชันทั้งหมดของ Google (ไดรฟ์, Picasa ฯลฯ)

user

object (User)

ผู้ใช้ที่ตรวจสอบสิทธิ์แล้ว

etag

string

ETag ของสินค้า

languageCode

string

รหัสภาษาหรือรหัสท้องถิ่นของผู้ใช้ตามที่กำหนดโดย BCP 47 โดยมีส่วนขยายบางส่วนจากรูปแบบ LDML ของ Unicode (http://www.unicode.org/reports/tr35/)

quotaType

string

ประเภทโควต้าพื้นที่เก็บข้อมูลของผู้ใช้ ค่าที่เป็นไปได้มีดังนี้

  • LIMITED
  • UNLIMITED
folderColorPalette[]

string

ชุดสีโฟลเดอร์ที่อนุญาตเป็นสตริงฐานสิบหก RGB

driveThemes[]

object

รายการธีมที่ไดรฟ์ที่แชร์รองรับ

driveThemes[].id

string

รหัสของธีม

driveThemes[].backgroundImageLink

string

ลิงก์ไปยังภาพพื้นหลังของธีมนี้

driveThemes[].colorRgb

string

สีของธีมนี้เป็นสตริงฐานสิบหก RGB

canCreateDrives

boolean

ผู้ใช้สร้างไดรฟ์ที่แชร์ได้หรือไม่

quotaBytesByService[]

object

ปริมาณโควต้าพื้นที่เก็บข้อมูลที่ใช้โดยบริการต่างๆ ของ Google

quotaBytesByService[].serviceName

string

ชื่อบริการ เช่น drive, gmail หรือ PHOTOS

quotaBytesByService[].bytesUsed

string (int64 format)

จำนวนไบต์ของโควต้าพื้นที่เก็บข้อมูลที่บริการใช้

teamDriveThemes[]
(deprecated)

object

เลิกใช้งานแล้ว: ใช้ driveThemes แทน

teamDriveThemes[]
(deprecated).id
(deprecated)

string

เลิกใช้งานแล้ว: ใช้ driveThemes/id แทน

teamDriveThemes[]
(deprecated).backgroundImageLink
(deprecated)

string

เลิกใช้งานแล้ว: ใช้ driveThemes/backgroundImageLink แทน

teamDriveThemes[]
(deprecated).colorRgb
(deprecated)

string

เลิกใช้งานแล้ว: ใช้ driveThemes/colorRgb แทน

canCreateTeamDrives
(deprecated)

boolean

เลิกใช้งานแล้ว: ใช้ canCreateDrives แทน

วิธีการ

get

รับข้อมูลเกี่ยวกับผู้ใช้ปัจจุบันพร้อมกับการตั้งค่า Drive API