Drive API . about

Instance Methods

get(includeSubscribed=None, startChangeId=None, maxChangeIdCount=None)

Gets the information about the current user along with Drive API settings

Method Details

get(includeSubscribed=None, startChangeId=None, maxChangeIdCount=None)
Gets the information about the current user along with Drive API settings

Args:
  includeSubscribed: boolean, Whether to include subscribed items when calculating the number of remaining change IDs
  startChangeId: string, Change ID to start counting from when calculating number of remaining change IDs
  maxChangeIdCount: string, Maximum number of remaining change IDs to count

Returns:
  An object of the form:

    { # An item with user information and settings.
    "kind": "drive#about", # This is always drive#about.
    "features": [ # List of additional features enabled on this account.
      {
        "featureName": "A String", # The name of the feature.
        "featureRate": 3.14, # The request limit rate for this feature, in queries per second.
      },
    ],
    "quotaBytesUsed": "A String", # The number of quota bytes used.
    "permissionId": "A String", # The current user's ID as visible in the permissions collection.
    "maxUploadSizes": [ # List of max upload sizes for each file type. The most specific type takes precedence.
      {
        "type": "A String", # The file type.
        "size": "A String", # The max upload size for this type.
      },
    ],
    "name": "A String", # The name of the current user.
    "remainingChangeIds": "A String", # The number of remaining change ids.
    "additionalRoleInfo": [ # Information about supported additional roles per file type. The most specific type takes precedence.
      {
        "roleSets": [ # The supported additional roles per primary role.
          {
            "primaryRole": "A String", # A primary permission role.
            "additionalRoles": [ # The supported additional roles with the primary role.
              "A String",
            ],
          },
        ],
        "type": "A String", # The content type that this additional role info applies to.
      },
    ],
    "etag": "A String", # The ETag of the item.
    "importFormats": [ # The allowable import formats.
      {
        "source": "A String", # The imported file's content type to convert from.
        "targets": [ # The possible content types to convert to.
          "A String",
        ],
      },
    ],
    "quotaBytesTotal": "A String", # The total number of quota bytes.
    "rootFolderId": "A String", # The id of the root folder.
    "largestChangeId": "A String", # The largest change id.
    "quotaBytesUsedInTrash": "A String", # The number of quota bytes used by trashed items.
    "exportFormats": [ # The allowable export formats.
      {
        "source": "A String", # The content type to convert from.
        "targets": [ # The possible content types to convert to.
          "A String",
        ],
      },
    ],
    "domainSharingPolicy": "A String", # The domain sharing policy for the current user.
    "selfLink": "A String", # A link back to this item.
    "isCurrentAppInstalled": True or False, # A boolean indicating whether the authenticated app is installed by the authenticated user.
  }