GoogleDriveStandardConnector

This integration is configured automatically as part of the Google Drive Standard Connector. Do not configure this integration directly — set it up from the connector page instead.

IT Services · Google Drive (Standard Connector)

Details

IDGoogleDriveStandardConnector
ProviderGoogle
CategoryIT Services
From Version8.15.0
Docker Imagedemisto/googleapi-python3:1.0.0.10182333
Supported ModulesAgentix XSIAM

README

Google Drive allows users to store files on their servers, synchronize files across devices, and share files. This integration helps you to create a new drive, query past activity, and view change logs performed by the users.
This integration was integrated and tested with version 1.31.0 of GoogleDrive

Configure Google Drive in Cortex

Parameter Description Required
User’s Service Account JSON   False
User ID The primary email address of the user to fetch the incident(s). False
User ID   False
User’s Service Account JSON   False
Action Detail Case Include Action types to include for fetching the incident. False
Drive Item Search Field itemName - Fetch activities for this drive item. The format is “items/ITEM_ID”. folderName - Fetch activities for this drive folder and all children and descendants. The format is “items/ITEM_ID”. False
Drive Item Search Value itemName or folderName for fetching the incident. False
Fetch incidents   False
Incident type   False
Max Incidents The maximum number of incidents to fetch each time. False
First Fetch Time Interval The time range to consider for the initial data fetch in the format <number> <unit> e.g., 1 hour, 2 hours, 6 hours, 12 hours, 24 hours, 48 hours. False
Trust any certificate (not secure)   False
Use system proxy settings   False

Commands

You can execute these commands from the CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.

google-drive-create


Deprecated. Use the google-drive-drive-create command instead.

google-drive-drive-create


Creates a new Team Drive. The name argument specifies the name of the Team Drive. The specified user will be the first organizer.
This shared drive/team drive feature is available only with G Suite Enterprise, Enterprise for Education, G Suite Essentials, Business, Education, and Nonprofits edition.

Base Command

google-drive-drive-create

Input

Argument Name Description Required
user_id The user’s primary email address. Optional
name The name of this shared drive. Required
hidden Whether the shared drive is hidden from the default view. Possible values: “True” and “False”. Possible values are: True, False. Optional

Context Output

Path Type Description
GoogleDrive.Drive.kind String Identifies what kind of resource this is.
GoogleDrive.Drive.id String The ID of the shared drive which is also the ID of the top level folder of the shared drive.
GoogleDrive.Drive.name String The name of the shared drive.
GoogleDrive.Drive.hidden Boolean Whether the shared drive is hidden from the default view.

google-drive-changes-list


Lists the changes for a user or shared drive.

Base Command

google-drive-changes-list

Input

Argument Name Description Required
page_token The token for continuing a previous list request on the next page. Required
user_id The user’s primary email address. Optional
drive_id The shared drive from which changes are returned. Can be retrieved using the google-drive-drives-list command. Optional
include_corpus_removals 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. Possible values: “true” and “false”. Possible values are: true, false. Default is false. Optional
include_items_from_all_drives Whether both My Drive and shared drive items should be included in the results. Possible values: “true” and “false”. Possible values are: true, false. Default is false. Optional
include_permissions_for_view Specifies which additional view’s permissions to include in the response. Only ‘published’ is supported. Optional
include_removed Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access. Possible values: “true” and “false”. Possible values are: true, false. Default is true. Optional
page_size The maximum number of changes to return per page. Acceptable values are 1 to 1000, inclusive. Default is 100. Optional
restrict_to_my_drive 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. Possible values: “true” and “false”. Possible values are: true, false. Default is false. Optional
spaces A comma-separated list of spaces to query within the user corpus. Possible values are ‘drive’, ‘appDataFolder’, and ‘photos’. Optional
supports_all_drives Whether the requesting application supports both My Drives and shared drives. Possible values: “true” and “false”. Possible values are: true, false. Default is false. Optional
fields The paths of the fields you want to include in the response. Possible values are: “basic” (the response will include a default set of fields specific to this method) and “advance” (you can use the value * to return all the fields). Possible values are: basic, advance. Default is basic. Optional

Context Output

Path Type Description
GoogleDrive.PageToken.DriveChange.nextPageToken String The page token for the next page of changes.
GoogleDrive.PageToken.DriveChange.newStartPageToken String The starting page token for future changes.
GoogleDrive.PageToken.DriveChange.driveId String The ID of the shared drive associated with this change.
GoogleDrive.PageToken.DriveChange.userId String The user’s primary email address.
GoogleDrive.DriveChange.userId String The user’s primary email address.
GoogleDrive.DriveChange.kind String Identifies what kind of resource this is.
GoogleDrive.DriveChange.changeType String The type of the change. Possible values are “file” and “drive”.
GoogleDrive.DriveChange.time Date The time of this change (RFC 3339 date-time).
GoogleDrive.DriveChange.removed Boolean Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.
GoogleDrive.DriveChange.fileId String The ID of the file which has changed.
GoogleDrive.DriveChange.driveId String The ID of the shared drive associated with this change.
GoogleDrive.DriveChange.file.kind String Identifies what kind of resource this is.
GoogleDrive.DriveChange.file.id String The ID of the file.
GoogleDrive.DriveChange.file.name String The name of the file.
GoogleDrive.DriveChange.file.mimeType String The MIME type of the file.
GoogleDrive.DriveChange.file.description String A short description of the file.
GoogleDrive.DriveChange.file.starred Boolean Whether the user has starred the file.
GoogleDrive.DriveChange.file.trashed Boolean Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file.
GoogleDrive.DriveChange.file.explicitlyTrashed Boolean Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
GoogleDrive.DriveChange.file.trashingUser.kind String Identifies what kind of resource this is.
GoogleDrive.DriveChange.file.trashingUser.displayName String A plain text displayable name for this user.
GoogleDrive.DriveChange.file.trashingUser.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.DriveChange.file.trashingUser.me Boolean Whether this user is the requesting user.
GoogleDrive.DriveChange.file.trashingUser.permissionId String The user’s ID as visible in Permission resources.
GoogleDrive.DriveChange.file.trashingUser.emailAddress String The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
GoogleDrive.DriveChange.file.trashedTime Date The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
GoogleDrive.DriveChange.file.parents Unknown The IDs of the parent folders which contain the file.
GoogleDrive.DriveChange.file.properties Unknown A collection of arbitrary key-value pairs which are visible to all apps.
GoogleDrive.DriveChange.file.appProperties Unknown A collection of arbitrary key-value pairs which are private to the requesting app.
GoogleDrive.DriveChange.file.spaces Unknown The list of spaces which contain the file. The currently supported values are ‘drive’, ‘appDataFolder’ and ‘photos’.
GoogleDrive.DriveChange.file.version Number 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.
GoogleDrive.DriveChange.file.webContentLink String A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
GoogleDrive.DriveChange.file.webViewLink String A link for opening the file in a relevant Google editor or viewer in a browser.
GoogleDrive.DriveChange.file.iconLink String A static, unauthenticated link to the file’s icon.
GoogleDrive.DriveChange.file.hasThumbnail Boolean Whether this file has a thumbnail.
GoogleDrive.DriveChange.file.thumbnailLink String A short-lived link to the file’s thumbnail, if available.
GoogleDrive.DriveChange.file.thumbnailVersion Number The thumbnail version for use in thumbnail cache invalidation.
GoogleDrive.DriveChange.file.viewedByMe Boolean Whether the file has been viewed by this user.
GoogleDrive.DriveChange.file.viewedByMeTime Date The last time the file was viewed by the user (RFC 3339 date-time).
GoogleDrive.DriveChange.file.createdTime Date The time at which the file was created (RFC 3339 date-time).
GoogleDrive.DriveChange.file.modifiedTime Date The last time the file was modified by anyone (RFC 3339 date-time).
GoogleDrive.DriveChange.file.modifiedByMeTime Date The last time the file was modified by the user (RFC 3339 date-time).
GoogleDrive.DriveChange.file.modifiedByMe Boolean Whether the file has been modified by the user.
GoogleDrive.DriveChange.file.sharedWithMeTime Date The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
GoogleDrive.DriveChange.file.sharingUser.kind String Identifies what kind of resource this is.
GoogleDrive.DriveChange.file.sharingUser.displayName String A plain text displayable name for this user.
GoogleDrive.DriveChange.file.sharingUser.photoLink Date A link to the user’s profile photo, if available.
GoogleDrive.DriveChange.file.sharingUser.me Boolean Whether this user is the requesting user.
GoogleDrive.DriveChange.file.sharingUser.permissionId String The user’s ID as visible in Permission resources.
GoogleDrive.DriveChange.file.sharingUser.emailAddress String The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
GoogleDrive.DriveChange.file.owners.kind String Identifies what kind of resource this is.
GoogleDrive.DriveChange.file.owners.displayName String A plain text displayable name for this user.
GoogleDrive.DriveChange.file.owners.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.DriveChange.file.owners.me Boolean Whether this user is the requesting user.
GoogleDrive.DriveChange.file.owners.permissionId String The user’s ID as visible in Permission resources.
GoogleDrive.DriveChange.file.owners.emailAddress String The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
GoogleDrive.DriveChange.file.driveId String ID of the shared drive the file resides in. Only populated for items in shared drives.
GoogleDrive.DriveChange.file.lastModifyingUser.kind String Identifies what kind of resource this is.
GoogleDrive.DriveChange.file.lastModifyingUser.displayName String A plain text displayable name for this user.
GoogleDrive.DriveChange.file.lastModifyingUser.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.DriveChange.file.lastModifyingUser.me Boolean Whether this user is the requesting user.
GoogleDrive.DriveChange.file.lastModifyingUser.permissionId String The user’s ID as visible in Permission resources.
GoogleDrive.DriveChange.file.lastModifyingUser.emailAddress String The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
GoogleDrive.DriveChange.file.shared Boolean Whether the file has been shared. Not populated for items in shared drives.
GoogleDrive.DriveChange.file.ownedByMe Boolean Whether the user owns the file. Not populated for items in shared drives.
GoogleDrive.DriveChange.file.capabilities.canAddChildren Boolean Whether the current user can add children to this folder. This is always false when the item is not a folder.
GoogleDrive.DriveChange.file.capabilities.canAddFolderFromAnotherDrive Boolean Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder.
GoogleDrive.DriveChange.file.capabilities.canAddMyDriveParent Boolean Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
GoogleDrive.DriveChange.file.capabilities.canChangeCopyRequiresWriterPermission Boolean Whether the current user can change the ‘copy requires writer permission’ restriction of this file.
GoogleDrive.DriveChange.file.capabilities.canComment Boolean Whether the current user can comment on this file.
GoogleDrive.DriveChange.file.capabilities.canCopy Boolean Whether the current user can copy this file.
GoogleDrive.DriveChange.file.capabilities.canDelete Boolean Whether the current user can delete this file.
GoogleDrive.DriveChange.file.capabilities.canDeleteChildren Boolean Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
GoogleDrive.DriveChange.file.capabilities.canDownload Boolean Whether the current user can download this file.
GoogleDrive.DriveChange.file.capabilities.canEdit Boolean Whether the current user can edit this file.
GoogleDrive.DriveChange.file.capabilities.canListChildren Boolean Whether the current user can list the children of this folder. This is always false when the item is not a folder.
GoogleDrive.DriveChange.file.capabilities.canModifyContent Boolean Whether the current user can modify the content of this file.
GoogleDrive.DriveChange.file.capabilities.canModifyContentRestriction Boolean Whether the current user can modify restrictions on content of this file.
GoogleDrive.DriveChange.file.capabilities.canMoveChildrenOutOfDrive Boolean Whether the current user can move children of this folder outside of the shared drive.
GoogleDrive.DriveChange.file.capabilities.canMoveChildrenWithinDrive Boolean Whether the current user can move children of this folder within this drive.
GoogleDrive.DriveChange.file.capabilities.canMoveItemOutOfDrive Boolean Whether the current user can move this item outside of this drive by changing its parent.
GoogleDrive.DriveChange.file.capabilities.canMoveItemWithinDrive Boolean Whether the current user can move this item within this drive.
GoogleDrive.DriveChange.file.capabilities.canReadRevisions Boolean Whether the current user can read the revisions resource of this file.
GoogleDrive.DriveChange.file.capabilities.canReadDrive Boolean Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
GoogleDrive.DriveChange.file.capabilities.canRemoveChildren Boolean Whether the current user can remove children from this folder.
GoogleDrive.DriveChange.file.capabilities.canRemoveMyDriveParent Boolean Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
GoogleDrive.DriveChange.file.capabilities.canRename Boolean Whether the current user can rename this file.
GoogleDrive.DriveChange.file.capabilities.canShare Boolean Whether the current user can modify the sharing settings for this file.
GoogleDrive.DriveChange.file.capabilities.canTrash Boolean Whether the current user can move this file to trash.
GoogleDrive.DriveChange.file.capabilities.canTrashChildren Boolean Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
GoogleDrive.DriveChange.file.capabilities.canUntrash Boolean Whether the current user can restore this file from trash.
GoogleDrive.DriveChange.file.copyRequiresWriterPermission Boolean Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
GoogleDrive.DriveChange.file.writersCanShare Boolean Whether users with only writer permission can modify the file’s permissions. Not populated for items in shared drives.
GoogleDrive.DriveChange.file.permissions.kind String Identifies what kind of resource this is.
GoogleDrive.DriveChange.file.permissions.id String The ID of this permission.
GoogleDrive.DriveChange.file.permissions.type String The type of the grantee.
GoogleDrive.DriveChange.file.permissions.emailAddress String The email address of the user or group to which this permission refers.
GoogleDrive.DriveChange.file.permissions.domain String The domain to which this permission refers.
GoogleDrive.DriveChange.file.permissions.role String The role granted by this permission.
GoogleDrive.DriveChange.file.permissions.view String Indicates the view for this permission.
GoogleDrive.DriveChange.file.permissions.allowFileDiscovery Boolean Whether the permission allows the file to be discovered through search.
GoogleDrive.DriveChange.file.permissions.displayName String The “pretty” name of the value of the permission.
GoogleDrive.DriveChange.file.permissions.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.DriveChange.file.permissions.expirationTime Date The time at which this permission will expire (RFC 3339 date-time).
GoogleDrive.DriveChange.file.permissions.permissionDetails.permissionType String The permission type for this user.
GoogleDrive.DriveChange.file.permissions.permissionDetails.role String The primary role for this user.
GoogleDrive.DriveChange.file.permissions.permissionDetails.inheritedFrom String The ID of the item from which this permission is inherited.
GoogleDrive.DriveChange.file.permissions.permissionDetails.inherited Boolean Whether this permission is inherited.
GoogleDrive.DriveChange.file.permissions.deleted Boolean Whether the account associated with this permission has been deleted.
GoogleDrive.DriveChange.file.permissionIds Unknown List of permission IDs for users with access to this file.
GoogleDrive.DriveChange.file.hasAugmentedPermissions Boolean Whether there are permissions directly on this file. This field is only populated for items in shared drives.
GoogleDrive.DriveChange.file.folderColorRgb String The color for a folder as an RGB hex string.
GoogleDrive.DriveChange.file.originalFilename String 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.
GoogleDrive.DriveChange.file.fullFileExtension String The full file extension extracted from the name field.
GoogleDrive.DriveChange.file.fileExtension String The final component of fullFileExtension. This is only available for files with binary content in Google Drive.
GoogleDrive.DriveChange.file.md5Checksum String The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
GoogleDrive.DriveChange.file.size Number The size of the file’s content in bytes. This is only applicable to files with binary content in Google Drive.
GoogleDrive.DriveChange.file.quotaBytesUsed Number The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
GoogleDrive.DriveChange.file.headRevisionId String The ID of the file’s head revision. This is currently only available for files with binary content in Google Drive.
GoogleDrive.DriveChange.file.contentHints.thumbnail.image Unknown The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
GoogleDrive.DriveChange.file.contentHints.thumbnail.mimeType String The MIME type of the thumbnail.
GoogleDrive.DriveChange.file.contentHints.indexableText String Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
GoogleDrive.DriveChange.file.imageMediaMetadata.width Number The width of the image in pixels.
GoogleDrive.DriveChange.file.imageMediaMetadata.height Number The height of the image in pixels.
GoogleDrive.DriveChange.file.imageMediaMetadata.rotation Number The number of clockwise 90 degree rotations applied from the image’s original orientation.
GoogleDrive.DriveChange.file.imageMediaMetadata.location.latitude Number The latitude stored in the image.
GoogleDrive.DriveChange.file.imageMediaMetadata.location.longitude Number The longitude stored in the image.
GoogleDrive.DriveChange.file.imageMediaMetadata.location.altitude Number The altitude stored in the image.
GoogleDrive.DriveChange.file.imageMediaMetadata.time String The date and time the photo was taken (EXIF DateTime).
GoogleDrive.DriveChange.file.imageMediaMetadata.cameraMake String The make of the camera used to create the photo.
GoogleDrive.DriveChange.file.imageMediaMetadata.cameraModel String The model of the camera used to create the photo.
GoogleDrive.DriveChange.file.imageMediaMetadata.exposureTime Number The length of the exposure, in seconds.
GoogleDrive.DriveChange.file.imageMediaMetadata.aperture Number The aperture used to create the photo (f-number).
GoogleDrive.DriveChange.file.imageMediaMetadata.flashUsed Boolean Whether a flash was used to create the photo.
GoogleDrive.DriveChange.file.imageMediaMetadata.focalLength Number The focal length used to create the photo, in millimeters.
GoogleDrive.DriveChange.file.imageMediaMetadata.isoSpeed Number The ISO speed used to create the photo.
GoogleDrive.DriveChange.file.imageMediaMetadata.meteringMode String The metering mode used to create the photo.
GoogleDrive.DriveChange.file.imageMediaMetadata.sensor String The type of sensor used to create the photo.
GoogleDrive.DriveChange.file.imageMediaMetadata.exposureMode String The exposure mode used to create the photo.
GoogleDrive.DriveChange.file.imageMediaMetadata.colorSpace String The color space of the photo.
GoogleDrive.DriveChange.file.imageMediaMetadata.whiteBalance String The white balance mode used to create the photo.
GoogleDrive.DriveChange.file.imageMediaMetadata.exposureBias Number The exposure bias of the photo (APEX value).
GoogleDrive.DriveChange.file.imageMediaMetadata.maxApertureValue Number The smallest f-number of the lens at the focal length used to create the photo (APEX value).
GoogleDrive.DriveChange.file.imageMediaMetadata.subjectDistance Number The distance to the subject of the photo, in meters.
GoogleDrive.DriveChange.file.imageMediaMetadata.lens String The lens used to create the photo.
GoogleDrive.DriveChange.file.videoMediaMetadata.width Number The width of the video in pixels.
GoogleDrive.DriveChange.file.videoMediaMetadata.height Number The height of the video in pixels.
GoogleDrive.DriveChange.file.videoMediaMetadata.durationMillis Number The duration of the video in milliseconds.
GoogleDrive.DriveChange.file.isAppAuthorized Boolean Whether the file was created or opened by the requesting app.
GoogleDrive.DriveChange.file.exportLinks Unknown Links for exporting Google Docs to specific formats.
GoogleDrive.DriveChange.file.shortcutDetails.targetId String The ID of the file that this shortcut points to.
GoogleDrive.DriveChange.file.shortcutDetails.targetMimeType String The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target’s MIME type, captured when the shortcut is created.
GoogleDrive.DriveChange.file.contentRestrictions.readOnly Boolean Whether the content of the file is read-only.
GoogleDrive.DriveChange.file.contentRestrictions.reason String Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.kind String Identifies what kind of resource this is.
GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.displayName String A plain text displayable name for this user.
GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.me Boolean Whether this user is the requesting user.
GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.permissionId String The user’s ID as visible in Permission resources.
GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.emailAddress String The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
GoogleDrive.DriveChange.file.contentRestrictions.restrictionTime Date The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
GoogleDrive.DriveChange.file.contentRestrictions.type String The type of the content restriction. Currently the only possible value is globalContentRestriction.
GoogleDrive.DriveChange.drive.kind String Identifies what kind of resource this is.
GoogleDrive.DriveChange.drive.id String The ID of this shared drive which is also the ID of the top level folder of this shared drive.
GoogleDrive.DriveChange.drive.name String The name of this shared drive.
GoogleDrive.DriveChange.drive.themeId String The ID of the theme from which the background image and color will be set.
GoogleDrive.DriveChange.drive.colorRgb String The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId.
GoogleDrive.DriveChange.drive.backgroundImageFile.id String The ID of an image file in Google Drive to use for the background image.
GoogleDrive.DriveChange.drive.backgroundImageFile.xCoordinate Number The X coordinate of the upper left corner of the cropping area in the background image.
GoogleDrive.DriveChange.drive.backgroundImageFile.yCoordinate Number The Y coordinate of the upper left corner of the cropping area in the background image.
GoogleDrive.DriveChange.drive.backgroundImageFile.width Number The width of the cropped image in the closed range of 0 to 1.
GoogleDrive.DriveChange.drive.backgroundImageLink String A short-lived link to this shared drive’s background image.
GoogleDrive.DriveChange.drive.capabilities.canAddChildren Boolean Whether the current user can add children to folders in this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canChangeCopyRequiresWriterPermissionRestriction Boolean Whether the current user can change the ‘copy requires writer permission’ restriction of this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canChangeDomainUsersOnlyRestriction Boolean Whether the current user can change the ‘domain users only’ restriction of this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canChangeDriveBackground Boolean Whether the current user can change the background of this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canChangeDriveMembersOnlyRestriction Boolean Whether the current user can change the ‘drive members only’ restriction of this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canComment Boolean Whether the current user can comment on files in this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canCopy Boolean Whether the current user can copy files in this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canDeleteChildren Boolean Whether the current user can delete children from folders in this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canDeleteDrive Boolean Whether the current user can delete this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canDownload Boolean Whether the current user can download files in this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canEdit Boolean Whether the current user can edit files in this shared drive
GoogleDrive.DriveChange.drive.capabilities.canListChildren Boolean Whether the current user can list the children of folders in this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canManageMembers Boolean Whether the current user can add members to this shared drive or remove them or change their role.
GoogleDrive.DriveChange.drive.capabilities.canReadRevisions Boolean Whether the current user can read the revisions resource of files in this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canRename Boolean Whether the current user can rename files or folders in this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canRenameDrive Boolean Whether the current user can rename this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canShare Boolean Whether the current user can share files or folders in this shared drive.
GoogleDrive.DriveChange.drive.capabilities.canTrashChildren Boolean Whether the current user can trash children from folders in this shared drive.
GoogleDrive.DriveChange.drive.createdTime Date The time at which the shared drive was created (RFC 3339 date-time).
GoogleDrive.DriveChange.drive.hidden Boolean Whether the shared drive is hidden from the default view.
GoogleDrive.DriveChange.drive.restrictions.adminManagedRestrictions Boolean Whether administrative privileges on this shared drive are required to modify restrictions.
GoogleDrive.DriveChange.drive.restrictions.copyRequiresWriterPermission Boolean Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters.
GoogleDrive.DriveChange.drive.restrictions.domainUsersOnly Boolean Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs.
GoogleDrive.DriveChange.drive.restrictions.driveMembersOnly Boolean Whether access to items inside this shared drive is restricted to its members.

google-drive-activity-list


Query past activity in Google Drive.

Base Command

google-drive-activity-list

Input

Argument Name Description Required
user_id The user’s primary email address. Optional
folder_name Return activities for this drive folder and all children and descendants. The format is “items/ITEM_ID”. Optional
item_name Return activities for this drive item. The format is “items/ITEM_ID”. Optional
filter The filtering for items returned from this query request. The format of the filter string is a sequence of expressions, joined by an optional “AND”, where each expression is of the form “field operator value”.

Supported fields:
time - Uses numerical operators on date values either in terms of milliseconds since Jan 1, 1970 or in RFC 3339 format.
Examples:
time > 1452409200000 AND time <= 1492812924310
time >= “2016-01-10T01:02:03-05:00”

detail.action_detail_case - Uses the “has” operator (:) and either a singular value or a list of allowed action types enclosed in parentheses.
Examples:
detail.action_detail_case: RENAME
detail.action_detail_case:(CREATE EDIT)
-detail.action_detail_case:MOVE”.
Optional
time_range The time range to consider for getting drive activity. Use the format “<number> <time unit>”.
Example: 12 hours, 7 days, 3 months, 1 year. This argument will override if the filter argument is given.
Optional
action_detail_case_include A singular value or a list of allowed action types enclosed in parentheses. The filters are based on given actions. For example:
RENAME
(CREATE EDIT)
This argument will override if the filter argument is given.
Optional
action_detail_case_remove A singular value or a list of allowed action types enclosed in parentheses. The filters are based on given actions. For example:
RENAME
(CREATE EDIT)
This argument will override if the filter argument is given.
Optional
page_token The token identifying which page of results to return. Set this to the nextPageToken value returned from a previous query to obtain the following page of results. If not set, the first page of results will be returned. Optional

Context Output

Path Type Description
GoogleDrive.PageToken.DriveActivity.nextPageToken String Token to retrieve the next page of results, or empty if there are no more results in the list.
GoogleDrive.DriveActivity.primaryActionDetail.create.new Boolean If true, the object was newly created.
GoogleDrive.DriveActivity.primaryActionDetail.create.upload Boolean If true, the object originated externally and was uploaded to Drive.
GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.driveItem.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.driveItem.title String The title of the Drive item.
GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.driveItem.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.driveItem.driveFolder.type String The type of Drive folder.
GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.primaryActionDetail.edit Boolean If true, the object was edited.
GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.driveItem.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.driveItem.title String The title of the Drive item.
GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.driveItem.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.driveItem.driveFolder.type String The type of a Drive folder.
GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.driveItem.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.driveItem.title String The title of the Drive item.
GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.driveItem.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.driveItem.driveFolder.type String The type of Drive folder.
GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.primaryActionDetail.rename.oldTitle String The previous title of the drive object.
GoogleDrive.DriveActivity.primaryActionDetail.rename.newTitle String The new title of the drive object.
GoogleDrive.DriveActivity.primaryActionDetail.delete.type String The type of delete action taken.
GoogleDrive.DriveActivity.primaryActionDetail.restore.type String The type of restore action taken.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.role String Indicates the Google Drive permissions role.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.allowDiscovery Boolean If true, the item can be discovered (e.g., in the user’s “Shared with me” collection) without needing a link to the item.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.group.email String The email address of the group.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.group.title String The title of the group.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.domain.name String The name of the domain, e.g., “google.com”.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.domain.legacyId String An opaque string used to identify this domain.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.anyone Boolean If true, represents any user (including a logged out user).
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.role String Indicates the Google Drive permissions role.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.allowDiscovery Boolean If true, the item can be discovered (e.g., in the user’s “Shared with me” collection) without needing a link to the item.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.group.email String The email address of the group.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.group.title String The title of the group.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.domain.name String The name of the domain, e.g., “google.com”.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.domain.legacyId String An opaque string used to identify this domain.
GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.anyone Boolean If true, represents any user (including a logged out user).
GoogleDrive.DriveActivity.primaryActionDetail.comment.mentionedUsers.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.primaryActionDetail.comment.mentionedUsers.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.primaryActionDetail.comment.mentionedUsers.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.primaryActionDetail.comment.mentionedUsers.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.primaryActionDetail.comment.post.subtype String The sub-type of post event.
GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.subtype String The sub-type of assignment event.
GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.assignedUser.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.assignedUser.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.assignedUser.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.assignedUser.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.primaryActionDetail.comment.suggestion.subtype String The sub-type of suggestion event.
GoogleDrive.DriveActivity.primaryActionDetail.dlpChange.type String The type of Data Leak Prevention (DLP) change.
GoogleDrive.DriveActivity.primaryActionDetail.reference.type String The reference type corresponding to this event.
GoogleDrive.DriveActivity.primaryActionDetail.settingsChange.restrictionChanges.feature String The feature which had a change in restriction policy.
GoogleDrive.DriveActivity.primaryActionDetail.settingsChange.restrictionChanges.newRestriction String The restriction in place after the change.
GoogleDrive.DriveActivity.actors.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.actors.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.actors.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.actors.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.actors.anonymous Boolean If true, the user is an anonymous user.
GoogleDrive.DriveActivity.actors.impersonation.impersonatedUser.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.actors.impersonation.impersonatedUser.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.actors.impersonation.impersonatedUser.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.actors.impersonation.impersonatedUser.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.actors.system.type String The type of the system event that may triggered activity.
GoogleDrive.DriveActivity.actors.administrator Boolean If true, the user is an administrator.
GoogleDrive.DriveActivity.actions.detail.create.new Boolean If true, the object was newly created.
GoogleDrive.DriveActivity.actions.detail.create.upload Boolean If true, the object originated externally and was uploaded to Drive.
GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.driveItem.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.driveItem.title String The title of the Drive item.
GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.driveItem.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.driveItem.driveFolder.type String The type of Drive folder.
GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.actions.detail.edit Boolean If true, the object was edited.
GoogleDrive.DriveActivity.actions.detail.move.addedParents.driveItem.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.actions.detail.move.addedParents.driveItem.title String The title of the Drive item.
GoogleDrive.DriveActivity.actions.detail.move.addedParents.driveItem.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.actions.detail.move.addedParents.driveItem.driveFolder.type String The type of a Drive folder.
GoogleDrive.DriveActivity.actions.detail.move.addedParents.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.actions.detail.move.addedParents.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.actions.detail.move.removedParents.driveItem.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.actions.detail.move.removedParents.driveItem.title String The title of the Drive item.
GoogleDrive.DriveActivity.actions.detail.move.removedParents.driveItem.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.actions.detail.move.removedParents.driveItem.driveFolder.type String The type of Drive folder.
GoogleDrive.DriveActivity.actions.detail.move.removedParents.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.actions.detail.move.removedParents.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.actions.detail.rename.oldTitle String The previous title of the drive object.
GoogleDrive.DriveActivity.actions.detail.rename.newTitle String The new title of the drive object.
GoogleDrive.DriveActivity.actions.detail.delete.type String The type of delete action taken.
GoogleDrive.DriveActivity.actions.detail.restore.type String The type of restore action taken.
GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.role String Indicates the Google Drive permissions role.
GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.allowDiscovery Boolean If true, the item can be discovered (e.g., in the user’s “Shared with me” collection) without needing a link to the item.
GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.group.email String The email address of the group.
GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.group.title String The title of the group.
GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.domain.name String The name of the domain, e.g., “google.com”.
GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.domain.legacyId String An opaque string used to identify this domain.
GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.anyone Boolean If true, represents any user (including a logged out user).
GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.role String Indicates the Google Drive permissions role.
GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.allowDiscovery Boolean If true, the item can be discovered (e.g., in the user’s “Shared with me” collection) without needing a link to the item.
GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.group.email String The email address of the group.
GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.group.title String The title of the group.
GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.domain.name String The name of the domain, e.g., “google.com”.
GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.domain.legacyId String An opaque string used to identify this domain.
GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.anyone Boolean If true, represents any user (including a logged out user).
GoogleDrive.DriveActivity.actions.detail.comment.mentionedUsers.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.actions.detail.comment.mentionedUsers.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.actions.detail.comment.mentionedUsers.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.actions.detail.comment.mentionedUsers.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.actions.detail.comment.post.subtype String The sub-type of post event.
GoogleDrive.DriveActivity.actions.detail.comment.assignment.subtype String The sub-type of assignment event.
GoogleDrive.DriveActivity.actions.detail.comment.assignment.assignedUser.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.actions.detail.comment.assignment.assignedUser.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.actions.detail.comment.assignment.assignedUser.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.actions.detail.comment.assignment.assignedUser.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.actions.detail.comment.suggestion.subtype String The sub-type of suggestion event.
GoogleDrive.DriveActivity.actions.detail.dlpChange.type String The type of Data Leak Prevention (DLP) change.
GoogleDrive.DriveActivity.actions.detail.reference.type String The reference type corresponding to this event.
GoogleDrive.DriveActivity.actions.detail.settingsChange.restrictionChanges.feature String The feature which had a change in restriction policy.
GoogleDrive.DriveActivity.actions.detail.settingsChange.restrictionChanges.newRestriction String The restriction in place after the change.
GoogleDrive.DriveActivity.actions.actor.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.actions.actor.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.actions.actor.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.actions.actor.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.actions.actor.anonymous Boolean If true, the user is an anonymous user.
GoogleDrive.DriveActivity.actions.actor.impersonation.impersonatedUser.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.actions.actor.impersonation.impersonatedUser.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.actions.actor.impersonation.impersonatedUser.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.actions.actor.impersonation.impersonatedUser.unknownUser String If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.actions.actor.system.type String The type of the system event that may triggered activity.
GoogleDrive.DriveActivity.actions.actor.administrator Boolean If true, the user is an administrator.
GoogleDrive.DriveActivity.actions.target.driveItem.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.actions.target.driveItem.title String The title of the Drive item.
GoogleDrive.DriveActivity.actions.target.driveItem.mimeType String The MIME type of the Drive item.
GoogleDrive.DriveActivity.actions.target.driveItem.owner.domain.name String The name of the domain, e.g., “google.com”.
GoogleDrive.DriveActivity.actions.target.driveItem.owner.domain.legacyId String An opaque string used to identify this domain.
GoogleDrive.DriveActivity.actions.target.driveItem.owner.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.actions.target.driveItem.owner.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.actions.target.driveItem.owner.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.actions.target.driveItem.owner.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.actions.target.driveItem.owner.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.actions.target.driveItem.owner.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.actions.target.driveItem.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.actions.target.driveItem.driveFolder.type String The type of Drive folder.
GoogleDrive.DriveActivity.actions.target.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.actions.target.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.actions.target.drive.root.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.actions.target.drive.root.title String The title of the Drive item.
GoogleDrive.DriveActivity.actions.target.drive.root.mimeType String The MIME type of the Drive item.
GoogleDrive.DriveActivity.actions.target.drive.root.owner.domain.name String The name of the domain, e.g., “google.com”.
GoogleDrive.DriveActivity.actions.target.drive.root.owner.domain.legacyId String An opaque string used to identify this domain.
GoogleDrive.DriveActivity.actions.target.drive.root.owner.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.actions.target.drive.root.owner.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.actions.target.drive.root.owner.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.actions.target.drive.root.owner.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.actions.target.drive.root.owner.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.actions.target.drive.root.owner.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.actions.target.drive.root.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.actions.target.drive.root.driveFolder.type String The type of Drive folder.
GoogleDrive.DriveActivity.actions.target.fileComment.legacyCommentId String The comment in the discussion thread.
GoogleDrive.DriveActivity.actions.target.fileComment.legacyDiscussionId String The discussion thread to which the comment was added.
GoogleDrive.DriveActivity.actions.target.fileComment.linkToDiscussion String The link to the discussion thread containing this comment, for example, “https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID”.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.title String The title of the Drive item.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.mimeType String The MIME type of the Drive item.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.domain.name String The name of the domain, e.g., “google.com”.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.domain.legacyId String An opaque string used to identify this domain.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.actions.target.fileComment.parent.driveFolder.type String The type of Drive folder.
GoogleDrive.DriveActivity.actions.timestamp String The activity occurred at this specific time.
GoogleDrive.DriveActivity.actions.timeRange.startTime String The start of the time range.
GoogleDrive.DriveActivity.actions.timeRange.endTime String The end of the time range.
GoogleDrive.DriveActivity.targets.driveItem.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.targets.driveItem.title String The title of the Drive item.
GoogleDrive.DriveActivity.targets.driveItem.mimeType String The MIME type of the Drive item.
GoogleDrive.DriveActivity.targets.driveItem.owner.domain.name String The name of the domain, e.g., “google.com”.
GoogleDrive.DriveActivity.targets.driveItem.owner.domain.legacyId String An opaque string used to identify this domain.
GoogleDrive.DriveActivity.targets.driveItem.owner.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.targets.driveItem.owner.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.targets.driveItem.owner.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.targets.driveItem.owner.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.targets.driveItem.owner.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.targets.driveItem.owner.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.targets.driveItem.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.targets.driveItem.driveFolder.type String The type of Drive folder.
GoogleDrive.DriveActivity.targets.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.targets.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.targets.drive.root.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.targets.drive.root.title String The title of the Drive item.
GoogleDrive.DriveActivity.targets.drive.root.mimeType String The MIME type of the Drive item.
GoogleDrive.DriveActivity.targets.drive.root.owner.domain.name String The name of the domain, e.g., “google.com”.
GoogleDrive.DriveActivity.targets.drive.root.owner.domain.legacyId String An opaque string used to identify this domain.
GoogleDrive.DriveActivity.targets.drive.root.owner.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.targets.drive.root.owner.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.targets.drive.root.owner.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.targets.drive.root.owner.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.targets.drive.root.owner.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.targets.drive.root.owner.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.targets.drive.root.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.targets.drive.root.driveFolder.type String The type of Drive folder.
GoogleDrive.DriveActivity.targets.fileComment.legacyCommentId String The comment in the discussion thread.
GoogleDrive.DriveActivity.targets.fileComment.legacyDiscussionId String The discussion thread to which the comment was added.
GoogleDrive.DriveActivity.targets.fileComment.linkToDiscussion String The link to the discussion thread containing this comment, for example, “https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID”.
GoogleDrive.DriveActivity.targets.fileComment.parent.name String The target Drive item. The format is “items/ITEM_ID”.
GoogleDrive.DriveActivity.targets.fileComment.parent.title String The title of the Drive item.
GoogleDrive.DriveActivity.targets.fileComment.parent.mimeType String The MIME type of the Drive item.
GoogleDrive.DriveActivity.targets.fileComment.parent.owner.domain.name String The name of the domain, e.g., “google.com”.
GoogleDrive.DriveActivity.targets.fileComment.parent.owner.domain.legacyId String An opaque string used to identify this domain.
GoogleDrive.DriveActivity.targets.fileComment.parent.owner.user.knownUser.personName String The identifier for this user that can be used with the People API to get more information. The format is “people/ACCOUNT_ID”.
GoogleDrive.DriveActivity.targets.fileComment.parent.owner.user.knownUser.isCurrentUser Boolean True if this is the user making the request.
GoogleDrive.DriveActivity.targets.fileComment.parent.owner.user.deletedUser Boolean If true, a user whose account has since been deleted.
GoogleDrive.DriveActivity.targets.fileComment.parent.owner.user.unknownUser Boolean If true, a user about whom nothing is currently known.
GoogleDrive.DriveActivity.targets.fileComment.parent.owner.drive.name String The resource name of the shared drive. The format is “COLLECTION_ID/DRIVE_ID”.
GoogleDrive.DriveActivity.targets.fileComment.parent.owner.drive.title String The title of the shared drive.
GoogleDrive.DriveActivity.targets.fileComment.parent.driveFile Boolean If true, the Drive item is a file.
GoogleDrive.DriveActivity.targets.fileComment.parent.driveFolder.type String The type of Drive folder.
GoogleDrive.DriveActivity.timestamp String The activity occurred at this specific time.
GoogleDrive.DriveActivity.timeRange.startTime String The start of the time range.
GoogleDrive.DriveActivity.timeRange.endTime String The end of the time range.

google-drive-drives-list


Lists the user’s shared drives.

Base Command

google-drive-drives-list

Input

Argument Name Description Required
page_size Maximum number of shared drives to return. Acceptable values are 1 to 100, inclusive. Default is 100. Optional
page_token Page token for shared drives. Optional
query Query string for searching shared drives. Optional
use_domain_admin_access Issue the request as a domain administrator. If set to true, all shared drives of the domain in which the requester is an administrator are returned. Possible values are: true, false. Default is false. Optional
user_id The user’s primary email address. Optional

Context Output

Path Type Description
GoogleDrive.Drive.Drive.id String The ID of this shared drive which is also the ID of the top level folder of this shared drive.
GoogleDrive.Drive.Drive.name String The name of this shared drive.
GoogleDrive.Drive.Drive.colorRgb String The color of this shared drive as an RGB hex string.
GoogleDrive.Drive.Drive.capabilities.canAddChildren Boolean Whether the current user can add children to folders in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canChangeCopyRequiresWriterPermissionRestriction Boolean Whether the current user can change the ‘copy requires writer permission’ restriction of this shared drive.
GoogleDrive.Drive.Drive.capabilities.canChangeDomainUsersOnlyRestriction Boolean Whether the current user can change the ‘domain users only’ restriction of this shared drive.
GoogleDrive.Drive.Drive.capabilities.canChangeDriveBackground Boolean Whether the current user can change the background of this shared drive.
GoogleDrive.Drive.Drive.capabilities.canChangeDriveMembersOnlyRestriction Boolean Whether the current user can change the ‘drive members only’ restriction of this shared drive.
GoogleDrive.Drive.Drive.capabilities.canComment Boolean Whether the current user can comment on files in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canCopy Boolean Whether the current user can copy files in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canDeleteChildren Boolean Whether the current user can delete children from folders in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canDeleteDrive Boolean Whether the current user can delete this shared drive.
GoogleDrive.Drive.Drive.capabilities.canDownload Boolean Whether the current user can download files in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canEdit Boolean Whether the current user can edit files in this shared drive
GoogleDrive.Drive.Drive.capabilities.canListChildren Boolean Whether the current user can list the children of folders in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canManageMembers Boolean Whether the current user can add members to this shared drive or remove them or change their role.
GoogleDrive.Drive.Drive.capabilities.canReadRevisions Boolean Whether the current user can read the revisions resource of files in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canRename Boolean Whether the current user can rename files or folders in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canRenameDrive Boolean Whether the current user can rename this shared drive.
GoogleDrive.Drive.Drive.capabilities.canShare Boolean Whether the current user can share files or folders in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canTrashChildren Boolean Whether the current user can trash children from folders in this shared drive.
GoogleDrive.Drive.Drive.createdTime Date The time at which the shared drive was created (RFC 3339 date-time).
GoogleDrive.Drive.Drive.hidden Boolean Whether the shared drive is hidden from the default view.
GoogleDrive.Drive.Drive.restrictions.adminManagedRestrictions Boolean Whether administrative privileges on this shared drive are required to modify restrictions.
GoogleDrive.Drive.Drive.restrictions.copyRequiresWriterPermission Boolean Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.
GoogleDrive.Drive.Drive.restrictions.domainUsersOnly Boolean Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
GoogleDrive.Drive.Drive.restrictions.driveMembersOnly Boolean Whether access to items inside this shared drive is restricted to its members.

google-drive-drive-get


Gets a user shared drives.

Base Command

google-drive-drive-get

Input

Argument Name Description Required
use_domain_admin_access Issue the request as a domain administrator. If set to true, all shared drives of the domain in which the requester is an administrator are returned. Possible values are: true, false. Default is false. Optional
user_id The user’s primary email address. Optional
drive_id ID of the shared drive. Can be retrieved using the google-drive-drives-list command. Optional
fields The fields you want included in the response. Default is kind, id, name, themeId, capabilities, createdTime, hidden, restrictions. Optional

Context Output

Path Type Description
GoogleDrive.Drive.Drive.id String The ID of this shared drive which is also the ID of the top level folder of this shared drive.
GoogleDrive.Drive.Drive.name String The name of this shared drive.
GoogleDrive.Drive.Drive.colorRgb String The color of this shared drive as an RGB hex string.
GoogleDrive.Drive.Drive.capabilities.canAddChildren Boolean Whether the current user can add children to folders in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canChangeCopyRequiresWriterPermissionRestriction Boolean Whether the current user can change the ‘copy requires writer permission’ restriction of this shared drive.
GoogleDrive.Drive.Drive.capabilities.canChangeDomainUsersOnlyRestriction Boolean Whether the current user can change the ‘domain users only’ restriction of this shared drive.
GoogleDrive.Drive.Drive.capabilities.canChangeDriveBackground Boolean Whether the current user can change the background of this shared drive.
GoogleDrive.Drive.Drive.capabilities.canChangeDriveMembersOnlyRestriction Boolean Whether the current user can change the ‘drive members only’ restriction of this shared drive.
GoogleDrive.Drive.Drive.capabilities.canComment Boolean Whether the current user can comment on files in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canCopy Boolean Whether the current user can copy files in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canDeleteChildren Boolean Whether the current user can delete children from folders in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canDeleteDrive Boolean Whether the current user can delete this shared drive.
GoogleDrive.Drive.Drive.capabilities.canDownload Boolean Whether the current user can download files in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canEdit Boolean Whether the current user can edit files in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canListChildren Boolean Whether the current user can list the children of folders in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canManageMembers Boolean Whether the current user can add members to this shared drive or remove them or change their role.
GoogleDrive.Drive.Drive.capabilities.canReadRevisions Boolean Whether the current user can read the revisions resource of files in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canRename Boolean Whether the current user can rename files or folders in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canRenameDrive Boolean Whether the current user can rename this shared drive.
GoogleDrive.Drive.Drive.capabilities.canShare Boolean Whether the current user can share files or folders in this shared drive.
GoogleDrive.Drive.Drive.capabilities.canTrashChildren Boolean Whether the current user can trash children from folders in this shared drive.
GoogleDrive.Drive.Drive.createdTime Date The time at which the shared drive was created (RFC 3339 date-time).
GoogleDrive.Drive.Drive.hidden Boolean Whether the shared drive is hidden from the default view.
GoogleDrive.Drive.Drive.restrictions.adminManagedRestrictions Boolean Whether administrative privileges on this shared drive are required to modify restrictions.
GoogleDrive.Drive.Drive.restrictions.copyRequiresWriterPermission Boolean Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.
GoogleDrive.Drive.Drive.restrictions.domainUsersOnly Boolean Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
GoogleDrive.Drive.Drive.restrictions.driveMembersOnly Boolean Whether access to items inside this shared drive is restricted to its members.

google-drive-drive-delete


Deletes a shared drive.

Base Command

google-drive-drive-delete

Input

Argument Name Description Required
use_domain_admin_access 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. Possible values are: true, false. Default is false. Optional
allow_item_deletion Whether any items inside the shared drive should also be deleted. This option is only supported when use_domain_admin_access argument is set to true. Possible values are: true, false. Default is false. Optional
user_id The user’s primary email address. Optional
drive_id ID of the shared drive. Can be retrieved using the google-drive-drives-list command. Required

Context Output

There is no context output for this command.

google-drive-files-list


Lists the user’s shared drives.

Base Command

google-drive-files-list

Input

Argument Name Description Required
page_size Maximum number of shared drives to return. Acceptable values are 1 to 100, inclusive. Default is 100. Optional
page_token Page token for shared drives. Optional
query Query string for searching shared drives. Optional
include_items_from_all_drives Whether both My Drive and shared drive items should be included in the results. Possible values: “true” and “false”. Possible values are: true, false. Default is false. Optional
user_id The user’s primary email address. Optional
fields The fields you want included in the response. Default is kind, id, name, mimeType, description, starred, trashed, explicitlyTrashed, trashingUser, trashedTime, parents, properties, appProperties, spaces, version, webContentLink, webViewLink, iconLink, hasThumbnail, thumbnailLink, thumbnailVersion, viewedByMe, viewedByMeTime, createdTime, modifiedTime, modifiedByMeTime, modifiedByMe, sharedWithMeTime, sharingUser, owners, teamDriveId, driveId, lastModifyingUser, shared, ownedByMe, capabilities, viewersCanCopyContent, copyRequiresWriterPermission, writersCanShare, permissions, permissionIds, hasAugmentedPermissions, folderColorRgb, originalFilename, fullFileExtension, fileExtension, md5Checksum, size, quotaBytesUsed, headRevisionId, contentHints, isAppAuthorized, exportLinks, shortcutDetails, contentRestrictions, resourceKey, linkShareMetadata. Optional
supports_all_drives Whether the requesting application supports both My Drives and shared drives. Possible values are: True, False. Default is False. Optional
corpora Files or documents to which the query applies. Prefer ‘User’ or ‘Drive’ to ‘All Drives’ for efficiency. By default, corpora is set to ‘User’. However, this can change depending on the filter set through the ‘query’ argument. Possible values are: User, Domain, Drive, All Drivers. Default is User. Optional
drive_id ID of the shared drive to search. Can be retrieved using the google-drive-drives-list command. When a drive ID is specified the value of the corpora argument is automatically set to ‘Drive’ regardless of its selected value. Optional

Context Output

Path Type Description
GoogleDrive.File.File.id String The ID of the file.
GoogleDrive.File.File.mimeType String The MIME type of the file.
GoogleDrive.File.File.name String The name of the file. This is not necessarily unique within a folder.
GoogleDrive.File.File.resourceKey String A key needed to access the item via a shared link.

google-drive-file-get


Get a single file.

Base Command

google-drive-file-get

Input

Argument Name Description Required
file_id ID of the requested file. Can be retrieved using the google-drive-files-list command. Optional
user_id The user’s primary email address. Optional
include_items_from_all_drives Whether both My Drive and shared drive items should be included in the results. Possible values: “true” and “false”. Possible values are: true, false. Default is false. Optional
fields The fields you want included in the response. Default is kind, id, name, mimeType, description, starred, trashed, explicitlyTrashed, trashingUser, trashedTime, parents, properties, appProperties, spaces, version, webContentLink, webViewLink, iconLink, hasThumbnail, thumbnailLink, thumbnailVersion, viewedByMe, viewedByMeTime, createdTime, modifiedTime, modifiedByMeTime, modifiedByMe, sharedWithMeTime, sharingUser, owners, teamDriveId, driveId, lastModifyingUser, shared, ownedByMe, capabilities, viewersCanCopyContent, copyRequiresWriterPermission, writersCanShare, permissions, permissionIds, hasAugmentedPermissions, folderColorRgb, originalFilename, fullFileExtension, fileExtension, md5Checksum, size, quotaBytesUsed, headRevisionId, contentHints, isAppAuthorized, exportLinks, shortcutDetails, contentRestrictions, resourceKey, linkShareMetadata. Optional
supports_all_drives Whether the requesting application supports both My Drives and shared drives. Possible values are: True, False. Default is False. Optional

Context Output

Path Type Description
GoogleDrive.File.File.capabilities.canAddChildren Boolean Whether the current user can add children to this folder. This is always false when the item is not a folder.
GoogleDrive.File.File.capabilities.canAddMyDriveParent Boolean Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
GoogleDrive.File.File.capabilities.canChangeCopyRequiresWriterPermission Boolean Whether the current user can change the ‘copy requires writer permission’ restriction of this file.
GoogleDrive.File.File.capabilities.canChangeSecurityUpdateEnabled Boolean Whether the current user can change the ‘security update enabled’ field on link shared metadata.
GoogleDrive.File.File.capabilities.canComment Boolean Whether the current user can comment on this file.
GoogleDrive.File.File.capabilities.canCopy Boolean Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
GoogleDrive.File.File.capabilities.canDelete Boolean Whether the current user can delete this file.
GoogleDrive.File.File.capabilities.canDownload Boolean Whether the current user can download this file.
GoogleDrive.File.File.capabilities.canEdit Boolean Whether the current user can edit this file.
GoogleDrive.File.File.capabilities.canListChildren Boolean Whether the current user can list the children of this folder. This is always false when the item is not a folder.
GoogleDrive.File.File.capabilities.canModifyContent Boolean Whether the current user can modify the content of this file.
GoogleDrive.File.File.capabilities.canMoveChildrenWithinDrive Boolean Whether the current user can move children of this folder within this drive. This is false when the item is not a folder.
GoogleDrive.File.File.capabilities.canMoveItemOutOfDrive Boolean Whether the current user can move this item outside of this drive by changing its parent.
GoogleDrive.File.File.capabilities.canMoveItemWithinDrive Boolean Whether the current user can move this item within this drive.
GoogleDrive.File.File.capabilities.canReadRevisions Boolean Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
GoogleDrive.File.File.capabilities.canRemoveChildren Boolean Whether the current user can remove children from this folder. This is always false when the item is not a folder.
GoogleDrive.File.File.capabilities.canRemoveMyDriveParent Boolean Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
GoogleDrive.File.File.capabilities.canRename Boolean Whether the current user can rename this file.
GoogleDrive.File.File.capabilities.canShare Boolean Whether the current user can modify the sharing settings for this file.
GoogleDrive.File.File.capabilities.canTrash Boolean Whether the current user can move this file to trash.
GoogleDrive.File.File.capabilities.canUntrash Boolean Whether the current user can restore this file from trash.
GoogleDrive.File.File.copyRequiresWriterPermission Boolean Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
GoogleDrive.File.File.createdTime Date The time at which the file was created (RFC 3339 date-time).
GoogleDrive.File.File.explicitlyTrashed Boolean Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
GoogleDrive.File.File.exportLinks String Links for exporting Docs Editors files to specific formats.
GoogleDrive.File.File.hasThumbnail Boolean 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.
GoogleDrive.File.File.iconLink String A static, unauthenticated link to the file’s icon.
GoogleDrive.File.File.id String The ID of the file.
GoogleDrive.File.File.isAppAuthorized Boolean Whether the file was created or opened by the requesting app.
GoogleDrive.File.File.lastModifyingUser.displayName String A plain text displayable name for this user.
GoogleDrive.File.File.lastModifyingUser.emailAddress String The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
GoogleDrive.File.File.lastModifyingUser.me Boolean Whether this user is the requesting user.
GoogleDrive.File.File.lastModifyingUser.permissionId String The user’s ID as visible in Permission resources.
GoogleDrive.File.File.lastModifyingUser.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.File.File.linkShareMetadata.securityUpdateEligible Boolean Whether the file is eligible for a security update.
GoogleDrive.File.File.linkShareMetadata.securityUpdateEnabled Boolean Whether the security update is enabled for this file.
GoogleDrive.File.File.mimeType String The MIME type of the file.
GoogleDrive.File.File.modifiedByMe Boolean Whether the file has been modified by this user.
GoogleDrive.File.File.modifiedByMeTime Date The last time the file was modified by the user (RFC 3339 date-time).
GoogleDrive.File.File.modifiedTime Date The last time the file was modified by anyone (RFC 3339 date-time).
GoogleDrive.File.File.name String The name of the file. This is not 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.
GoogleDrive.File.File.ownedByMe Boolean Whether the user owns the file. Not populated for items in shared drives.
GoogleDrive.File.File.owners.displayName String A plain text displayable name for this user.
GoogleDrive.File.File.owners.emailAddress String The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
GoogleDrive.File.File.owners.me Boolean Whether this user is the requesting user.
GoogleDrive.File.File.owners.permissionId String The user’s ID as visible in Permission resources.
GoogleDrive.File.File.owners.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.File.File.parents String The IDs of the parent folders which contain the file.
GoogleDrive.File.File.permissionIds String List of permission IDs for users with access to this file.
GoogleDrive.File.File.permissions.deleted Boolean Whether the permission was deleted.
GoogleDrive.File.File.permissions.displayName String A plain text displayable name for this user.
GoogleDrive.File.File.permissions.emailAddress String The email address of the user.
GoogleDrive.File.File.permissions.id String The ID of this permission.
GoogleDrive.File.File.permissions.role String The role granted by this permission.
GoogleDrive.File.File.permissions.type String The type of the grantee.
GoogleDrive.File.File.permissions.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.File.File.quotaBytesUsed String The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
GoogleDrive.File.File.shared Boolean Whether the file has been shared. Not populated for items in shared drives.
GoogleDrive.File.File.spaces String The list of spaces which contain the file. The currently supported values are ‘drive’, ‘appDataFolder’, and ‘photos’.
GoogleDrive.File.File.starred Boolean Whether the user has starred the file.
GoogleDrive.File.File.thumbnailLink String A short-lived link to the file’s thumbnail, if available. Typically lasts on the order of hours.
GoogleDrive.File.File.thumbnailVersion String The thumbnail version for use in thumbnail cache invalidation.
GoogleDrive.File.File.trashed Boolean Whether the file has been trashed, either explicitly or from a trashed parent folder.
GoogleDrive.File.File.version String 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.
GoogleDrive.File.File.viewedByMe Boolean Whether the file has been viewed by this user.
GoogleDrive.File.File.viewedByMeTime Date The last time the file was viewed by the user (RFC 3339 date-time).
GoogleDrive.File.File.webViewLink String A link for opening the file in a relevant Google editor or viewer in a browser.
GoogleDrive.File.File.writersCanShare Boolean Whether users with only writer permission can modify the file’s permissions. Not populated for items in shared drives.

google-drive-file-upload


Creates a new file.

Base Command

google-drive-file-upload

Input

Argument Name Description Required
file_name The name of the file to upload. Optional
entry_id The file’s Entry ID. Optional
parent The ID of the parent folder which contains the file. If not specified as part of a create request, the file will be placed directly in the user’s My Drive folder. Optional
supports_all_drives Whether the requesting application supports both My Drives and shared drives. Possible values: “true” and “false”. Default is “false”. Optional

Context Output

Path Type Description
GoogleDrive.File.File.id String The ID of the file.
GoogleDrive.File.File.name String The name of the file. This is not 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.
GoogleDrive.File.File.mimeType String The MIME type of the file.
GoogleDrive.File.File.starred Boolean Whether the user has starred the file.
GoogleDrive.File.File.trashed Boolean Whether the file has been trashed, either explicitly or from a trashed parent folder.
GoogleDrive.File.File.explicitlyTrashed Boolean Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
GoogleDrive.File.File.parents String The IDs of the parent folders which contain the file.
GoogleDrive.File.File.spaces String The list of spaces which contain the file. The currently supported values are ‘drive’, ‘appDataFolder’, and ‘photos’.
GoogleDrive.File.File.version String 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.
GoogleDrive.File.File.webContentLink String A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
GoogleDrive.File.File.webViewLink String A link for opening the file in a relevant Google editor or viewer in a browser.
GoogleDrive.File.File.iconLink String A static, unauthenticated link to the file’s icon.
GoogleDrive.File.File.hasThumbnail Boolean 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.
GoogleDrive.File.File.thumbnailVersion String The thumbnail version for use in thumbnail cache invalidation.
GoogleDrive.File.File.viewedByMe Boolean Whether the file has been viewed by this user.
GoogleDrive.File.File.viewedByMeTime Date The last time the file was viewed by the user (RFC 3339 date-time).
GoogleDrive.File.File.createdTime Date The time at which the file was created (RFC 3339 date-time).
GoogleDrive.File.File.modifiedTime Date The last time the file was modified by anyone (RFC 3339 date-time).
GoogleDrive.File.File.thumbnailLink String A short-lived link to the file’s thumbnail, if available. Typically lasts on the order of hours.
GoogleDrive.File.File.exportLinks String Links for exporting Docs Editors files to specific formats.
GoogleDrive.File.File.quotaBytesUsed String The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
GoogleDrive.File.File.shared Boolean Whether the file has been shared. Not populated for items in shared drives.
GoogleDrive.File.File.writersCanShare Boolean Whether users with only writer permission can modify the file’s permissions. Not populated for items in shared drives.
GoogleDrive.File.File.modifiedByMe Boolean Whether the file has been modified by this user.
GoogleDrive.File.File.modifiedByMeTime Date The last time the file was modified by the user (RFC 3339 date-time).
GoogleDrive.File.File.ownedByMe Boolean Whether the user owns the file. Not populated for items in shared drives.
GoogleDrive.File.File.isAppAuthorized Boolean Whether the file was created or opened by the requesting app.
GoogleDrive.File.File.capabilities.canAddChildren Boolean Whether the current user can add children to this folder. This is always false when the item is not a folder.
GoogleDrive.File.File.capabilities.canAddMyDriveParent Boolean Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
GoogleDrive.File.File.capabilities.canChangeCopyRequiresWriterPermission Boolean Whether the current user can change the ‘copy requires writer permission’ restriction of this file.
GoogleDrive.File.File.capabilities.canChangeSecurityUpdateEnabled Boolean Whether the current user can change the ‘security update enabled’ field on link shared metadata.
GoogleDrive.File.File.capabilities.canComment Boolean Whether the current user can comment on this file.
GoogleDrive.File.File.capabilities.canCopy Boolean Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
GoogleDrive.File.File.capabilities.canDelete Boolean Whether the current user can delete this file.
GoogleDrive.File.File.capabilities.canDownload Boolean Whether the current user can download this file.
GoogleDrive.File.File.capabilities.canEdit Boolean Whether the current user can edit this file.
GoogleDrive.File.File.capabilities.canListChildren Boolean Whether the current user can list the children of this folder. This is always false when the item is not a folder.
GoogleDrive.File.File.capabilities.canModifyContent Boolean Whether the current user can modify the content of this file.
GoogleDrive.File.File.capabilities.canMoveChildrenWithinDrive Boolean Whether the current user can move children of this folder within this drive. This is false when the item is not a folder.
GoogleDrive.File.File.capabilities.canMoveItemOutOfDrive Boolean Whether the current user can move this item outside of this drive by changing its parent.
GoogleDrive.File.File.capabilities.canMoveItemWithinDrive Boolean Whether the current user can move this item within this drive.
GoogleDrive.File.File.capabilities.canReadRevisions Boolean Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
GoogleDrive.File.File.capabilities.canRemoveChildren Boolean Whether the current user can remove children from this folder. This is always false when the item is not a folder.
GoogleDrive.File.File.capabilities.canRemoveMyDriveParent Boolean Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
GoogleDrive.File.File.capabilities.canRename Boolean Whether the current user can rename this file.
GoogleDrive.File.File.capabilities.canShare Boolean Whether the current user can modify the sharing settings for this file.
GoogleDrive.File.File.capabilities.canTrash Boolean Whether the current user can move this file to trash.
GoogleDrive.File.File.capabilities.canUntrash Boolean Whether the current user can restore this file from trash.
GoogleDrive.File.File.copyRequiresWriterPermission Boolean Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
GoogleDrive.File.File.lastModifyingUser.displayName String A plain text displayable name for this user.
GoogleDrive.File.File.lastModifyingUser.emailAddress String The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
GoogleDrive.File.File.lastModifyingUser.me Boolean Whether this user is the requesting user.
GoogleDrive.File.File.lastModifyingUser.permissionId String The user’s ID as visible in Permission resources.
GoogleDrive.File.File.lastModifyingUser.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.File.File.linkShareMetadata.securityUpdateEligible Boolean Whether the file is eligible for security update.
GoogleDrive.File.File.linkShareMetadata.securityUpdateEnabled Boolean Whether the security update is enabled for this file.
GoogleDrive.File.File.owners.displayName String A plain text displayable name for this user.
GoogleDrive.File.File.owners.emailAddress String The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
GoogleDrive.File.File.owners.me Boolean Whether this user is the requesting user.
GoogleDrive.File.File.owners.permissionId String The user’s ID as visible in Permission resources.
GoogleDrive.File.File.owners.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.File.File.permissionIds String List of permission IDs for users with access to this file.
GoogleDrive.File.File.permissions.deleted Boolean Whether the permission was deleted.
GoogleDrive.File.File.permissions.displayName String A plain text displayable name for this user.
GoogleDrive.File.File.permissions.emailAddress String The email address of the user.
GoogleDrive.File.File.permissions.id String The ID of this permission.
GoogleDrive.File.File.permissions.role String The role granted by this permission.
GoogleDrive.File.File.permissions.type String The type of the grantee.
GoogleDrive.File.File.permissions.photoLink String A link to the user’s profile photo, if available.

google-drive-file-download


Download a single file.

Base Command

google-drive-file-download

Input

Argument Name Description Required
file_id ID of the requested file. Can be retrieved using the google-drive-files-list command. Optional
file_name Name of the downloaded file. Default is untitled. Optional
user_id The user’s primary email address. Optional

Context Output

Path Type Description
File.Size Number The size of the file.
File.SHA1 String The SHA1 hash of the file.
File.SHA256 String The SHA256 hash of the file.
File.Name String The name of the file.
File.SSDeep String The SSDeep hash of the file.
File.EntryID String The entry ID of the file.
File.Info String File information.
File.Type String The file type.
File.MD5 String The MD5 hash of the file.
File.Extension String The file extension.

google-drive-file-replace-existing


Updates a file’s content.

Base Command

google-drive-file-replace-existing

Input

Argument Name Description Required
file_id ID of the file to replace. Can be retrieved using the google-drive-files-list command. Optional
entry_id The file’s entry ID. Optional

Context Output

Path Type Description
GoogleDrive.File.File.id String The ID of the file.
GoogleDrive.File.File.name String The name of the file. This is not 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.
GoogleDrive.File.File.mimeType String The MIME type of the file.
GoogleDrive.File.File.starred Boolean Whether the user has starred the file.
GoogleDrive.File.File.trashed Boolean Whether the file has been trashed, either explicitly or from a trashed parent folder.
GoogleDrive.File.File.explicitlyTrashed Boolean Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
GoogleDrive.File.File.parents String The IDs of the parent folders which contain the file.
GoogleDrive.File.File.spaces String The list of spaces which contain the file. The currently supported values are ‘drive’, ‘appDataFolder’, and ‘photos’.
GoogleDrive.File.File.version String 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.
GoogleDrive.File.File.webContentLink String A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
GoogleDrive.File.File.webViewLink String A link for opening the file in a relevant Google editor or viewer in a browser.
GoogleDrive.File.File.iconLink String A static, unauthenticated link to the file’s icon.
GoogleDrive.File.File.hasThumbnail Boolean 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.
GoogleDrive.File.File.thumbnailVersion String The thumbnail version for use in thumbnail cache invalidation.
GoogleDrive.File.File.viewedByMe Boolean Whether the file has been viewed by this user.
GoogleDrive.File.File.viewedByMeTime Date The last time the file was viewed by the user (RFC 3339 date-time).
GoogleDrive.File.File.createdTime Date The time at which the file was created (RFC 3339 date-time).
GoogleDrive.File.File.modifiedTime Date The last time the file was modified by anyone (RFC 3339 date-time).
GoogleDrive.File.File.thumbnailLink String A short-lived link to the file’s thumbnail, if available. Typically lasts on the order of hours.
GoogleDrive.File.File.exportLinks String Links for exporting Docs Editors files to specific formats.
GoogleDrive.File.File.quotaBytesUsed String The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
GoogleDrive.File.File.shared Boolean Whether the file has been shared. Not populated for items in shared drives.
GoogleDrive.File.File.writersCanShare Boolean Whether users with only writer permission can modify the file’s permissions. Not populated for items in shared drives.
GoogleDrive.File.File.modifiedByMe Boolean Whether the file has been modified by this user.
GoogleDrive.File.File.modifiedByMeTime Date The last time the file was modified by the user (RFC 3339 date-time).
GoogleDrive.File.File.ownedByMe Boolean Whether the user owns the file. Not populated for items in shared drives.
GoogleDrive.File.File.isAppAuthorized Boolean Whether the file was created or opened by the requesting app.
GoogleDrive.File.File.capabilities.canAddChildren Boolean Whether the current user can add children to this folder. This is always false when the item is not a folder.
GoogleDrive.File.File.capabilities.canAddMyDriveParent Boolean Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
GoogleDrive.File.File.capabilities.canChangeCopyRequiresWriterPermission Boolean Whether the current user can change the ‘copy requires writer permission’ restriction of this file.
GoogleDrive.File.File.capabilities.canChangeSecurityUpdateEnabled Boolean Whether the current user can change the ‘security update enabled’ field on link shared metadata.
GoogleDrive.File.File.capabilities.canComment Boolean Whether the current user can comment on this file.
GoogleDrive.File.File.capabilities.canCopy Boolean Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
GoogleDrive.File.File.capabilities.canDelete Boolean Whether the current user can delete this file.
GoogleDrive.File.File.capabilities.canDownload Boolean Whether the current user can download this file.
GoogleDrive.File.File.capabilities.canEdit Boolean Whether the current user can edit this file.
GoogleDrive.File.File.capabilities.canListChildren Boolean Whether the current user can list the children of this folder. This is always false when the item is not a folder.
GoogleDrive.File.File.capabilities.canModifyContent Boolean Whether the current user can modify the content of this file.
GoogleDrive.File.File.capabilities.canMoveChildrenWithinDrive Boolean Whether the current user can move children of this folder within this drive. This is false when the item is not a folder.
GoogleDrive.File.File.capabilities.canMoveItemOutOfDrive Boolean Whether the current user can move this item outside of this drive by changing its parent.
GoogleDrive.File.File.capabilities.canMoveItemWithinDrive Boolean Whether the current user can move this item within this drive.
GoogleDrive.File.File.capabilities.canReadRevisions Boolean Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
GoogleDrive.File.File.capabilities.canRemoveChildren Boolean Whether the current user can remove children from this folder. This is always false when the item is not a folder.
GoogleDrive.File.File.capabilities.canRemoveMyDriveParent Boolean Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
GoogleDrive.File.File.capabilities.canRename Boolean Whether the current user can rename this file.
GoogleDrive.File.File.capabilities.canShare Boolean Whether the current user can modify the sharing settings for this file.
GoogleDrive.File.File.capabilities.canTrash Boolean Whether the current user can move this file to trash.
GoogleDrive.File.File.capabilities.canUntrash Boolean Whether the current user can restore this file from trash.
GoogleDrive.File.File.copyRequiresWriterPermission Boolean Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
GoogleDrive.File.File.lastModifyingUser.displayName String A plain text displayable name for this user.
GoogleDrive.File.File.lastModifyingUser.emailAddress String The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
GoogleDrive.File.File.lastModifyingUser.me Boolean Whether this user is the requesting user.
GoogleDrive.File.File.lastModifyingUser.permissionId String The user’s ID as visible in Permission resources.
GoogleDrive.File.File.lastModifyingUser.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.File.File.linkShareMetadata.securityUpdateEligible Boolean Whether the file is eligible for security update.
GoogleDrive.File.File.linkShareMetadata.securityUpdateEnabled Boolean Whether the security update is enabled for this file.
GoogleDrive.File.File.owners.displayName String A plain text displayable name for this user.
GoogleDrive.File.File.owners.emailAddress String The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
GoogleDrive.File.File.owners.me Boolean Whether this user is the requesting user.
GoogleDrive.File.File.owners.permissionId String The user’s ID as visible in Permission resources.
GoogleDrive.File.File.owners.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.File.File.permissionIds String List of permission IDs for users with access to this file.
GoogleDrive.File.File.permissions.deleted Boolean Whether the permission was deleted.
GoogleDrive.File.File.permissions.displayName String A plain text displayable name for this user.
GoogleDrive.File.File.permissions.emailAddress String The email address of the user.
GoogleDrive.File.File.permissions.id String The ID of this permission.
GoogleDrive.File.File.permissions.role String The role granted by this permission.
GoogleDrive.File.File.permissions.type String The type of the grantee.
GoogleDrive.File.File.permissions.photoLink String A link to the user’s profile photo, if available.

google-drive-file-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. If the target is a folder, all descendants owned by the user are also deleted. When the soft_delete argument is set to “true”, the file is moved to Trash instead of being permanently deleted.

Base Command

google-drive-file-delete

Input

Argument Name Description Required
file_id The ID of the requested file. Can be retrieved using the google-drive-files-list command. Optional
user_id The user’s primary email address. Optional
supports_all_drives Whether the requesting application supports both My Drives and shared drives. Possible values are: true, false. Default is false. Optional
soft_delete Whether to move the file to the Trash instead of permanently deleting it. If “true”, the file is moved to the Trash. If “false”, the file is permanently deleted. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
GoogleDrive.File.File.id String The ID of the deleted file.
GoogleDrive.File.File.trashed Boolean Whether the file is in Trash after a soft delete. Only populated when soft_delete is set to “true”.
GoogleDrive.File.File.trashedTime Date The ISO 8601 timestamp when the file was moved to Trash. Only populated for items in shared drives; not populated for items in My Drive.

google-drive-file-permissions-list


Lists a file’s or shared drive’s permissions.

Base Command

google-drive-file-permissions-list

Input

Argument Name Description Required
file_id The ID of the requested file. Can be retrieved using the google-drive-files-list command. Optional
user_id The user’s primary email address. Optional
page_size The maximum number of shared drives to return. Acceptable values are 1 to 100, inclusive. Default is 100. Optional
page_token The page token for shared drives. Optional
supports_all_drives Whether the requesting application supports both My Drives and shared drives. Possible values are: true, false. Default is false. Optional
use_domain_admin_access Whether to issue the request as a domain administrator. If set to “true”, all shared drives of the domain in which the requester is an administrator are returned. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
GoogleDrive.FilePermission.FilePermission.deleted Boolean Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
GoogleDrive.FilePermission.FilePermission.displayName String The “pretty” name of the value of the permission.
GoogleDrive.FilePermission.FilePermission.emailAddress String The email address of the user or group to which this permission refers.
GoogleDrive.FilePermission.FilePermission.id String The ID of this permission.
GoogleDrive.FilePermission.FilePermission.role String The role granted by this permission.
GoogleDrive.FilePermission.FilePermission.type String The type of the grantee.
GoogleDrive.FilePermission.FilePermission.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.FilePermission.FilePermission.permissionDetails.permissionType String The permission type for this user. Possible values: “file”, “member”. Only populated for items in shared drives.
GoogleDrive.FilePermission.FilePermission.permissionDetails.inheritedFrom String The ID of the item from which this permission is inherited. Only populated for items in shared.
GoogleDrive.FilePermission.FilePermission.permissionDetails.inherited Boolean Whether this permission is inherited. Always populated for items in shared drives.
GoogleDrive.FilePermission.FilePermission.permissionDetails.role String The primary role for this user. Possible values: “owner”, “organizer”, “fileOrganizer”, “writer”, “commenter”, “reader”.

google-drive-file-permission-create


Creates a permission for a file or shared drive.

Base Command

google-drive-file-permission-create

Input

Argument Name Description Required
file_id ID of the requested file. Can be retrieved using the google-drive-files-list command. Optional
user_id The user’s primary email address. Optional
send_notification_email Whether a confirmation email will be sent. Possible values are: true, false. Default is false. Optional
role The role granted by this permission. Possible values: “owner”, “organizer”, “fileOrganizer”, “writer”, “commenter”, and “reader”. Possible values are: owner, organizer, fileOrganizer, writer, commenter, reader. Default is reader. Optional
type The type of the grantee. 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. No extra information is required for an anyone type. Possible values: “user”, “group”, “domain”, and “anyone”. Possible values are: user, group, domain, anyone. Default is anyone. Optional
domain The domain to which this permission refers. Optional
email_address The email address of the user or group to which this permission refers. Optional
transfer_ownership Whether to transfer ownership of the file to the user identified by the role=owner permission. Required by the vendor when role=owner is specified on an existing file; omitting this argument preserves the existing command behavior. Possible values are: true, false. Default is false. Optional
move_to_new_owners_root Whether to move the file to the new owner’s root folder. Only takes effect when transfer_ownership is set to “true”. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
GoogleDrive.FilePermission.FilePermission.deleted Boolean Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
GoogleDrive.FilePermission.FilePermission.displayName String The “pretty” name of the value of the permission.
GoogleDrive.FilePermission.FilePermission.emailAddress String The email address of the user or group to which this permission refers.
GoogleDrive.FilePermission.FilePermission.id String The ID of this permission.
GoogleDrive.FilePermission.FilePermission.role String The role granted by this permission.
GoogleDrive.FilePermission.FilePermission.type String The type of the grantee.
GoogleDrive.FilePermission.FilePermission.photoLink String A link to the user’s profile photo, if available.
GoogleDrive.FilePermission.FilePermission.displayName String The “pretty” name of the value of the permission.
GoogleDrive.FilePermission.FilePermission.emailAddress String The email address of the user or group to which this permission refers.
GoogleDrive.FilePermission.FilePermission.id String The ID of this permission.
GoogleDrive.FilePermission.FilePermission.role String The role granted by this permission.
GoogleDrive.FilePermission.FilePermission.type String The type of the grantee.
GoogleDrive.FilePermission.FilePermission.photoLink String A link to the user’s profile photo, if available.

google-drive-file-permission-update


Updates a permission with patch semantics.

Base Command

google-drive-file-permission-update

Input

Argument Name Description Required
file_id ID of the requested file. Can be retrieved using the google-drive-files-list command. Optional
user_id The user’s primary email address. Optional
expiration_time The time at which this permission will expire (RFC 3339 date-time). Optional
permission_id The ID of the permission. Can be retrieved using the google-drive-file-permissions-list command. Optional
role The role granted by this permission. Possible values: “owner”, “organizer”, “fileOrganizer”, “writer”, “commenter”, and “reader”. Possible values are: owner, organizer, fileOrganizer, writer, commenter, reader. Default is reader. Optional

Context Output

Path Type Description

google-drive-file-permission-delete


Deletes a permission. When the ignore_not_found argument is set to “true”, a Not Found response from the vendor is treated as success and surfaced via the alreadyRemoved output, which is useful inside loops over a previously-listed permission set.

Base Command

google-drive-file-permission-delete

Input

Argument Name Description Required
file_id The ID of the requested file. Can be retrieved using the google-drive-files-list command. Optional
user_id The user’s primary email address. Optional
permission_id The ID of the permission. Can be retrieved using the google-drive-file-permissions-list command. Optional
supports_all_drives Whether the requesting application supports both My Drives and shared drives. Possible values are: true, false. Default is false. Optional
ignore_not_found Whether to treat a Not Found response from the vendor (for example, when the permission was already removed) as success and surface it via the alreadyRemoved output, instead of raising an error. Useful inside loops over a previously-listed permission set. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
GoogleDrive.FilePermission.FilePermission.fileId String The ID of the file whose permission was targeted.
GoogleDrive.FilePermission.FilePermission.id String The ID of the deleted permission.
GoogleDrive.FilePermission.FilePermission.alreadyRemoved Boolean Whether the permission was already removed. Set to “true” when ignore_not_found is set to “true” and the vendor returned Not Found.

google-drive-file-modify-label


Modify labels to file.

Base Command

google-drive-file-modify-label

Input

Argument Name Description Required
file_id ID of the requested file. Can be retrieved using the google-drive-files-list command. Optional
user_id The user’s primary email address. Optional
label_id The label id to set for the file. Optional
field_id the field id of the label to set. Optional
selection_label_id the label id to set for the field. Optional
remove_label Whether the requesting application supports both My Drives and shared drives. Possible values: “true” and “false”. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
GoogleDrive.Labels.kind String The type of resource. This is always drive#modifyLabelsResponse
GoogleDrive.Labels.modifiedLabels.fields.id String The ID of the label field selected
GoogleDrive.Labels.modifiedLabels.fields.kind String Kind of resource this is, in this case drive#labelField
GoogleDrive.Labels.modifiedLabels.fields.selection String Selected label.
GoogleDrive.Labels.modifiedLabels.fields.valueType String The type of data this label is representing.
GoogleDrive.Labels.modifiedLabels.id String The label id of the label to set
GoogleDrive.Labels.modifiedLabels.kind String The type of resource. This is always drive#label
GoogleDrive.Labels.modifiedLabels.revisionId String  

google-drive-get-labels


Google Drive get labels.

Base Command

google-drive-get-labels

Input

Argument Name Description Required
user_id The user’s primary email address. Optional

Context Output

Path Type Description
GoogleDrive.Labels.labels.appliedCapabilities.canApply Boolean Is able to apply this label to files.
GoogleDrive.Labels.labels.appliedCapabilities.canRead Boolean Is able to read this label.
GoogleDrive.Labels.labels.appliedCapabilities.canRemove Boolean Is able to remove this label from files.
GoogleDrive.Labels.labels.appliedLabelPolicy.copyMode String Copy label to all descendants.
GoogleDrive.Labels.labels.createTime Date Time at which this label was created.
GoogleDrive.Labels.labels.creator.person String The creator of this label.
GoogleDrive.Labels.labels.customer String The customer that owns this label.
GoogleDrive.Labels.labels.displayHints.priority String Priority of the label.
GoogleDrive.Labels.labels.displayHints.shownInApply Boolean Whether this label is shown in the “Apply a label” dropdown.
GoogleDrive.Labels.labels.fields.appliedCapabilities.canRead Boolean Is the field readable.
GoogleDrive.Labels.labels.fields.appliedCapabilities.canSearch Boolean Is the field searchable.
GoogleDrive.Labels.labels.fields.appliedCapabilities.canWrite Boolean Is the field writable.
GoogleDrive.Labels.labels.fields.creator.person String The creator of this field.
GoogleDrive.Labels.labels.fields.displayHints.required Boolean Is this field required to be set by the user.
GoogleDrive.Labels.labels.fields.displayHints.shownInApply Boolean Should this field be shown when editing the label.
GoogleDrive.Labels.labels.fields.id String The ID of the field.
GoogleDrive.Labels.labels.fields.lifecycle.state String The lifecycle state of this field.
GoogleDrive.Labels.labels.fields.properties.displayName String The display name of the property.
GoogleDrive.Labels.labels.fields.properties.required Boolean Is this property required to be set by the user.
GoogleDrive.Labels.labels.fields.publisher.person String The user who published this field.
GoogleDrive.Labels.labels.fields.queryKey String The query key for this field.
GoogleDrive.Labels.labels.fields.schemaCapabilities Unknown Schema capabilities for this field.
GoogleDrive.Labels.labels.fields.selectionOptions.choices.appliedCapabilities.canRead Boolean  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.appliedCapabilities.canSearch Boolean  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.appliedCapabilities.canSelect Boolean  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.backgroundColor.blue Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.backgroundColor.green Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.backgroundColor.red Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.foregroundColor.blue Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.foregroundColor.green Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.foregroundColor.red Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.soloColor.blue Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.soloColor.green Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.soloColor.red Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgePriority String  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.backgroundColor.blue Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.backgroundColor.green Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.backgroundColor.red Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.foregroundColor.blue Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.foregroundColor.green Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.foregroundColor.red Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.soloColor.blue Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.soloColor.green Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.soloColor.red Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.shownInApply Boolean  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.id String  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.lifecycle.state String  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.properties.badgeConfig.color.blue Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.properties.badgeConfig.color.green Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.properties.badgeConfig.color.red Number  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.properties.displayName String  
GoogleDrive.Labels.labels.fields.selectionOptions.choices.schemaCapabilities Unknown  
GoogleDrive.Labels.labels.fields.updater.person String  
GoogleDrive.Labels.labels.id String  
GoogleDrive.Labels.labels.labelType String  
GoogleDrive.Labels.labels.lifecycle.state String  
GoogleDrive.Labels.labels.name String  
GoogleDrive.Labels.labels.properties.title String  
GoogleDrive.Labels.labels.publishTime Date  
GoogleDrive.Labels.labels.publisher.person String  
GoogleDrive.Labels.labels.revisionCreateTime Date  
GoogleDrive.Labels.labels.revisionCreator.person String  
GoogleDrive.Labels.labels.revisionId String  
GoogleDrive.Labels.labels.schemaCapabilities Unknown  
GoogleDrive.Labels.labels.fields.userOptions Unknown  

google-drive-get-file-labels


Modify labels to file.

Base Command

google-drive-get-file-labels

Input

Argument Name Description Required
file_id ID of the requested file. Can be retrieved using the google-drive-files-list command. Optional
user_id The user’s primary email address. Optional

Context Output

Path Type Description
GoogleDrive.File.File.id String The ID of the file.
GoogleDrive.Labels.kind String The type of resource. This is always drive#labelList
GoogleDrive.Labels.labels.fields.id String The ID of the label field selected
GoogleDrive.Labels.labels.fields.kind String The kind of this field. This is always drive#labelField
GoogleDrive.Labels.labels.fields.selection String The label field selected.
GoogleDrive.Labels.labels.fields.valueType String The type of data this label is representing.
GoogleDrive.Labels.labels.id String The label id of the label to set
GoogleDrive.Labels.labels.kind String The type of resource. This is always drive#label
GoogleDrive.Labels.labels.revisionId String The revision id of the label

google-drive-file-copy


Make a copy of a Google Drive file.

Base Command

google-drive-file-copy

Input

Argument Name Description Required
file_id The ID of the file to copy. Required
copy_title The name of the copied file. Optional
user_id The user’s primary email address. Optional
supports_all_drives Whether the requesting application supports both My Drives and shared drives. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
GoogleDrive.File.File.kind String The content type of the file.
GoogleDrive.File.File.id String The ID of the copied file.
GoogleDrive.File.File.name String The name of the copied file.
GoogleDrive.File.File.mimeType String The MIME type of the copied file.

Command example

!google-drive-file-copy file_id="1O8Gx7DslVpbd-HN7lp4MIN1DDakpw-bHVHCwir2wUlo" copy_title="New Copy"

Context Example

{
    "GoogleDrive": {
        "File": {
            "File": {
                "id": "1JBZfuJcRpnpv5wS5-RBxT5OGjfKMP1cCmqOBHCe7GPw",
                "kind": "drive#file",
                "mimeType": "application/vnd.google-apps.spreadsheet",
                "name": "New Copy"
            }
        }
    }
}

Human Readable Output

File copied successfully

Id Kind Mimetype Name
1JBZfuJcRpnpv5wS5-RBxT5OGjfKMP1cCmqOBHCe7GPw drive#file application/vnd.google-apps.spreadsheet New Copy

google-drive-file-get-parents


Get parents of a Google Drive file.

Base Command

google-drive-file-get-parents

Input

Argument Name Description Required
file_id ID of the requested file. Can be retrieved using the google-drive-files-list command. Required
user_id The user’s primary email address. Required
include_items_from_all_drives Whether both My Drive and shared drive items should be included in the results. Possible values are: true, false. Default is false. Optional
supports_all_drives Whether the requesting application supports both My Drives and shared drives. Possible values are: True, False. Default is False. Optional

Context Output

Path Type Description
GoogleDrive.File.Parents String The IDs of the parent folders which contain the file.

google-drive-file-move


Moves a file from one folder to another by modifying its parent folder references. Used for quarantine workflows.

Base Command

google-drive-file-move

Input

Argument Name Description Required
file_id The ID of the file to move. Required
add_parent_id The ID of the destination folder to move the file into. Required
remove_parent_id The ID of the current parent folder to remove the file from. Required
user_id The user’s email address. The command will be executed on behalf of this user (requires domain-wide delegation). Required

Context Output

Path Type Description
GoogleDrive.File.id String The file ID.
GoogleDrive.File.name String The name of the file.
GoogleDrive.File.mimeType String The MIME type of the file.
GoogleDrive.File.parents Unknown The list of parent folder IDs.

google-drive-file-create


Creates a new file or folder. By default the file is metadata-only, which is useful for creating quarantine folders or tombstone placeholder files. Provide the content argument to also write text content into the created file.

Base Command

google-drive-file-create

Input

Argument Name Description Required
file_name The name of the file or folder to create. Required
mime_type The MIME type of the file. Use “application/vnd.google-apps.folder” to create a folder. Default is “application/vnd.google-apps.folder”. Default is application/vnd.google-apps.folder. Optional
user_id The user’s email address. The command will be executed on behalf of this user (requires domain-wide delegation). If not provided, the default user configured in the integration instance will be used. Optional
parent The ID of the parent folder. If not specified, the file will be created in the user’s root folder. Optional
description A short description of the file or folder. Optional
content The text content to write into the created file. When provided, the content is uploaded together with the file metadata in a single request. Requires a non-folder mime_type (for example text/plain), since folders cannot hold content. Limited to 256 characters. To create larger files or upload binary files, use the google-drive-file-upload command with an entry ID instead. Optional
supports_all_drives Whether the requesting application supports both My Drives and shared drives. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
GoogleDrive.File.id String The ID of the created file or folder.
GoogleDrive.File.name String The name of the created file or folder.
GoogleDrive.File.mimeType String The MIME type of the created file or folder.
GoogleDrive.File.parents Unknown The list of parent folder IDs.

Configuration parameters

  • user_service_account_json — User's Service Account JSON
  • user_id — User ID
  • user_creds — User ID
  • action_detail_case_include — Action Detail Case Include
  • drive_item_search_field — Drive Item Search Field
  • drive_item_search_value — Drive Item Search Value
  • isFetch — Fetch alerts
  • incidentType — Alert type
  • max_fetch — Max Incidents
  • incidentFetchInterval — Incidents Fetch Interval
  • first_fetch — First Fetch Time Interval
  • insecure — Trust any certificate (not secure)
  • proxy — Use system proxy settings

Commands (25)

  • get-file-content

    Retrieves a file from Google Drive by its URL and returns it in a generic unified format under the FileContent context key. For Google Workspace files (Docs, Sheets, Slides) the content is exported and returned in 'Content' - text exports inline, binary exports (e.g. PDF) base64-encoded with 'Type' suffixed by ';base64'. The command automatically extracts the file ID from the URL. The maximum supported file size is 5 MB.

  • google-drive-activity-list

    Query past activity in Google Drive.

  • google-drive-changes-list

    Lists the changes for a user or shared drive.

  • google-drive-create Deprecated

    Deprecated. Use the 'google-drive-drive-create' command instead.

  • google-drive-drive-create

    Creates a new Team Drive. The name argument specifies the name of the Team Drive. The specified user will be the first organizer. This shared drive/team drive feature is available only with G Suite Enterprise, Enterprise for Education, G Suite Essentials, Business, Education, and Nonprofits edition.

  • google-drive-drive-delete

    Deletes a shared drive.

  • google-drive-drive-get

    Gets a user shared drives.

  • google-drive-drives-list

    Lists the user's shared drives.

  • google-drive-file-copy

    Make a copy of a Google Drive file.

  • google-drive-file-create

    Creates a new file or folder. By default the file is metadata-only, which is useful for creating quarantine folders or tombstone placeholder files. Provide the `content` argument to also write text content into the created file.

  • google-drive-file-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. If the target is a folder, all descendants owned by the user are also deleted. When the soft_delete argument is set to "true", the file is moved to Trash instead of being permanently deleted.

  • google-drive-file-download

    Download a single file.

  • google-drive-file-get

    Get a single file.

  • google-drive-file-get-parents

    Get parents of a Google Drive file.

  • google-drive-file-modify-label

    Modify labels to file.

  • google-drive-file-move

    Moves a file from one folder to another by modifying its parent folder references. Used for quarantine workflows.

  • google-drive-file-permission-create

    Creates a permission for a file or shared drive.

  • google-drive-file-permission-delete

    Deletes a permission. When the ignore_not_found argument is set to "true", a Not Found response from the vendor is treated as success and surfaced via the alreadyRemoved output, which is useful inside loops over a previously-listed permission set.

  • google-drive-file-permission-update

    Updates a permission with patch semantics.

  • google-drive-file-permissions-list

    Lists a file's or shared drive's permissions.

  • google-drive-file-replace-existing

    Updates a file's content.

  • google-drive-file-upload

    Creates a new file.

  • google-drive-files-list

    Lists the user's shared drives.

  • google-drive-get-file-labels

    Modify labels to file.

  • google-drive-get-labels

    Google Drive get labels.

name: GoogleDriveStandardConnector
category: IT Services
provider: Google
display: Google Drive (Standard Connector)
sectionorder:
- Connect
- Collect
configuration:
- name: user_service_account_json
  display: User's Service Account JSON
  defaultvalue:
  type: 4
  section: Connect
  additionalinfo:
  hidden: true
  required: false
- name: user_id
  display: User ID
  defaultvalue:
  type: 0
  section: Connect
  advanced: true
  additionalinfo: The primary email address of the user to fetch the incident(s).
  hidden: true
  required: false
- name: user_creds
  display: User ID
  type: 9
  section: Connect
  displaypassword: User's Service Account JSON
  required: false
- name: action_detail_case_include
  display: Action Detail Case Include
  defaultvalue:
  type: 16
  section: Collect
  advanced: true
  additionalinfo: Action types to include for fetching the incident.
  options:
  - CREATE
  - EDIT
  - MOVE
  - RENAME
  - DELETE
  - RESTORE
  - COMMENT
  - REFERENCE
  required: false
- name: drive_item_search_field
  display: Drive Item Search Field
  defaultvalue:
  type: 15
  section: Collect
  advanced: true
  additionalinfo: itemName - Fetch activities for this drive item. The format is "items/ITEM_ID". folderName - Fetch activities for this drive folder and all children and descendants. The format is "items/ITEM_ID".
  options:
  - itemName
  - folderName
  required: false
- name: drive_item_search_value
  display: Drive Item Search Value
  type: 0
  section: Collect
  defaultvalue:
  advanced: true
  additionalinfo: itemName or folderName for fetching the incident.
  required: false
- display: Fetch alerts
  name: isFetch
  type: 8
  section: Collect
  required: false
- name: incidentType
  display: Alert type
  type: 13
  required: false
  section: Collect
- name: max_fetch
  display: Max Incidents
  defaultvalue: 50
  type: 0
  section: Collect
  additionalinfo: The maximum number of incidents to fetch each time.
  required: false
- display: Incidents Fetch Interval
  name: incidentFetchInterval
  type: 19
  section: Collect
  required: false
- name: first_fetch
  display: First Fetch Time Interval
  type: 0
  section: Collect
  advanced: true
  additionalinfo: The time range to consider for the initial data fetch in the format <number> <unit> e.g., 1 hour, 2 hours, 6 hours, 12 hours, 24 hours, 48 hours.
  defaultvalue: 10 minutes
  required: false
- name: insecure
  display: Trust any certificate (not secure)
  type: 8
  section: Connect
  advanced: true
  additionalinfo:
  required: false
- name: proxy
  display: Use system proxy settings
  type: 8
  section: Connect
  advanced: true
  additionalinfo:
  required: false
description: 'This integration is configured automatically as part of the Google Drive Standard Connector. Do not configure this integration directly  set it up from the connector page instead.'
script:
  commands:
  - arguments:
    - description: The user's primary email address.
      name: user_id
    - description: The name of this shared drive.
      name: name
      required: true
    - auto: PREDEFINED
      description: 'Whether the shared drive is hidden from the default view.'
      name: hidden
      predefined:
      - "True"
      - "False"
    description: >-
      Deprecated. Use the 'google-drive-drive-create' command instead.
    name: google-drive-create
    deprecated: true
    outputs:
    - contextPath: GoogleDrive.Drive.kind
      description: Identifies what kind of resource this is.
      type: String
    - contextPath: GoogleDrive.Drive.id
      description: The ID of the shared drive which is also the ID of the top level folder of the shared drive.
      type: String
    - contextPath: GoogleDrive.Drive.name
      description: The name of the shared drive.
      type: String
    - contextPath: GoogleDrive.Drive.hidden
      description: Whether the shared drive is hidden from the default view.
      type: Boolean
  - arguments:
    - description: The user's primary email address.
      name: user_id
    - description: The name of this shared drive.
      name: name
      required: true
    - auto: PREDEFINED
      description: 'Whether the shared drive is hidden from the default view.'
      name: hidden
      predefined:
      - "True"
      - "False"
    description: >-
      Creates a new Team Drive. The name argument specifies the name of the
      Team Drive. The specified user will be the first organizer.

      This shared drive/team drive feature is available only with G Suite Enterprise,
      Enterprise for Education, G Suite Essentials, Business, Education, and Nonprofits
      edition.
    name: google-drive-drive-create
    outputs:
    - contextPath: GoogleDrive.Drive.kind
      description: Identifies what kind of resource this is.
      type: String
    - contextPath: GoogleDrive.Drive.id
      description: The ID of the shared drive which is also the ID of the top level folder of the shared drive.
      type: String
    - contextPath: GoogleDrive.Drive.name
      description: The name of the shared drive.
      type: String
    - contextPath: GoogleDrive.Drive.hidden
      description: Whether the shared drive is hidden from the default view.
      type: Boolean
  - arguments:
    - description: The token for continuing a previous list request on the next page.
      name: page_token
      required: true
    - description: The user's primary email address.
      name: user_id
    - description: The shared drive from which changes are returned. Can be retrieved using the `google-drive-drives-list` command.
      name: drive_id
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.'
      name: include_corpus_removals
      predefined:
      - "true"
      - "false"
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether both My Drive and shared drive items should be included in the results.'
      name: include_items_from_all_drives
      predefined:
      - "true"
      - "false"
    - description: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
      name: include_permissions_for_view
    - auto: PREDEFINED
      defaultValue: "true"
      description: 'Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.'
      name: include_removed
      predefined:
      - "true"
      - "false"
    - defaultValue: 100
      description: The maximum number of changes to return per page. Acceptable values are 1 to 1000, inclusive.
      name: page_size
    - auto: PREDEFINED
      defaultValue: "false"
      description: '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.'
      name: restrict_to_my_drive
      predefined:
      - "true"
      - "false"
    - description: A comma-separated list of spaces to query within the user corpus. Possible values are 'drive', 'appDataFolder', and 'photos'.
      name: spaces
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether the requesting application supports both My Drives and shared drives.'
      name: supports_all_drives
      predefined:
      - "true"
      - "false"
    - auto: PREDEFINED
      defaultValue: basic
      description: 'The paths of the fields you want to include in the response. Possible values are: "basic" (the response will include a default set of fields specific to this method) and "advance" (you can use the value * to return all the fields).'
      name: fields
      predefined:
      - basic
      - advance
    description: Lists the changes for a user or shared drive.
    name: google-drive-changes-list
    outputs:
    - contextPath: GoogleDrive.PageToken.DriveChange.nextPageToken
      description: The page token for the next page of changes.
      type: String
    - contextPath: GoogleDrive.PageToken.DriveChange.newStartPageToken
      description: The starting page token for future changes.
      type: String
    - contextPath: GoogleDrive.PageToken.DriveChange.driveId
      description: The ID of the shared drive associated with this change.
      type: String
    - contextPath: GoogleDrive.PageToken.DriveChange.userId
      description: The user's primary email address.
      type: String
    - contextPath: GoogleDrive.DriveChange.userId
      description: The user's primary email address.
      type: String
    - contextPath: GoogleDrive.DriveChange.kind
      description: Identifies what kind of resource this is.
      type: String
    - contextPath: GoogleDrive.DriveChange.changeType
      description: The type of the change. Possible values are "file" and "drive".
      type: String
    - contextPath: GoogleDrive.DriveChange.time
      description: The time of this change (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.DriveChange.removed
      description: Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.fileId
      description: The ID of the file which has changed.
      type: String
    - contextPath: GoogleDrive.DriveChange.driveId
      description: The ID of the shared drive associated with this change.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.kind
      description: Identifies what kind of resource this is.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.id
      description: The ID of the file.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.name
      description: The name of the file.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.mimeType
      description: The MIME type of the file.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.description
      description: A short description of the file.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.starred
      description: Whether the user has starred the file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.trashed
      description: Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.explicitlyTrashed
      description: Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.trashingUser.kind
      description: Identifies what kind of resource this is.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.trashingUser.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.trashingUser.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.trashingUser.me
      description: Whether this user is the requesting user.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.trashingUser.permissionId
      description: The user's ID as visible in Permission resources.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.trashingUser.emailAddress
      description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.trashedTime
      description: The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
      type: Date
    - contextPath: GoogleDrive.DriveChange.file.parents
      description: The IDs of the parent folders which contain the file.
      type: Unknown
    - contextPath: GoogleDrive.DriveChange.file.properties
      description: A collection of arbitrary key-value pairs which are visible to all apps.
      type: Unknown
    - contextPath: GoogleDrive.DriveChange.file.appProperties
      description: A collection of arbitrary key-value pairs which are private to the requesting app.
      type: Unknown
    - contextPath: GoogleDrive.DriveChange.file.spaces
      description: The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
      type: Unknown
    - contextPath: GoogleDrive.DriveChange.file.version
      description: A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.webContentLink
      description: A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.webViewLink
      description: A link for opening the file in a relevant Google editor or viewer in a browser.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.iconLink
      description: A static, unauthenticated link to the file's icon.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.hasThumbnail
      description: Whether this file has a thumbnail.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.thumbnailLink
      description: A short-lived link to the file's thumbnail, if available.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.thumbnailVersion
      description: The thumbnail version for use in thumbnail cache invalidation.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.viewedByMe
      description: Whether the file has been viewed by this user.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.viewedByMeTime
      description: The last time the file was viewed by the user (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.DriveChange.file.createdTime
      description: The time at which the file was created (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.DriveChange.file.modifiedTime
      description: The last time the file was modified by anyone (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.DriveChange.file.modifiedByMeTime
      description: The last time the file was modified by the user (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.DriveChange.file.modifiedByMe
      description: Whether the file has been modified by the user.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.sharedWithMeTime
      description: The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.DriveChange.file.sharingUser.kind
      description: Identifies what kind of resource this is.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.sharingUser.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.sharingUser.photoLink
      description: A link to the user's profile photo, if available.
      type: Date
    - contextPath: GoogleDrive.DriveChange.file.sharingUser.me
      description: Whether this user is the requesting user.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.sharingUser.permissionId
      description: The user's ID as visible in Permission resources.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.sharingUser.emailAddress
      description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.owners.kind
      description: Identifies what kind of resource this is.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.owners.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.owners.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.owners.me
      description: Whether this user is the requesting user.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.owners.permissionId
      description: The user's ID as visible in Permission resources.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.owners.emailAddress
      description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.driveId
      description: ID of the shared drive the file resides in. Only populated for items in shared drives.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.lastModifyingUser.kind
      description: Identifies what kind of resource this is.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.lastModifyingUser.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.lastModifyingUser.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.lastModifyingUser.me
      description: Whether this user is the requesting user.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.lastModifyingUser.permissionId
      description: The user's ID as visible in Permission resources.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.lastModifyingUser.emailAddress
      description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.shared
      description: Whether the file has been shared. Not populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.ownedByMe
      description: Whether the user owns the file. Not populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canAddChildren
      description: Whether the current user can add children to this folder. This is always false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canAddFolderFromAnotherDrive
      description: Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canAddMyDriveParent
      description: Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canChangeCopyRequiresWriterPermission
      description: Whether the current user can change the 'copy requires writer permission' restriction of this file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canComment
      description: Whether the current user can comment on this file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canCopy
      description: Whether the current user can copy this file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canDelete
      description: Whether the current user can delete this file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canDeleteChildren
      description: Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canDownload
      description: Whether the current user can download this file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canEdit
      description: Whether the current user can edit this file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canListChildren
      description: Whether the current user can list the children of this folder. This is always false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canModifyContent
      description: Whether the current user can modify the content of this file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canModifyContentRestriction
      description: Whether the current user can modify restrictions on content of this file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canMoveChildrenOutOfDrive
      description: Whether the current user can move children of this folder outside of the shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canMoveChildrenWithinDrive
      description: Whether the current user can move children of this folder within this drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canMoveItemOutOfDrive
      description: Whether the current user can move this item outside of this drive by changing its parent.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canMoveItemWithinDrive
      description: Whether the current user can move this item within this drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canReadRevisions
      description: Whether the current user can read the revisions resource of this file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canReadDrive
      description: Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canRemoveChildren
      description: Whether the current user can remove children from this folder.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canRemoveMyDriveParent
      description: Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canRename
      description: Whether the current user can rename this file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canShare
      description: Whether the current user can modify the sharing settings for this file.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canTrash
      description: Whether the current user can move this file to trash.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canTrashChildren
      description: Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.capabilities.canUntrash
      description: Whether the current user can restore this file from trash.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.copyRequiresWriterPermission
      description: Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.writersCanShare
      description: Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.permissions.kind
      description: Identifies what kind of resource this is.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.id
      description: The ID of this permission.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.type
      description: The type of the grantee.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.emailAddress
      description: The email address of the user or group to which this permission refers.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.domain
      description: The domain to which this permission refers.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.role
      description: The role granted by this permission.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.view
      description: Indicates the view for this permission.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.allowFileDiscovery
      description: Whether the permission allows the file to be discovered through search.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.permissions.displayName
      description: The "pretty" name of the value of the permission.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.expirationTime
      description: The time at which this permission will expire (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.DriveChange.file.permissions.permissionDetails.permissionType
      description: The permission type for this user.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.permissionDetails.role
      description: The primary role for this user.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.permissionDetails.inheritedFrom
      description: The ID of the item from which this permission is inherited.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.permissions.permissionDetails.inherited
      description: Whether this permission is inherited.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.permissions.deleted
      description: Whether the account associated with this permission has been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.permissionIds
      description: List of permission IDs for users with access to this file.
      type: Unknown
    - contextPath: GoogleDrive.DriveChange.file.hasAugmentedPermissions
      description: Whether there are permissions directly on this file. This field is only populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.folderColorRgb
      description: The color for a folder as an RGB hex string.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.originalFilename
      description: The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.fullFileExtension
      description: The full file extension extracted from the name field.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.fileExtension
      description: The final component of fullFileExtension. This is only available for files with binary content in Google Drive.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.md5Checksum
      description: The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.size
      description: The size of the file's content in bytes. This is only applicable to files with binary content in Google Drive.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.quotaBytesUsed
      description: The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.headRevisionId
      description: The ID of the file's head revision. This is currently only available for files with binary content in Google Drive.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.contentHints.thumbnail.image
      description: The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
      type: Unknown
    - contextPath: GoogleDrive.DriveChange.file.contentHints.thumbnail.mimeType
      description: The MIME type of the thumbnail.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.contentHints.indexableText
      description: Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.width
      description: The width of the image in pixels.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.height
      description: The height of the image in pixels.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.rotation
      description: The number of clockwise 90 degree rotations applied from the image's original orientation.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.location.latitude
      description: The latitude stored in the image.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.location.longitude
      description: The longitude stored in the image.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.location.altitude
      description: The altitude stored in the image.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.time
      description: The date and time the photo was taken (EXIF DateTime).
      type: String
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.cameraMake
      description: The make of the camera used to create the photo.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.cameraModel
      description: The model of the camera used to create the photo.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.exposureTime
      description: The length of the exposure, in seconds.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.aperture
      description: The aperture used to create the photo (f-number).
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.flashUsed
      description: Whether a flash was used to create the photo.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.focalLength
      description: The focal length used to create the photo, in millimeters.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.isoSpeed
      description: The ISO speed used to create the photo.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.meteringMode
      description: The metering mode used to create the photo.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.sensor
      description: The type of sensor used to create the photo.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.exposureMode
      description: The exposure mode used to create the photo.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.colorSpace
      description: The color space of the photo.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.whiteBalance
      description: The white balance mode used to create the photo.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.exposureBias
      description: The exposure bias of the photo (APEX value).
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.maxApertureValue
      description: The smallest f-number of the lens at the focal length used to create the photo (APEX value).
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.subjectDistance
      description: The distance to the subject of the photo, in meters.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.lens
      description: The lens used to create the photo.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.videoMediaMetadata.width
      description: The width of the video in pixels.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.videoMediaMetadata.height
      description: The height of the video in pixels.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.videoMediaMetadata.durationMillis
      description: The duration of the video in milliseconds.
      type: Number
    - contextPath: GoogleDrive.DriveChange.file.isAppAuthorized
      description: Whether the file was created or opened by the requesting app.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.exportLinks
      description: Links for exporting Google Docs to specific formats.
      type: Unknown
    - contextPath: GoogleDrive.DriveChange.file.shortcutDetails.targetId
      description: The ID of the file that this shortcut points to.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.shortcutDetails.targetMimeType
      description: The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.readOnly
      description: Whether the content of the file is read-only.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.reason
      description: Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.kind
      description: Identifies what kind of resource this is.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.me
      description: Whether this user is the requesting user.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.permissionId
      description: The user's ID as visible in Permission resources.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.emailAddress
      description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      type: String
    - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.restrictionTime
      description: The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
      type: Date
    - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.type
      description: The type of the content restriction. Currently the only possible value is globalContentRestriction.
      type: String
    - contextPath: GoogleDrive.DriveChange.drive.kind
      description: Identifies what kind of resource this is.
      type: String
    - contextPath: GoogleDrive.DriveChange.drive.id
      description: The ID of this shared drive which is also the ID of the top level folder of this shared drive.
      type: String
    - contextPath: GoogleDrive.DriveChange.drive.name
      description: The name of this shared drive.
      type: String
    - contextPath: GoogleDrive.DriveChange.drive.themeId
      description: The ID of the theme from which the background image and color will be set.
      type: String
    - contextPath: GoogleDrive.DriveChange.drive.colorRgb
      description: The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId.
      type: String
    - contextPath: GoogleDrive.DriveChange.drive.backgroundImageFile.id
      description: The ID of an image file in Google Drive to use for the background image.
      type: String
    - contextPath: GoogleDrive.DriveChange.drive.backgroundImageFile.xCoordinate
      description: The X coordinate of the upper left corner of the cropping area in the background image.
      type: Number
    - contextPath: GoogleDrive.DriveChange.drive.backgroundImageFile.yCoordinate
      description: The Y coordinate of the upper left corner of the cropping area in the background image.
      type: Number
    - contextPath: GoogleDrive.DriveChange.drive.backgroundImageFile.width
      description: The width of the cropped image in the closed range of 0 to 1.
      type: Number
    - contextPath: GoogleDrive.DriveChange.drive.backgroundImageLink
      description: A short-lived link to this shared drive's background image.
      type: String
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canAddChildren
      description: Whether the current user can add children to folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canChangeCopyRequiresWriterPermissionRestriction
      description: Whether the current user can change the 'copy requires writer permission' restriction of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canChangeDomainUsersOnlyRestriction
      description: Whether the current user can change the 'domain users only' restriction of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canChangeDriveBackground
      description: Whether the current user can change the background of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canChangeDriveMembersOnlyRestriction
      description: Whether the current user can change the 'drive members only' restriction of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canComment
      description: Whether the current user can comment on files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canCopy
      description: Whether the current user can copy files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canDeleteChildren
      description: Whether the current user can delete children from folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canDeleteDrive
      description: Whether the current user can delete this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canDownload
      description: Whether the current user can download files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canEdit
      description: Whether the current user can edit files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canListChildren
      description: Whether the current user can list the children of folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canManageMembers
      description: Whether the current user can add members to this shared drive or remove them or change their role.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canReadRevisions
      description: Whether the current user can read the revisions resource of files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canRename
      description: Whether the current user can rename files or folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canRenameDrive
      description: Whether the current user can rename this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canShare
      description: Whether the current user can share files or folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.capabilities.canTrashChildren
      description: Whether the current user can trash children from folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.createdTime
      description: The time at which the shared drive was created (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.DriveChange.drive.hidden
      description: Whether the shared drive is hidden from the default view.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.restrictions.adminManagedRestrictions
      description: Whether administrative privileges on this shared drive are required to modify restrictions.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.restrictions.copyRequiresWriterPermission
      description: Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.restrictions.domainUsersOnly
      description: Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs.
      type: Boolean
    - contextPath: GoogleDrive.DriveChange.drive.restrictions.driveMembersOnly
      description: Whether access to items inside this shared drive is restricted to its members.
      type: Boolean
  - arguments:
    - description: The user's primary email address.
      name: user_id
    - description: Return activities for this drive folder and all children and descendants. The format is "items/ITEM_ID".
      name: folder_name
    - description: Return activities for this drive item. The format is "items/ITEM_ID".
      name: item_name
    - description: >-
        The filtering for items returned from this query request. The format of the filter string is a sequence of expressions, joined by an optional "AND", where each expression is of the form "field operator value".


        Supported fields:

        time - Uses numerical operators on date values either in terms of milliseconds since Jan 1, 1970 or in RFC 3339 format.

        Examples:

        time > 1452409200000 AND time <= 1492812924310

        time >= "2016-01-10T01:02:03-05:00"


        detail.action_detail_case - Uses the "has" operator (:) and either a singular value or a list of allowed action types enclosed in parentheses.

        Examples:

        detail.action_detail_case: RENAME

        detail.action_detail_case:(CREATE EDIT)

        -detail.action_detail_case:MOVE".
      name: filter
    - description: >-
        The time range to consider for getting drive activity. Use the
        format "<number> <time unit>".

        Example: 12 hours, 7 days, 3 months, 1 year. This argument will override if
        the filter argument is given.
      name: time_range
    - description: >-
        A singular value or a list of allowed action types enclosed in
        parentheses. The filters are based on given actions. For example:

        RENAME

        (CREATE EDIT)

        This argument will override if the filter argument is given.
      name: action_detail_case_include
    - description: >-
        A singular value or a list of allowed action types enclosed in
        parentheses. The filters are based on given actions. For example:

        RENAME

        (CREATE EDIT)

        This argument will override if the filter argument is given.
      name: action_detail_case_remove
    - description: The token identifying which page of results to return. Set this to the nextPageToken value returned from a previous query to obtain the following page of results. If not set, the first page of results will be returned.
      name: page_token
    description: Query past activity in Google Drive.
    name: google-drive-activity-list
    outputs:
    - contextPath: GoogleDrive.PageToken.DriveActivity.nextPageToken
      description: Token to retrieve the next page of results, or empty if there are no more results in the list.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.create.new
      description: If true, the object was newly created.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.create.upload
      description: If true, the object originated externally and was uploaded to Drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.driveItem.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.driveItem.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.driveItem.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.driveItem.driveFolder.type
      description: The type of Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.create.copy.originalObject.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.edit
      description: If true, the object was edited.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.driveItem.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.driveItem.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.driveItem.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.driveItem.driveFolder.type
      description: The type of a Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.addedParents.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.driveItem.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.driveItem.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.driveItem.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.driveItem.driveFolder.type
      description: The type of Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.move.removedParents.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.rename.oldTitle
      description: The previous title of the drive object.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.rename.newTitle
      description: The new title of the drive object.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.delete.type
      description: The type of delete action taken.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.restore.type
      description: The type of restore action taken.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.role
      description: Indicates the Google Drive permissions role.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.allowDiscovery
      description: If true, the item can be discovered (e.g., in the user's "Shared with me" collection) without needing a link to the item.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.group.email
      description: The email address of the group.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.group.title
      description: The title of the group.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.domain.name
      description: The name of the domain, e.g., "google.com".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.domain.legacyId
      description: An opaque string used to identify this domain.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.anyone
      description: If true, represents any user (including a logged out user).
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.role
      description: Indicates the Google Drive permissions role.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.allowDiscovery
      description: If true, the item can be discovered (e.g., in the user's "Shared with me" collection) without needing a link to the item.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.group.email
      description: The email address of the group.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.group.title
      description: The title of the group.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.domain.name
      description: The name of the domain, e.g., "google.com".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.domain.legacyId
      description: An opaque string used to identify this domain.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.anyone
      description: If true, represents any user (including a logged out user).
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.mentionedUsers.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.mentionedUsers.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.mentionedUsers.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.mentionedUsers.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.post.subtype
      description: The sub-type of post event.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.subtype
      description: The sub-type of assignment event.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.assignedUser.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.assignedUser.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.assignedUser.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.assignedUser.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.suggestion.subtype
      description: The sub-type of suggestion event.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.dlpChange.type
      description: The type of Data Leak Prevention (DLP) change.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.reference.type
      description: The reference type corresponding to this event.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.settingsChange.restrictionChanges.feature
      description: The feature which had a change in restriction policy.
      type: String
    - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.settingsChange.restrictionChanges.newRestriction
      description: The restriction in place after the change.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actors.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actors.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actors.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actors.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actors.anonymous
      description: If true, the user is an anonymous user.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actors.impersonation.impersonatedUser.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actors.impersonation.impersonatedUser.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actors.impersonation.impersonatedUser.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actors.impersonation.impersonatedUser.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actors.system.type
      description: The type of the system event that may triggered activity.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actors.administrator
      description: If true, the user is an administrator.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.create.new
      description: If true, the object was newly created.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.create.upload
      description: If true, the object originated externally and was uploaded to Drive.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.driveItem.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.driveItem.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.driveItem.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.driveItem.driveFolder.type
      description: The type of Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.create.copy.originalObject.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.edit
      description: If true, the object was edited.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.addedParents.driveItem.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.addedParents.driveItem.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.addedParents.driveItem.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.addedParents.driveItem.driveFolder.type
      description: The type of a Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.addedParents.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.addedParents.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.removedParents.driveItem.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.removedParents.driveItem.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.removedParents.driveItem.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.removedParents.driveItem.driveFolder.type
      description: The type of Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.removedParents.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.move.removedParents.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.rename.oldTitle
      description: The previous title of the drive object.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.rename.newTitle
      description: The new title of the drive object.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.delete.type
      description: The type of delete action taken.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.restore.type
      description: The type of restore action taken.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.role
      description: Indicates the Google Drive permissions role.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.allowDiscovery
      description: If true, the item can be discovered (e.g., in the user's "Shared with me" collection) without needing a link to the item.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.group.email
      description: The email address of the group.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.group.title
      description: The title of the group.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.domain.name
      description: The name of the domain, e.g., "google.com".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.domain.legacyId
      description: An opaque string used to identify this domain.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.anyone
      description: If true, represents any user (including a logged out user).
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.role
      description: Indicates the Google Drive permissions role.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.allowDiscovery
      description: If true, the item can be discovered (e.g., in the user's "Shared with me" collection) without needing a link to the item.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.group.email
      description: The email address of the group.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.group.title
      description: The title of the group.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.domain.name
      description: The name of the domain, e.g., "google.com".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.domain.legacyId
      description: An opaque string used to identify this domain.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.anyone
      description: If true, represents any user (including a logged out user).
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.mentionedUsers.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.mentionedUsers.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.mentionedUsers.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.mentionedUsers.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.post.subtype
      description: The sub-type of post event.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.assignment.subtype
      description: The sub-type of assignment event.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.assignment.assignedUser.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.assignment.assignedUser.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.assignment.assignedUser.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.assignment.assignedUser.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.suggestion.subtype
      description: The sub-type of suggestion event.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.dlpChange.type
      description: The type of Data Leak Prevention (DLP) change.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.reference.type
      description: The reference type corresponding to this event.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.settingsChange.restrictionChanges.feature
      description: The feature which had a change in restriction policy.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.detail.settingsChange.restrictionChanges.newRestriction
      description: The restriction in place after the change.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.actor.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.actor.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.actor.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.actor.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.actor.anonymous
      description: If true, the user is an anonymous user.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.actor.impersonation.impersonatedUser.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.actor.impersonation.impersonatedUser.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.actor.impersonation.impersonatedUser.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.actor.impersonation.impersonatedUser.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.actor.system.type
      description: The type of the system event that may triggered activity.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.actor.administrator
      description: If true, the user is an administrator.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.mimeType
      description: The MIME type of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.owner.domain.name
      description: The name of the domain, e.g., "google.com".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.owner.domain.legacyId
      description: An opaque string used to identify this domain.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.owner.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.owner.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.owner.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.owner.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.owner.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.owner.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.driveFolder.type
      description: The type of Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.mimeType
      description: The MIME type of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.owner.domain.name
      description: The name of the domain, e.g., "google.com".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.owner.domain.legacyId
      description: An opaque string used to identify this domain.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.owner.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.owner.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.owner.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.owner.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.owner.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.owner.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.driveFolder.type
      description: The type of Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.legacyCommentId
      description: The comment in the discussion thread.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.legacyDiscussionId
      description: The discussion thread to which the comment was added.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.linkToDiscussion
      description: The link to the discussion thread containing this comment, for example, "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.mimeType
      description: The MIME type of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.domain.name
      description: The name of the domain, e.g., "google.com".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.domain.legacyId
      description: An opaque string used to identify this domain.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.driveFolder.type
      description: The type of Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.timestamp
      description: The activity occurred at this specific time.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.timeRange.startTime
      description: The start of the time range.
      type: String
    - contextPath: GoogleDrive.DriveActivity.actions.timeRange.endTime
      description: The end of the time range.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.mimeType
      description: The MIME type of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.owner.domain.name
      description: The name of the domain, e.g., "google.com".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.owner.domain.legacyId
      description: An opaque string used to identify this domain.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.owner.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.owner.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.owner.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.owner.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.owner.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.owner.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.driveItem.driveFolder.type
      description: The type of Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.mimeType
      description: The MIME type of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.owner.domain.name
      description: The name of the domain, e.g., "google.com".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.owner.domain.legacyId
      description: An opaque string used to identify this domain.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.owner.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.owner.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.owner.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.owner.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.owner.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.owner.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.drive.root.driveFolder.type
      description: The type of Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.legacyCommentId
      description: The comment in the discussion thread.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.legacyDiscussionId
      description: The discussion thread to which the comment was added.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.linkToDiscussion
      description: The link to the discussion thread containing this comment, for example, "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.name
      description: The target Drive item. The format is "items/ITEM_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.title
      description: The title of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.mimeType
      description: The MIME type of the Drive item.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.owner.domain.name
      description: The name of the domain, e.g., "google.com".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.owner.domain.legacyId
      description: An opaque string used to identify this domain.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.owner.user.knownUser.personName
      description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.owner.user.knownUser.isCurrentUser
      description: True if this is the user making the request.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.owner.user.deletedUser
      description: If true, a user whose account has since been deleted.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.owner.user.unknownUser
      description: If true, a user about whom nothing is currently known.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.owner.drive.name
      description: The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.owner.drive.title
      description: The title of the shared drive.
      type: String
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.driveFile
      description: If true, the Drive item is a file.
      type: Boolean
    - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.driveFolder.type
      description: The type of Drive folder.
      type: String
    - contextPath: GoogleDrive.DriveActivity.timestamp
      description: The activity occurred at this specific time.
      type: String
    - contextPath: GoogleDrive.DriveActivity.timeRange.startTime
      description: The start of the time range.
      type: String
    - contextPath: GoogleDrive.DriveActivity.timeRange.endTime
      description: The end of the time range.
      type: String
  - name: google-drive-drives-list
    description: Lists the user's shared drives.
    arguments:
    - name: page_size
      description: "Maximum number of shared drives to return. Acceptable values are 1 to 100, inclusive."
      defaultValue: "100"
    - name: page_token
      description: Page token for shared drives.
    - name: query
      description: Query string for searching shared drives.
    - auto: PREDEFINED
      defaultValue: "false"
      name: use_domain_admin_access
      description: "Issue the request as a domain administrator. If set to true, all shared drives of the domain in which the requester is an administrator are returned."
      predefined:
      - "true"
      - "false"
    - name: user_id
      description: The user's primary email address.
    outputs:
    - contextPath: GoogleDrive.Drive.Drive.id
      description: The ID of this shared drive which is also the ID of the top level folder of this shared drive.
      type: String
    - contextPath: GoogleDrive.Drive.Drive.name
      description: The name of this shared drive.
      type: String
    - contextPath: GoogleDrive.Drive.Drive.colorRgb
      description: The color of this shared drive as an RGB hex string.
      type: String
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canAddChildren
      description: Whether the current user can add children to folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeCopyRequiresWriterPermissionRestriction
      description: Whether the current user can change the 'copy requires writer permission' restriction of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDomainUsersOnlyRestriction
      description: Whether the current user can change the 'domain users only' restriction of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDriveBackground
      description: Whether the current user can change the background of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDriveMembersOnlyRestriction
      description: Whether the current user can change the 'drive members only' restriction of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canComment
      description: Whether the current user can comment on files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canCopy
      description: Whether the current user can copy files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canDeleteChildren
      description: Whether the current user can delete children from folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canDeleteDrive
      description: Whether the current user can delete this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canDownload
      description: Whether the current user can download files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canEdit
      description: Whether the current user can edit files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canListChildren
      description: Whether the current user can list the children of folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canManageMembers
      description: Whether the current user can add members to this shared drive or remove them or change their role.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canReadRevisions
      description: Whether the current user can read the revisions resource of files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canRename
      description: Whether the current user can rename files or folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canRenameDrive
      description: Whether the current user can rename this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canShare
      description: Whether the current user can share files or folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canTrashChildren
      description: Whether the current user can trash children from folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.createdTime
      description: The time at which the shared drive was created (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.Drive.Drive.hidden
      description: Whether the shared drive is hidden from the default view.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.restrictions.adminManagedRestrictions
      description: Whether administrative privileges on this shared drive are required to modify restrictions.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.restrictions.copyRequiresWriterPermission
      description: Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.restrictions.domainUsersOnly
      description: Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.restrictions.driveMembersOnly
      description: Whether access to items inside this shared drive is restricted to its members.
      type: Boolean
  - name: google-drive-drive-get
    description: Gets a user shared drives.
    arguments:
    - auto: PREDEFINED
      defaultValue: "false"
      name: use_domain_admin_access
      description: "Issue the request as a domain administrator. If set to true, all shared drives of the domain in which the requester is an administrator are returned."
      predefined:
      - "true"
      - "false"
    - name: user_id
      description: The user's primary email address.
    - name: drive_id
      description: ID of the shared drive. Can be retrieved using the `google-drive-drives-list` command.
    - name: fields
      description: The fields you want included in the response.
      defaultValue: kind, id, name, themeId, capabilities, createdTime, hidden, restrictions
    outputs:
    - contextPath: GoogleDrive.Drive.Drive.id
      description: The ID of this shared drive which is also the ID of the top level folder of this shared drive.
      type: String
    - contextPath: GoogleDrive.Drive.Drive.name
      description: The name of this shared drive.
      type: String
    - contextPath: GoogleDrive.Drive.Drive.colorRgb
      description: The color of this shared drive as an RGB hex string.
      type: String
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canAddChildren
      description: Whether the current user can add children to folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeCopyRequiresWriterPermissionRestriction
      description: Whether the current user can change the 'copy requires writer permission' restriction of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDomainUsersOnlyRestriction
      description: Whether the current user can change the 'domain users only' restriction of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDriveBackground
      description: Whether the current user can change the background of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDriveMembersOnlyRestriction
      description: Whether the current user can change the 'drive members only' restriction of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canComment
      description: Whether the current user can comment on files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canCopy
      description: Whether the current user can copy files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canDeleteChildren
      description: Whether the current user can delete children from folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canDeleteDrive
      description: Whether the current user can delete this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canDownload
      description: Whether the current user can download files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canEdit
      description: Whether the current user can edit files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canListChildren
      description: Whether the current user can list the children of folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canManageMembers
      description: Whether the current user can add members to this shared drive or remove them or change their role.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canReadRevisions
      description: Whether the current user can read the revisions resource of files in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canRename
      description: Whether the current user can rename files or folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canRenameDrive
      description: Whether the current user can rename this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canShare
      description: Whether the current user can share files or folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.capabilities.canTrashChildren
      description: Whether the current user can trash children from folders in this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.createdTime
      description: The time at which the shared drive was created (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.Drive.Drive.hidden
      description: Whether the shared drive is hidden from the default view.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.restrictions.adminManagedRestrictions
      description: Whether administrative privileges on this shared drive are required to modify restrictions.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.restrictions.copyRequiresWriterPermission
      description: Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.restrictions.domainUsersOnly
      description: Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
      type: Boolean
    - contextPath: GoogleDrive.Drive.Drive.restrictions.driveMembersOnly
      description: Whether access to items inside this shared drive is restricted to its members.
      type: Boolean
  - name: google-drive-drive-delete
    description: Deletes a shared drive.
    arguments:
    - auto: PREDEFINED
      defaultValue: "false"
      name: use_domain_admin_access
      description: 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.
      predefined:
      - "true"
      - "false"
    - auto: PREDEFINED
      defaultValue: "false"
      name: allow_item_deletion
      description: "Whether any items inside the shared drive should also be deleted. This option is only supported when use_domain_admin_access argument is set to true."
      predefined:
      - "true"
      - "false"
    - name: user_id
      description: The user's primary email address.
    - name: drive_id
      required: true
      description: The ID of the shared drive to delete. Can be retrieved using the `google-drive-drives-list` command.
  - name: google-drive-files-list
    description: Lists the user's shared drives.
    arguments:
    - name: page_size
      description: "Maximum number of shared drives to return. Acceptable values are 1 to 100, inclusive."
      defaultValue: "100"
    - name: page_token
      description: Page token for shared drives.
    - name: query
      description: Query string for searching shared drives.
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether both My Drive and shared drive items should be included in the results.'
      name: include_items_from_all_drives
      predefined:
      - "true"
      - "false"
    - name: user_id
      description: The user's primary email address.
    - name: fields
      description: The fields you want included in the response.
      defaultValue: kind, id, name, mimeType, description, starred, trashed, explicitlyTrashed, trashingUser, trashedTime, parents, properties, appProperties, spaces, version, webContentLink, webViewLink, iconLink, hasThumbnail, thumbnailLink, thumbnailVersion, viewedByMe, viewedByMeTime, createdTime, modifiedTime, modifiedByMeTime, modifiedByMe, sharedWithMeTime, sharingUser, owners, teamDriveId, driveId, lastModifyingUser, shared, ownedByMe, capabilities, viewersCanCopyContent, copyRequiresWriterPermission, writersCanShare, permissions, permissionIds, hasAugmentedPermissions, folderColorRgb, originalFilename, fullFileExtension, fileExtension, md5Checksum, size, quotaBytesUsed, headRevisionId, contentHints, isAppAuthorized, exportLinks, shortcutDetails, contentRestrictions, resourceKey, linkShareMetadata
    - auto: PREDEFINED
      description: Whether the requesting application supports both My Drives and shared drives.
      name: supports_all_drives
      defaultValue: "False"
      predefined:
      - "True"
      - "False"
    - auto: PREDEFINED
      description: Files or documents to which the query applies. Prefer 'User' or 'Drive' to 'All Drives' for efficiency. By default, corpora is set to 'User'. However, this can change depending on the filter set through the 'query' argument.
      name: corpora
      defaultValue: "User"
      predefined:
      - "User"
      - "Domain"
      - "Drive"
      - "All Drives"
    - name: drive_id
      description: ID of the shared drive to search. Can be retrieved using the `google-drive-drives-list` command. When a drive ID is specified the value of the corpora argument is automatically set to 'Drive' regardless of its selected value.
    outputs:
    - contextPath: GoogleDrive.File.File.id
      description: The ID of the file.
      type: String
    - contextPath: GoogleDrive.File.File.mimeType
      description: The MIME type of the file.
      type: String
    - contextPath: GoogleDrive.File.File.name
      description: The name of the file. This is not necessarily unique within a folder.
      type: String
    - contextPath: GoogleDrive.File.File.resourceKey
      description: A key needed to access the item via a shared link.
      type: String
  - name: google-drive-file-get
    description: Get a single file.
    arguments:
    - name: file_id
      description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command.
    - name: user_id
      description: The user's primary email address.
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether both My Drive and shared drive items should be included in the results.'
      name: include_items_from_all_drives
      predefined:
      - "true"
      - "false"
    - name: fields
      description: The fields you want included in the response.
      defaultValue: kind, id, name, mimeType, description, starred, trashed, explicitlyTrashed, trashingUser, trashedTime, parents, properties, appProperties, spaces, version, webContentLink, webViewLink, iconLink, hasThumbnail, thumbnailLink, thumbnailVersion, viewedByMe, viewedByMeTime, createdTime, modifiedTime, modifiedByMeTime, modifiedByMe, sharedWithMeTime, sharingUser, owners, teamDriveId, driveId, lastModifyingUser, shared, ownedByMe, capabilities, viewersCanCopyContent, copyRequiresWriterPermission, writersCanShare, permissions, permissionIds, hasAugmentedPermissions, folderColorRgb, originalFilename, fullFileExtension, fileExtension, md5Checksum, size, quotaBytesUsed, headRevisionId, contentHints, isAppAuthorized, exportLinks, shortcutDetails, contentRestrictions, resourceKey, linkShareMetadata
    - auto: PREDEFINED
      description: Whether the requesting application supports both My Drives and shared drives.
      name: supports_all_drives
      defaultValue: "False"
      predefined:
      - "True"
      - "False"
    outputs:
    - contextPath: GoogleDrive.File.File.capabilities.canAddChildren
      description: Whether the current user can add children to this folder. This is always false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canAddMyDriveParent
      description: Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canChangeCopyRequiresWriterPermission
      description: Whether the current user can change the 'copy requires writer permission' restriction of this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canChangeSecurityUpdateEnabled
      description: Whether the current user can change the 'security update enabled' field on link shared metadata.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canComment
      description: Whether the current user can comment on this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canCopy
      description: Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canDelete
      description: Whether the current user can delete this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canDownload
      description: Whether the current user can download this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canEdit
      description: Whether the current user can edit this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canListChildren
      description: Whether the current user can list the children of this folder. This is always false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canModifyContent
      description: Whether the current user can modify the content of this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canMoveChildrenWithinDrive
      description: Whether the current user can move children of this folder within this drive. This is false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canMoveItemOutOfDrive
      description: Whether the current user can move this item outside of this drive by changing its parent.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canMoveItemWithinDrive
      description: Whether the current user can move this item within this drive.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canReadRevisions
      description: Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canRemoveChildren
      description: Whether the current user can remove children from this folder. This is always false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canRemoveMyDriveParent
      description: Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canRename
      description: Whether the current user can rename this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canShare
      description: Whether the current user can modify the sharing settings for this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canTrash
      description: Whether the current user can move this file to trash.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canUntrash
      description: Whether the current user can restore this file from trash.
      type: Boolean
    - contextPath: GoogleDrive.File.File.copyRequiresWriterPermission
      description: Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
      type: Boolean
    - contextPath: GoogleDrive.File.File.createdTime
      description: The time at which the file was created (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.explicitlyTrashed
      description: Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.exportLinks
      description: Links for exporting Docs Editors files to specific formats.
      type: String
    - contextPath: GoogleDrive.File.File.hasThumbnail
      description: Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
      type: Boolean
    - contextPath: GoogleDrive.File.File.iconLink
      description: A static, unauthenticated link to the file's icon.
      type: String
    - contextPath: GoogleDrive.File.File.id
      description: The ID of the file.
      type: String
    - contextPath: GoogleDrive.File.File.isAppAuthorized
      description: Whether the file was created or opened by the requesting app.
      type: Boolean
    - contextPath: GoogleDrive.File.File.lastModifyingUser.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.File.File.lastModifyingUser.emailAddress
      description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      type: String
    - contextPath: GoogleDrive.File.File.lastModifyingUser.me
      description: Whether this user is the requesting user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.lastModifyingUser.permissionId
      description: The user's ID as visible in Permission resources.
      type: String
    - contextPath: GoogleDrive.File.File.lastModifyingUser.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.File.File.linkShareMetadata.securityUpdateEligible
      description: Whether the file is eligible for a security update.
      type: Boolean
    - contextPath: GoogleDrive.File.File.linkShareMetadata.securityUpdateEnabled
      description: Whether the security update is enabled for this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.mimeType
      description: The MIME type of the file.
      type: String
    - contextPath: GoogleDrive.File.File.modifiedByMe
      description: Whether the file has been modified by this user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.modifiedByMeTime
      description: The last time the file was modified by the user (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.modifiedTime
      description: The last time the file was modified by anyone (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.name
      description: The name of the file. This is not 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.
      type: String
    - contextPath: GoogleDrive.File.File.ownedByMe
      description: Whether the user owns the file. Not populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.File.File.owners.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.File.File.owners.emailAddress
      description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      type: String
    - contextPath: GoogleDrive.File.File.owners.me
      description: Whether this user is the requesting user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.owners.permissionId
      description: The user's ID as visible in Permission resources.
      type: String
    - contextPath: GoogleDrive.File.File.owners.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.File.File.parents
      description: The IDs of the parent folders which contain the file.
      type: String
    - contextPath: GoogleDrive.File.File.permissionIds
      description: List of permission IDs for users with access to this file.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.deleted
      description: Whether the permission was deleted.
      type: Boolean
    - contextPath: GoogleDrive.File.File.permissions.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.emailAddress
      description: The email address of the user.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.id
      description: The ID of this permission.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.role
      description: The role granted by this permission.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.type
      description: The type of the grantee.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.File.File.quotaBytesUsed
      description: The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
      type: String
    - contextPath: GoogleDrive.File.File.shared
      description: Whether the file has been shared. Not populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.File.File.spaces
      description: The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder', and 'photos'.
      type: String
    - contextPath: GoogleDrive.File.File.starred
      description: Whether the user has starred the file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.thumbnailLink
      description: A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours.
      type: String
    - contextPath: GoogleDrive.File.File.thumbnailVersion
      description: The thumbnail version for use in thumbnail cache invalidation.
      type: String
    - contextPath: GoogleDrive.File.File.trashed
      description: Whether the file has been trashed, either explicitly or from a trashed parent folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.version
      description: A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
      type: String
    - contextPath: GoogleDrive.File.File.viewedByMe
      description: Whether the file has been viewed by this user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.viewedByMeTime
      description: The last time the file was viewed by the user (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.webViewLink
      description: A link for opening the file in a relevant Google editor or viewer in a browser.
      type: String
    - contextPath: GoogleDrive.File.File.writersCanShare
      description: Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives.
      type: Boolean
  - name: google-drive-file-upload
    description: Creates a new file.
    arguments:
    - name: file_name
      description: The name of the file to upload.
    - name: entry_id
      description: The file's Entry ID.
    - name: user_id
      description: The user's primary email address. Must be used when uploading to shared drive, if not, will use the user id from the instance configuration.
    - name: parent
      description: The ID of the parent folder which contains the file. If not specified as part of a create request, the file will be placed directly in the user's My Drive folder.
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether the requesting application supports both My Drives and shared drives.'
      name: supports_all_drives
      predefined:
      - "true"
      - "false"
    outputs:
    - contextPath: GoogleDrive.File.File.id
      description: The ID of the file.
      type: String
    - contextPath: GoogleDrive.File.File.name
      description: The name of the file. This is not 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.
      type: String
    - contextPath: GoogleDrive.File.File.mimeType
      description: The MIME type of the file.
      type: String
    - contextPath: GoogleDrive.File.File.starred
      description: Whether the user has starred the file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.trashed
      description: Whether the file has been trashed, either explicitly or from a trashed parent folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.explicitlyTrashed
      description: Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.parents
      description: The IDs of the parent folders which contain the file.
      type: String
    - contextPath: GoogleDrive.File.File.spaces
      description: The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder', and 'photos'.
      type: String
    - contextPath: GoogleDrive.File.File.version
      description: A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
      type: String
    - contextPath: GoogleDrive.File.File.webContentLink
      description: A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
      type: String
    - contextPath: GoogleDrive.File.File.webViewLink
      description: A link for opening the file in a relevant Google editor or viewer in a browser.
      type: String
    - contextPath: GoogleDrive.File.File.iconLink
      description: A static, unauthenticated link to the file's icon.
      type: String
    - contextPath: GoogleDrive.File.File.hasThumbnail
      description: Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
      type: Boolean
    - contextPath: GoogleDrive.File.File.thumbnailVersion
      description: The thumbnail version for use in thumbnail cache invalidation.
      type: String
    - contextPath: GoogleDrive.File.File.viewedByMe
      description: Whether the file has been viewed by this user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.viewedByMeTime
      description: The last time the file was viewed by the user (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.createdTime
      description: The time at which the file was created (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.modifiedTime
      description: The last time the file was modified by anyone (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.thumbnailLink
      description: A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours.
      type: String
    - contextPath: GoogleDrive.File.File.exportLinks
      description: Links for exporting Docs Editors files to specific formats.
      type: String
    - contextPath: GoogleDrive.File.File.quotaBytesUsed
      description: The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
      type: String
    - contextPath: GoogleDrive.File.File.shared
      description: Whether the file has been shared. Not populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.File.File.writersCanShare
      description: Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.File.File.modifiedByMe
      description: Whether the file has been modified by this user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.modifiedByMeTime
      description: The last time the file was modified by the user (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.ownedByMe
      description: Whether the user owns the file. Not populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.File.File.isAppAuthorized
      description: Whether the file was created or opened by the requesting app.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canAddChildren
      description: Whether the current user can add children to this folder. This is always false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canAddMyDriveParent
      description: Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canChangeCopyRequiresWriterPermission
      description: Whether the current user can change the 'copy requires writer permission' restriction of this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canChangeSecurityUpdateEnabled
      description: Whether the current user can change the 'security update enabled' field on link shared metadata.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canComment
      description: Whether the current user can comment on this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canCopy
      description: Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canDelete
      description: Whether the current user can delete this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canDownload
      description: Whether the current user can download this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canEdit
      description: Whether the current user can edit this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canListChildren
      description: Whether the current user can list the children of this folder. This is always false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canModifyContent
      description: Whether the current user can modify the content of this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canMoveChildrenWithinDrive
      description: Whether the current user can move children of this folder within this drive. This is false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canMoveItemOutOfDrive
      description: Whether the current user can move this item outside of this drive by changing its parent.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canMoveItemWithinDrive
      description: Whether the current user can move this item within this drive.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canReadRevisions
      description: Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canRemoveChildren
      description: Whether the current user can remove children from this folder. This is always false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canRemoveMyDriveParent
      description: Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canRename
      description: Whether the current user can rename this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canShare
      description: Whether the current user can modify the sharing settings for this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canTrash
      description: Whether the current user can move this file to trash.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canUntrash
      description: Whether the current user can restore this file from trash.
      type: Boolean
    - contextPath: GoogleDrive.File.File.copyRequiresWriterPermission
      description: Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
      type: Boolean
    - contextPath: GoogleDrive.File.File.lastModifyingUser.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.File.File.lastModifyingUser.emailAddress
      description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      type: String
    - contextPath: GoogleDrive.File.File.lastModifyingUser.me
      description: Whether this user is the requesting user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.lastModifyingUser.permissionId
      description: The user's ID as visible in Permission resources.
      type: String
    - contextPath: GoogleDrive.File.File.lastModifyingUser.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.File.File.linkShareMetadata.securityUpdateEligible
      description: Whether the file is eligible for security update.
      type: Boolean
    - contextPath: GoogleDrive.File.File.linkShareMetadata.securityUpdateEnabled
      description: Whether the security update is enabled for this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.owners.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.File.File.owners.emailAddress
      description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      type: String
    - contextPath: GoogleDrive.File.File.owners.me
      description: Whether this user is the requesting user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.owners.permissionId
      description: The user's ID as visible in Permission resources.
      type: String
    - contextPath: GoogleDrive.File.File.owners.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.File.File.permissionIds
      description: List of permission IDs for users with access to this file.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.deleted
      description: Whether the permission was deleted.
      type: Boolean
    - contextPath: GoogleDrive.File.File.permissions.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.emailAddress
      description: The email address of the user.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.id
      description: The ID of this permission.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.role
      description: The role granted by this permission.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.type
      description: The type of the grantee.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.photoLink
      description: A link to the user's profile photo, if available.
      type: String
  - name: google-drive-file-download
    description: Download a single file.
    arguments:
    - name: file_id
      description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command.
    - name: file_name
      description: Name of the downloaded file.
      defaultValue: "untitled"
    - name: user_id
      description: The user's primary email address.
    outputs:
    - contextPath: File.Size
      description: The size of the file.
      type: Number
    - contextPath: File.SHA1
      description: The SHA1 hash of the file.
      type: String
    - contextPath: File.SHA256
      description: The SHA256 hash of the file.
      type: String
    - contextPath: File.Name
      description: The name of the file.
      type: String
    - contextPath: File.SSDeep
      description: The SSDeep hash of the file.
      type: String
    - contextPath: File.EntryID
      description: The entry ID of the file.
      type: String
    - contextPath: File.Info
      description: File information.
      type: String
    - contextPath: File.Type
      description: The file type.
      type: String
    - contextPath: File.MD5
      description: The MD5 hash of the file.
      type: String
    - contextPath: File.Extension
      description: The file extension.
      type: String
  - name: google-drive-file-replace-existing
    description: Updates a file's content.
    arguments:
    - name: file_id
      description: ID of the file to replace. Can be retrieved using the `google-drive-files-list` command.
    - name: entry_id
      description: The file's entry ID.
    outputs:
    - contextPath: GoogleDrive.File.File.id
      description: The ID of the file.
      type: String
    - contextPath: GoogleDrive.File.File.name
      description: The name of the file. This is not 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.
      type: String
    - contextPath: GoogleDrive.File.File.mimeType
      description: The MIME type of the file.
      type: String
    - contextPath: GoogleDrive.File.File.starred
      description: Whether the user has starred the file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.trashed
      description: Whether the file has been trashed, either explicitly or from a trashed parent folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.explicitlyTrashed
      description: Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.parents
      description: The IDs of the parent folders which contain the file.
      type: String
    - contextPath: GoogleDrive.File.File.spaces
      description: The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder', and 'photos'.
      type: String
    - contextPath: GoogleDrive.File.File.version
      description: A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
      type: String
    - contextPath: GoogleDrive.File.File.webContentLink
      description: A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
      type: String
    - contextPath: GoogleDrive.File.File.webViewLink
      description: A link for opening the file in a relevant Google editor or viewer in a browser.
      type: String
    - contextPath: GoogleDrive.File.File.iconLink
      description: A static, unauthenticated link to the file's icon.
      type: String
    - contextPath: GoogleDrive.File.File.hasThumbnail
      description: Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
      type: Boolean
    - contextPath: GoogleDrive.File.File.thumbnailVersion
      description: The thumbnail version for use in thumbnail cache invalidation.
      type: String
    - contextPath: GoogleDrive.File.File.viewedByMe
      description: Whether the file has been viewed by this user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.viewedByMeTime
      description: The last time the file was viewed by the user (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.createdTime
      description: The time at which the file was created (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.modifiedTime
      description: The last time the file was modified by anyone (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.thumbnailLink
      description: A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours.
      type: String
    - contextPath: GoogleDrive.File.File.exportLinks
      description: Links for exporting Docs Editors files to specific formats.
      type: String
    - contextPath: GoogleDrive.File.File.quotaBytesUsed
      description: The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
      type: String
    - contextPath: GoogleDrive.File.File.shared
      description: Whether the file has been shared. Not populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.File.File.writersCanShare
      description: Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.File.File.modifiedByMe
      description: Whether the file has been modified by this user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.modifiedByMeTime
      description: The last time the file was modified by the user (RFC 3339 date-time).
      type: Date
    - contextPath: GoogleDrive.File.File.ownedByMe
      description: Whether the user owns the file. Not populated for items in shared drives.
      type: Boolean
    - contextPath: GoogleDrive.File.File.isAppAuthorized
      description: Whether the file was created or opened by the requesting app.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canAddChildren
      description: Whether the current user can add children to this folder. This is always false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canAddMyDriveParent
      description: Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canChangeCopyRequiresWriterPermission
      description: Whether the current user can change the 'copy requires writer permission' restriction of this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canChangeSecurityUpdateEnabled
      description: Whether the current user can change the 'security update enabled' field on link shared metadata.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canComment
      description: Whether the current user can comment on this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canCopy
      description: Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canDelete
      description: Whether the current user can delete this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canDownload
      description: Whether the current user can download this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canEdit
      description: Whether the current user can edit this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canListChildren
      description: Whether the current user can list the children of this folder. This is always false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canModifyContent
      description: Whether the current user can modify the content of this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canMoveChildrenWithinDrive
      description: Whether the current user can move children of this folder within this drive. This is false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canMoveItemOutOfDrive
      description: Whether the current user can move this item outside of this drive by changing its parent.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canMoveItemWithinDrive
      description: Whether the current user can move this item within this drive.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canReadRevisions
      description: Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canRemoveChildren
      description: Whether the current user can remove children from this folder. This is always false when the item is not a folder.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canRemoveMyDriveParent
      description: Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canRename
      description: Whether the current user can rename this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canShare
      description: Whether the current user can modify the sharing settings for this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canTrash
      description: Whether the current user can move this file to trash.
      type: Boolean
    - contextPath: GoogleDrive.File.File.capabilities.canUntrash
      description: Whether the current user can restore this file from trash.
      type: Boolean
    - contextPath: GoogleDrive.File.File.copyRequiresWriterPermission
      description: Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
      type: Boolean
    - contextPath: GoogleDrive.File.File.lastModifyingUser.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.File.File.lastModifyingUser.emailAddress
      description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      type: String
    - contextPath: GoogleDrive.File.File.lastModifyingUser.me
      description: Whether this user is the requesting user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.lastModifyingUser.permissionId
      description: The user's ID as visible in Permission resources.
      type: String
    - contextPath: GoogleDrive.File.File.lastModifyingUser.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.File.File.linkShareMetadata.securityUpdateEligible
      description: Whether the file is eligible for security update.
      type: Boolean
    - contextPath: GoogleDrive.File.File.linkShareMetadata.securityUpdateEnabled
      description: Whether the security update is enabled for this file.
      type: Boolean
    - contextPath: GoogleDrive.File.File.owners.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.File.File.owners.emailAddress
      description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
      type: String
    - contextPath: GoogleDrive.File.File.owners.me
      description: Whether this user is the requesting user.
      type: Boolean
    - contextPath: GoogleDrive.File.File.owners.permissionId
      description: The user's ID as visible in Permission resources.
      type: String
    - contextPath: GoogleDrive.File.File.owners.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.File.File.permissionIds
      description: List of permission IDs for users with access to this file.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.deleted
      description: Whether the permission was deleted.
      type: Boolean
    - contextPath: GoogleDrive.File.File.permissions.displayName
      description: A plain text displayable name for this user.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.emailAddress
      description: The email address of the user.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.id
      description: The ID of this permission.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.role
      description: The role granted by this permission.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.type
      description: The type of the grantee.
      type: String
    - contextPath: GoogleDrive.File.File.permissions.photoLink
      description: A link to the user's profile photo, if available.
      type: String
  - name: google-drive-file-delete
    description: 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. When the soft_delete argument is set to "true", the file is moved to Trash instead of being permanently deleted.
    arguments:
    - name: file_id
      description: The ID of the requested file. Can be retrieved using the `google-drive-files-list` command.
    - name: user_id
      description: The user's primary email address.
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether the requesting application supports both My Drives and shared drives.'
      name: supports_all_drives
      predefined:
      - "true"
      - "false"
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether to move the file to Trash instead of permanently deleting it. When set to "true", the file is patched with trashed=true rather than issuing a hard delete. Omitting this argument preserves the existing hard-delete behavior.'
      name: soft_delete
      predefined:
      - "true"
      - "false"
    outputs:
    - contextPath: GoogleDrive.File.File.id
      description: The ID of the deleted file.
      type: String
    - contextPath: GoogleDrive.File.File.trashed
      description: Whether the file is in Trash after a soft delete. Only populated when soft_delete is set to "true".
      type: Boolean
    - contextPath: GoogleDrive.File.File.trashedTime
      description: The ISO 8601 timestamp when the file was moved to Trash. Only populated for items in shared drives; not populated for items in My Drive.
      type: Date
  - name: google-drive-file-permissions-list
    description: Lists a file's or shared drive's permissions.
    arguments:
    - name: file_id
      description: The ID of the requested file. Can be retrieved using the `google-drive-files-list` command.
    - name: user_id
      description: The user's primary email address.
    - name: page_size
      description: "The maximum number of shared drives to return. Acceptable values are 1 to 100, inclusive."
      defaultValue: "100"
    - name: page_token
      description: The page token for shared drives.
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether the requesting application supports both My Drives and shared drives.'
      name: supports_all_drives
      predefined:
      - "true"
      - "false"
    - auto: PREDEFINED
      defaultValue: "false"
      name: use_domain_admin_access
      description: 'Whether to issue the request as a domain administrator. If set to "true", all shared drives of the domain in which the requester is an administrator are returned.'
      predefined:
      - "true"
      - "false"
    outputs:
    - contextPath: GoogleDrive.FilePermission.FilePermission.deleted
      description: Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
      type: Boolean
    - contextPath: GoogleDrive.FilePermission.FilePermission.displayName
      description: The "pretty" name of the value of the permission.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.emailAddress
      description: The email address of the user or group to which this permission refers.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.id
      description: The ID of this permission.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.role
      description: The role granted by this permission.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.type
      description: The type of the grantee.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.photoLink
      description: A link to the user's profile photo, if available.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.permissionDetails.permissionType
      description: 'The permission type for this user. Possible values: "file", "member". Only populated for items in shared drives.'
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.permissionDetails.inheritedFrom
      description: The ID of the item from which this permission is inherited. Only populated for items in shared drives.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.permissionDetails.role
      description: 'The primary role for this user. Possible values: "owner", "organizer", "fileOrganizer", "writer", "commenter", "reader".'
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.permissionDetails.inherited
      description: Whether this permission is inherited. Always populated for items in shared drives.
      type: Boolean
  - name: google-drive-file-permission-create
    description: Creates a permission for a file or shared drive.
    arguments:
    - name: file_id
      description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command.
    - name: user_id
      description: The user's primary email address.
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether a confirmation email will be sent.'
      name: send_notification_email
      predefined:
      - "true"
      - "false"
    - auto: PREDEFINED
      defaultValue: "reader"
      description: 'The role granted by this permission. Possible values: "owner", "organizer", "fileOrganizer", "writer", "commenter", and "reader".'
      name: role
      predefined:
      - "owner"
      - "organizer"
      - "fileOrganizer"
      - "writer"
      - "commenter"
      - "reader"
    - auto: PREDEFINED
      defaultValue: "anyone"
      description: 'The type of the grantee. 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. No extra information is required for an anyone type. Possible values: "user", "group", "domain", and "anyone".'
      name: type
      predefined:
      - "user"
      - "group"
      - "domain"
      - "anyone"
    - name: domain
      description: The domain to which this permission refers.
    - name: email_address
      description: The email address of the user or group to which this permission refers.
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether to transfer ownership of the file to the user identified by the role=owner permission. Required by the vendor when role=owner is specified on an existing file; omitting this argument preserves the existing command behavior.'
      name: transfer_ownership
      predefined:
      - "true"
      - "false"
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether to move the file to the new owner''s root folder. Only takes effect when transfer_ownership is set to "true".'
      name: move_to_new_owners_root
      predefined:
      - "true"
      - "false"
    outputs:
    - contextPath: GoogleDrive.FilePermission.FilePermission.deleted
      description: Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
      type: Boolean
    - contextPath: GoogleDrive.FilePermission.FilePermission.displayName
      description: The "pretty" name of the value of the permission.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.emailAddress
      description: The email address of the user or group to which this permission refers.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.id
      description: The ID of this permission.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.role
      description: The role granted by this permission.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.type
      description: The type of the grantee.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.photoLink
      description: A link to the user's profile photo, if available.
      type: String
  - name: google-drive-file-permission-update
    description: Updates a permission with patch semantics.
    arguments:
    - name: file_id
      description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command.
    - name: user_id
      description: The user's primary email address.
    - name: expiration_time
      description: The time at which this permission will expire (RFC 3339 date-time).
    - name: permission_id
      description: The ID of the permission. Can be retrieved using the `google-drive-file-permissions-list` command.
    - auto: PREDEFINED
      defaultValue: "reader"
      description: 'The role granted by this permission. Possible values: "owner", "organizer", "fileOrganizer", "writer", "commenter", and "reader".'
      name: role
      predefined:
      - "owner"
      - "organizer"
      - "fileOrganizer"
      - "writer"
      - "commenter"
      - "reader"
    outputs:
    - contextPath: GoogleDrive.FilePermission.FilePermission.deleted
      description: Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
      type: Boolean
    - contextPath: GoogleDrive.FilePermission.FilePermission.displayName
      description: The "pretty" name of the value of the permission.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.emailAddress
      description: The email address of the user or group to which this permission refers.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.id
      description: The ID of this permission.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.role
      description: The role granted by this permission.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.type
      description: The type of the grantee.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.photoLink
      description: A link to the user's profile photo, if available.
      type: String
  - name: google-drive-file-permission-delete
    description: Deletes a permission. When the ignore_not_found argument is set to "true", a Not Found response from the vendor is treated as success and surfaced via the alreadyRemoved output, which is useful inside loops over a previously-listed permission set.
    arguments:
    - name: file_id
      description: The ID of the requested file. Can be retrieved using the `google-drive-files-list` command.
    - name: user_id
      description: The user's primary email address.
    - name: permission_id
      description: The ID of the permission. Can be retrieved using the `google-drive-file-permissions-list` command.
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether the requesting application supports both My Drives and shared drives.'
      name: supports_all_drives
      predefined:
      - "true"
      - "false"
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether to treat a Not Found response from the vendor (for example, when the permission was already removed) as success and surface it via the alreadyRemoved output, instead of raising an error. Useful inside loops over a previously-listed permission set.'
      name: ignore_not_found
      predefined:
      - "true"
      - "false"
    outputs:
    - contextPath: GoogleDrive.FilePermission.FilePermission.fileId
      description: The ID of the file whose permission was targeted.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.id
      description: The ID of the deleted permission.
      type: String
    - contextPath: GoogleDrive.FilePermission.FilePermission.alreadyRemoved
      description: Whether the permission was already removed. Set to "true" when ignore_not_found is set to "true" and the vendor returned Not Found.
      type: Boolean
  - name: google-drive-file-modify-label
    description: Modify labels to file.
    arguments:
    - name: file_id
      description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command.
    - name: user_id
      description: The user's primary email address.
    - name: label_id
      description: The label id to set for the file.
    - name: field_id
      description: the field id of the label to set.
    - name: selection_label_id
      description: the label id to set for the field.
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether the requesting application supports both My Drives and shared drives.'
      name: remove_label
      predefined:
      - "true"
      - "false"
    outputs:
    - contextPath: GoogleDrive.Labels.kind
      description: 'The type of resource. This is always drive#modifyLabelsResponse.'
      type: String
    - contextPath: GoogleDrive.Labels.modifiedLabels.fields.id
      description: 'The ID of the label field selected.'
      type: String
    - contextPath: GoogleDrive.Labels.modifiedLabels.fields.kind
      description: 'Kind of resource this is, in this case drive#labelField.'
      type: String
    - contextPath: GoogleDrive.Labels.modifiedLabels.fields.selection
      description: 'Selected label.'
      type: String
    - contextPath: GoogleDrive.Labels.modifiedLabels.fields.valueType
      description: 'The type of data this label is representing.'
      type: String
    - contextPath: GoogleDrive.Labels.modifiedLabels.id
      description: 'The label id of the label to set.'
      type: String
    - contextPath: GoogleDrive.Labels.modifiedLabels.kind
      description: 'The type of resource. This is always drive#label.'
      type: String
    - contextPath: GoogleDrive.Labels.modifiedLabels.revisionId
      description: ''
      type: String
  - name: google-drive-get-labels
    description: Google Drive get labels.
    arguments:
    - name: user_id
      description: The user's primary email address.
    outputs:
    - contextPath: GoogleDrive.Labels.labels.appliedCapabilities.canApply
      description: 'Is able to apply this label to files.'
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.appliedCapabilities.canRead
      description: 'Is able to read this label.'
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.appliedCapabilities.canRemove
      description: 'Is able to remove this label from files.'
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.appliedLabelPolicy.copyMode
      description: 'Copy label to all descendants.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.createTime
      description: 'Time at which this label was created.'
      type: Date
    - contextPath: GoogleDrive.Labels.labels.creator.person
      description: 'The creator of this label.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.customer
      description: 'The customer that owns this label.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.displayHints.priority
      description: 'Priority of the label.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.displayHints.shownInApply
      description: 'Whether this label is shown in the "Apply a label" dropdown.'
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.fields.appliedCapabilities.canRead
      description: 'Is the field readable.'
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.fields.appliedCapabilities.canSearch
      description: 'Is the field searchable.'
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.fields.appliedCapabilities.canWrite
      description: 'Is the field writable.'
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.fields.creator.person
      description: 'The creator of this field.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.displayHints.required
      description: 'Is this field required to be set by the user.'
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.fields.displayHints.shownInApply
      description: 'Should this field be shown when editing the label.'
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.fields.id
      description: 'The ID of the field.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.lifecycle.state
      description: 'The lifecycle state of this field.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.properties.displayName
      description: 'The display name of the property.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.properties.required
      description: 'Is this property required to be set by the user.'
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.fields.publisher.person
      description: 'The user who published this field.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.queryKey
      description: 'The query key for this field.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.schemaCapabilities
      description: 'Schema capabilities for this field.'
      type: Unknown
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.appliedCapabilities.canRead
      description: ''
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.appliedCapabilities.canSearch
      description: ''
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.appliedCapabilities.canSelect
      description: ''
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.backgroundColor.blue
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.backgroundColor.green
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.backgroundColor.red
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.foregroundColor.blue
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.foregroundColor.green
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.foregroundColor.red
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.soloColor.blue
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.soloColor.green
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgeColors.soloColor.red
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.badgePriority
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.backgroundColor.blue
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.backgroundColor.green
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.backgroundColor.red
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.foregroundColor.blue
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.foregroundColor.green
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.foregroundColor.red
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.soloColor.blue
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.soloColor.green
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.darkBadgeColors.soloColor.red
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.displayHints.shownInApply
      description: ''
      type: Boolean
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.id
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.lifecycle.state
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.properties.badgeConfig.color.blue
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.properties.badgeConfig.color.green
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.properties.badgeConfig.color.red
      description: ''
      type: Number
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.properties.displayName
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.selectionOptions.choices.schemaCapabilities
      description: ''
      type: Unknown
    - contextPath: GoogleDrive.Labels.labels.fields.updater.person
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.id
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.labelType
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.lifecycle.state
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.name
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.properties.title
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.publishTime
      description: ''
      type: Date
    - contextPath: GoogleDrive.Labels.labels.publisher.person
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.revisionCreateTime
      description: ''
      type: Date
    - contextPath: GoogleDrive.Labels.labels.revisionCreator.person
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.revisionId
      description: ''
      type: String
    - contextPath: GoogleDrive.Labels.labels.schemaCapabilities
      description: ''
      type: Unknown
    - contextPath: GoogleDrive.Labels.labels.fields.userOptions
      description: ''
      type: Unknown
  - name: google-drive-get-file-labels
    description: Modify labels to file.
    arguments:
    - name: file_id
      description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command.
    - name: user_id
      description: The user's primary email address.
    outputs:
    - contextPath: GoogleDrive.File.File.id
      description: 'The ID of the file.'
      type: String
    - contextPath: GoogleDrive.Labels.kind
      description: 'The type of resource. This is always drive#labelList.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.id
      description: 'The ID of the label field selected.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.kind
      description: 'The kind of this field. This is always drive#labelField.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.selection
      description: 'The label field selected.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.fields.valueType
      description: 'The type of data this label is representing.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.id
      description: 'The label id of the label to set.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.kind
      description: 'The type of resource. This is always drive#label.'
      type: String
    - contextPath: GoogleDrive.Labels.labels.revisionId
      description: 'The revision id of the label.'
      type: String
  - name: google-drive-file-copy
    description: Make a copy of a Google Drive file.
    arguments:
    - description: The ID of the file to copy.
      name: file_id
      required: true
    - description: The name of the copied file.
      name: copy_title
    - name: user_id
      description: The user's primary email address.
    - auto: PREDEFINED
      defaultValue: 'false'
      description: Whether the requesting application supports both My Drives and shared drives.
      name: supports_all_drives
      predefined:
      - 'true'
      - 'false'
    outputs:
    - contextPath: GoogleDrive.File.File.kind
      description: The content type of the file.
      type: String
    - contextPath: GoogleDrive.File.File.id
      description: The ID of the copied file.
      type: String
    - contextPath: GoogleDrive.File.File.name
      description: The name of the copied file.
      type: String
    - contextPath: GoogleDrive.File.File.mimeType
      description: The MIME type of the copied file.
      type: String
  - name: google-drive-file-get-parents
    description: Get parents of a Google Drive file.
    arguments:
    - name: file_id
      description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command.
      required: true
    - name: user_id
      description: The user's primary email address.
      required: true
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether both My Drive and shared drive items should be included in the results.'
      name: include_items_from_all_drives
      predefined:
      - "true"
      - "false"
    - auto: PREDEFINED
      description: Whether the requesting application supports both My Drives and shared drives.
      name: supports_all_drives
      defaultValue: "False"
      predefined:
      - "True"
      - "False"
    outputs:
    - contextPath: GoogleDrive.File.Parents
      description: The IDs of the parent folders which contain the file.
      type: String
  - name: google-drive-file-move
    description: Moves a file from one folder to another by modifying its parent folder references. Used for quarantine workflows.
    arguments:
    - name: file_id
      required: true
      description: The ID of the file to move.
    - name: add_parent_id
      required: true
      description: The ID of the destination folder to move the file into.
    - name: remove_parent_id
      required: true
      description: The ID of the current parent folder to remove the file from.
    - name: user_id
      required: false
      description: The user's email address. The command will be executed on behalf of this user (requires domain-wide delegation). If not provided, the default user configured in the integration instance will be used.
    - name: fields
      required: false
      description: 'A comma-separated list of fields to include in the response. Default is "*" which returns all fields. Example: "id, name, mimeType, parents".'
      defaultValue: "*"
    outputs:
    - contextPath: GoogleDrive.File.id
      description: The file ID.
      type: String
    - contextPath: GoogleDrive.File.name
      description: The name of the file.
      type: String
    - contextPath: GoogleDrive.File.mimeType
      description: The MIME type of the file.
      type: String
    - contextPath: GoogleDrive.File.parents
      description: The list of parent folder IDs.
      type: Unknown
  - name: google-drive-file-create
    description: Creates a new file or folder. By default the file is metadata-only, which is useful for creating quarantine folders or tombstone placeholder files. Provide the `content` argument to also write text content into the created file.
    arguments:
    - name: file_name
      required: true
      description: The name of the file or folder to create.
    - name: mime_type
      description: 'The MIME type of the file. Use "application/vnd.google-apps.folder" to create a folder. Default is "application/vnd.google-apps.folder".'
      defaultValue: application/vnd.google-apps.folder
    - name: user_id
      required: false
      description: The user's email address. The command will be executed on behalf of this user (requires domain-wide delegation). If not provided, the default user configured in the integration instance will be used.
    - name: parent
      description: The ID of the parent folder. If not specified, the file will be created in the user's root folder.
    - name: description
      description: A short description of the file or folder.
    - name: content
      description: 'The text content to write into the created file. When provided, the content is uploaded together with the file metadata in a single request. Requires a non-folder `mime_type` (for example `text/plain`), since folders cannot hold content. Limited to 256 characters. To create larger files or upload binary files, use the `google-drive-file-upload` command with an entry ID instead.'
    - auto: PREDEFINED
      defaultValue: "false"
      description: 'Whether the requesting application supports both My Drives and shared drives.'
      name: supports_all_drives
      predefined:
      - "true"
      - "false"
    outputs:
    - contextPath: GoogleDrive.File.id
      description: The ID of the created file or folder.
      type: String
    - contextPath: GoogleDrive.File.name
      description: The name of the created file or folder.
      type: String
    - contextPath: GoogleDrive.File.mimeType
      description: The MIME type of the created file or folder.
      type: String
    - contextPath: GoogleDrive.File.parents
      description: The list of parent folder IDs.
      type: Unknown
  - name: get-file-content
    hidden: true
    description: 'Retrieves a file from Google Drive by its URL and returns it in a generic unified format under the FileContent context key. For Google Workspace files (Docs, Sheets, Slides) the content is exported and returned in ''Content'' - text exports inline, binary exports (e.g. PDF) base64-encoded with ''Type'' suffixed by '';base64''. The command automatically extracts the file ID from the URL. The maximum supported file size is 5 MB.'
    arguments:
    - description: 'Max file size: 5 MB. The file must be shared with the logged-in user''s email.'
      name: url
      prettyname: The Google Drive file URL
      required: true
    outputs:
    - contextPath: FileContent.Id
      description: The unique identifier of the file.
      type: String
    - contextPath: FileContent.Title
      description: The title of the file.
      type: String
    - contextPath: FileContent.Type
      description: The MIME type of the returned content. For binary exports (e.g. PDF) the type is suffixed with ';base64' to indicate the 'Content' field is base64-encoded.
      type: String
    - contextPath: FileContent.Name
      description: The name of the file.
      type: String
    - contextPath: FileContent.Content
      description: The exported content. Text exports (csv / plain / svg) are inline; binary exports (e.g. PDF) are base64-encoded - decode using the ';base64' suffix on Type.
      type: String
    - contextPath: FileContent.Url
      description: The original URL used to retrieve the file.
      type: String
  dockerimage: demisto/googleapi-python3:1.0.0.10182333
  isfetch: true
  runonce: false
  script: "-"
  subtype: python3
  type: python
commonfields:
  id: GoogleDriveStandardConnector
  version: -1
fromversion: 8.15.0
tests:
- No tests