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)

המספר הכולל של הבייטים במכסה. זה רלוונטי רק כאשרQuotaType הוא LIMITED.

quotaBytesUsed

string (int64 format)

מספר הבייטים במכסה ש-Google Drive משתמש בהם.

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 (Drive , 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

הפונקציה מקבלת את המידע על המשתמש הנוכחי לצד הגדרות ה-API של Drive