"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"
},
"https://www.googleapis.com/auth/drive.appdata":{
"description":"View and manage its own configuration data in your Google Drive"
"description":"View the files in your Google Drive"
},
"https://www.googleapis.com/auth/drive.scripts":{
"description":"Modify your Google Apps Script scripts' behavior"
}
}
}
},
"schemas":{
"About":{
"id":"About",
"type":"object",
"description":"An item with user information and settings.",
"properties":{
"additionalRoleInfo":{
"type":"array",
"description":"Information about supported additional roles per file type. The most specific type takes precedence.",
"items":{
"type":"object",
"properties":{
"roleSets":{
"type":"array",
"description":"The supported additional roles per primary role.",
"items":{
"type":"object",
"properties":{
"additionalRoles":{
"type":"array",
"description":"The supported additional roles with the primary role.",
"items":{
"type":"string"
}
},
"primaryRole":{
"type":"string",
"description":"A primary permission role."
}
}
}
},
"type":{
"type":"string",
"description":"The content type that this additional role info applies to."
}
}
}
},
"domainSharingPolicy":{
"type":"string",
"description":"The domain sharing policy for the current user. Possible values are: \n- allowed \n- allowedWithWarning \n- incomingOnly \n- disallowed"
},
"etag":{
"type":"string",
"description":"The ETag of the item."
},
"exportFormats":{
"type":"array",
"description":"The allowable export formats.",
"items":{
"type":"object",
"properties":{
"source":{
"type":"string",
"description":"The content type to convert from."
},
"targets":{
"type":"array",
"description":"The possible content types to convert to.",
"items":{
"type":"string"
}
}
}
}
},
"features":{
"type":"array",
"description":"List of additional features enabled on this account.",
"items":{
"type":"object",
"properties":{
"featureName":{
"type":"string",
"description":"The name of the feature."
},
"featureRate":{
"type":"number",
"description":"The request limit rate for this feature, in queries per second.",
"format":"double"
}
}
}
},
"folderColorPalette":{
"type":"array",
"description":"The palette of allowable folder colors as RGB hex strings.",
"items":{
"type":"string"
}
},
"importFormats":{
"type":"array",
"description":"The allowable import formats.",
"items":{
"type":"object",
"properties":{
"source":{
"type":"string",
"description":"The imported file's content type to convert from."
},
"targets":{
"type":"array",
"description":"The possible content types to convert to.",
"items":{
"type":"string"
}
}
}
}
},
"isCurrentAppInstalled":{
"type":"boolean",
"description":"A boolean indicating whether the authenticated app is installed by the authenticated user."
},
"kind":{
"type":"string",
"description":"This is always drive#about.",
"default":"drive#about"
},
"languageCode":{
"type":"string",
"description":"The user's language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (http://www.unicode.org/reports/tr35/)."
},
"largestChangeId":{
"type":"string",
"description":"The largest change id.",
"format":"int64"
},
"maxUploadSizes":{
"type":"array",
"description":"List of max upload sizes for each file type. The most specific type takes precedence.",
"items":{
"type":"object",
"properties":{
"size":{
"type":"string",
"description":"The max upload size for this type.",
"format":"int64"
},
"type":{
"type":"string",
"description":"The file type."
}
}
}
},
"name":{
"type":"string",
"description":"The name of the current user."
},
"permissionId":{
"type":"string",
"description":"The current user's ID as visible in the permissions collection."
},
"quotaBytesByService":{
"type":"array",
"description":"The amount of storage quota used by different Google services.",
"items":{
"type":"object",
"properties":{
"bytesUsed":{
"type":"string",
"description":"The storage quota bytes used by the service.",
"format":"int64"
},
"serviceName":{
"type":"string",
"description":"The service's name, e.g. DRIVE, GMAIL, or PHOTOS."
}
}
}
},
"quotaBytesTotal":{
"type":"string",
"description":"The total number of quota bytes.",
"format":"int64"
},
"quotaBytesUsed":{
"type":"string",
"description":"The number of quota bytes used by Google Drive.",
"format":"int64"
},
"quotaBytesUsedAggregate":{
"type":"string",
"description":"The number of quota bytes used by all Google apps (Drive, Picasa, etc.).",
"format":"int64"
},
"quotaBytesUsedInTrash":{
"type":"string",
"description":"The number of quota bytes used by trashed items.",
"format":"int64"
},
"quotaType":{
"type":"string",
"description":"The type of the user's storage quota. Possible values are: \n- LIMITED \n- UNLIMITED"
},
"remainingChangeIds":{
"type":"string",
"description":"The number of remaining change ids, limited to no more than 2500.",
"description":"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.",
"properties":{
"authorized":{
"type":"boolean",
"description":"Whether the app is authorized to access data on the user's Drive."
},
"createInFolderTemplate":{
"type":"string",
"description":"The template url to create a new file with this app in a given folder. The template will contain {folderId} to be replaced by the folder to create the new file in."
},
"createUrl":{
"type":"string",
"description":"The url to create a new file with this app."
},
"hasDriveWideScope":{
"type":"boolean",
"description":"Whether the app has drive-wide scope. An app with drive-wide scope can access all files in the user's drive."
},
"icons":{
"type":"array",
"description":"The various icons for the app.",
"items":{
"type":"object",
"properties":{
"category":{
"type":"string",
"description":"Category of the icon. Allowed values are: \n- application - icon for the application \n- document - icon for a file associated with the app \n- documentShared - icon for a shared file associated with the app"
},
"iconUrl":{
"type":"string",
"description":"URL for the icon."
},
"size":{
"type":"integer",
"description":"Size of the icon. Represented as the maximum of the width and height.",
"format":"int32"
}
}
}
},
"id":{
"type":"string",
"description":"The ID of the app."
},
"installed":{
"type":"boolean",
"description":"Whether the app is installed."
},
"kind":{
"type":"string",
"description":"This is always drive#app.",
"default":"drive#app"
},
"longDescription":{
"type":"string",
"description":"A long description of the app."
},
"name":{
"type":"string",
"description":"The name of the app."
},
"objectType":{
"type":"string",
"description":"The type of object this app creates (e.g. Chart). If empty, the app name should be used instead."
},
"openUrlTemplate":{
"type":"string",
"description":"The template url for opening files with this app. The template will contain {ids} and/or {exportIds} to be replaced by the actual file ids. See Open Files for the full documentation."
},
"primaryFileExtensions":{
"type":"array",
"description":"The list of primary file extensions.",
"items":{
"type":"string"
}
},
"primaryMimeTypes":{
"type":"array",
"description":"The list of primary mime types.",
"items":{
"type":"string"
}
},
"productId":{
"type":"string",
"description":"The ID of the product listing for this app."
},
"productUrl":{
"type":"string",
"description":"A link to the product listing for this app."
},
"secondaryFileExtensions":{
"type":"array",
"description":"The list of secondary file extensions.",
"items":{
"type":"string"
}
},
"secondaryMimeTypes":{
"type":"array",
"description":"The list of secondary mime types.",
"items":{
"type":"string"
}
},
"shortDescription":{
"type":"string",
"description":"A short description of the app."
},
"supportsCreate":{
"type":"boolean",
"description":"Whether this app supports creating new objects."
},
"supportsImport":{
"type":"boolean",
"description":"Whether this app supports importing Google Docs."
},
"supportsMultiOpen":{
"type":"boolean",
"description":"Whether this app supports opening more than one file."
},
"supportsOfflineCreate":{
"type":"boolean",
"description":"Whether this app supports creating new files when offline."
},
"useByDefault":{
"type":"boolean",
"description":"Whether the app is selected as the default handler for the types it supports."
}
}
},
"AppList":{
"id":"AppList",
"type":"object",
"description":"A list of third-party applications which the user has installed or given access to Google Drive.",
"properties":{
"defaultAppIds":{
"type":"array",
"description":"List of app IDs that the user has specified to use by default. The list is in reverse-priority order (lowest to highest).",
"description":"The updated state of the Team Drive. Present if the type is teamDrive, the user is still a member of the Team Drive, and the Team Drive has not been deleted."
},
"teamDriveId":{
"type":"string",
"description":"The ID of the Team Drive associated with this change."
},
"type":{
"type":"string",
"description":"The type of the change. Possible values are file and teamDrive."
"description":"The list of changes. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.",
"description":"The page token for the next page of changes. This will be absent if the end of the changes list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results."
"description":"The list of children. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.",
"description":"The page token for the next page of children. This will be absent if the end of the children list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results."
"description":"This is always drive#childReference.",
"default":"drive#childReference"
},
"selfLink":{
"type":"string",
"description":"A link back to this reference."
}
}
},
"Comment":{
"id":"Comment",
"type":"object",
"description":"A comment on a file in Google Drive.",
"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 wrote this comment."
},
"commentId":{
"type":"string",
"description":"The ID of the comment."
},
"content":{
"type":"string",
"description":"The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.",
"annotations":{
"required":[
"drive.comments.insert",
"drive.comments.update"
]
}
},
"context":{
"type":"object",
"description":"The context of the file which is being commented on.",
"properties":{
"type":{
"type":"string",
"description":"The MIME type of the context snippet."
},
"value":{
"type":"string",
"description":"Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about."
}
}
},
"createdDate":{
"type":"string",
"description":"The date when this comment was first created.",
"format":"date-time"
},
"deleted":{
"type":"boolean",
"description":"Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed."
},
"fileId":{
"type":"string",
"description":"The file which this comment is addressing."
},
"fileTitle":{
"type":"string",
"description":"The title of the file which this comment is addressing."
},
"htmlContent":{
"type":"string",
"description":"HTML formatted content for this comment."
},
"kind":{
"type":"string",
"description":"This is always drive#comment.",
"default":"drive#comment"
},
"modifiedDate":{
"type":"string",
"description":"The date when this comment or any of its replies were last modified.",
"format":"date-time"
},
"replies":{
"type":"array",
"description":"Replies to this post.",
"items":{
"$ref":"CommentReply"
}
},
"selfLink":{
"type":"string",
"description":"A link back to this comment."
},
"status":{
"type":"string",
"description":"The status of this comment. Status can be changed by posting a reply to a comment with the desired status. \n- \"open\" - The comment is still open. \n- \"resolved\" - The comment has been resolved by one of its replies."
}
}
},
"CommentList":{
"id":"CommentList",
"type":"object",
"description":"A list of comments on a file in Google Drive.",
"description":"The list of comments. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.",
"description":"The page token for the next page of comments. This will be absent if the end of the comments list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results."
"description":"A comment on a file in Google Drive.",
"properties":{
"author":{
"$ref":"User",
"description":"The user who wrote this reply."
},
"content":{
"type":"string",
"description":"The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).",
"annotations":{
"required":[
"drive.replies.update"
]
}
},
"createdDate":{
"type":"string",
"description":"The date when this reply was first created.",
"format":"date-time"
},
"deleted":{
"type":"boolean",
"description":"Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed."
},
"htmlContent":{
"type":"string",
"description":"HTML formatted content for this reply."
},
"kind":{
"type":"string",
"description":"This is always drive#commentReply.",
"default":"drive#commentReply"
},
"modifiedDate":{
"type":"string",
"description":"The date when this reply was last modified.",
"format":"date-time"
},
"replyId":{
"type":"string",
"description":"The ID of the reply."
},
"verb":{
"type":"string",
"description":"The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: \n- \"resolve\" - To resolve a comment. \n- \"reopen\" - To reopen (un-resolve) a comment."
}
}
},
"CommentReplyList":{
"id":"CommentReplyList",
"type":"object",
"description":"A list of replies to a comment on a file in Google Drive.",
"description":"The list of replies. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.",
"description":"The page token for the next page of replies. This will be absent if the end of the replies list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results."
"description":"Deprecated: use capabilities/canReadRevisions."
},
"capabilities":{
"type":"object",
"description":"Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.",
"properties":{
"canAddChildren":{
"type":"boolean",
"description":"Whether the current user can add children to this folder. This is always false when the item is not a folder."
},
"canChangeRestrictedDownload":{
"type":"boolean",
"description":"Whether the current user can change the restricted download label of this file."
},
"canComment":{
"type":"boolean",
"description":"Whether the current user can comment on this file."
},
"canCopy":{
"type":"boolean",
"description":"Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder."
},
"canDelete":{
"type":"boolean",
"description":"Whether the current user can delete this file."
},
"canDownload":{
"type":"boolean",
"description":"Whether the current user can download this file."
},
"canEdit":{
"type":"boolean",
"description":"Whether the current user can edit this file."
},
"canListChildren":{
"type":"boolean",
"description":"Whether the current user can list the children of this folder. This is always false when the item is not a folder."
},
"canMoveItemIntoTeamDrive":{
"type":"boolean",
"description":"Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem."
},
"canMoveTeamDriveItem":{
"type":"boolean",
"description":"Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files."
},
"canReadRevisions":{
"type":"boolean",
"description":"Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read."
},
"canReadTeamDrive":{
"type":"boolean",
"description":"Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files."
},
"canRemoveChildren":{
"type":"boolean",
"description":"Whether the current user can remove children from this folder. This is always false when the item is not a folder."
},
"canRename":{
"type":"boolean",
"description":"Whether the current user can rename this file."
},
"canShare":{
"type":"boolean",
"description":"Whether the current user can modify the sharing settings for this file."
},
"canTrash":{
"type":"boolean",
"description":"Whether the current user can move this file to trash."
},
"canUntrash":{
"type":"boolean",
"description":"Whether the current user can restore this file from trash."
"description":"Whether this file has been explicitly trashed, as opposed to recursively trashed."
},
"exportLinks":{
"type":"object",
"description":"Links for exporting Google Docs to specific formats.",
"additionalProperties":{
"type":"string",
"description":"A mapping from export format to URL"
}
},
"fileExtension":{
"type":"string",
"description":"The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files."
},
"fileSize":{
"type":"string",
"description":"The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.",
"description":"Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files."
"description":"The full file extension; extracted from the title. May contain multiple concatenated extensions, such as \"tar.gz\". Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files."
"description":"Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field."
"description":"The ID of the file's head revision. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files."
},
"iconLink":{
"type":"string",
"description":"A link to the file's icon."
},
"id":{
"type":"string",
"description":"The ID of the file."
},
"imageMediaMetadata":{
"type":"object",
"description":"Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.",
"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."
},
"date":{
"type":"string",
"description":"The date and time the photo was taken (EXIF format timestamp)."
},
"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"
},
"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"
}
}
},
"indexableText":{
"type":"object",
"description":"Indexable text attributes for the file (can only be written)",
"properties":{
"text":{
"type":"string",
"description":"The text to be indexed for this file."
}
}
},
"isAppAuthorized":{
"type":"boolean",
"description":"Whether the file was created or opened by the requesting app."
},
"kind":{
"type":"string",
"description":"The type of file. This is always drive#file.",
"description":"Whether viewers and commenters are prevented from downloading, printing, and copying this file."
},
"starred":{
"type":"boolean",
"description":"Whether this file is starred by the user."
},
"trashed":{
"type":"boolean",
"description":"Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files."
},
"viewed":{
"type":"boolean",
"description":"Whether this file has been viewed by this user."
}
}
},
"lastModifyingUser":{
"$ref":"User",
"description":"The last user to modify this file."
},
"lastModifyingUserName":{
"type":"string",
"description":"Name of the last user to modify this file."
},
"lastViewedByMeDate":{
"type":"string",
"description":"Last time this file was viewed by the user (formatted RFC 3339 timestamp).",
"format":"date-time"
},
"markedViewedByMeDate":{
"type":"string",
"description":"Deprecated.",
"format":"date-time"
},
"md5Checksum":{
"type":"string",
"description":"An MD5 checksum for the content of this file. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files."
},
"mimeType":{
"type":"string",
"description":"The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type."
},
"modifiedByMeDate":{
"type":"string",
"description":"Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.",
"format":"date-time"
},
"modifiedDate":{
"type":"string",
"description":"Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.",
"format":"date-time"
},
"openWithLinks":{
"type":"object",
"description":"A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.",
"additionalProperties":{
"type":"string"
}
},
"originalFilename":{
"type":"string",
"description":"The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive."
"description":"Collection of parent folders which contain this file.\nSetting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.",
"description":"A short-lived link to the file's thumbnail. 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 thumbnail cache invalidation.",
"description":"The title of this file. Note that for immutable items such as the top level folders of Team Drives, My Drive root folder, and Application Data folder the title is constant."
},
"trashedDate":{
"type":"string",
"description":"The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.",
"format":"date-time"
},
"trashingUser":{
"$ref":"User",
"description":"If the file has been explicitly trashed, the user who trashed it. Only populated for Team Drive files."
"description":"The permissions for the authenticated user on this file."
},
"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 requesting user.",
"format":"int64"
},
"videoMediaMetadata":{
"type":"object",
"description":"Metadata about video media. This will only be present for video types.",
"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"
}
}
},
"webContentLink":{
"type":"string",
"description":"A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials."
},
"webViewLink":{
"type":"string",
"description":"A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting."
"description":"Whether the search process was incomplete. If true, then some search results may be missing, since all documents were not searched. This may occur when searching multiple Team Drives with the \"default,allTeamDrives\" corpora, but all corpora could not be searched. When this happens, it is suggested that clients narrow their query by choosing a different corpus such as \"default\" or \"teamDrive\"."
"description":"The list of files. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.",
"description":"The page token for the next page of files. This will be absent if the end of the files list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results."
"description":"The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain."
},
"emailAddress":{
"type":"string",
"description":"The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is user or group."
"description":"The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: \n- They can only be set on user and group permissions \n- The date must be in the future \n- The date cannot be more than a year in the future \n- The date can only be set on drive.permissions.update requests",
"description":"The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored."
"description":"The primary role for this user. While new values may be supported in the future, the following are currently allowed: \n- organizer \n- owner \n- reader \n- writer",
"description":"Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.",
"items":{
"type":"object",
"properties":{
"additionalRoles":{
"type":"array",
"description":"Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.",
"items":{
"type":"string"
}
},
"inherited":{
"type":"boolean",
"description":"Whether this permission is inherited. This field is always populated. This is an output-only field."
},
"inheritedFrom":{
"type":"string",
"description":"The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive."
},
"role":{
"type":"string",
"description":"The primary role for this user. While new values may be added in the future, the following are currently possible: \n- organizer \n- reader \n- writer"
},
"teamDrivePermissionType":{
"type":"string",
"description":"The Team Drive permission type for this user. While new values may be added in future, the following are currently possible: \n- file \n- member"
"description":"The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored."
"description":"The page token for the next page of permissions. This field will be absent if the end of the permissions list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results."
"description":"A key-value pair attached to a file that is either public or private to an application.\nThe following limits apply to file properties: \n- Maximum of 100 properties total per file\n- Maximum of 30 private properties per app\n- Maximum of 30 public properties\n- Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.",
"properties":{
"etag":{
"type":"string",
"description":"ETag of the property."
},
"key":{
"type":"string",
"description":"The key of this property."
},
"kind":{
"type":"string",
"description":"This is always drive#property.",
"default":"drive#property"
},
"selfLink":{
"type":"string",
"description":"The link back to this property."
},
"value":{
"type":"string",
"description":"The value of this property."
},
"visibility":{
"type":"string",
"description":"The visibility of this property."
}
}
},
"PropertyList":{
"id":"PropertyList",
"type":"object",
"description":"A collection of properties, key-value pairs that are either public or private to an application.",
"properties":{
"etag":{
"type":"string",
"description":"The ETag of the list."
},
"items":{
"type":"array",
"description":"The list of properties.",
"items":{
"$ref":"Property"
}
},
"kind":{
"type":"string",
"description":"This is always drive#propertyList.",
"default":"drive#propertyList"
},
"selfLink":{
"type":"string",
"description":"The link back to this list."
}
}
},
"Revision":{
"id":"Revision",
"type":"object",
"description":"A revision of a file.",
"properties":{
"downloadUrl":{
"type":"string",
"description":"Short term download URL for the file. This will only be populated on files with content stored in Drive."
},
"etag":{
"type":"string",
"description":"The ETag of the revision."
},
"exportLinks":{
"type":"object",
"description":"Links for exporting Google Docs to specific formats.",
"additionalProperties":{
"type":"string",
"description":"A mapping from export format to URL"
}
},
"fileSize":{
"type":"string",
"description":"The size of the revision in bytes. This will only be populated on files with content stored in Drive.",
"format":"int64"
},
"id":{
"type":"string",
"description":"The ID of the revision."
},
"kind":{
"type":"string",
"description":"This is always drive#revision.",
"default":"drive#revision"
},
"lastModifyingUser":{
"$ref":"User",
"description":"The last user to modify this revision."
},
"lastModifyingUserName":{
"type":"string",
"description":"Name of the last user to modify this revision."
},
"md5Checksum":{
"type":"string",
"description":"An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive."
},
"mimeType":{
"type":"string",
"description":"The MIME type of the revision."
},
"modifiedDate":{
"type":"string",
"description":"Last time this revision was modified (formatted RFC 3339 timestamp).",
"format":"date-time"
},
"originalFilename":{
"type":"string",
"description":"The original filename when this revision was created. This will only be populated on files with content stored in Drive."
},
"pinned":{
"type":"boolean",
"description":"Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter."
},
"publishAuto":{
"type":"boolean",
"description":"Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs."
},
"published":{
"type":"boolean",
"description":"Whether this revision is published. This is only populated and can only be modified for Google Docs."
},
"publishedLink":{
"type":"string",
"description":"A link to the published revision."
},
"publishedOutsideDomain":{
"type":"boolean",
"description":"Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs."
"description":"The list of revisions. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.",
"description":"The page token for the next page of revisions. This field will be absent if the end of the revisions list has been reached. If the token is rejected for any reason, it should be discarded and pagination should be restarted from the first page of results."
"description":"An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set.",
"description":"The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.",
"description":"The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.",
"description":"The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.",
"description":"A short-lived link to this Team Drive's background image."
},
"capabilities":{
"type":"object",
"description":"Capabilities the current user has on this Team Drive.",
"properties":{
"canAddChildren":{
"type":"boolean",
"description":"Whether the current user can add children to folders in this Team Drive."
},
"canChangeTeamDriveBackground":{
"type":"boolean",
"description":"Whether the current user can change the background of this Team Drive."
},
"canComment":{
"type":"boolean",
"description":"Whether the current user can comment on files in this Team Drive."
},
"canCopy":{
"type":"boolean",
"description":"Whether the current user can copy files in this Team Drive."
},
"canDeleteTeamDrive":{
"type":"boolean",
"description":"Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive."
},
"canDownload":{
"type":"boolean",
"description":"Whether the current user can download files in this Team Drive."
},
"canEdit":{
"type":"boolean",
"description":"Whether the current user can edit files in this Team Drive"
},
"canListChildren":{
"type":"boolean",
"description":"Whether the current user can list the children of folders in this Team Drive."
},
"canManageMembers":{
"type":"boolean",
"description":"Whether the current user can add members to this Team Drive or remove them or change their role."
},
"canReadRevisions":{
"type":"boolean",
"description":"Whether the current user can read the revisions resource of files in this Team Drive."
},
"canRemoveChildren":{
"type":"boolean",
"description":"Whether the current user can remove children from folders in this Team Drive."
},
"canRename":{
"type":"boolean",
"description":"Whether the current user can rename files or folders in this Team Drive."
},
"canRenameTeamDrive":{
"type":"boolean",
"description":"Whether the current user can rename this Team Drive."
},
"canShare":{
"type":"boolean",
"description":"Whether the current user can share files or folders in this Team Drive."
}
}
},
"colorRgb":{
"type":"string",
"description":"The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId."
},
"id":{
"type":"string",
"description":"The ID of this Team Drive which is also the ID of the top level folder for this Team Drive."
"description":"The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.insert request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set colorRgb or backgroundImageFile."
"description":"A plain text displayable name for this user."
},
"emailAddress":{
"type":"string",
"description":"The email address of the user."
},
"isAuthenticatedUser":{
"type":"boolean",
"description":"Whether this user is the same as the authenticated user for whom the request was made."
},
"kind":{
"type":"string",
"description":"This is always drive#user.",
"default":"drive#user"
},
"permissionId":{
"type":"string",
"description":"The user's ID as visible in the permissions collection."
},
"picture":{
"type":"object",
"description":"The user's profile picture.",
"properties":{
"url":{
"type":"string",
"description":"A URL that points to a profile picture of this user."
}
}
}
}
}
},
"resources":{
"about":{
"methods":{
"get":{
"id":"drive.about.get",
"path":"about",
"httpMethod":"GET",
"description":"Gets the information about the current user along with Drive API settings",
"parameters":{
"includeSubscribed":{
"type":"boolean",
"description":"When calculating the number of remaining change IDs, whether to include public files the user has opened and shared files. When set to false, this counts only change IDs for owned files and any shared or public files that the user has explicitly added to a folder they own.",
"default":"true",
"location":"query"
},
"maxChangeIdCount":{
"type":"string",
"description":"Maximum number of remaining change IDs to count",
"default":"1",
"format":"int64",
"location":"query"
},
"startChangeId":{
"type":"string",
"description":"Change ID to start counting from when calculating number of remaining change IDs",
"description":"A comma-separated list of file extensions for open with filtering. All apps within the given app query scope which can open any of the given file extensions will be included in the response. If appFilterMimeTypes are provided as well, the result is a union of the two resulting app lists.",
"default":"",
"location":"query"
},
"appFilterMimeTypes":{
"type":"string",
"description":"A comma-separated list of MIME types for open with filtering. All apps within the given app query scope which can open any of the given MIME types will be included in the response. If appFilterExtensions are provided as well, the result is a union of the two resulting app lists.",
"default":"",
"location":"query"
},
"languageCode":{
"type":"string",
"description":"A language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (http://www.unicode.org/reports/tr35/).",
"description":"Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.",
"description":"Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.",
"description":"Whether to include public files the user has opened and shared files. When set to false, the list only includes owned files plus any shared or public files the user has explicitly added to a folder they own.",
"description":"The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.",
"description":"Whether the requesting application supports Team Drives.",
"default":"false",
"location":"query"
},
"teamDriveId":{
"type":"string",
"description":"The Team Drive from which changes will be returned. If specified the change IDs will be reflective of the Team Drive; use the combined Team Drive ID and change ID as an identifier.",
"description":"Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.",
"description":"Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.",
"description":"Whether to include public files the user has opened and shared files. When set to false, the list only includes owned files plus any shared or public files the user has explicitly added to a folder they own.",
"description":"The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.",
"description":"Whether the requesting application supports Team Drives.",
"default":"false",
"location":"query"
},
"teamDriveId":{
"type":"string",
"description":"The Team Drive from which changes will be returned. If specified the change IDs will be reflective of the Team Drive; use the combined Team Drive ID and change ID as an identifier.",
"description":"Maximum number of children to return.",
"default":"100",
"format":"int32",
"minimum":"0",
"location":"query"
},
"orderBy":{
"type":"string",
"description":"A comma-separated list of sort keys. Valid keys are 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', and 'title'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.",
"location":"query"
},
"pageToken":{
"type":"string",
"description":"Page token for children.",
"location":"query"
},
"q":{
"type":"string",
"description":"Query string for searching children.",
"description":"If set, this will succeed when retrieving a deleted comment, and will include any deleted replies.",
"default":"false",
"location":"query"
}
},
"parameterOrder":[
"fileId",
"commentId"
],
"response":{
"$ref":"Comment"
},
"scopes":[
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly"
]
},
"insert":{
"id":"drive.comments.insert",
"path":"files/{fileId}/comments",
"httpMethod":"POST",
"description":"Creates a new comment on the given file.",
"parameters":{
"fileId":{
"type":"string",
"description":"The ID of the file.",
"required":true,
"location":"path"
}
},
"parameterOrder":[
"fileId"
],
"request":{
"$ref":"Comment"
},
"response":{
"$ref":"Comment"
},
"scopes":[
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file"
]
},
"list":{
"id":"drive.comments.list",
"path":"files/{fileId}/comments",
"httpMethod":"GET",
"description":"Lists a file's comments.",
"parameters":{
"fileId":{
"type":"string",
"description":"The ID of the file.",
"required":true,
"location":"path"
},
"includeDeleted":{
"type":"boolean",
"description":"If set, all comments and replies, including deleted comments and replies (with content stripped) will be returned.",
"default":"false",
"location":"query"
},
"maxResults":{
"type":"integer",
"description":"The maximum number of discussions to include in the response, used for paging.",
"default":"20",
"format":"int32",
"minimum":"0",
"maximum":"100",
"location":"query"
},
"pageToken":{
"type":"string",
"description":"The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
"location":"query"
},
"updatedMin":{
"type":"string",
"description":"Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp.",
"location":"query"
}
},
"parameterOrder":[
"fileId"
],
"response":{
"$ref":"CommentList"
},
"scopes":[
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly"
]
},
"patch":{
"id":"drive.comments.patch",
"path":"files/{fileId}/comments/{commentId}",
"httpMethod":"PATCH",
"description":"Updates an existing comment. This method supports patch semantics.",
"parameters":{
"commentId":{
"type":"string",
"description":"The ID of the comment.",
"required":true,
"location":"path"
},
"fileId":{
"type":"string",
"description":"The ID of the file.",
"required":true,
"location":"path"
}
},
"parameterOrder":[
"fileId",
"commentId"
],
"request":{
"$ref":"Comment"
},
"response":{
"$ref":"Comment"
},
"scopes":[
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file"
]
},
"update":{
"id":"drive.comments.update",
"path":"files/{fileId}/comments/{commentId}",
"httpMethod":"PUT",
"description":"Updates an existing comment.",
"parameters":{
"commentId":{
"type":"string",
"description":"The ID of the comment.",
"required":true,
"location":"path"
},
"fileId":{
"type":"string",
"description":"The ID of the file.",
"required":true,
"location":"path"
}
},
"parameterOrder":[
"fileId",
"commentId"
],
"request":{
"$ref":"Comment"
},
"response":{
"$ref":"Comment"
},
"scopes":[
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file"
]
}
}
},
"files":{
"methods":{
"copy":{
"id":"drive.files.copy",
"path":"files/{fileId}/copy",
"httpMethod":"POST",
"description":"Creates a copy of the specified file.",
"parameters":{
"convert":{
"type":"boolean",
"description":"Whether to convert this file to the corresponding Google Docs format.",
"default":"false",
"location":"query"
},
"fileId":{
"type":"string",
"description":"The ID of the file to copy.",
"required":true,
"location":"path"
},
"ocr":{
"type":"boolean",
"description":"Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.",
"default":"false",
"location":"query"
},
"ocrLanguage":{
"type":"string",
"description":"If ocr is true, hints at the language to use. Valid values are BCP 47 codes.",
"location":"query"
},
"pinned":{
"type":"boolean",
"description":"Whether to pin the head revision of the new copy. A file can have a maximum of 200 pinned revisions.",
"description":"Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for Team Drive files.",
"description":"Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.",
"description":"Comma-separated list of bodies of items (files/documents) to which the query applies. Supported bodies are 'default', 'domain', 'teamDrive' and 'allTeamDrives'. 'allTeamDrives' must be combined with 'default'; all other values must be used in isolation. Prefer 'default' or 'teamDrive' to 'allTeamDrives' for efficiency.",
"description":"The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached.",
"description":"A comma-separated list of sort keys. Valid keys are 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', 'title', and 'title_natural'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.",
"description":"Updates file metadata and/or content. This method supports patch semantics.",
"parameters":{
"addParents":{
"type":"string",
"description":"Comma-separated list of parent IDs to add.",
"location":"query"
},
"convert":{
"type":"boolean",
"description":"This parameter is deprecated and has no function.",
"default":"false",
"location":"query"
},
"fileId":{
"type":"string",
"description":"The ID of the file to update.",
"required":true,
"location":"path"
},
"modifiedDateBehavior":{
"type":"string",
"description":"Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.",
"enum":[
"fromBody",
"fromBodyIfNeeded",
"fromBodyOrNow",
"noChange",
"now",
"nowIfNeeded"
],
"enumDescriptions":[
"Set modifiedDate to the value provided in the body of the request. No change if no value was provided.",
"Set modifiedDate to the value provided in the body of the request depending on other contents of the update.",
"Set modifiedDate to the value provided in the body of the request, or to the current time if no value was provided.",
"Maintain the previous value of modifiedDate.",
"Set modifiedDate to the current time.",
"Set modifiedDate to the current time depending on contents of the update."
],
"location":"query"
},
"newRevision":{
"type":"boolean",
"description":"Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions. For details on how revisions are retained, see the Drive Help Center.",
"default":"true",
"location":"query"
},
"ocr":{
"type":"boolean",
"description":"Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.",
"default":"false",
"location":"query"
},
"ocrLanguage":{
"type":"string",
"description":"If ocr is true, hints at the language to use. Valid values are BCP 47 codes.",
"location":"query"
},
"pinned":{
"type":"boolean",
"description":"Whether to pin the new revision. A file can have a maximum of 200 pinned revisions.",
"default":"false",
"location":"query"
},
"removeParents":{
"type":"string",
"description":"Comma-separated list of parent IDs to remove.",
"location":"query"
},
"setModifiedDate":{
"type":"boolean",
"description":"Whether to set the modified date with the supplied modified date.",
"description":"Comma-separated list of parent IDs to add.",
"location":"query"
},
"convert":{
"type":"boolean",
"description":"This parameter is deprecated and has no function.",
"default":"false",
"location":"query"
},
"fileId":{
"type":"string",
"description":"The ID of the file to update.",
"required":true,
"location":"path"
},
"modifiedDateBehavior":{
"type":"string",
"description":"Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.",
"enum":[
"fromBody",
"fromBodyIfNeeded",
"fromBodyOrNow",
"noChange",
"now",
"nowIfNeeded"
],
"enumDescriptions":[
"Set modifiedDate to the value provided in the body of the request. No change if no value was provided.",
"Set modifiedDate to the value provided in the body of the request depending on other contents of the update.",
"Set modifiedDate to the value provided in the body of the request, or to the current time if no value was provided.",
"Maintain the previous value of modifiedDate.",
"Set modifiedDate to the current time.",
"Set modifiedDate to the current time depending on contents of the update."
],
"location":"query"
},
"newRevision":{
"type":"boolean",
"description":"Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions. For details on how revisions are retained, see the Drive Help Center.",
"default":"true",
"location":"query"
},
"ocr":{
"type":"boolean",
"description":"Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.",
"default":"false",
"location":"query"
},
"ocrLanguage":{
"type":"string",
"description":"If ocr is true, hints at the language to use. Valid values are BCP 47 codes.",
"location":"query"
},
"pinned":{
"type":"boolean",
"description":"Whether to pin the new revision. A file can have a maximum of 200 pinned revisions.",
"default":"false",
"location":"query"
},
"removeParents":{
"type":"string",
"description":"Comma-separated list of parent IDs to remove.",
"location":"query"
},
"setModifiedDate":{
"type":"boolean",
"description":"Whether to set the modified date with the supplied modified date.",
"description":"Whether to send notification emails when sharing to users or groups. This parameter is ignored and an email is sent if the role is owner.",
"description":"The maximum number of permissions to return per page. When not set for files in a Team Drive, at most 100 results will be returned. When not set for files that are not in a Team Drive, the entire list will be returned.",
"format":"int32",
"minimum":"1",
"maximum":"100",
"location":"query"
},
"pageToken":{
"type":"string",
"description":"The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.",
"location":"query"
},
"supportsTeamDrives":{
"type":"boolean",
"description":"Whether the requesting application supports Team Drives.",
"description":"Updates a property, or adds it if it doesn't exist. This method supports patch semantics.",
"parameters":{
"fileId":{
"type":"string",
"description":"The ID of the file.",
"required":true,
"location":"path"
},
"propertyKey":{
"type":"string",
"description":"The key of the property.",
"required":true,
"location":"path"
},
"visibility":{
"type":"string",
"description":"The visibility of the property.",
"default":"private",
"location":"query"
}
},
"parameterOrder":[
"fileId",
"propertyKey"
],
"request":{
"$ref":"Property"
},
"response":{
"$ref":"Property"
},
"scopes":[
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata"
]
},
"update":{
"id":"drive.properties.update",
"path":"files/{fileId}/properties/{propertyKey}",
"httpMethod":"PUT",
"description":"Updates a property, or adds it if it doesn't exist.",
"parameters":{
"fileId":{
"type":"string",
"description":"The ID of the file.",
"required":true,
"location":"path"
},
"propertyKey":{
"type":"string",
"description":"The key of the property.",
"required":true,
"location":"path"
},
"visibility":{
"type":"string",
"description":"The visibility of the property.",
"default":"private",
"location":"query"
}
},
"parameterOrder":[
"fileId",
"propertyKey"
],
"request":{
"$ref":"Property"
},
"response":{
"$ref":"Property"
},
"scopes":[
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata"
]
}
}
},
"realtime":{
"methods":{
"get":{
"id":"drive.realtime.get",
"path":"files/{fileId}/realtime",
"httpMethod":"GET",
"description":"Exports the contents of the Realtime API data model associated with this file as JSON.",
"parameters":{
"fileId":{
"type":"string",
"description":"The ID of the file that the Realtime API data model is associated with.",
"required":true,
"location":"path"
},
"revision":{
"type":"integer",
"description":"The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty data model) and are incremented with each change. If this parameter is excluded, the most recent data model will be returned.",
"format":"int32",
"minimum":"1",
"location":"query"
}
},
"parameterOrder":[
"fileId"
],
"scopes":[
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly"
],
"supportsMediaDownload":true
},
"update":{
"id":"drive.realtime.update",
"path":"files/{fileId}/realtime",
"httpMethod":"PUT",
"description":"Overwrites the Realtime API data model associated with this file with the provided JSON data model.",
"parameters":{
"baseRevision":{
"type":"string",
"description":"The revision of the model to diff the uploaded model against. If set, the uploaded model is diffed against the provided revision and those differences are merged with any changes made to the model after the provided revision. If not set, the uploaded model replaces the current model on the server.",
"location":"query"
},
"fileId":{
"type":"string",
"description":"The ID of the file that the Realtime API data model is associated with.",
"description":"Lists all of the replies to a comment.",
"parameters":{
"commentId":{
"type":"string",
"description":"The ID of the comment.",
"required":true,
"location":"path"
},
"fileId":{
"type":"string",
"description":"The ID of the file.",
"required":true,
"location":"path"
},
"includeDeleted":{
"type":"boolean",
"description":"If set, all replies, including deleted replies (with content stripped) will be returned.",
"default":"false",
"location":"query"
},
"maxResults":{
"type":"integer",
"description":"The maximum number of replies to include in the response, used for paging.",
"default":"20",
"format":"int32",
"minimum":"0",
"maximum":"100",
"location":"query"
},
"pageToken":{
"type":"string",
"description":"The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
"description":"Page token for revisions. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
"description":"Permanently deletes a Team Drive for which the user is an organizer. The Team Drive cannot contain any untrashed items.",
"parameters":{
"teamDriveId":{
"type":"string",
"description":"The ID of the Team Drive",
"required":true,
"location":"path"
}
},
"parameterOrder":[
"teamDriveId"
],
"scopes":[
"https://www.googleapis.com/auth/drive"
]
},
"get":{
"id":"drive.teamdrives.get",
"path":"teamdrives/{teamDriveId}",
"httpMethod":"GET",
"description":"Gets a Team Drive's metadata by ID.",
"parameters":{
"teamDriveId":{
"type":"string",
"description":"The ID of the Team Drive",
"required":true,
"location":"path"
}
},
"parameterOrder":[
"teamDriveId"
],
"response":{
"$ref":"TeamDrive"
},
"scopes":[
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.readonly"
]
},
"insert":{
"id":"drive.teamdrives.insert",
"path":"teamdrives",
"httpMethod":"POST",
"description":"Creates a new Team Drive.",
"parameters":{
"requestId":{
"type":"string",
"description":"An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned.",
"required":true,
"location":"query"
}
},
"parameterOrder":[
"requestId"
],
"request":{
"$ref":"TeamDrive"
},
"response":{
"$ref":"TeamDrive"
},
"scopes":[
"https://www.googleapis.com/auth/drive"
]
},
"list":{
"id":"drive.teamdrives.list",
"path":"teamdrives",
"httpMethod":"GET",
"description":"Lists the user's Team Drives.",
"parameters":{
"maxResults":{
"type":"integer",
"description":"Maximum number of Team Drives to return.",