drive/v2 library

Google Drive API - v2

The Google Drive API allows clients to access resources from Google Drive.

For more information, see developers.google.com/drive/

Create an instance of DriveApi to access these resources:

Classes

About
An item with user information and settings.
AboutAdditionalRoleInfo
AboutAdditionalRoleInfoRoleSets
AboutDriveThemes
AboutExportFormats
AboutFeatures
AboutImportFormats
AboutMaxUploadSizes
AboutQuotaBytesByService
AboutResource
AboutTeamDriveThemes
App
The apps resource provides a list of the apps that a user has installed, with information about each app's supported MIME types, file extensions, and other details.
AppIcons
AppList
A list of third-party applications which the user has installed or given access to Google Drive.
AppsResource
ByteRange
Specifies a range of media.
Change
Representation of a change to a file or shared drive.
ChangeList
A list of changes for a user.
ChangesResource
ChannelsResource
ChildList
A list of children of a file.
ChildReference
A reference to a folder's child.
ChildrenResource
Comment
A comment on a file in Google Drive.
CommentContext
The context of the file which is being commented on.
CommentList
A list of comments on a file in Google Drive.
CommentReply
A comment on a file in Google Drive.
CommentReplyList
A list of replies to a comment on a file in Google Drive.
CommentsResource
ContentRestriction
A restriction for accessing the content of the file.
DownloadOptions
Represents options for downloading media.
Drive
Representation of a shared drive.
DriveApi
The Google Drive API allows clients to access resources from Google Drive.
DriveBackgroundImageFile
An image file and cropping parameters from which a background image for this shared drive is set.
DriveCapabilities
Capabilities the current user has on this shared drive.
DriveList
A list of shared drives.
DriveRestrictions
A set of restrictions that apply to this shared drive or items inside this shared drive.
DrivesResource
File
The metadata for a file.
FileCapabilities
Capabilities the current user has on this file.
FileImageMediaMetadata
Metadata about image media.
FileImageMediaMetadataLocation
Geographic location information stored in the image.
FileIndexableText
Indexable text attributes for the file (can only be written)
FileLabelInfo
An overview of the labels on the file.
FileLabels
A group of labels for the file.
FileLinkShareMetadata
Contains details about the link URLs that clients are using to refer to this item.
FileList
A list of files.
FileShortcutDetails
Shortcut file details.
FilesResource
FileThumbnail
A thumbnail for the file.
FileVideoMediaMetadata
Metadata about video media.
GeneratedIds
A list of generated IDs which can be provided in insert requests
Label
Representation of a label and label fields.
LabelField
Representation of field, which is a typed key-value pair.
LabelFieldModification
A modification to a label's field.
LabelList
A list of labels applied to a file.
LabelModification
A modification to a label on a file.
Media
Represents a media consisting of a stream of bytes, a content type and a length.
ModifyLabelsRequest
A request to modify the set of labels on a file.
ModifyLabelsResponse
Response to a ModifyLabels request.
ParentList
A list of a file's parents.
ParentReference
A reference to a file's parent.
ParentsResource
PartialDownloadOptions
Options for downloading a Media.
Permission
A permission for a file.
PermissionId
An ID for a user or group as seen in Permission items.
PermissionList
A list of permissions associated with a file.
PermissionPermissionDetails
PermissionsResource
PermissionTeamDrivePermissionDetails
PropertiesResource
Property
A key-value pair attached to a file that is either public or private to an application.
PropertyList
A collection of properties, key-value pairs that are either public or private to an application.
RepliesResource
ResumableUploadOptions
Specifies options for resumable uploads.
Revision
A revision of a file.
RevisionList
A list of revisions of a file.
RevisionsResource
StartPageToken
TeamDrive
Deprecated: Use the drive collection instead.
TeamDriveBackgroundImageFile
An image file and cropping parameters from which a background image for this Team Drive is set.
TeamDriveCapabilities
Capabilities the current user has on this Team Drive.
TeamDriveList
A list of Team Drives.
TeamDriveRestrictions
A set of restrictions that apply to this Team Drive or items inside this Team Drive.
TeamdrivesResource
UploadOptions
Represents options for uploading a Media.
User
Information about a Drive user.
UserPicture
The user's profile picture.

Typedefs

Channel = $Channel01
A notification channel used to watch for resource changes.

Exceptions / Errors

ApiRequestError
Represents a general error reported by the API endpoint.
DetailedApiRequestError
Represents a specific error reported by the API endpoint.