Google Drive
Read and write files to Google Drive.
Authentication
This connector uses OAuth 2.0 authentication.
info
Set up your connection in the Abstra Console before using it in your workflows.
How to use
Using the Smart Chat
Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".
Using the Web Editor
from abstra.connectors import run_connection_action
result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})
Available Actions
This connector provides 55 actions:
| Action | Purpose | Parameters |
|---|---|---|
| operations_get | Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. | name (string) required |
| about_get | Gets information about the user, the user's Drive, and system capabilities. For more information, see Return user infohttps://developers.google.com/workspace/drive/api/guides/user-info. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fieldshttps://developers.google.com/workspace/drive/api/guides/fields-parameter. | No parameters |
| apps_get | Gets a specific app. For more information, see Return user infohttps://developers.google.com/workspace/drive/api/guides/user-info. | appId (string) required |
| apps_list | Lists a user's installed apps. For more information, see Return user infohttps://developers.google.com/workspace/drive/api/guides/user-info. | appFilterExtensions (string) appFilterMimeTypes (string) languageCode (string) |
| changes_get_start_page_token | Gets the starting pageToken for listing future changes. For more information, see Retrieve changeshttps://developers.google.com/workspace/drive/api/guides/manage-changes. | driveId (string) supportsAllDrives (boolean) supportsTeamDrives (boolean) teamDriveId (string) |
| changes_list | Lists the changes for a user or shared drive. For more information, see Retrieve changeshttps://developers.google.com/workspace/drive/api/guides/manage-changes. | driveId (string) includeCorpusRemovals (boolean) includeItemsFromAllDrives (boolean) includeRemoved (boolean) includeTeamDriveItems (boolean) pageSize (integer) pageToken (string) restrictToMyDrive (boolean) spaces (string) supportsAllDrives (boolean) supportsTeamDrives (boolean) teamDriveId (string) includePermissionsForView (string) includeLabels (string) |
| changes_watch | Subscribes to changes for a user. For more information, see Notifications for resource changeshttps://developers.google.com/workspace/drive/api/guides/push. | driveId (string) includeCorpusRemovals (boolean) includeItemsFromAllDrives (boolean) includeRemoved (boolean) includeTeamDriveItems (boolean) pageSize (integer) pageToken (string) restrictToMyDrive (boolean) spaces (string) supportsAllDrives (boolean) supportsTeamDrives (boolean) teamDriveId (string) includePermissionsForView (string) includeLabels (string) payload (boolean) id (string) resourceId (string) resourceUri (string) token (string) expiration (string) type (string) address (string) kind (string) |
| channels_stop | Stops watching resources through this channel. For more information, see Notifications for resource changeshttps://developers.google.com/workspace/drive/api/guides/push. | payload (boolean) id (string) resourceId (string) resourceUri (string) token (string) expiration (string) type (string) address (string) kind (string) |
| comments_create | Creates a comment on a file. For more information, see Manage comments and replieshttps://developers.google.com/workspace/drive/api/guides/manage-comments. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fieldshttps://developers.google.com/workspace/drive/api/guides/fields-parameter. | fileId (string) required id (string) kind (string) createdTime (string) modifiedTime (string) resolved (boolean) anchor (string) replies (array) author: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) deleted (boolean) htmlContent (string) content (string) quotedFileContent: { . mimeType (string) . value (string) } (object) |
| comments_delete | Deletes a comment. For more information, see Manage comments and replieshttps://developers.google.com/workspace/drive/api/guides/manage-comments. | fileId (string) required commentId (string) required |
| comments_get | Gets a comment by ID. For more information, see Manage comments and replieshttps://developers.google.com/workspace/drive/api/guides/manage-comments. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fieldshttps://developers.google.com/workspace/drive/api/guides/fields-parameter. | fileId (string) required commentId (string) required includeDeleted (boolean) |
| comments_list | Lists a file's comments. For more information, see Manage comments and replieshttps://developers.google.com/workspace/drive/api/guides/manage-comments. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fieldshttps://developers.google.com/workspace/drive/api/guides/fields-parameter. | fileId (string) required includeDeleted (boolean) pageSize (integer) pageToken (string) startModifiedTime (string) |
| comments_update | Updates a comment with patch semantics. For more information, see Manage comments and replieshttps://developers.google.com/workspace/drive/api/guides/manage-comments. Required: The fields parameter must be set. To return the exact fields you need, see Return specific fieldshttps://developers.google.com/workspace/drive/api/guides/fields-parameter. | fileId (string) required commentId (string) required id (string) kind (string) createdTime (string) modifiedTime (string) resolved (boolean) anchor (string) replies (array) author: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) deleted (boolean) htmlContent (string) content (string) quotedFileContent: { . mimeType (string) . value (string) } (object) |
| drives_create | Creates a shared drive. | requestId (string) id (string) name (string) colorRgb (string) kind (string) backgroundImageLink (string) capabilities: { . canAddChildren (boolean) . canComment (boolean) . canCopy (boolean) . canDeleteDrive (boolean) . canDownload (boolean) . canEdit (boolean) . canListChildren (boolean) . canManageMembers (boolean) . canReadRevisions (boolean) . canRename (boolean) . canRenameDrive (boolean) . canChangeDriveBackground (boolean) . canShare (boolean) . canChangeCopyRequiresWriterPermissionRestriction (boolean) . canChangeDomainUsersOnlyRestriction (boolean) . canChangeDriveMembersOnlyRestriction (boolean) . canChangeSharingFoldersRequiresOrganizerPermissionRestriction (boolean) . canResetDriveRestrictions (boolean) . canDeleteChildren (boolean) . canTrashChildren (boolean) . canChangeDownloadRestriction (boolean) } (object) themeId (string) backgroundImageFile: { . id (string) . xCoordinate (number) . yCoordinate (number) . width (number) } (object) createdTime (string) hidden (boolean) restrictions: { . copyRequiresWriterPermission (boolean) . domainUsersOnly (boolean) . driveMembersOnly (boolean) . adminManagedRestrictions (boolean) . sharingFoldersRequiresOrganizerPermission (boolean) . downloadRestriction } (object) orgUnitId (string) |
| drives_delete | Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items. | driveId (string) required useDomainAdminAccess (boolean) allowItemDeletion (boolean) |
| drives_get | Gets a shared drive's metadata by ID. | driveId (string) required useDomainAdminAccess (boolean) |
| drives_hide | Hides a shared drive from the default view. | driveId (string) required |
| drives_list | Lists the user's shared drives. This method accepts the q parameter, which is a search query combining one or more search terms. For more information, see the Search for shared drives/workspace/drive/api/guides/search-shareddrives guide. | pageSize (integer) pageToken (string) q (string) useDomainAdminAccess (boolean) |
| drives_unhide | Restores a shared drive to the default view. | driveId (string) required |
| drives_update | Updates the metadata for a shared drive. | driveId (string) required useDomainAdminAccess (boolean) id (string) name (string) colorRgb (string) kind (string) backgroundImageLink (string) capabilities: { . canAddChildren (boolean) . canComment (boolean) . canCopy (boolean) . canDeleteDrive (boolean) . canDownload (boolean) . canEdit (boolean) . canListChildren (boolean) . canManageMembers (boolean) . canReadRevisions (boolean) . canRename (boolean) . canRenameDrive (boolean) . canChangeDriveBackground (boolean) . canShare (boolean) . canChangeCopyRequiresWriterPermissionRestriction (boolean) . canChangeDomainUsersOnlyRestriction (boolean) . canChangeDriveMembersOnlyRestriction (boolean) . canChangeSharingFoldersRequiresOrganizerPermissionRestriction (boolean) . canResetDriveRestrictions (boolean) . canDeleteChildren (boolean) . canTrashChildren (boolean) . canChangeDownloadRestriction (boolean) } (object) themeId (string) backgroundImageFile: { . id (string) . xCoordinate (number) . yCoordinate (number) . width (number) } (object) createdTime (string) hidden (boolean) restrictions: { . copyRequiresWriterPermission (boolean) . domainUsersOnly (boolean) . driveMembersOnly (boolean) . adminManagedRestrictions (boolean) . sharingFoldersRequiresOrganizerPermission (boolean) . downloadRestriction } (object) orgUnitId (string) |
| files_copy | Creates a copy of a file and applies any requested updates with patch semantics. | fileId (string) required enforceSingleParent (boolean) ignoreDefaultVisibility (boolean) keepRevisionForever (boolean) ocrLanguage (string) supportsAllDrives (boolean) supportsTeamDrives (boolean) includePermissionsForView (string) includeLabels (string) kind (string) driveId (string) fileExtension (string) copyRequiresWriterPermission (boolean) md5Checksum (string) contentHints: { . indexableText (string) . thumbnail (object) } (object) writersCanShare (boolean) viewedByMe (boolean) mimeType (string) parents (array) thumbnailLink (string) iconLink (string) shared (boolean) lastModifyingUser: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) owners (array) headRevisionId (string) sharingUser: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) webViewLink (string) webContentLink (string) size (string) viewersCanCopyContent (boolean) permissions (array) hasThumbnail (boolean) spaces (array) folderColorRgb (string) id (string) name (string) description (string) starred (boolean) trashed (boolean) explicitlyTrashed (boolean) createdTime (string) modifiedTime (string) modifiedByMeTime (string) viewedByMeTime (string) sharedWithMeTime (string) quotaBytesUsed (string) version (string) originalFilename (string) ownedByMe (boolean) fullFileExtension (string) isAppAuthorized (boolean) teamDriveId (string) capabilities: { . canChangeViewersCanCopyContent (boolean) . canMoveChildrenOutOfDrive (boolean) . canReadDrive (boolean) . canEdit (boolean) . canCopy (boolean) . canComment (boolean) . canAddChildren (boolean) . canDelete (boolean) . canDownload (boolean) . canListChildren (boolean) . canRemoveChildren (boolean) . canRename (boolean) . canTrash (boolean) . canReadRevisions (boolean) . canReadTeamDrive (boolean) . canMoveTeamDriveItem (boolean) . canChangeCopyRequiresWriterPermission (boolean) . canMoveItemIntoTeamDrive (boolean) . canUntrash (boolean) . canModifyContent (boolean) . canMoveItemWithinTeamDrive (boolean) . canMoveItemOutOfTeamDrive (boolean) . canDeleteChildren (boolean) . canMoveChildrenOutOfTeamDrive (boolean) . canMoveChildrenWithinTeamDrive (boolean) . canTrashChildren (boolean) . canMoveItemOutOfDrive (boolean) . canAddMyDriveParent (boolean) . canRemoveMyDriveParent (boolean) . canMoveItemWithinDrive (boolean) . canShare (boolean) . canMoveChildrenWithinDrive (boolean) . canModifyContentRestriction (boolean) . canAddFolderFromAnotherDrive (boolean) . canChangeSecurityUpdateEnabled (boolean) . canAcceptOwnership (boolean) . canReadLabels (boolean) . canModifyLabels (boolean) . canModifyEditorContentRestriction (boolean) . canModifyOwnerContentRestriction (boolean) . canRemoveContentRestriction (boolean) . canDisableInheritedPermissions (boolean) . canEnableInheritedPermissions (boolean) . canChangeItemDownloadRestriction (boolean) } (object) hasAugmentedPermissions (boolean) trashingUser: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) thumbnailVersion (string) trashedTime (string) modifiedByMe (boolean) permissionIds (array) imageMediaMetadata: { . flashUsed (boolean) . meteringMode (string) . sensor (string) . exposureMode (string) . colorSpace (string) . whiteBalance (string) . width (integer) . height (integer) . location (object) . rotation (integer) . time (string) . cameraMake (string) . cameraModel (string) . exposureTime (number) . aperture (number) . focalLength (number) . isoSpeed (integer) . exposureBias (number) . maxApertureValue (number) . subjectDistance (integer) . lens (string) } (object) videoMediaMetadata: { . width (integer) . height (integer) . durationMillis (string) } (object) shortcutDetails: { . targetId (string) . targetMimeType (string) . targetResourceKey (string) } (object) contentRestrictions (array) resourceKey (string) linkShareMetadata: { . securityUpdateEligible (boolean) . securityUpdateEnabled (boolean) } (object) labelInfo: { . labels (array) } (object) sha1Checksum (string) sha256Checksum (string) inheritedPermissionsDisabled (boolean) downloadRestrictions: { . itemDownloadRestriction (object) . effectiveDownloadRestrictionWithContext (object) } (object) |
| files_create | Creates a new file. Maximum file size: 5,120 GB - Accepted Media MIME types:/ Apps should specify a file extension in the name property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like cat.jpg in the metadata. Example usage: params = name: dados_de_vendas.csv, mimeType: text/csv, description: Sales data file, fileContent: base64_encoded_file_content. Common MIME types: application/vnd.openxmlformats-officedocument.spreadsheetml.she | enforceSingleParent (boolean) ignoreDefaultVisibility (boolean) keepRevisionForever (boolean) ocrLanguage (string) supportsAllDrives (boolean) supportsTeamDrives (boolean) useContentAsIndexableText (boolean) includePermissionsForView (string) includeLabels (string) kind (string) driveId (string) fileExtension (string) copyRequiresWriterPermission (boolean) md5Checksum (string) contentHints: { . indexableText (string) . thumbnail (object) } (object) writersCanShare (boolean) viewedByMe (boolean) mimeType (string) parents (array) thumbnailLink (string) iconLink (string) shared (boolean) lastModifyingUser: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) owners (array) headRevisionId (string) sharingUser: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) webViewLink (string) webContentLink (string) size (string) viewersCanCopyContent (boolean) permissions (array) hasThumbnail (boolean) spaces (array) folderColorRgb (string) id (string) name (string) description (string) starred (boolean) trashed (boolean) explicitlyTrashed (boolean) createdTime (string) modifiedTime (string) modifiedByMeTime (string) viewedByMeTime (string) sharedWithMeTime (string) quotaBytesUsed (string) version (string) originalFilename (string) ownedByMe (boolean) fullFileExtension (string) isAppAuthorized (boolean) teamDriveId (string) capabilities: { . canChangeViewersCanCopyContent (boolean) . canMoveChildrenOutOfDrive (boolean) . canReadDrive (boolean) . canEdit (boolean) . canCopy (boolean) . canComment (boolean) . canAddChildren (boolean) . canDelete (boolean) . canDownload (boolean) . canListChildren (boolean) . canRemoveChildren (boolean) . canRename (boolean) . canTrash (boolean) . canReadRevisions (boolean) . canReadTeamDrive (boolean) . canMoveTeamDriveItem (boolean) . canChangeCopyRequiresWriterPermission (boolean) . canMoveItemIntoTeamDrive (boolean) . canUntrash (boolean) . canModifyContent (boolean) . canMoveItemWithinTeamDrive (boolean) . canMoveItemOutOfTeamDrive (boolean) . canDeleteChildren (boolean) . canMoveChildrenOutOfTeamDrive (boolean) . canMoveChildrenWithinTeamDrive (boolean) . canTrashChildren (boolean) . canMoveItemOutOfDrive (boolean) . canAddMyDriveParent (boolean) . canRemoveMyDriveParent (boolean) . canMoveItemWithinDrive (boolean) . canShare (boolean) . canMoveChildrenWithinDrive (boolean) . canModifyContentRestriction (boolean) . canAddFolderFromAnotherDrive (boolean) . canChangeSecurityUpdateEnabled (boolean) . canAcceptOwnership (boolean) . canReadLabels (boolean) . canModifyLabels (boolean) . canModifyEditorContentRestriction (boolean) . canModifyOwnerContentRestriction (boolean) . canRemoveContentRestriction (boolean) . canDisableInheritedPermissions (boolean) . canEnableInheritedPermissions (boolean) . canChangeItemDownloadRestriction (boolean) } (object) hasAugmentedPermissions (boolean) trashingUser: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) thumbnailVersion (string) trashedTime (string) modifiedByMe (boolean) permissionIds (array) imageMediaMetadata: { . flashUsed (boolean) . meteringMode (string) . sensor (string) . exposureMode (string) . colorSpace (string) . whiteBalance (string) . width (integer) . height (integer) . location (object) . rotation (integer) . time (string) . cameraMake (string) . cameraModel (string) . exposureTime (number) . aperture (number) . focalLength (number) . isoSpeed (integer) . exposureBias (number) . maxApertureValue (number) . subjectDistance (integer) . lens (string) } (object) videoMediaMetadata: { . width (integer) . height (integer) . durationMillis (string) } (object) shortcutDetails: { . targetId (string) . targetMimeType (string) . targetResourceKey (string) } (object) contentRestrictions (array) resourceKey (string) linkShareMetadata: { . securityUpdateEligible (boolean) . securityUpdateEnabled (boolean) } (object) labelInfo: { . labels (array) } (object) sha1Checksum (string) sha256Checksum (string) inheritedPermissionsDisabled (boolean) downloadRestrictions: { . itemDownloadRestriction (object) . effectiveDownloadRestrictionWithContext (object) } (object) |
| files_delete | 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 folder. If the target is a folder, all descendants owned by the user are also deleted. | fileId (string) required supportsAllDrives (boolean) supportsTeamDrives (boolean) enforceSingleParent (boolean) |
| files_empty_trash | Permanently deletes all of the user's trashed files. | enforceSingleParent (boolean) driveId (string) |
| files_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. | fileId (string) required mimeType (string) |
| files_generate_ids | Generates a set of file IDs which can be provided in create or copy requests. | count (integer) space (string) type (string) |
| files_get | Gets a file's metadata or content by ID. If you provide the URL parameter alt=media, then the response includes the file contents in the response body. Downloading content with alt=media only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use files.export/workspace/drive/api/reference/rest/v3/files/export instead. For more information, see Download and export files/workspace/drive/api/guides/manage-downloads. | fileId (string) required acknowledgeAbuse (boolean) supportsAllDrives (boolean) supportsTeamDrives (boolean) includePermissionsForView (string) includeLabels (string) |
| files_list | Lists the user's files. This method accepts the q parameter, which is a search query combining one or more search terms. For more information, see the Search for files and folders/workspace/drive/api/guides/search-files guide. Note: This method returns all files by default, including trashed files. If you don't want trashed files to appear in the list, use the trashed=false query parameter to remove trashed files from the results. | corpora (string) corpus (string) driveId (string) includeItemsFromAllDrives (boolean) includeTeamDriveItems (boolean) orderBy (string) pageSize (integer) pageToken (string) q (string) spaces (string) supportsAllDrives (boolean) supportsTeamDrives (boolean) teamDriveId (string) includePermissionsForView (string) includeLabels (string) |
| files_list_labels | Lists the labels on a file. | fileId (string) required maxResults (integer) pageToken (string) |
| files_modify_labels | Modifies the set of labels applied to a file. Returns a list of the labels that were added or modified. | fileId (string) required labelModifications (array) kind (string) |
| files_update | 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 be changed automatically, such as modifiedDate. This method supports patch semantics. This method supports an /upload URI and accepts uploaded media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME types:/ Note: Specify a valid MIME type, rather than the literal / value. The literal / is on | fileId (string) required addParents (string) enforceSingleParent (boolean) keepRevisionForever (boolean) ocrLanguage (string) removeParents (string) supportsAllDrives (boolean) supportsTeamDrives (boolean) useContentAsIndexableText (boolean) includePermissionsForView (string) includeLabels (string) kind (string) driveId (string) fileExtension (string) copyRequiresWriterPermission (boolean) md5Checksum (string) contentHints: { . indexableText (string) . thumbnail (object) } (object) writersCanShare (boolean) viewedByMe (boolean) mimeType (string) parents (array) thumbnailLink (string) iconLink (string) shared (boolean) lastModifyingUser: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) owners (array) headRevisionId (string) sharingUser: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) webViewLink (string) webContentLink (string) size (string) viewersCanCopyContent (boolean) permissions (array) hasThumbnail (boolean) spaces (array) folderColorRgb (string) id (string) name (string) description (string) starred (boolean) trashed (boolean) explicitlyTrashed (boolean) createdTime (string) modifiedTime (string) modifiedByMeTime (string) viewedByMeTime (string) sharedWithMeTime (string) quotaBytesUsed (string) version (string) originalFilename (string) ownedByMe (boolean) fullFileExtension (string) isAppAuthorized (boolean) teamDriveId (string) capabilities: { . canChangeViewersCanCopyContent (boolean) . canMoveChildrenOutOfDrive (boolean) . canReadDrive (boolean) . canEdit (boolean) . canCopy (boolean) . canComment (boolean) . canAddChildren (boolean) . canDelete (boolean) . canDownload (boolean) . canListChildren (boolean) . canRemoveChildren (boolean) . canRename (boolean) . canTrash (boolean) . canReadRevisions (boolean) . canReadTeamDrive (boolean) . canMoveTeamDriveItem (boolean) . canChangeCopyRequiresWriterPermission (boolean) . canMoveItemIntoTeamDrive (boolean) . canUntrash (boolean) . canModifyContent (boolean) . canMoveItemWithinTeamDrive (boolean) . canMoveItemOutOfTeamDrive (boolean) . canDeleteChildren (boolean) . canMoveChildrenOutOfTeamDrive (boolean) . canMoveChildrenWithinTeamDrive (boolean) . canTrashChildren (boolean) . canMoveItemOutOfDrive (boolean) . canAddMyDriveParent (boolean) . canRemoveMyDriveParent (boolean) . canMoveItemWithinDrive (boolean) . canShare (boolean) . canMoveChildrenWithinDrive (boolean) . canModifyContentRestriction (boolean) . canAddFolderFromAnotherDrive (boolean) . canChangeSecurityUpdateEnabled (boolean) . canAcceptOwnership (boolean) . canReadLabels (boolean) . canModifyLabels (boolean) . canModifyEditorContentRestriction (boolean) . canModifyOwnerContentRestriction (boolean) . canRemoveContentRestriction (boolean) . canDisableInheritedPermissions (boolean) . canEnableInheritedPermissions (boolean) . canChangeItemDownloadRestriction (boolean) } (object) hasAugmentedPermissions (boolean) trashingUser: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) thumbnailVersion (string) trashedTime (string) modifiedByMe (boolean) permissionIds (array) imageMediaMetadata: { . flashUsed (boolean) . meteringMode (string) . sensor (string) . exposureMode (string) . colorSpace (string) . whiteBalance (string) . width (integer) . height (integer) . location (object) . rotation (integer) . time (string) . cameraMake (string) . cameraModel (string) . exposureTime (number) . aperture (number) . focalLength (number) . isoSpeed (integer) . exposureBias (number) . maxApertureValue (number) . subjectDistance (integer) . lens (string) } (object) videoMediaMetadata: { . width (integer) . height (integer) . durationMillis (string) } (object) shortcutDetails: { . targetId (string) . targetMimeType (string) . targetResourceKey (string) } (object) contentRestrictions (array) resourceKey (string) linkShareMetadata: { . securityUpdateEligible (boolean) . securityUpdateEnabled (boolean) } (object) labelInfo: { . labels (array) } (object) sha1Checksum (string) sha256Checksum (string) inheritedPermissionsDisabled (boolean) downloadRestrictions: { . itemDownloadRestriction (object) . effectiveDownloadRestrictionWithContext (object) } (object) |
| files_watch | Subscribes to changes to a file. | fileId (string) required supportsAllDrives (boolean) supportsTeamDrives (boolean) acknowledgeAbuse (boolean) includePermissionsForView (string) includeLabels (string) payload (boolean) id (string) resourceId (string) resourceUri (string) token (string) expiration (string) type (string) address (string) kind (string) |
| files_download | Downloads content of a file. Operations are valid for 24 hours from the time of creation. | fileId (string) required mimeType (string) revisionId (string) |
| permissions_create | Creates a permission for a file or shared drive. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied. | fileId (string) required emailMessage (string) enforceSingleParent (boolean) moveToNewOwnersRoot (boolean) sendNotificationEmail (boolean) supportsAllDrives (boolean) supportsTeamDrives (boolean) transferOwnership (boolean) useDomainAdminAccess (boolean) enforceExpansiveAccess (boolean) id (string) displayName (string) type (string) kind (string) permissionDetails (array) photoLink (string) emailAddress (string) role (string) allowFileDiscovery (boolean) domain (string) expirationTime (string) teamDrivePermissionDetails (array) deleted (boolean) view (string) pendingOwner (boolean) inheritedPermissionsDisabled (boolean) |
| permissions_delete | Deletes a permission. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied. | fileId (string) required permissionId (string) required supportsAllDrives (boolean) supportsTeamDrives (boolean) useDomainAdminAccess (boolean) enforceExpansiveAccess (boolean) |
| permissions_get | Gets a permission by ID. | fileId (string) required permissionId (string) required supportsAllDrives (boolean) supportsTeamDrives (boolean) useDomainAdminAccess (boolean) |
| permissions_list | Lists a file's or shared drive's permissions. | fileId (string) required pageSize (integer) pageToken (string) supportsAllDrives (boolean) supportsTeamDrives (boolean) useDomainAdminAccess (boolean) includePermissionsForView (string) |
| permissions_update | Updates a permission with patch semantics. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied. | fileId (string) required permissionId (string) required removeExpiration (boolean) supportsAllDrives (boolean) supportsTeamDrives (boolean) transferOwnership (boolean) useDomainAdminAccess (boolean) enforceExpansiveAccess (boolean) id (string) displayName (string) type (string) kind (string) permissionDetails (array) photoLink (string) emailAddress (string) role (string) allowFileDiscovery (boolean) domain (string) expirationTime (string) teamDrivePermissionDetails (array) deleted (boolean) view (string) pendingOwner (boolean) inheritedPermissionsDisabled (boolean) |
| replies_create | Creates a reply to a comment. | fileId (string) required commentId (string) required id (string) kind (string) createdTime (string) modifiedTime (string) action (string) author: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) deleted (boolean) htmlContent (string) content (string) |
| replies_delete | Deletes a reply. | fileId (string) required commentId (string) required replyId (string) required |
| replies_get | Gets a reply by ID. | fileId (string) required commentId (string) required replyId (string) required includeDeleted (boolean) |
| replies_list | Lists a comment's replies. | fileId (string) required commentId (string) required includeDeleted (boolean) pageSize (integer) pageToken (string) |
| replies_update | Updates a reply with patch semantics. | fileId (string) required commentId (string) required replyId (string) required id (string) kind (string) createdTime (string) modifiedTime (string) action (string) author: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) deleted (boolean) htmlContent (string) content (string) |
| revisions_delete | 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. | fileId (string) required revisionId (string) required |
| revisions_get | Gets a revision's metadata or content by ID. | fileId (string) required revisionId (string) required acknowledgeAbuse (boolean) |
| revisions_list | Lists a file's revisions. | fileId (string) required pageSize (integer) pageToken (string) |
| revisions_update | Updates a revision with patch semantics. | fileId (string) required revisionId (string) required id (string) mimeType (string) kind (string) published (boolean) keepForever (boolean) md5Checksum (string) modifiedTime (string) publishAuto (boolean) publishedOutsideDomain (boolean) publishedLink (string) size (string) originalFilename (string) lastModifyingUser: { . displayName (string) . kind (string) . me (boolean) . permissionId (string) . emailAddress (string) . photoLink (string) } (object) |
| teamdrives_create | Deprecated: Use drives.create instead. | requestId (string) id (string) name (string) colorRgb (string) kind (string) backgroundImageLink (string) capabilities: { . canAddChildren (boolean) . canComment (boolean) . canCopy (boolean) . canDeleteTeamDrive (boolean) . canDownload (boolean) . canEdit (boolean) . canListChildren (boolean) . canManageMembers (boolean) . canReadRevisions (boolean) . canRemoveChildren (boolean) . canRename (boolean) . canRenameTeamDrive (boolean) . canChangeTeamDriveBackground (boolean) . canShare (boolean) . canChangeCopyRequiresWriterPermissionRestriction (boolean) . canChangeDomainUsersOnlyRestriction (boolean) . canChangeSharingFoldersRequiresOrganizerPermissionRestriction (boolean) . canChangeTeamMembersOnlyRestriction (boolean) . canDeleteChildren (boolean) . canTrashChildren (boolean) . canResetTeamDriveRestrictions (boolean) . canChangeDownloadRestriction (boolean) } (object) themeId (string) backgroundImageFile: { . id (string) . xCoordinate (number) . yCoordinate (number) . width (number) } (object) createdTime (string) restrictions: { . copyRequiresWriterPermission (boolean) . domainUsersOnly (boolean) . teamMembersOnly (boolean) . adminManagedRestrictions (boolean) . sharingFoldersRequiresOrganizerPermission (boolean) . downloadRestriction } (object) orgUnitId (string) |
| teamdrives_delete | Deprecated: Use drives.delete instead. | teamDriveId (string) required |
| teamdrives_get | Deprecated: Use drives.get instead. | teamDriveId (string) required useDomainAdminAccess (boolean) |
| teamdrives_list | Deprecated: Use drives.list instead. | pageSize (integer) pageToken (string) q (string) useDomainAdminAccess (boolean) |
| teamdrives_update | Deprecated: Use drives.update instead. | teamDriveId (string) required useDomainAdminAccess (boolean) id (string) name (string) colorRgb (string) kind (string) backgroundImageLink (string) capabilities: { . canAddChildren (boolean) . canComment (boolean) . canCopy (boolean) . canDeleteTeamDrive (boolean) . canDownload (boolean) . canEdit (boolean) . canListChildren (boolean) . canManageMembers (boolean) . canReadRevisions (boolean) . canRemoveChildren (boolean) . canRename (boolean) . canRenameTeamDrive (boolean) . canChangeTeamDriveBackground (boolean) . canShare (boolean) . canChangeCopyRequiresWriterPermissionRestriction (boolean) . canChangeDomainUsersOnlyRestriction (boolean) . canChangeSharingFoldersRequiresOrganizerPermissionRestriction (boolean) . canChangeTeamMembersOnlyRestriction (boolean) . canDeleteChildren (boolean) . canTrashChildren (boolean) . canResetTeamDriveRestrictions (boolean) . canChangeDownloadRestriction (boolean) } (object) themeId (string) backgroundImageFile: { . id (string) . xCoordinate (number) . yCoordinate (number) . width (number) } (object) createdTime (string) restrictions: { . copyRequiresWriterPermission (boolean) . domainUsersOnly (boolean) . teamMembersOnly (boolean) . adminManagedRestrictions (boolean) . sharingFoldersRequiresOrganizerPermission (boolean) . downloadRestriction } (object) orgUnitId (string) |
| accessproposals_get | Retrieves an AccessProposal by ID. | fileId (string) required proposalId (string) required |
| accessproposals_resolve | Used to approve or deny an Access Proposal. | fileId (string) required proposalId (string) required role (array) view (string) action (string) sendNotification (boolean) |
| accessproposals_list | List the AccessProposals on a file. Note: Only approvers are able to list AccessProposals on a file. If the user is not an approver, returns a 403. | fileId (string) required pageToken (string) pageSize (integer) |