gd
@datafire/google_drive
npm i @datafire/google_drive
gd

@datafire/google_drive

Integration registry for DataFire

by DataFire

6.0.0 (see all)License:MITTypeScript:Not Found
npm i @datafire/google_drive
Readme

@datafire/google_drive

Client library for Drive API

Installation and Usage

npm install --save @datafire/google_drive
let google_drive = require('@datafire/google_drive').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: ""
});

.then(data => {
  console.log(data);
});

Description

Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.

Actions

oauthCallback

Exchange the code passed to your redirect URI for an access_token

google_drive.oauthCallback({
  "code": ""
}, context)

Input

  • input object
    • code required string

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

oauthRefresh

Exchange a refresh_token for an access_token

google_drive.oauthRefresh(null, context)

Input

This action has no parameters

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

drive.about.get

Gets information about the user, the user's Drive, and system capabilities.

google_drive.drive.about.get({}, context)

Input

  • input object
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.changes.list

Lists the changes for a user or shared drive.

google_drive.drive.changes.list({
  "pageToken": ""
}, context)

Input

  • input object
    • pageToken required string: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.
    • driveId string: The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
    • includeCorpusRemovals boolean: Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.
    • includeItemsFromAllDrives boolean: Whether both My Drive and shared drive items should be included in results.
    • includePermissionsForView string: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
    • includeRemoved boolean: Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.
    • includeTeamDriveItems boolean: Deprecated use includeItemsFromAllDrives instead.
    • pageSize integer: The maximum number of changes to return per page.
    • restrictToMyDrive boolean: Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.
    • spaces string: A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • teamDriveId string: Deprecated use driveId instead.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.changes.getStartPageToken

Gets the starting pageToken for listing future changes.

google_drive.drive.changes.getStartPageToken({}, context)

Input

  • input object
    • driveId string: The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive is returned.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • teamDriveId string: Deprecated use driveId instead.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.changes.watch

Subscribes to changes for a user.

google_drive.drive.changes.watch({
  "pageToken": ""
}, context)

Input

  • input object
    • pageToken required string: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.
    • driveId string: The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
    • includeCorpusRemovals boolean: Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.
    • includeItemsFromAllDrives boolean: Whether both My Drive and shared drive items should be included in results.
    • includePermissionsForView string: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
    • includeRemoved boolean: Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.
    • includeTeamDriveItems boolean: Deprecated use includeItemsFromAllDrives instead.
    • pageSize integer: The maximum number of changes to return per page.
    • restrictToMyDrive boolean: Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.
    • spaces string: A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • teamDriveId string: Deprecated use driveId instead.
    • body Channel
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.channels.stop

Stop watching resources through this channel

google_drive.drive.channels.stop({}, context)

Input

  • input object
    • body Channel
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

Output schema unknown

drive.drives.list

Lists the user's shared drives.

google_drive.drive.drives.list({}, context)

Input

  • input object
    • pageSize integer: Maximum number of shared drives to return.
    • pageToken string: Page token for shared drives.
    • q string: Query string for searching shared drives.
    • useDomainAdminAccess boolean: Issue the request as a domain administrator; if set to true, then all shared drives of the domain in which the requester is an administrator are returned.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.drives.create

Creates a new shared drive.

google_drive.drive.drives.create({
  "requestId": ""
}, context)

Input

  • input object
    • requestId required string: An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.
    • body Drive
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.drives.delete

Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items.

google_drive.drive.drives.delete({
  "driveId": ""
}, context)

Input

  • input object
    • driveId required string: The ID of the shared drive.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

Output schema unknown

drive.drives.get

Gets a shared drive's metadata by ID.

google_drive.drive.drives.get({
  "driveId": ""
}, context)

Input

  • input object
    • driveId required string: The ID of the shared drive.
    • useDomainAdminAccess boolean: Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.drives.update

Updates the metadate for a shared drive.

google_drive.drive.drives.update({
  "driveId": ""
}, context)

Input

  • input object
    • driveId required string: The ID of the shared drive.
    • useDomainAdminAccess boolean: Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.
    • body Drive
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.drives.hide

Hides a shared drive from the default view.

google_drive.drive.drives.hide({
  "driveId": ""
}, context)

Input

  • input object
    • driveId required string: The ID of the shared drive.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.drives.unhide

Restores a shared drive to the default view.

google_drive.drive.drives.unhide({
  "driveId": ""
}, context)

Input

  • input object
    • driveId required string: The ID of the shared drive.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.files.list

Lists or searches files.

google_drive.drive.files.list({}, context)

Input

  • input object
    • corpora string: Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency.
    • corpus string (values: domain, user): The source of files to list. Deprecated: use 'corpora' instead.
    • driveId string: ID of the shared drive to search.
    • includeItemsFromAllDrives boolean: Whether both My Drive and shared drive items should be included in results.
    • includePermissionsForView string: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
    • includeTeamDriveItems boolean: Deprecated use includeItemsFromAllDrives instead.
    • orderBy string: A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.
    • pageSize integer: The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached.
    • pageToken string: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
    • q string: A query for filtering the file results. See the "Search for Files" guide for supported syntax.
    • spaces string: A comma-separated list of spaces to query within the corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • teamDriveId string: Deprecated use driveId instead.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.files.create

Creates a new file.

google_drive.drive.files.create({}, context)

Input

  • input object
    • enforceSingleParent boolean: Deprecated. Creating files in multiple folders is no longer supported.
    • ignoreDefaultVisibility boolean: Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
    • includePermissionsForView string: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
    • keepRevisionForever boolean: Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
    • ocrLanguage string: A language hint for OCR processing during image import (ISO 639-1 code).
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • useContentAsIndexableText boolean: Whether to use the uploaded content as indexable text.
    • body File
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.files.generateIds

Generates a set of file IDs which can be provided in create or copy requests.

google_drive.drive.files.generateIds({}, context)

Input

  • input object
    • count integer: The number of IDs to return.
    • space string: The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.files.emptyTrash

Permanently deletes all of the user's trashed files.

google_drive.drive.files.emptyTrash({}, context)

Input

  • input object
    • enforceSingleParent boolean: Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

Output schema unknown

drive.files.delete

Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted.

google_drive.drive.files.delete({
  "fileId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • enforceSingleParent boolean: Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

Output schema unknown

drive.files.get

Gets a file's metadata or content by ID.

google_drive.drive.files.get({
  "fileId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • acknowledgeAbuse boolean: Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
    • includePermissionsForView string: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.files.update

Updates a file's metadata and/or content. This method supports patch semantics.

google_drive.drive.files.update({
  "fileId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • addParents string: A comma-separated list of parent IDs to add.
    • enforceSingleParent boolean: Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.
    • includePermissionsForView string: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
    • keepRevisionForever boolean: Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
    • ocrLanguage string: A language hint for OCR processing during image import (ISO 639-1 code).
    • removeParents string: A comma-separated list of parent IDs to remove.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • useContentAsIndexableText boolean: Whether to use the uploaded content as indexable text.
    • body File
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.comments.list

Lists a file's comments.

google_drive.drive.comments.list({
  "fileId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • includeDeleted boolean: Whether to include deleted comments. Deleted comments will not include their original content.
    • pageSize integer: The maximum number of comments to return per page.
    • pageToken string: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
    • startModifiedTime string: The minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time).
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.comments.create

Creates a new comment on a file.

google_drive.drive.comments.create({
  "fileId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • body Comment
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.comments.delete

Deletes a comment.

google_drive.drive.comments.delete({
  "fileId": "",
  "commentId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • commentId required string: The ID of the comment.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

Output schema unknown

drive.comments.get

Gets a comment by ID.

google_drive.drive.comments.get({
  "fileId": "",
  "commentId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • commentId required string: The ID of the comment.
    • includeDeleted boolean: Whether to return deleted comments. Deleted comments will not include their original content.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.comments.update

Updates a comment with patch semantics.

google_drive.drive.comments.update({
  "fileId": "",
  "commentId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • commentId required string: The ID of the comment.
    • body Comment
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.replies.list

Lists a comment's replies.

google_drive.drive.replies.list({
  "fileId": "",
  "commentId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • commentId required string: The ID of the comment.
    • includeDeleted boolean: Whether to include deleted replies. Deleted replies will not include their original content.
    • pageSize integer: The maximum number of replies to return per page.
    • pageToken string: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.replies.create

Creates a new reply to a comment.

google_drive.drive.replies.create({
  "fileId": "",
  "commentId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • commentId required string: The ID of the comment.
    • body Reply
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.replies.delete

Deletes a reply.

google_drive.drive.replies.delete({
  "fileId": "",
  "commentId": "",
  "replyId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • commentId required string: The ID of the comment.
    • replyId required string: The ID of the reply.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

Output schema unknown

drive.replies.get

Gets a reply by ID.

google_drive.drive.replies.get({
  "fileId": "",
  "commentId": "",
  "replyId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • commentId required string: The ID of the comment.
    • replyId required string: The ID of the reply.
    • includeDeleted boolean: Whether to return deleted replies. Deleted replies will not include their original content.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.replies.update

Updates a reply with patch semantics.

google_drive.drive.replies.update({
  "fileId": "",
  "commentId": "",
  "replyId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • commentId required string: The ID of the comment.
    • replyId required string: The ID of the reply.
    • body Reply
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.files.copy

Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied.

google_drive.drive.files.copy({
  "fileId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • enforceSingleParent boolean: Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead.
    • ignoreDefaultVisibility boolean: Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
    • includePermissionsForView string: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
    • keepRevisionForever boolean: Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
    • ocrLanguage string: A language hint for OCR processing during image import (ISO 639-1 code).
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • body File
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.files.export

Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.

google_drive.drive.files.export({
  "fileId": "",
  "mimeType": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • mimeType required string: The MIME type of the format requested for this export.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

Output schema unknown

drive.permissions.list

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

google_drive.drive.permissions.list({
  "fileId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file or shared drive.
    • includePermissionsForView string: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
    • pageSize integer: The maximum number of permissions to return per page. When not set for files in a shared drive, at most 100 results will be returned. When not set for files that are not in a shared drive, the entire list will be returned.
    • pageToken string: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • useDomainAdminAccess boolean: Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.permissions.create

Creates a permission for a file or shared drive.

google_drive.drive.permissions.create({
  "fileId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file or shared drive.
    • emailMessage string: A plain text custom message to include in the notification email.
    • enforceSingleParent boolean: Deprecated. See moveToNewOwnersRoot for details.
    • moveToNewOwnersRoot boolean: This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.
    • sendNotificationEmail boolean: Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • transferOwnership boolean: Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.
    • useDomainAdminAccess boolean: Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
    • body Permission
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.permissions.delete

Deletes a permission.

google_drive.drive.permissions.delete({
  "fileId": "",
  "permissionId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file or shared drive.
    • permissionId required string: The ID of the permission.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • useDomainAdminAccess boolean: Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

Output schema unknown

drive.permissions.get

Gets a permission by ID.

google_drive.drive.permissions.get({
  "fileId": "",
  "permissionId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • permissionId required string: The ID of the permission.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • useDomainAdminAccess boolean: Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.permissions.update

Updates a permission with patch semantics.

google_drive.drive.permissions.update({
  "fileId": "",
  "permissionId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file or shared drive.
    • permissionId required string: The ID of the permission.
    • removeExpiration boolean: Whether to remove the expiration date.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • transferOwnership boolean: Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.
    • useDomainAdminAccess boolean: Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
    • body Permission
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.revisions.list

Lists a file's revisions.

google_drive.drive.revisions.list({
  "fileId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • pageSize integer: The maximum number of revisions to return per page.
    • pageToken string: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.revisions.delete

Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.

google_drive.drive.revisions.delete({
  "fileId": "",
  "revisionId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • revisionId required string: The ID of the revision.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

Output schema unknown

drive.revisions.get

Gets a revision's metadata or content by ID.

google_drive.drive.revisions.get({
  "fileId": "",
  "revisionId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • revisionId required string: The ID of the revision.
    • acknowledgeAbuse boolean: Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.revisions.update

Updates a revision with patch semantics.

google_drive.drive.revisions.update({
  "fileId": "",
  "revisionId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • revisionId required string: The ID of the revision.
    • body Revision
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.files.watch

Subscribes to changes to a file

google_drive.drive.files.watch({
  "fileId": ""
}, context)

Input

  • input object
    • fileId required string: The ID of the file.
    • acknowledgeAbuse boolean: Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
    • includePermissionsForView string: Specifies which additional view's permissions to include in the response. Only 'published' is supported.
    • supportsAllDrives boolean: Whether the requesting application supports both My Drives and shared drives.
    • supportsTeamDrives boolean: Deprecated use supportsAllDrives instead.
    • body Channel
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.teamdrives.list

Deprecated use drives.list instead.

google_drive.drive.teamdrives.list({}, context)

Input

  • input object
    • pageSize integer: Maximum number of Team Drives to return.
    • pageToken string: Page token for Team Drives.
    • q string: Query string for searching Team Drives.
    • useDomainAdminAccess boolean: Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.teamdrives.create

Deprecated use drives.create instead.

google_drive.drive.teamdrives.create({
  "requestId": ""
}, context)

Input

  • input object
    • requestId required string: An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned.
    • body TeamDrive
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.teamdrives.delete

Deprecated use drives.delete instead.

google_drive.drive.teamdrives.delete({
  "teamDriveId": ""
}, context)

Input

  • input object
    • teamDriveId required string: The ID of the Team Drive
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

Output schema unknown

drive.teamdrives.get

Deprecated use drives.get instead.

google_drive.drive.teamdrives.get({
  "teamDriveId": ""
}, context)

Input

  • input object
    • teamDriveId required string: The ID of the Team Drive
    • useDomainAdminAccess boolean: Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

drive.teamdrives.update

Deprecated use drives.update instead

google_drive.drive.teamdrives.update({
  "teamDriveId": ""
}, context)

Input

  • input object
    • teamDriveId required string: The ID of the Team Drive
    • useDomainAdminAccess boolean: Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.
    • body TeamDrive
    • alt string (values: json): Data format for the response.
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • userIp string: Deprecated. Please use quotaUser instead.

Output

Definitions

About

  • About object: Information about the user, the user's Drive, and system capabilities.
    • appInstalled boolean: Whether the user has installed the requesting app.
    • canCreateDrives boolean: Whether the user can create shared drives.
    • canCreateTeamDrives boolean: Deprecated - use canCreateDrives instead.
    • driveThemes array: A list of themes that are supported for shared drives.
      • items object
        • backgroundImageLink string: A link to this theme's background image.
        • colorRgb string: The color of this theme as an RGB hex string.
        • id string: The ID of the theme.
    • exportFormats object: A map of source MIME type to possible targets for all supported exports.
    • folderColorPalette array: The currently supported folder colors as RGB hex strings.
      • items string
    • importFormats object: A map of source MIME type to possible targets for all supported imports.
    • kind string: Identifies what kind of resource this is. Value: the fixed string "drive#about".
    • maxImportSizes object: A map of maximum import sizes by MIME type, in bytes.
    • maxUploadSize string: The maximum upload size in bytes.
    • storageQuota
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate