"description": "Selector specifying which fields to include in a partial response.",
"location": "query"
},
"key": {
"type": "string",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query"
},
"oauth_token": {
"type": "string",
"description": "OAuth 2.0 token for the current user.",
"location": "query"
},
"prettyPrint": {
"type": "boolean",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"location": "query"
},
"quotaUser": {
"type": "string",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
"location": "query"
},
"userIp": {
"type": "string",
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"location": "query"
}
},
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/drive": {
"description": "View and manage the files in your Google Drive"
"description": "Declares a new parameter by name."
}
},
"payload": {
"type": "boolean",
"description": "A Boolean value to indicate whether payload is wanted. Optional."
},
"resourceId": {
"type": "string",
"description": "An opaque ID that identifies the resource being watched on this channel. Stable across different API versions."
},
"resourceUri": {
"type": "string",
"description": "A version-specific identifier for the watched resource."
},
"token": {
"type": "string",
"description": "An arbitrary string delivered to the target address with each notification delivered over this channel. Optional."
},
"type": {
"type": "string",
"description": "The type of delivery mechanism used for this channel."
}
}
},
"Comment": {
"id": "Comment",
"type": "object",
"description": "A comment on a file.",
"properties": {
"anchor": {
"type": "string",
"description": "A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties."
},
"author": {
"$ref": "User",
"description": "The user who created the comment."
},
"content": {
"type": "string",
"description": "The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed.",
"annotations": {
"required": [
"drive.comments.create",
"drive.comments.update"
]
}
},
"createdTime": {
"type": "string",
"description": "The time at which the comment was created (RFC 3339 date-time).",
"format": "date-time"
},
"deleted": {
"type": "boolean",
"description": "Whether the comment has been deleted. A deleted comment has no content."
},
"htmlContent": {
"type": "string",
"description": "The content of the comment with HTML formatting."
},
"id": {
"type": "string",
"description": "The ID of the comment."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#comment\".",
"default": "drive#comment"
},
"modifiedTime": {
"type": "string",
"description": "The last time the comment or any of its replies was modified (RFC 3339 date-time).",
"format": "date-time"
},
"quotedFileContent": {
"type": "object",
"description": "The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.",
"properties": {
"mimeType": {
"type": "string",
"description": "The MIME type of the quoted content."
},
"value": {
"type": "string",
"description": "The quoted content itself. This is interpreted as plain text if set through the API."
}
}
},
"replies": {
"type": "array",
"description": "The full list of replies to the comment in chronological order.",
"items": {
"$ref": "Reply"
}
},
"resolved": {
"type": "boolean",
"description": "Whether the comment has been resolved by one of its replies."
}
}
},
"CommentList": {
"id": "CommentList",
"type": "object",
"description": "A list of comments on a file.",
"properties": {
"comments": {
"type": "array",
"description": "The page of comments.",
"items": {
"$ref": "Comment"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#commentList\".",
"default": "drive#commentList"
},
"nextPageToken": {
"type": "string",
"description": "The page token for the next page of comments. This will be absent if the end of the comments list has been reached."
}
}
},
"File": {
"id": "File",
"type": "object",
"description": "The metadata for a file.",
"properties": {
"appProperties": {
"type": "object",
"description": "A collection of arbitrary key-value pairs which are private to the requesting app.\nEntries with null values are cleared in update and copy requests.",
"additionalProperties": {
"type": "string"
}
},
"capabilities": {
"type": "object",
"description": "Capabilities the current user has on the file.",
"properties": {
"canComment": {
"type": "boolean",
"description": "Whether the user can comment on the file."
},
"canCopy": {
"type": "boolean",
"description": "Whether the user can copy the file."
},
"canEdit": {
"type": "boolean",
"description": "Whether the user can edit the file's content."
},
"canReadRevisions": {
"type": "boolean",
"description": "Whether the current user has read access to the Revisions resource of the file."
},
"canShare": {
"type": "boolean",
"description": "Whether the user can modify the file's permissions and sharing settings."
}
}
},
"contentHints": {
"type": "object",
"description": "Additional information about the content of the file. These fields are never populated in responses.",
"properties": {
"indexableText": {
"type": "string",
"description": "Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements."
},
"thumbnail": {
"type": "object",
"description": "A thumbnail for the file. This will only be used if Drive cannot generate a standard thumbnail.",
"properties": {
"image": {
"type": "string",
"description": "The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).",
"format": "byte"
},
"mimeType": {
"type": "string",
"description": "The MIME type of the thumbnail."
}
}
}
}
},
"createdTime": {
"type": "string",
"description": "The time at which the file was created (RFC 3339 date-time).",
"format": "date-time"
},
"description": {
"type": "string",
"description": "A short description of the file."
},
"explicitlyTrashed": {
"type": "boolean",
"description": "Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder."
},
"fileExtension": {
"type": "string",
"description": "The final component of fullFileExtension. This is only available for files with binary content in Drive."
},
"folderColorRgb": {
"type": "string",
"description": "The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.\nIf an unsupported color is specified, the closest color in the palette will be used instead."
},
"fullFileExtension": {
"type": "string",
"description": "The full file extension extracted from the name field. May contain multiple concatenated extensions, such as \"tar.gz\". This is only available for files with binary content in Drive.\nThis is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension."
},
"hasThumbnail": {
"type": "boolean",
"description": "Whether this file has a thumbnail."
},
"headRevisionId": {
"type": "string",
"description": "The ID of the file's head revision. This is currently only available for files with binary content in Drive."
},
"iconLink": {
"type": "string",
"description": "A static, unauthenticated link to the file's icon."
},
"id": {
"type": "string",
"description": "The ID of the file."
},
"imageMediaMetadata": {
"type": "object",
"description": "Additional metadata about image media, if available.",
"properties": {
"aperture": {
"type": "number",
"description": "The aperture used to create the photo (f-number).",
"format": "float"
},
"cameraMake": {
"type": "string",
"description": "The make of the camera used to create the photo."
},
"cameraModel": {
"type": "string",
"description": "The model of the camera used to create the photo."
},
"colorSpace": {
"type": "string",
"description": "The color space of the photo."
},
"exposureBias": {
"type": "number",
"description": "The exposure bias of the photo (APEX value).",
"format": "float"
},
"exposureMode": {
"type": "string",
"description": "The exposure mode used to create the photo."
},
"exposureTime": {
"type": "number",
"description": "The length of the exposure, in seconds.",
"format": "float"
},
"flashUsed": {
"type": "boolean",
"description": "Whether a flash was used to create the photo."
},
"focalLength": {
"type": "number",
"description": "The focal length used to create the photo, in millimeters.",
"format": "float"
},
"height": {
"type": "integer",
"description": "The height of the image in pixels.",
"format": "int32"
},
"isoSpeed": {
"type": "integer",
"description": "The ISO speed used to create the photo.",
"format": "int32"
},
"lens": {
"type": "string",
"description": "The lens used to create the photo."
},
"location": {
"type": "object",
"description": "Geographic location information stored in the image.",
"properties": {
"altitude": {
"type": "number",
"description": "The altitude stored in the image.",
"format": "double"
},
"latitude": {
"type": "number",
"description": "The latitude stored in the image.",
"format": "double"
},
"longitude": {
"type": "number",
"description": "The longitude stored in the image.",
"format": "double"
}
}
},
"maxApertureValue": {
"type": "number",
"description": "The smallest f-number of the lens at the focal length used to create the photo (APEX value).",
"format": "float"
},
"meteringMode": {
"type": "string",
"description": "The metering mode used to create the photo."
},
"rotation": {
"type": "integer",
"description": "The rotation in clockwise degrees from the image's original orientation.",
"format": "int32"
},
"sensor": {
"type": "string",
"description": "The type of sensor used to create the photo."
},
"subjectDistance": {
"type": "integer",
"description": "The distance to the subject of the photo, in meters.",
"format": "int32"
},
"time": {
"type": "string",
"description": "The date and time the photo was taken (EXIF DateTime)."
},
"whiteBalance": {
"type": "string",
"description": "The white balance mode used to create the photo."
},
"width": {
"type": "integer",
"description": "The width of the image in pixels.",
"format": "int32"
}
}
},
"isAppAuthorized": {
"type": "boolean",
"description": "Whether the file was created or opened by the requesting app."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#file\".",
"default": "drive#file"
},
"lastModifyingUser": {
"$ref": "User",
"description": "The last user to modify the file."
},
"md5Checksum": {
"type": "string",
"description": "The MD5 checksum for the content of the file. This is only applicable to files with binary content in Drive."
},
"mimeType": {
"type": "string",
"description": "The MIME type of the file.\nDrive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.\nIf a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource."
},
"modifiedByMe": {
"type": "boolean",
"description": "Whether the file has been modified by this user."
},
"modifiedByMeTime": {
"type": "string",
"description": "The last time the file was modified by the user (RFC 3339 date-time).",
"format": "date-time"
},
"modifiedTime": {
"type": "string",
"description": "The last time the file was modified by anyone (RFC 3339 date-time).\nNote that setting modifiedTime will also update modifiedByMeTime for the user.",
"format": "date-time"
},
"name": {
"type": "string",
"description": "The name of the file. This is not necessarily unique within a folder."
},
"originalFilename": {
"type": "string",
"description": "The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Drive."
},
"ownedByMe": {
"type": "boolean",
"description": "Whether the user owns the file."
},
"owners": {
"type": "array",
"description": "The owners of the file. Currently, only certain legacy files may have more than one owner.",
"items": {
"$ref": "User"
}
},
"parents": {
"type": "array",
"description": "The IDs of the parent folders which contain the file.\nIf not specified as part of a create request, the file will be placed directly in the My Drive folder. Update requests must use the addParents and removeParents parameters to modify the values.",
"items": {
"type": "string"
}
},
"permissions": {
"type": "array",
"description": "The full list of permissions for the file. This is only available if the requesting user can share the file.",
"items": {
"$ref": "Permission"
}
},
"properties": {
"type": "object",
"description": "A collection of arbitrary key-value pairs which are visible to all apps.\nEntries with null values are cleared in update and copy requests.",
"additionalProperties": {
"type": "string"
}
},
"quotaBytesUsed": {
"type": "string",
"description": "The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.",
"format": "int64"
},
"shared": {
"type": "boolean",
"description": "Whether the file has been shared."
},
"sharedWithMeTime": {
"type": "string",
"description": "The time at which the file was shared with the user, if applicable (RFC 3339 date-time).",
"format": "date-time"
},
"sharingUser": {
"$ref": "User",
"description": "The user who shared the file with the requesting user, if applicable."
},
"size": {
"type": "string",
"description": "The size of the file's content in bytes. This is only applicable to files with binary content in Drive.",
"format": "int64"
},
"spaces": {
"type": "array",
"description": "The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.",
"items": {
"type": "string"
}
},
"starred": {
"type": "boolean",
"description": "Whether the user has starred the file."
},
"thumbnailLink": {
"type": "string",
"description": "A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content."
},
"thumbnailVersion": {
"type": "string",
"description": "The thumbnail version for use in client-contructable thumbnail URLs or thumbnail cache invalidation.",
"format": "int64"
},
"trashed": {
"type": "boolean",
"description": "Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash."
},
"version": {
"type": "string",
"description": "A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.",
"format": "int64"
},
"videoMediaMetadata": {
"type": "object",
"description": "Additional metadata about video media. This may not be available immediately upon upload.",
"properties": {
"durationMillis": {
"type": "string",
"description": "The duration of the video in milliseconds.",
"format": "int64"
},
"height": {
"type": "integer",
"description": "The height of the video in pixels.",
"format": "int32"
},
"width": {
"type": "integer",
"description": "The width of the video in pixels.",
"format": "int32"
}
}
},
"viewedByMe": {
"type": "boolean",
"description": "Whether the file has been viewed by this user."
},
"viewedByMeTime": {
"type": "string",
"description": "The last time the file was viewed by the user (RFC 3339 date-time).",
"format": "date-time"
},
"viewersCanCopyContent": {
"type": "boolean",
"description": "Whether users with only reader or commenter permission can copy the file's content. This affects copy, download, and print operations."
},
"webContentLink": {
"type": "string",
"description": "A link for downloading the content of the file in a browser. This is only available for files with binary content in Drive."
},
"webViewLink": {
"type": "string",
"description": "A link for opening the file in a relevant Google editor or viewer in a browser."
},
"writersCanShare": {
"type": "boolean",
"description": "Whether users with only writer permission can modify the file's permissions."
}
}
},
"FileList": {
"id": "FileList",
"type": "object",
"description": "A list of files.",
"properties": {
"files": {
"type": "array",
"description": "The page of files.",
"items": {
"$ref": "File"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#fileList\".",
"default": "drive#fileList"
},
"nextPageToken": {
"type": "string",
"description": "The page token for the next page of files. This will be absent if the end of the files list has been reached."
}
}
},
"GeneratedIds": {
"id": "GeneratedIds",
"type": "object",
"description": "A list of generated file IDs which can be provided in create requests.",
"properties": {
"ids": {
"type": "array",
"description": "The IDs generated for the requesting user in the specified space.",
"items": {
"type": "string"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#generatedIds\".",
"default": "drive#generatedIds"
},
"space": {
"type": "string",
"description": "The type of file that can be created with these IDs."
}
}
},
"Permission": {
"id": "Permission",
"type": "object",
"description": "A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.",
"properties": {
"allowFileDiscovery": {
"type": "boolean",
"description": "Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone."
},
"displayName": {
"type": "string",
"description": "A displayable name for users, groups or domains."
},
"domain": {
"type": "string",
"description": "The domain to which this permission refers."
},
"emailAddress": {
"type": "string",
"description": "The email address of the user or group to which this permission refers."
},
"expirationTime": {
"type": "string",
"description": "The time at which this permission will expire (RFC 3339 date-time).",
"format": "date-time"
},
"id": {
"type": "string",
"description": "The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#permission\".",
"default": "drive#permission"
},
"photoLink": {
"type": "string",
"description": "A link to the user's profile photo, if available."
},
"role": {
"type": "string",
"description": "The role granted by this permission. Valid values are: \n- owner \n- writer \n- commenter \n- reader",
"annotations": {
"required": [
"drive.permissions.create"
]
}
},
"type": {
"type": "string",
"description": "The type of the grantee. Valid values are: \n- user \n- group \n- domain \n- anyone",
"annotations": {
"required": [
"drive.permissions.create"
]
}
}
}
},
"PermissionList": {
"id": "PermissionList",
"type": "object",
"description": "A list of permissions for a file.",
"properties": {
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#permissionList\".",
"default": "drive#permissionList"
},
"permissions": {
"type": "array",
"description": "The full list of permissions.",
"items": {
"$ref": "Permission"
}
}
}
},
"Reply": {
"id": "Reply",
"type": "object",
"description": "A reply to a comment on a file.",
"properties": {
"action": {
"type": "string",
"description": "The action the reply performed to the parent comment. Valid values are: \n- resolve \n- reopen"
},
"author": {
"$ref": "User",
"description": "The user who created the reply."
},
"content": {
"type": "string",
"description": "The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified.",
"annotations": {
"required": [
"drive.replies.update"
]
}
},
"createdTime": {
"type": "string",
"description": "The time at which the reply was created (RFC 3339 date-time).",
"format": "date-time"
},
"deleted": {
"type": "boolean",
"description": "Whether the reply has been deleted. A deleted reply has no content."
},
"htmlContent": {
"type": "string",
"description": "The content of the reply with HTML formatting."
},
"id": {
"type": "string",
"description": "The ID of the reply."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#reply\".",
"default": "drive#reply"
},
"modifiedTime": {
"type": "string",
"description": "The last time the reply was modified (RFC 3339 date-time).",
"format": "date-time"
}
}
},
"ReplyList": {
"id": "ReplyList",
"type": "object",
"description": "A list of replies to a comment on a file.",
"properties": {
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#replyList\".",
"default": "drive#replyList"
},
"nextPageToken": {
"type": "string",
"description": "The page token for the next page of replies. This will be absent if the end of the replies list has been reached."
},
"replies": {
"type": "array",
"description": "The page of replies.",
"items": {
"$ref": "Reply"
}
}
}
},
"Revision": {
"id": "Revision",
"type": "object",
"description": "The metadata for a revision to a file.",
"properties": {
"id": {
"type": "string",
"description": "The ID of the revision."
},
"keepForever": {
"type": "boolean",
"description": "Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file.\nThis field is only applicable to files with binary content in Drive."