{"files":{"SKILL.md":"---\nname: drive-api\ndescription: \"Drive API skill. Use when working with Drive for about, changes, channels. Covers 48 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Drive API\nAPI version: v3\n\n## Auth\nOAuth2 | OAuth2\n\n## Base URL\nhttps://www.googleapis.com/drive/v3\n\n## Setup\n1. Configure auth: OAuth2 | OAuth2\n2. GET /about -- gets information about the user, the user's drive, and system capabilities.\n3. POST /changes/watch -- create first watch\n\n## Endpoints\n48 endpoints across 6 groups. See references/api-spec.lap for full details.\n\n### About\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /about | Gets information about the user, the user's Drive, and system capabilities. |\n\n### Changes\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /changes | Lists the changes for a user or shared drive. |\n| GET | /changes/startPageToken | Gets the starting pageToken for listing future changes. |\n| POST | /changes/watch | Subscribes to changes for a user. To use this method, you must include the pageToken query parameter. |\n\n### Channels\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /channels/stop | Stop watching resources through this channel |\n\n### Drives\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /drives | Lists the user's shared drives. |\n| POST | /drives | Creates a shared drive. |\n| DELETE | /drives/{driveId} | Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items. |\n| GET | /drives/{driveId} | Gets a shared drive's metadata by ID. |\n| PATCH | /drives/{driveId} | Updates the metadata for a shared drive. |\n| POST | /drives/{driveId}/hide | Hides a shared drive from the default view. |\n| POST | /drives/{driveId}/unhide | Restores a shared drive to the default view. |\n\n### Files\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /files | Lists or searches files. |\n| POST | /files | Creates a file. |\n| GET | /files/generateIds | Generates a set of file IDs which can be provided in create or copy requests. |\n| DELETE | /files/trash | Permanently deletes all of the user's trashed files. |\n| DELETE | /files/{fileId} | Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted. |\n| GET | /files/{fileId} | Gets a file's metadata or content by ID. |\n| PATCH | /files/{fileId} | Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics. |\n| GET | /files/{fileId}/comments | Lists a file's comments. |\n| POST | /files/{fileId}/comments | Creates a comment on a file. |\n| DELETE | /files/{fileId}/comments/{commentId} | Deletes a comment. |\n| GET | /files/{fileId}/comments/{commentId} | Gets a comment by ID. |\n| PATCH | /files/{fileId}/comments/{commentId} | Updates a comment with patch semantics. |\n| GET | /files/{fileId}/comments/{commentId}/replies | Lists a comment's replies. |\n| POST | /files/{fileId}/comments/{commentId}/replies | Creates a reply to a comment. |\n| DELETE | /files/{fileId}/comments/{commentId}/replies/{replyId} | Deletes a reply. |\n| GET | /files/{fileId}/comments/{commentId}/replies/{replyId} | Gets a reply by ID. |\n| PATCH | /files/{fileId}/comments/{commentId}/replies/{replyId} | Updates a reply with patch semantics. |\n| POST | /files/{fileId}/copy | Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied. |\n| GET | /files/{fileId}/export | Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB. |\n| GET | /files/{fileId}/listLabels | Lists the labels on a file. |\n| POST | /files/{fileId}/modifyLabels | Modifies the set of labels on a file. |\n| GET | /files/{fileId}/permissions | Lists a file's or shared drive's permissions. |\n| POST | /files/{fileId}/permissions | Creates a permission for a file or shared drive. For more information on creating permissions, see Share files, folders & drives. |\n| DELETE | /files/{fileId}/permissions/{permissionId} | Deletes a permission. |\n| GET | /files/{fileId}/permissions/{permissionId} | Gets a permission by ID. |\n| PATCH | /files/{fileId}/permissions/{permissionId} | Updates a permission with patch semantics. |\n| GET | /files/{fileId}/revisions | Lists a file's revisions. |\n| DELETE | /files/{fileId}/revisions/{revisionId} | Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted. |\n| GET | /files/{fileId}/revisions/{revisionId} | Gets a revision's metadata or content by ID. |\n| PATCH | /files/{fileId}/revisions/{revisionId} | Updates a revision with patch semantics. |\n| POST | /files/{fileId}/watch | Subscribes to changes to a file. |\n\n### Teamdrives\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /teamdrives | Deprecated use drives.list instead. |\n| POST | /teamdrives | Deprecated use drives.create instead. |\n| DELETE | /teamdrives/{teamDriveId} | Deprecated use drives.delete instead. |\n| GET | /teamdrives/{teamDriveId} | Deprecated use drives.get instead. |\n| PATCH | /teamdrives/{teamDriveId} | Deprecated use drives.update instead |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all about?\" -> GET /about\n- \"List all changes?\" -> GET /changes\n- \"List all startPageToken?\" -> GET /changes/startPageToken\n- \"Create a watch?\" -> POST /changes/watch\n- \"Create a stop?\" -> POST /channels/stop\n- \"Search drives?\" -> GET /drives\n- \"Create a drive?\" -> POST /drives\n- \"Delete a drive?\" -> DELETE /drives/{driveId}\n- \"Get drive details?\" -> GET /drives/{driveId}\n- \"Partially update a drive?\" -> PATCH /drives/{driveId}\n- \"Create a hide?\" -> POST /drives/{driveId}/hide\n- \"Create a unhide?\" -> POST /drives/{driveId}/unhide\n- \"Search files?\" -> GET /files\n- \"Create a file?\" -> POST /files\n- \"List all generateIds?\" -> GET /files/generateIds\n- \"Delete a file?\" -> DELETE /files/{fileId}\n- \"Get file details?\" -> GET /files/{fileId}\n- \"Partially update a file?\" -> PATCH /files/{fileId}\n- \"List all comments?\" -> GET /files/{fileId}/comments\n- \"Create a comment?\" -> POST /files/{fileId}/comments\n- \"Delete a comment?\" -> DELETE /files/{fileId}/comments/{commentId}\n- \"Get comment details?\" -> GET /files/{fileId}/comments/{commentId}\n- \"Partially update a comment?\" -> PATCH /files/{fileId}/comments/{commentId}\n- \"List all replies?\" -> GET /files/{fileId}/comments/{commentId}/replies\n- \"Create a reply?\" -> POST /files/{fileId}/comments/{commentId}/replies\n- \"Delete a reply?\" -> DELETE /files/{fileId}/comments/{commentId}/replies/{replyId}\n- \"Get reply details?\" -> GET /files/{fileId}/comments/{commentId}/replies/{replyId}\n- \"Partially update a reply?\" -> PATCH /files/{fileId}/comments/{commentId}/replies/{replyId}\n- \"Create a copy?\" -> POST /files/{fileId}/copy\n- \"List all export?\" -> GET /files/{fileId}/export\n- \"List all listLabels?\" -> GET /files/{fileId}/listLabels\n- \"Create a modifyLabel?\" -> POST /files/{fileId}/modifyLabels\n- \"List all permissions?\" -> GET /files/{fileId}/permissions\n- \"Create a permission?\" -> POST /files/{fileId}/permissions\n- \"Delete a permission?\" -> DELETE /files/{fileId}/permissions/{permissionId}\n- \"Get permission details?\" -> GET /files/{fileId}/permissions/{permissionId}\n- \"Partially update a permission?\" -> PATCH /files/{fileId}/permissions/{permissionId}\n- \"List all revisions?\" -> GET /files/{fileId}/revisions\n- \"Delete a revision?\" -> DELETE /files/{fileId}/revisions/{revisionId}\n- \"Get revision details?\" -> GET /files/{fileId}/revisions/{revisionId}\n- \"Partially update a revision?\" -> PATCH /files/{fileId}/revisions/{revisionId}\n- \"Search teamdrives?\" -> GET /teamdrives\n- \"Create a teamdrive?\" -> POST /teamdrives\n- \"Delete a teamdrive?\" -> DELETE /teamdrives/{teamDriveId}\n- \"Get teamdrive details?\" -> GET /teamdrives/{teamDriveId}\n- \"Partially update a teamdrive?\" -> PATCH /teamdrives/{teamDriveId}\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Drive API\n@base https://www.googleapis.com/drive/v3\n@version v3\n@auth OAuth2 | OAuth2\n@endpoints 48\n@hint download_for_search\n@toc about(1), changes(3), channels(1), drives(7), files(31), teamdrives(5)\n\n@group about\n@endpoint GET /about\n@desc Gets information about the user, the user's Drive, and system capabilities.\n@returns(200) {appInstalled: bool, canCreateDrives: bool, canCreateTeamDrives: bool, driveThemes: [map], exportFormats: map, folderColorPalette: [str], importFormats: map, kind: str, maxImportSizes: map, maxUploadSize: str(int64), storageQuota: map{limit: str(int64), usage: str(int64), usageInDrive: str(int64), usageInDriveTrash: str(int64)}, teamDriveThemes: [map], user: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}} # Successful response\n\n@endgroup\n\n@group changes\n@endpoint GET /changes\n@desc Lists the changes for a user or shared drive.\n@required {pageToken: str # 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.}\n@optional {driveId: str # The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier., includeCorpusRemovals: bool # 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., includeItemsFromAllDrives: bool # Whether both My Drive and shared drive items should be included in results., includeLabels: str # A comma-separated list of IDs of labels to include in the labelInfo part of the response., includePermissionsForView: str # Specifies which additional view's permissions to include in the response. Only 'published' is supported., includeRemoved: bool # Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access., includeTeamDriveItems: bool # Deprecated use includeItemsFromAllDrives instead., pageSize: int # The maximum number of changes to return per page., restrictToMyDrive: bool # Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive., spaces: str # A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., teamDriveId: str # Deprecated use driveId instead.}\n@returns(200) {changes: [map], kind: str, newStartPageToken: str, nextPageToken: str} # Successful response\n\n@endpoint GET /changes/startPageToken\n@desc Gets the starting pageToken for listing future changes.\n@optional {driveId: str # The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive is returned., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., teamDriveId: str # Deprecated use driveId instead.}\n@returns(200) {kind: str, startPageToken: str} # Successful response\n\n@endpoint POST /changes/watch\n@desc Subscribes to changes for a user. To use this method, you must include the pageToken query parameter.\n@required {pageToken: str # 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.}\n@optional {driveId: str # The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier., includeCorpusRemovals: bool # 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., includeItemsFromAllDrives: bool # Whether both My Drive and shared drive items should be included in results., includeLabels: str # A comma-separated list of IDs of labels to include in the labelInfo part of the response., includePermissionsForView: str # Specifies which additional view's permissions to include in the response. Only 'published' is supported., includeRemoved: bool # Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access., includeTeamDriveItems: bool # Deprecated use includeItemsFromAllDrives instead., pageSize: int # The maximum number of changes to return per page., restrictToMyDrive: bool # Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive., spaces: str # A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., teamDriveId: str # Deprecated use driveId instead., address: str # The address where notifications are delivered for this channel., expiration: str(int64) # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional., id: str # A UUID or similar unique string that identifies this channel., kind: str=api#channel # Identifies this as a notification channel used to watch for changes to a resource, which is \"api#channel\"., params: map # Additional parameters controlling delivery channel behavior. Optional., payload: bool # A Boolean value to indicate whether payload is wanted. Optional., resourceId: str # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions., resourceUri: str # A version-specific identifier for the watched resource., token: str # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional., type: str # The type of delivery mechanism used for this channel. Valid values are \"web_hook\" (or \"webhook\"). Both values refer to a channel where Http requests are used to deliver messages.}\n@returns(200) {address: str, expiration: str(int64), id: str, kind: str, params: map, payload: bool, resourceId: str, resourceUri: str, token: str, type: str} # Successful response\n\n@endgroup\n\n@group channels\n@endpoint POST /channels/stop\n@desc Stop watching resources through this channel\n@optional {address: str # The address where notifications are delivered for this channel., expiration: str(int64) # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional., id: str # A UUID or similar unique string that identifies this channel., kind: str=api#channel # Identifies this as a notification channel used to watch for changes to a resource, which is \"api#channel\"., params: map # Additional parameters controlling delivery channel behavior. Optional., payload: bool # A Boolean value to indicate whether payload is wanted. Optional., resourceId: str # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions., resourceUri: str # A version-specific identifier for the watched resource., token: str # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional., type: str # The type of delivery mechanism used for this channel. Valid values are \"web_hook\" (or \"webhook\"). Both values refer to a channel where Http requests are used to deliver messages.}\n@returns(200) Successful response\n\n@endgroup\n\n@group drives\n@endpoint GET /drives\n@desc Lists the user's shared drives.\n@optional {pageSize: int # Maximum number of shared drives to return per page., pageToken: str # Page token for shared drives., q: str # Query string for searching shared drives., useDomainAdminAccess: bool # Issue the request as a domain administrator; if set to true, then all shared drives of the domain in which the requester is an administrator are returned.}\n@returns(200) {drives: [map], kind: str, nextPageToken: str} # Successful response\n\n@endpoint POST /drives\n@desc Creates a shared drive.\n@required {requestId: str # An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.}\n@optional {backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)} # An image file and cropping parameters from which a background image for this shared drive is set. This is a write-only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set., backgroundImageLink: str # A short-lived link to this shared drive's background image., capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeDriveBackground: bool, canChangeDriveMembersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRename: bool, canRenameDrive: bool, canResetDriveRestrictions: bool, canShare: bool, canTrashChildren: bool} # Capabilities the current user has on this shared drive., colorRgb: str # The color of this shared drive as an RGB hex string. It can only be set on drive.drives.update requests that don't set themeId., createdTime: str(date-time) # The time at which the shared drive was created (RFC 3339 date-time)., hidden: bool # Whether the shared drive is hidden from default view., id: str # The ID of this shared drive which is also the ID of the top level folder of this shared drive., kind: str=drive#drive # Identifies what kind of resource this is. Value: the fixed string \"drive#drive\"., name: str # The name of this shared drive., orgUnitId: str # The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true., restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, driveMembersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool} # A set of restrictions that apply to this shared drive or items inside this shared drive., themeId: str # The ID of the theme from which the background image and color are set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.create 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.}\n@returns(200) {backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)}, backgroundImageLink: str, capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeDriveBackground: bool, canChangeDriveMembersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRename: bool, canRenameDrive: bool, canResetDriveRestrictions: bool, canShare: bool, canTrashChildren: bool}, colorRgb: str, createdTime: str(date-time), hidden: bool, id: str, kind: str, name: str, orgUnitId: str, restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, driveMembersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool}, themeId: str} # Successful response\n\n@endpoint DELETE /drives/{driveId}\n@desc Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items.\n@required {driveId: str # The ID of the shared drive.}\n@optional {allowItemDeletion: bool # Whether any items inside the shared drive should also be deleted. This option is only supported when useDomainAdminAccess is also set to true., useDomainAdminAccess: bool # Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.}\n@returns(200) Successful response\n\n@endpoint GET /drives/{driveId}\n@desc Gets a shared drive's metadata by ID.\n@required {driveId: str # The ID of the shared drive.}\n@optional {useDomainAdminAccess: bool # Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.}\n@returns(200) {backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)}, backgroundImageLink: str, capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeDriveBackground: bool, canChangeDriveMembersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRename: bool, canRenameDrive: bool, canResetDriveRestrictions: bool, canShare: bool, canTrashChildren: bool}, colorRgb: str, createdTime: str(date-time), hidden: bool, id: str, kind: str, name: str, orgUnitId: str, restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, driveMembersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool}, themeId: str} # Successful response\n\n@endpoint PATCH /drives/{driveId}\n@desc Updates the metadata for a shared drive.\n@required {driveId: str # The ID of the shared drive.}\n@optional {useDomainAdminAccess: bool # Issue the request as a domain administrator. If set to true, then the requester is granted access if they're an administrator of the domain to which the shared drive belongs., backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)} # An image file and cropping parameters from which a background image for this shared drive is set. This is a write-only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set., backgroundImageLink: str # A short-lived link to this shared drive's background image., capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeDriveBackground: bool, canChangeDriveMembersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRename: bool, canRenameDrive: bool, canResetDriveRestrictions: bool, canShare: bool, canTrashChildren: bool} # Capabilities the current user has on this shared drive., colorRgb: str # The color of this shared drive as an RGB hex string. It can only be set on drive.drives.update requests that don't set themeId., createdTime: str(date-time) # The time at which the shared drive was created (RFC 3339 date-time)., hidden: bool # Whether the shared drive is hidden from default view., id: str # The ID of this shared drive which is also the ID of the top level folder of this shared drive., kind: str=drive#drive # Identifies what kind of resource this is. Value: the fixed string \"drive#drive\"., name: str # The name of this shared drive., orgUnitId: str # The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true., restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, driveMembersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool} # A set of restrictions that apply to this shared drive or items inside this shared drive., themeId: str # The ID of the theme from which the background image and color are set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.create 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.}\n@returns(200) {backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)}, backgroundImageLink: str, capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeDriveBackground: bool, canChangeDriveMembersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRename: bool, canRenameDrive: bool, canResetDriveRestrictions: bool, canShare: bool, canTrashChildren: bool}, colorRgb: str, createdTime: str(date-time), hidden: bool, id: str, kind: str, name: str, orgUnitId: str, restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, driveMembersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool}, themeId: str} # Successful response\n\n@endpoint POST /drives/{driveId}/hide\n@desc Hides a shared drive from the default view.\n@required {driveId: str # The ID of the shared drive.}\n@returns(200) {backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)}, backgroundImageLink: str, capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeDriveBackground: bool, canChangeDriveMembersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRename: bool, canRenameDrive: bool, canResetDriveRestrictions: bool, canShare: bool, canTrashChildren: bool}, colorRgb: str, createdTime: str(date-time), hidden: bool, id: str, kind: str, name: str, orgUnitId: str, restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, driveMembersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool}, themeId: str} # Successful response\n\n@endpoint POST /drives/{driveId}/unhide\n@desc Restores a shared drive to the default view.\n@required {driveId: str # The ID of the shared drive.}\n@returns(200) {backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)}, backgroundImageLink: str, capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeDriveBackground: bool, canChangeDriveMembersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRename: bool, canRenameDrive: bool, canResetDriveRestrictions: bool, canShare: bool, canTrashChildren: bool}, colorRgb: str, createdTime: str(date-time), hidden: bool, id: str, kind: str, name: str, orgUnitId: str, restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, driveMembersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool}, themeId: str} # Successful response\n\n@endgroup\n\n@group files\n@endpoint GET /files\n@desc Lists or searches files.\n@optional {corpora: str # Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency., corpus: str(domain/user) # The source of files to list. Deprecated: use 'corpora' instead., driveId: str # ID of the shared drive to search., includeItemsFromAllDrives: bool # Whether both My Drive and shared drive items should be included in results., includeLabels: str # A comma-separated list of IDs of labels to include in the labelInfo part of the response., includePermissionsForView: str # Specifies which additional view's permissions to include in the response. Only 'published' is supported., includeTeamDriveItems: bool # Deprecated use includeItemsFromAllDrives instead., orderBy: str # A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored., pageSize: int # 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., pageToken: str # 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., q: str # A query for filtering the file results. See the \"Search for Files\" guide for supported syntax., spaces: str # A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., teamDriveId: str # Deprecated use driveId instead.}\n@returns(200) {files: [map], incompleteSearch: bool, kind: str, nextPageToken: str} # Successful response\n\n@endpoint POST /files\n@desc Creates a file.\n@optional {enforceSingleParent: bool # Deprecated. Creating files in multiple folders is no longer supported., ignoreDefaultVisibility: bool # Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders., includeLabels: str # A comma-separated list of IDs of labels to include in the labelInfo part of the response., includePermissionsForView: str # Specifies which additional view's permissions to include in the response. Only 'published' is supported., keepRevisionForever: bool # Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions., ocrLanguage: str # A language hint for OCR processing during image import (ISO 639-1 code)., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., useContentAsIndexableText: bool # Whether to use the uploaded content as indexable text.}\n@returns(200) {appProperties: map, capabilities: map{canAcceptOwnership: bool, canAddChildren: bool, canAddFolderFromAnotherDrive: bool, canAddMyDriveParent: bool, canChangeCopyRequiresWriterPermission: bool, canChangeSecurityUpdateEnabled: bool, canChangeViewersCanCopyContent: bool, canComment: bool, canCopy: bool, canDelete: bool, canDeleteChildren: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canModifyContent: bool, canModifyContentRestriction: bool, canModifyLabels: bool, canMoveChildrenOutOfDrive: bool, canMoveChildrenOutOfTeamDrive: bool, canMoveChildrenWithinDrive: bool, canMoveChildrenWithinTeamDrive: bool, canMoveItemIntoTeamDrive: bool, canMoveItemOutOfDrive: bool, canMoveItemOutOfTeamDrive: bool, canMoveItemWithinDrive: bool, canMoveItemWithinTeamDrive: bool, canMoveTeamDriveItem: bool, canReadDrive: bool, canReadLabels: bool, canReadRevisions: bool, canReadTeamDrive: bool, canRemoveChildren: bool, canRemoveMyDriveParent: bool, canRename: bool, canShare: bool, canTrash: bool, canTrashChildren: bool, canUntrash: bool}, contentHints: map{indexableText: str, thumbnail: map{image: str(byte), mimeType: str}}, contentRestrictions: [map], copyRequiresWriterPermission: bool, createdTime: str(date-time), description: str, driveId: str, explicitlyTrashed: bool, exportLinks: map, fileExtension: str, folderColorRgb: str, fullFileExtension: str, hasAugmentedPermissions: bool, hasThumbnail: bool, headRevisionId: str, iconLink: str, id: str, imageMediaMetadata: map{aperture: num(float), cameraMake: str, cameraModel: str, colorSpace: str, exposureBias: num(float), exposureMode: str, exposureTime: num(float), flashUsed: bool, focalLength: num(float), height: int(int32), isoSpeed: int(int32), lens: str, location: map{altitude: num(double), latitude: num(double), longitude: num(double)}, maxApertureValue: num(float), meteringMode: str, rotation: int(int32), sensor: str, subjectDistance: int(int32), time: str, whiteBalance: str, width: int(int32)}, isAppAuthorized: bool, kind: str, labelInfo: map{labels: [map]}, lastModifyingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, linkShareMetadata: map{securityUpdateEligible: bool, securityUpdateEnabled: bool}, md5Checksum: str, mimeType: str, modifiedByMe: bool, modifiedByMeTime: str(date-time), modifiedTime: str(date-time), name: str, originalFilename: str, ownedByMe: bool, owners: [map], parents: [str], permissionIds: [str], permissions: [map], properties: map, quotaBytesUsed: str(int64), resourceKey: str, sha1Checksum: str, sha256Checksum: str, shared: bool, sharedWithMeTime: str(date-time), sharingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, shortcutDetails: map{targetId: str, targetMimeType: str, targetResourceKey: str}, size: str(int64), spaces: [str], starred: bool, teamDriveId: str, thumbnailLink: str, thumbnailVersion: str(int64), trashed: bool, trashedTime: str(date-time), trashingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, version: str(int64), videoMediaMetadata: map{durationMillis: str(int64), height: int(int32), width: int(int32)}, viewedByMe: bool, viewedByMeTime: str(date-time), viewersCanCopyContent: bool, webContentLink: str, webViewLink: str, writersCanShare: bool} # Successful response\n\n@endpoint GET /files/generateIds\n@desc Generates a set of file IDs which can be provided in create or copy requests.\n@optional {count: int # The number of IDs to return., space: str # The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive'), type: str # The type of items which the IDs can be used for. Supported values are 'files' and 'shortcuts'. Note that 'shortcuts' are only supported in the drive 'space'. (Default: 'files')}\n@returns(200) {ids: [str], kind: str, space: str} # Successful response\n\n@endpoint DELETE /files/trash\n@desc Permanently deletes all of the user's trashed files.\n@optional {driveId: str # If set, empties the trash of the provided shared drive., enforceSingleParent: bool # Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.}\n@returns(200) Successful response\n\n@endpoint DELETE /files/{fileId}\n@desc Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted.\n@required {fileId: str # The ID of the file.}\n@optional {enforceSingleParent: bool # Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead.}\n@returns(200) Successful response\n\n@endpoint GET /files/{fileId}\n@desc Gets a file's metadata or content by ID.\n@required {fileId: str # The ID of the file.}\n@optional {acknowledgeAbuse: bool # Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media., includeLabels: str # A comma-separated list of IDs of labels to include in the labelInfo part of the response., includePermissionsForView: str # Specifies which additional view's permissions to include in the response. Only 'published' is supported., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead.}\n@returns(200) {appProperties: map, capabilities: map{canAcceptOwnership: bool, canAddChildren: bool, canAddFolderFromAnotherDrive: bool, canAddMyDriveParent: bool, canChangeCopyRequiresWriterPermission: bool, canChangeSecurityUpdateEnabled: bool, canChangeViewersCanCopyContent: bool, canComment: bool, canCopy: bool, canDelete: bool, canDeleteChildren: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canModifyContent: bool, canModifyContentRestriction: bool, canModifyLabels: bool, canMoveChildrenOutOfDrive: bool, canMoveChildrenOutOfTeamDrive: bool, canMoveChildrenWithinDrive: bool, canMoveChildrenWithinTeamDrive: bool, canMoveItemIntoTeamDrive: bool, canMoveItemOutOfDrive: bool, canMoveItemOutOfTeamDrive: bool, canMoveItemWithinDrive: bool, canMoveItemWithinTeamDrive: bool, canMoveTeamDriveItem: bool, canReadDrive: bool, canReadLabels: bool, canReadRevisions: bool, canReadTeamDrive: bool, canRemoveChildren: bool, canRemoveMyDriveParent: bool, canRename: bool, canShare: bool, canTrash: bool, canTrashChildren: bool, canUntrash: bool}, contentHints: map{indexableText: str, thumbnail: map{image: str(byte), mimeType: str}}, contentRestrictions: [map], copyRequiresWriterPermission: bool, createdTime: str(date-time), description: str, driveId: str, explicitlyTrashed: bool, exportLinks: map, fileExtension: str, folderColorRgb: str, fullFileExtension: str, hasAugmentedPermissions: bool, hasThumbnail: bool, headRevisionId: str, iconLink: str, id: str, imageMediaMetadata: map{aperture: num(float), cameraMake: str, cameraModel: str, colorSpace: str, exposureBias: num(float), exposureMode: str, exposureTime: num(float), flashUsed: bool, focalLength: num(float), height: int(int32), isoSpeed: int(int32), lens: str, location: map{altitude: num(double), latitude: num(double), longitude: num(double)}, maxApertureValue: num(float), meteringMode: str, rotation: int(int32), sensor: str, subjectDistance: int(int32), time: str, whiteBalance: str, width: int(int32)}, isAppAuthorized: bool, kind: str, labelInfo: map{labels: [map]}, lastModifyingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, linkShareMetadata: map{securityUpdateEligible: bool, securityUpdateEnabled: bool}, md5Checksum: str, mimeType: str, modifiedByMe: bool, modifiedByMeTime: str(date-time), modifiedTime: str(date-time), name: str, originalFilename: str, ownedByMe: bool, owners: [map], parents: [str], permissionIds: [str], permissions: [map], properties: map, quotaBytesUsed: str(int64), resourceKey: str, sha1Checksum: str, sha256Checksum: str, shared: bool, sharedWithMeTime: str(date-time), sharingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, shortcutDetails: map{targetId: str, targetMimeType: str, targetResourceKey: str}, size: str(int64), spaces: [str], starred: bool, teamDriveId: str, thumbnailLink: str, thumbnailVersion: str(int64), trashed: bool, trashedTime: str(date-time), trashingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, version: str(int64), videoMediaMetadata: map{durationMillis: str(int64), height: int(int32), width: int(int32)}, viewedByMe: bool, viewedByMeTime: str(date-time), viewersCanCopyContent: bool, webContentLink: str, webViewLink: str, writersCanShare: bool} # Successful response\n\n@endpoint PATCH /files/{fileId}\n@desc Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics.\n@required {fileId: str # The ID of the file.}\n@optional {addParents: str # A comma-separated list of parent IDs to add., enforceSingleParent: bool # Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead., includeLabels: str # A comma-separated list of IDs of labels to include in the labelInfo part of the response., includePermissionsForView: str # Specifies which additional view's permissions to include in the response. Only 'published' is supported., keepRevisionForever: bool # Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions., ocrLanguage: str # A language hint for OCR processing during image import (ISO 639-1 code)., removeParents: str # A comma-separated list of parent IDs to remove., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., useContentAsIndexableText: bool # Whether to use the uploaded content as indexable text.}\n@returns(200) {appProperties: map, capabilities: map{canAcceptOwnership: bool, canAddChildren: bool, canAddFolderFromAnotherDrive: bool, canAddMyDriveParent: bool, canChangeCopyRequiresWriterPermission: bool, canChangeSecurityUpdateEnabled: bool, canChangeViewersCanCopyContent: bool, canComment: bool, canCopy: bool, canDelete: bool, canDeleteChildren: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canModifyContent: bool, canModifyContentRestriction: bool, canModifyLabels: bool, canMoveChildrenOutOfDrive: bool, canMoveChildrenOutOfTeamDrive: bool, canMoveChildrenWithinDrive: bool, canMoveChildrenWithinTeamDrive: bool, canMoveItemIntoTeamDrive: bool, canMoveItemOutOfDrive: bool, canMoveItemOutOfTeamDrive: bool, canMoveItemWithinDrive: bool, canMoveItemWithinTeamDrive: bool, canMoveTeamDriveItem: bool, canReadDrive: bool, canReadLabels: bool, canReadRevisions: bool, canReadTeamDrive: bool, canRemoveChildren: bool, canRemoveMyDriveParent: bool, canRename: bool, canShare: bool, canTrash: bool, canTrashChildren: bool, canUntrash: bool}, contentHints: map{indexableText: str, thumbnail: map{image: str(byte), mimeType: str}}, contentRestrictions: [map], copyRequiresWriterPermission: bool, createdTime: str(date-time), description: str, driveId: str, explicitlyTrashed: bool, exportLinks: map, fileExtension: str, folderColorRgb: str, fullFileExtension: str, hasAugmentedPermissions: bool, hasThumbnail: bool, headRevisionId: str, iconLink: str, id: str, imageMediaMetadata: map{aperture: num(float), cameraMake: str, cameraModel: str, colorSpace: str, exposureBias: num(float), exposureMode: str, exposureTime: num(float), flashUsed: bool, focalLength: num(float), height: int(int32), isoSpeed: int(int32), lens: str, location: map{altitude: num(double), latitude: num(double), longitude: num(double)}, maxApertureValue: num(float), meteringMode: str, rotation: int(int32), sensor: str, subjectDistance: int(int32), time: str, whiteBalance: str, width: int(int32)}, isAppAuthorized: bool, kind: str, labelInfo: map{labels: [map]}, lastModifyingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, linkShareMetadata: map{securityUpdateEligible: bool, securityUpdateEnabled: bool}, md5Checksum: str, mimeType: str, modifiedByMe: bool, modifiedByMeTime: str(date-time), modifiedTime: str(date-time), name: str, originalFilename: str, ownedByMe: bool, owners: [map], parents: [str], permissionIds: [str], permissions: [map], properties: map, quotaBytesUsed: str(int64), resourceKey: str, sha1Checksum: str, sha256Checksum: str, shared: bool, sharedWithMeTime: str(date-time), sharingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, shortcutDetails: map{targetId: str, targetMimeType: str, targetResourceKey: str}, size: str(int64), spaces: [str], starred: bool, teamDriveId: str, thumbnailLink: str, thumbnailVersion: str(int64), trashed: bool, trashedTime: str(date-time), trashingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, version: str(int64), videoMediaMetadata: map{durationMillis: str(int64), height: int(int32), width: int(int32)}, viewedByMe: bool, viewedByMeTime: str(date-time), viewersCanCopyContent: bool, webContentLink: str, webViewLink: str, writersCanShare: bool} # Successful response\n\n@endpoint GET /files/{fileId}/comments\n@desc Lists a file's comments.\n@required {fileId: str # The ID of the file.}\n@optional {includeDeleted: bool # Whether to include deleted comments. Deleted comments will not include their original content., pageSize: int # The maximum number of comments to return per page., pageToken: str # 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., startModifiedTime: str # The minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time).}\n@returns(200) {comments: [map], kind: str, nextPageToken: str} # Successful response\n\n@endpoint POST /files/{fileId}/comments\n@desc Creates a comment on a file.\n@required {fileId: str # The ID of the file.}\n@optional {anchor: str # A region of the document represented as a JSON string. For details on defining anchor properties, refer to  Add comments and replies., author: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str} # Information about a Drive user., content: str # The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed., createdTime: str(date-time) # The time at which the comment was created (RFC 3339 date-time)., deleted: bool # Whether the comment has been deleted. A deleted comment has no content., htmlContent: str # The content of the comment with HTML formatting., id: str # The ID of the comment., kind: str=drive#comment # Identifies what kind of resource this is. Value: the fixed string \"drive#comment\"., modifiedTime: str(date-time) # The last time the comment or any of its replies was modified (RFC 3339 date-time)., quotedFileContent: map{mimeType: str, value: str} # 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., replies: [map{action: str, author: map, content: str, createdTime: str(date-time), deleted: bool, htmlContent: str, id: str, kind: str, modifiedTime: str(date-time)}] # The full list of replies to the comment in chronological order., resolved: bool # Whether the comment has been resolved by one of its replies.}\n@returns(200) {anchor: str, author: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, content: str, createdTime: str(date-time), deleted: bool, htmlContent: str, id: str, kind: str, modifiedTime: str(date-time), quotedFileContent: map{mimeType: str, value: str}, replies: [map], resolved: bool} # Successful response\n\n@endpoint DELETE /files/{fileId}/comments/{commentId}\n@desc Deletes a comment.\n@required {fileId: str # The ID of the file., commentId: str # The ID of the comment.}\n@returns(200) Successful response\n\n@endpoint GET /files/{fileId}/comments/{commentId}\n@desc Gets a comment by ID.\n@required {fileId: str # The ID of the file., commentId: str # The ID of the comment.}\n@optional {includeDeleted: bool # Whether to return deleted comments. Deleted comments will not include their original content.}\n@returns(200) {anchor: str, author: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, content: str, createdTime: str(date-time), deleted: bool, htmlContent: str, id: str, kind: str, modifiedTime: str(date-time), quotedFileContent: map{mimeType: str, value: str}, replies: [map], resolved: bool} # Successful response\n\n@endpoint PATCH /files/{fileId}/comments/{commentId}\n@desc Updates a comment with patch semantics.\n@required {fileId: str # The ID of the file., commentId: str # The ID of the comment.}\n@optional {anchor: str # A region of the document represented as a JSON string. For details on defining anchor properties, refer to  Add comments and replies., author: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str} # Information about a Drive user., content: str # The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed., createdTime: str(date-time) # The time at which the comment was created (RFC 3339 date-time)., deleted: bool # Whether the comment has been deleted. A deleted comment has no content., htmlContent: str # The content of the comment with HTML formatting., id: str # The ID of the comment., kind: str=drive#comment # Identifies what kind of resource this is. Value: the fixed string \"drive#comment\"., modifiedTime: str(date-time) # The last time the comment or any of its replies was modified (RFC 3339 date-time)., quotedFileContent: map{mimeType: str, value: str} # 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., replies: [map{action: str, author: map, content: str, createdTime: str(date-time), deleted: bool, htmlContent: str, id: str, kind: str, modifiedTime: str(date-time)}] # The full list of replies to the comment in chronological order., resolved: bool # Whether the comment has been resolved by one of its replies.}\n@returns(200) {anchor: str, author: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, content: str, createdTime: str(date-time), deleted: bool, htmlContent: str, id: str, kind: str, modifiedTime: str(date-time), quotedFileContent: map{mimeType: str, value: str}, replies: [map], resolved: bool} # Successful response\n\n@endpoint GET /files/{fileId}/comments/{commentId}/replies\n@desc Lists a comment's replies.\n@required {fileId: str # The ID of the file., commentId: str # The ID of the comment.}\n@optional {includeDeleted: bool # Whether to include deleted replies. Deleted replies will not include their original content., pageSize: int # The maximum number of replies to return per page., pageToken: str # 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.}\n@returns(200) {kind: str, nextPageToken: str, replies: [map]} # Successful response\n\n@endpoint POST /files/{fileId}/comments/{commentId}/replies\n@desc Creates a reply to a comment.\n@required {fileId: str # The ID of the file., commentId: str # The ID of the comment.}\n@optional {action: str # The action the reply performed to the parent comment. Valid values are:   - resolve  - reopen, author: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str} # Information about a Drive user., content: str # 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., createdTime: str(date-time) # The time at which the reply was created (RFC 3339 date-time)., deleted: bool # Whether the reply has been deleted. A deleted reply has no content., htmlContent: str # The content of the reply with HTML formatting., id: str # The ID of the reply., kind: str=drive#reply # Identifies what kind of resource this is. Value: the fixed string \"drive#reply\"., modifiedTime: str(date-time) # The last time the reply was modified (RFC 3339 date-time).}\n@returns(200) {action: str, author: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, content: str, createdTime: str(date-time), deleted: bool, htmlContent: str, id: str, kind: str, modifiedTime: str(date-time)} # Successful response\n\n@endpoint DELETE /files/{fileId}/comments/{commentId}/replies/{replyId}\n@desc Deletes a reply.\n@required {fileId: str # The ID of the file., commentId: str # The ID of the comment., replyId: str # The ID of the reply.}\n@returns(200) Successful response\n\n@endpoint GET /files/{fileId}/comments/{commentId}/replies/{replyId}\n@desc Gets a reply by ID.\n@required {fileId: str # The ID of the file., commentId: str # The ID of the comment., replyId: str # The ID of the reply.}\n@optional {includeDeleted: bool # Whether to return deleted replies. Deleted replies will not include their original content.}\n@returns(200) {action: str, author: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, content: str, createdTime: str(date-time), deleted: bool, htmlContent: str, id: str, kind: str, modifiedTime: str(date-time)} # Successful response\n\n@endpoint PATCH /files/{fileId}/comments/{commentId}/replies/{replyId}\n@desc Updates a reply with patch semantics.\n@required {fileId: str # The ID of the file., commentId: str # The ID of the comment., replyId: str # The ID of the reply.}\n@optional {action: str # The action the reply performed to the parent comment. Valid values are:   - resolve  - reopen, author: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str} # Information about a Drive user., content: str # 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., createdTime: str(date-time) # The time at which the reply was created (RFC 3339 date-time)., deleted: bool # Whether the reply has been deleted. A deleted reply has no content., htmlContent: str # The content of the reply with HTML formatting., id: str # The ID of the reply., kind: str=drive#reply # Identifies what kind of resource this is. Value: the fixed string \"drive#reply\"., modifiedTime: str(date-time) # The last time the reply was modified (RFC 3339 date-time).}\n@returns(200) {action: str, author: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, content: str, createdTime: str(date-time), deleted: bool, htmlContent: str, id: str, kind: str, modifiedTime: str(date-time)} # Successful response\n\n@endpoint POST /files/{fileId}/copy\n@desc Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied.\n@required {fileId: str # The ID of the file.}\n@optional {enforceSingleParent: bool # Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead., ignoreDefaultVisibility: bool # Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders., includeLabels: str # A comma-separated list of IDs of labels to include in the labelInfo part of the response., includePermissionsForView: str # Specifies which additional view's permissions to include in the response. Only 'published' is supported., keepRevisionForever: bool # Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions., ocrLanguage: str # A language hint for OCR processing during image import (ISO 639-1 code)., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., appProperties: map # A collection of arbitrary key-value pairs that are private to the requesting app. Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with an OAuth 2 client ID. You cannot use an API key to retrieve private properties., capabilities: map{canAcceptOwnership: bool, canAddChildren: bool, canAddFolderFromAnotherDrive: bool, canAddMyDriveParent: bool, canChangeCopyRequiresWriterPermission: bool, canChangeSecurityUpdateEnabled: bool, canChangeViewersCanCopyContent: bool, canComment: bool, canCopy: bool, canDelete: bool, canDeleteChildren: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canModifyContent: bool, canModifyContentRestriction: bool, canModifyLabels: bool, canMoveChildrenOutOfDrive: bool, canMoveChildrenOutOfTeamDrive: bool, canMoveChildrenWithinDrive: bool, canMoveChildrenWithinTeamDrive: bool, canMoveItemIntoTeamDrive: bool, canMoveItemOutOfDrive: bool, canMoveItemOutOfTeamDrive: bool, canMoveItemWithinDrive: bool, canMoveItemWithinTeamDrive: bool, canMoveTeamDriveItem: bool, canReadDrive: bool, canReadLabels: bool, canReadRevisions: bool, canReadTeamDrive: bool, canRemoveChildren: bool, canRemoveMyDriveParent: bool, canRename: bool, canShare: bool, canTrash: bool, canTrashChildren: bool, canUntrash: bool} # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user can take., contentHints: map{indexableText: str, thumbnail: map} # Additional information about the content of the file. These fields are never populated in responses., contentRestrictions: [map{readOnly: bool, reason: str, restrictingUser: map, restrictionTime: str(date-time), type: str}] # Restrictions for accessing the content of the file. Only populated if such a restriction exists., copyRequiresWriterPermission: bool # Whether the options to copy, print, or download this file, should be disabled for readers and commenters., createdTime: str(date-time) # The time at which the file was created (RFC 3339 date-time)., description: str # A short description of the file., driveId: str # ID of the shared drive the file resides in. Only populated for items in shared drives., explicitlyTrashed: bool # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder., exportLinks: map # Links for exporting Docs Editors files to specific formats., fileExtension: str # The final component of fullFileExtension. This is only available for files with binary content in Google Drive., folderColorRgb: str # The color for a folder or shortcut to a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource. If an unsupported color is specified, the closest color in the palette will be used instead., fullFileExtension: str # The full file extension extracted from the name field. Can contain multiple concatenated extensions, such as \"tar.gz\". This is only available for files with binary content in Google Drive. This is automatically updated when the name field changes, however it's not cleared if the new name does not contain a valid extension., hasAugmentedPermissions: bool # Whether there are permissions directly on this file. This field is only populated for items in shared drives., hasThumbnail: bool # 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., headRevisionId: str # The ID of the file's head revision. This is only available for files with binary content in Google Drive., iconLink: str # A static, unauthenticated link to the file's icon., id: str # The ID of the file., imageMediaMetadata: map{aperture: num(float), cameraMake: str, cameraModel: str, colorSpace: str, exposureBias: num(float), exposureMode: str, exposureTime: num(float), flashUsed: bool, focalLength: num(float), height: int(int32), isoSpeed: int(int32), lens: str, location: map, maxApertureValue: num(float), meteringMode: str, rotation: int(int32), sensor: str, subjectDistance: int(int32), time: str, whiteBalance: str, width: int(int32)} # Additional metadata about image media, if available., isAppAuthorized: bool # Whether the requesting app created or opened the file., kind: str=drive#file # Identifies what kind of resource this is. Value: the fixed string \"drive#file\"., labelInfo: map{labels: [map]} # An overview of the labels on the file., lastModifyingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str} # Information about a Drive user., linkShareMetadata: map{securityUpdateEligible: bool, securityUpdateEnabled: bool} # Contains details about the link URLs that clients are using to refer to this item., md5Checksum: str # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive., mimeType: str # The MIME type of the file. Google Drive 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. If 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: bool # Whether this user has modified the file., modifiedByMeTime: str(date-time) # The last time the user modified the file (RFC 3339 date-time)., modifiedTime: str(date-time) # The last time anyone modified the file (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user., name: str # The name of the file. This isn't necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, My Drive root folder, and Application Data folder the name is constant., originalFilename: str # 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 Google Drive., ownedByMe: bool # Whether the user owns the file. Not populated for items in shared drives., owners: [map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}] # The owner of this file. Only certain legacy files might have more than one owner. This field isn't populated for items in shared drives., parents: [str] # The IDs of the parent folders that contain the file. If not specified as part of a create request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list., permissionIds: [str] # List of permission IDs for users with access to this file., permissions: [map{allowFileDiscovery: bool, deleted: bool, displayName: str, domain: str, emailAddress: str, expirationTime: str(date-time), id: str, kind: str, pendingOwner: bool, permissionDetails: [map], photoLink: str, role: str, teamDrivePermissionDetails: [map], type: str, view: str}] # The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives., properties: map # A collection of arbitrary key-value pairs that are visible to all apps. Entries with null values are cleared in update and copy requests., quotaBytesUsed: str(int64) # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled., resourceKey: str # A key needed to access the item via a shared link., sha1Checksum: str # The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or shortcut files., sha256Checksum: str # The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or shortcut files., shared: bool # Whether the file has been shared. Not populated for items in shared drives., sharedWithMeTime: str(date-time) # The time at which the file was shared with the user, if applicable (RFC 3339 date-time)., sharingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str} # Information about a Drive user., shortcutDetails: map{targetId: str, targetMimeType: str, targetResourceKey: str} # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut., size: str(int64) # The size of the file's content in bytes. This field is populated for files with binary content stored in Google Drive and for Docs Editors files; it's not populated for shortcuts or folders., spaces: [str] # The list of spaces that contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'., starred: bool # Whether the user has starred the file., teamDriveId: str # Deprecated - use driveId instead., thumbnailLink: str # 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. If the file isn't shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request., thumbnailVersion: str(int64) # The thumbnail version for use in thumbnail cache invalidation., trashed: bool # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner can trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file., trashedTime: str(date-time) # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives., trashingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str} # Information about a Drive user., version: str(int64) # 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., videoMediaMetadata: map{durationMillis: str(int64), height: int(int32), width: int(int32)} # Additional metadata about video media. This might not be available immediately upon upload., viewedByMe: bool # Whether this user has viewed the file., viewedByMeTime: str(date-time) # The last time the user viewed the file (RFC 3339 date-time)., viewersCanCopyContent: bool # Deprecated - use copyRequiresWriterPermission instead., webContentLink: str # A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive., webViewLink: str # A link for opening the file in a relevant Google editor or viewer in a browser., writersCanShare: bool # Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives.}\n@returns(200) {appProperties: map, capabilities: map{canAcceptOwnership: bool, canAddChildren: bool, canAddFolderFromAnotherDrive: bool, canAddMyDriveParent: bool, canChangeCopyRequiresWriterPermission: bool, canChangeSecurityUpdateEnabled: bool, canChangeViewersCanCopyContent: bool, canComment: bool, canCopy: bool, canDelete: bool, canDeleteChildren: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canModifyContent: bool, canModifyContentRestriction: bool, canModifyLabels: bool, canMoveChildrenOutOfDrive: bool, canMoveChildrenOutOfTeamDrive: bool, canMoveChildrenWithinDrive: bool, canMoveChildrenWithinTeamDrive: bool, canMoveItemIntoTeamDrive: bool, canMoveItemOutOfDrive: bool, canMoveItemOutOfTeamDrive: bool, canMoveItemWithinDrive: bool, canMoveItemWithinTeamDrive: bool, canMoveTeamDriveItem: bool, canReadDrive: bool, canReadLabels: bool, canReadRevisions: bool, canReadTeamDrive: bool, canRemoveChildren: bool, canRemoveMyDriveParent: bool, canRename: bool, canShare: bool, canTrash: bool, canTrashChildren: bool, canUntrash: bool}, contentHints: map{indexableText: str, thumbnail: map{image: str(byte), mimeType: str}}, contentRestrictions: [map], copyRequiresWriterPermission: bool, createdTime: str(date-time), description: str, driveId: str, explicitlyTrashed: bool, exportLinks: map, fileExtension: str, folderColorRgb: str, fullFileExtension: str, hasAugmentedPermissions: bool, hasThumbnail: bool, headRevisionId: str, iconLink: str, id: str, imageMediaMetadata: map{aperture: num(float), cameraMake: str, cameraModel: str, colorSpace: str, exposureBias: num(float), exposureMode: str, exposureTime: num(float), flashUsed: bool, focalLength: num(float), height: int(int32), isoSpeed: int(int32), lens: str, location: map{altitude: num(double), latitude: num(double), longitude: num(double)}, maxApertureValue: num(float), meteringMode: str, rotation: int(int32), sensor: str, subjectDistance: int(int32), time: str, whiteBalance: str, width: int(int32)}, isAppAuthorized: bool, kind: str, labelInfo: map{labels: [map]}, lastModifyingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, linkShareMetadata: map{securityUpdateEligible: bool, securityUpdateEnabled: bool}, md5Checksum: str, mimeType: str, modifiedByMe: bool, modifiedByMeTime: str(date-time), modifiedTime: str(date-time), name: str, originalFilename: str, ownedByMe: bool, owners: [map], parents: [str], permissionIds: [str], permissions: [map], properties: map, quotaBytesUsed: str(int64), resourceKey: str, sha1Checksum: str, sha256Checksum: str, shared: bool, sharedWithMeTime: str(date-time), sharingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, shortcutDetails: map{targetId: str, targetMimeType: str, targetResourceKey: str}, size: str(int64), spaces: [str], starred: bool, teamDriveId: str, thumbnailLink: str, thumbnailVersion: str(int64), trashed: bool, trashedTime: str(date-time), trashingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, version: str(int64), videoMediaMetadata: map{durationMillis: str(int64), height: int(int32), width: int(int32)}, viewedByMe: bool, viewedByMeTime: str(date-time), viewersCanCopyContent: bool, webContentLink: str, webViewLink: str, writersCanShare: bool} # Successful response\n\n@endpoint GET /files/{fileId}/export\n@desc Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.\n@required {fileId: str # The ID of the file., mimeType: str # The MIME type of the format requested for this export.}\n@returns(200) Successful response\n\n@endpoint GET /files/{fileId}/listLabels\n@desc Lists the labels on a file.\n@required {fileId: str # The ID of the file.}\n@optional {maxResults: int # The maximum number of labels to return per page. When not set, this defaults to 100., pageToken: str # 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.}\n@returns(200) {kind: str, labels: [map], nextPageToken: str} # Successful response\n\n@endpoint POST /files/{fileId}/modifyLabels\n@desc Modifies the set of labels on a file.\n@required {fileId: str # The ID of the file for which the labels are modified.}\n@optional {kind: str=drive#modifyLabelsRequest # This is always drive#modifyLabelsRequest, labelModifications: [map{fieldModifications: [map], kind: str, labelId: str, removeLabel: bool}] # The list of modifications to apply to the labels on the file.}\n@returns(200) {kind: str, modifiedLabels: [map]} # Successful response\n\n@endpoint GET /files/{fileId}/permissions\n@desc Lists a file's or shared drive's permissions.\n@required {fileId: str # The ID of the file or shared drive.}\n@optional {includePermissionsForView: str # Specifies which additional view's permissions to include in the response. Only 'published' is supported., pageSize: int # The maximum number of permissions to return per page. When not set for files in a shared drive, at most 100 results will be returned. When not set for files that are not in a shared drive, the entire list will be returned., pageToken: str # 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., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., useDomainAdminAccess: bool # Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.}\n@returns(200) {kind: str, nextPageToken: str, permissions: [map]} # Successful response\n\n@endpoint POST /files/{fileId}/permissions\n@desc Creates a permission for a file or shared drive. For more information on creating permissions, see Share files, folders & drives.\n@required {fileId: str # The ID of the file or shared drive.}\n@optional {emailMessage: str # A plain text custom message to include in the notification email., enforceSingleParent: bool # Deprecated. See moveToNewOwnersRoot for details., moveToNewOwnersRoot: bool # This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed., sendNotificationEmail: bool # Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., transferOwnership: bool # Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. File owners can only transfer ownership of files existing on My Drive. Files existing in a shared drive are owned by the organization that owns that shared drive. Ownership transfers are not supported for files and folders in shared drives. Organizers of a shared drive can move items from that shared drive into their My Drive which transfers the ownership to them., useDomainAdminAccess: bool # Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs., allowFileDiscovery: bool # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone., deleted: bool # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions., displayName: str # The \"pretty\" name of the value of the permission. The following is a list of examples for each type of permission:   - user - User's full name, as defined for their Google Account, such as \"Joe Smith.\"  - group - Name of the Google Group, such as \"The Company Administrators.\"  - domain - String domain name, such as \"your-company.com.\"  - anyone - No displayName is present., domain: str # The domain to which this permission refers. The following options are currently allowed:   - The entire domain, such as \"your-company.com.\"  - A target audience, such as \"ID.audience.googledomains.com.\", emailAddress: str # The email address of the user or group to which this permission refers., expirationTime: str(date-time) # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:   - They cannot be set on shared drive items.  - They can only be set on user and group permissions.  - The time must be in the future.  - The time cannot be more than one year in the future., id: str # The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values., kind: str=drive#permission # Identifies what kind of resource this is. Value: the fixed string \"drive#permission\"., pendingOwner: bool # Whether the account associated with this permission is a pending owner. Only populated for user type permissions for files that aren't in a shared drive., permissionDetails: [map{inherited: bool, inheritedFrom: str, permissionType: str, role: str}] # Details of whether the permissions on this shared drive item are inherited or are directly on this item. This is an output-only field that's present only for shared drive items., photoLink: str # A link to the user's profile photo, if available., role: str # The role granted by this permission. While new values may be supported in the future, the following are currently allowed:   - owner  - organizer  - fileOrganizer  - writer  - commenter  - reader, teamDrivePermissionDetails: [map{inherited: bool, inheritedFrom: str, role: str, teamDrivePermissionType: str}] # Deprecated - use permissionDetails instead., type: str # The type of the grantee. Valid values are:   - user  - group  - domain  - anyone  When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn't extra information required for the anyone type., view: str # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.}\n@returns(200) {allowFileDiscovery: bool, deleted: bool, displayName: str, domain: str, emailAddress: str, expirationTime: str(date-time), id: str, kind: str, pendingOwner: bool, permissionDetails: [map], photoLink: str, role: str, teamDrivePermissionDetails: [map], type: str, view: str} # Successful response\n\n@endpoint DELETE /files/{fileId}/permissions/{permissionId}\n@desc Deletes a permission.\n@required {fileId: str # The ID of the file or shared drive., permissionId: str # The ID of the permission.}\n@optional {supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., useDomainAdminAccess: bool # Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.}\n@returns(200) Successful response\n\n@endpoint GET /files/{fileId}/permissions/{permissionId}\n@desc Gets a permission by ID.\n@required {fileId: str # The ID of the file., permissionId: str # The ID of the permission.}\n@optional {supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., useDomainAdminAccess: bool # Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.}\n@returns(200) {allowFileDiscovery: bool, deleted: bool, displayName: str, domain: str, emailAddress: str, expirationTime: str(date-time), id: str, kind: str, pendingOwner: bool, permissionDetails: [map], photoLink: str, role: str, teamDrivePermissionDetails: [map], type: str, view: str} # Successful response\n\n@endpoint PATCH /files/{fileId}/permissions/{permissionId}\n@desc Updates a permission with patch semantics.\n@required {fileId: str # The ID of the file or shared drive., permissionId: str # The ID of the permission.}\n@optional {removeExpiration: bool # Whether to remove the expiration date., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., transferOwnership: bool # Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. File owners can only transfer ownership of files existing on My Drive. Files existing in a shared drive are owned by the organization that owns that shared drive. Ownership transfers are not supported for files and folders in shared drives. Organizers of a shared drive can move items from that shared drive into their My Drive which transfers the ownership to them., useDomainAdminAccess: bool # Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs., allowFileDiscovery: bool # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone., deleted: bool # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions., displayName: str # The \"pretty\" name of the value of the permission. The following is a list of examples for each type of permission:   - user - User's full name, as defined for their Google Account, such as \"Joe Smith.\"  - group - Name of the Google Group, such as \"The Company Administrators.\"  - domain - String domain name, such as \"your-company.com.\"  - anyone - No displayName is present., domain: str # The domain to which this permission refers. The following options are currently allowed:   - The entire domain, such as \"your-company.com.\"  - A target audience, such as \"ID.audience.googledomains.com.\", emailAddress: str # The email address of the user or group to which this permission refers., expirationTime: str(date-time) # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:   - They cannot be set on shared drive items.  - They can only be set on user and group permissions.  - The time must be in the future.  - The time cannot be more than one year in the future., id: str # The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values., kind: str=drive#permission # Identifies what kind of resource this is. Value: the fixed string \"drive#permission\"., pendingOwner: bool # Whether the account associated with this permission is a pending owner. Only populated for user type permissions for files that aren't in a shared drive., permissionDetails: [map{inherited: bool, inheritedFrom: str, permissionType: str, role: str}] # Details of whether the permissions on this shared drive item are inherited or are directly on this item. This is an output-only field that's present only for shared drive items., photoLink: str # A link to the user's profile photo, if available., role: str # The role granted by this permission. While new values may be supported in the future, the following are currently allowed:   - owner  - organizer  - fileOrganizer  - writer  - commenter  - reader, teamDrivePermissionDetails: [map{inherited: bool, inheritedFrom: str, role: str, teamDrivePermissionType: str}] # Deprecated - use permissionDetails instead., type: str # The type of the grantee. Valid values are:   - user  - group  - domain  - anyone  When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn't extra information required for the anyone type., view: str # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.}\n@returns(200) {allowFileDiscovery: bool, deleted: bool, displayName: str, domain: str, emailAddress: str, expirationTime: str(date-time), id: str, kind: str, pendingOwner: bool, permissionDetails: [map], photoLink: str, role: str, teamDrivePermissionDetails: [map], type: str, view: str} # Successful response\n\n@endpoint GET /files/{fileId}/revisions\n@desc Lists a file's revisions.\n@required {fileId: str # The ID of the file.}\n@optional {pageSize: int # The maximum number of revisions to return per page., pageToken: str # 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.}\n@returns(200) {kind: str, nextPageToken: str, revisions: [map]} # Successful response\n\n@endpoint DELETE /files/{fileId}/revisions/{revisionId}\n@desc Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.\n@required {fileId: str # The ID of the file., revisionId: str # The ID of the revision.}\n@returns(200) Successful response\n\n@endpoint GET /files/{fileId}/revisions/{revisionId}\n@desc Gets a revision's metadata or content by ID.\n@required {fileId: str # The ID of the file., revisionId: str # The ID of the revision.}\n@optional {acknowledgeAbuse: bool # Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.}\n@returns(200) {exportLinks: map, id: str, keepForever: bool, kind: str, lastModifyingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, md5Checksum: str, mimeType: str, modifiedTime: str(date-time), originalFilename: str, publishAuto: bool, published: bool, publishedLink: str, publishedOutsideDomain: bool, size: str(int64)} # Successful response\n\n@endpoint PATCH /files/{fileId}/revisions/{revisionId}\n@desc Updates a revision with patch semantics.\n@required {fileId: str # The ID of the file., revisionId: str # The ID of the revision.}\n@optional {exportLinks: map # Links for exporting Docs Editors files to specific formats., id: str # The ID of the revision., keepForever: bool # 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. This field is only applicable to files with binary content in Drive., kind: str=drive#revision # Identifies what kind of resource this is. Value: the fixed string \"drive#revision\"., lastModifyingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str} # Information about a Drive user., md5Checksum: str # The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive., mimeType: str # The MIME type of the revision., modifiedTime: str(date-time) # The last time the revision was modified (RFC 3339 date-time)., originalFilename: str # The original filename used to create this revision. This is only applicable to files with binary content in Drive., publishAuto: bool # Whether subsequent revisions will be automatically republished. This is only applicable to Docs Editors files., published: bool # Whether this revision is published. This is only applicable to Docs Editors files., publishedLink: str # A link to the published revision. This is only populated for Google Sites files., publishedOutsideDomain: bool # Whether this revision is published outside the domain. This is only applicable to Docs Editors files., size: str(int64) # The size of the revision's content in bytes. This is only applicable to files with binary content in Drive.}\n@returns(200) {exportLinks: map, id: str, keepForever: bool, kind: str, lastModifyingUser: map{displayName: str, emailAddress: str, kind: str, me: bool, permissionId: str, photoLink: str}, md5Checksum: str, mimeType: str, modifiedTime: str(date-time), originalFilename: str, publishAuto: bool, published: bool, publishedLink: str, publishedOutsideDomain: bool, size: str(int64)} # Successful response\n\n@endpoint POST /files/{fileId}/watch\n@desc Subscribes to changes to a file.\n@required {fileId: str # The ID of the file.}\n@optional {acknowledgeAbuse: bool # Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media., includeLabels: str # A comma-separated list of IDs of labels to include in the labelInfo part of the response., includePermissionsForView: str # Specifies which additional view's permissions to include in the response. Only 'published' is supported., supportsAllDrives: bool # Whether the requesting application supports both My Drives and shared drives., supportsTeamDrives: bool # Deprecated use supportsAllDrives instead., address: str # The address where notifications are delivered for this channel., expiration: str(int64) # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional., id: str # A UUID or similar unique string that identifies this channel., kind: str=api#channel # Identifies this as a notification channel used to watch for changes to a resource, which is \"api#channel\"., params: map # Additional parameters controlling delivery channel behavior. Optional., payload: bool # A Boolean value to indicate whether payload is wanted. Optional., resourceId: str # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions., resourceUri: str # A version-specific identifier for the watched resource., token: str # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional., type: str # The type of delivery mechanism used for this channel. Valid values are \"web_hook\" (or \"webhook\"). Both values refer to a channel where Http requests are used to deliver messages.}\n@returns(200) {address: str, expiration: str(int64), id: str, kind: str, params: map, payload: bool, resourceId: str, resourceUri: str, token: str, type: str} # Successful response\n\n@endgroup\n\n@group teamdrives\n@endpoint GET /teamdrives\n@desc Deprecated use drives.list instead.\n@optional {pageSize: int # Maximum number of Team Drives to return., pageToken: str # Page token for Team Drives., q: str # Query string for searching Team Drives., useDomainAdminAccess: bool # Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.}\n@returns(200) {kind: str, nextPageToken: str, teamDrives: [map]} # Successful response\n\n@endpoint POST /teamdrives\n@desc Deprecated use drives.create instead.\n@required {requestId: str # 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.}\n@optional {backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)} # 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., backgroundImageLink: str # A short-lived link to this Team Drive's background image., capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canChangeTeamDriveBackground: bool, canChangeTeamMembersOnlyRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteTeamDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRemoveChildren: bool, canRename: bool, canRenameTeamDrive: bool, canResetTeamDriveRestrictions: bool, canShare: bool, canTrashChildren: bool} # Capabilities the current user has on this Team Drive., colorRgb: str # 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., createdTime: str(date-time) # The time at which the Team Drive was created (RFC 3339 date-time)., id: str # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive., kind: str=drive#teamDrive # Identifies what kind of resource this is. Value: the fixed string \"drive#teamDrive\"., name: str # The name of this Team Drive., orgUnitId: str # The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true., restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool, teamMembersOnly: bool} # A set of restrictions that apply to this Team Drive or items inside this Team Drive., themeId: str # 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.create 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.}\n@returns(200) {backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)}, backgroundImageLink: str, capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canChangeTeamDriveBackground: bool, canChangeTeamMembersOnlyRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteTeamDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRemoveChildren: bool, canRename: bool, canRenameTeamDrive: bool, canResetTeamDriveRestrictions: bool, canShare: bool, canTrashChildren: bool}, colorRgb: str, createdTime: str(date-time), id: str, kind: str, name: str, orgUnitId: str, restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool, teamMembersOnly: bool}, themeId: str} # Successful response\n\n@endpoint DELETE /teamdrives/{teamDriveId}\n@desc Deprecated use drives.delete instead.\n@required {teamDriveId: str # The ID of the Team Drive}\n@returns(200) Successful response\n\n@endpoint GET /teamdrives/{teamDriveId}\n@desc Deprecated use drives.get instead.\n@required {teamDriveId: str # The ID of the Team Drive}\n@optional {useDomainAdminAccess: bool # Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.}\n@returns(200) {backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)}, backgroundImageLink: str, capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canChangeTeamDriveBackground: bool, canChangeTeamMembersOnlyRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteTeamDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRemoveChildren: bool, canRename: bool, canRenameTeamDrive: bool, canResetTeamDriveRestrictions: bool, canShare: bool, canTrashChildren: bool}, colorRgb: str, createdTime: str(date-time), id: str, kind: str, name: str, orgUnitId: str, restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool, teamMembersOnly: bool}, themeId: str} # Successful response\n\n@endpoint PATCH /teamdrives/{teamDriveId}\n@desc Deprecated use drives.update instead\n@required {teamDriveId: str # The ID of the Team Drive}\n@optional {useDomainAdminAccess: bool # Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs., backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)} # 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., backgroundImageLink: str # A short-lived link to this Team Drive's background image., capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canChangeTeamDriveBackground: bool, canChangeTeamMembersOnlyRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteTeamDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRemoveChildren: bool, canRename: bool, canRenameTeamDrive: bool, canResetTeamDriveRestrictions: bool, canShare: bool, canTrashChildren: bool} # Capabilities the current user has on this Team Drive., colorRgb: str # 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., createdTime: str(date-time) # The time at which the Team Drive was created (RFC 3339 date-time)., id: str # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive., kind: str=drive#teamDrive # Identifies what kind of resource this is. Value: the fixed string \"drive#teamDrive\"., name: str # The name of this Team Drive., orgUnitId: str # The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true., restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool, teamMembersOnly: bool} # A set of restrictions that apply to this Team Drive or items inside this Team Drive., themeId: str # 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.create 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.}\n@returns(200) {backgroundImageFile: map{id: str, width: num(float), xCoordinate: num(float), yCoordinate: num(float)}, backgroundImageLink: str, capabilities: map{canAddChildren: bool, canChangeCopyRequiresWriterPermissionRestriction: bool, canChangeDomainUsersOnlyRestriction: bool, canChangeSharingFoldersRequiresOrganizerPermissionRestriction: bool, canChangeTeamDriveBackground: bool, canChangeTeamMembersOnlyRestriction: bool, canComment: bool, canCopy: bool, canDeleteChildren: bool, canDeleteTeamDrive: bool, canDownload: bool, canEdit: bool, canListChildren: bool, canManageMembers: bool, canReadRevisions: bool, canRemoveChildren: bool, canRename: bool, canRenameTeamDrive: bool, canResetTeamDriveRestrictions: bool, canShare: bool, canTrashChildren: bool}, colorRgb: str, createdTime: str(date-time), id: str, kind: str, name: str, orgUnitId: str, restrictions: map{adminManagedRestrictions: bool, copyRequiresWriterPermission: bool, domainUsersOnly: bool, sharingFoldersRequiresOrganizerPermission: bool, teamMembersOnly: bool}, themeId: str} # Successful response\n\n@endgroup\n\n@end\n"}}