Structs

Information about the user, the user’s Drive, and system capabilities.

A list of themes that are supported for shared drives.

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

A builder providing access to all methods supported on about resources. It is not used directly, but through the DriveHub hub.

The user’s storage quota limits and usage. All fields are measured in bytes.

Deprecated - use driveThemes instead.

A change to a file or shared drive.

Gets the starting pageToken for listing future changes.

A list of changes for a user.

Lists the changes for a user or shared drive.

A builder providing access to all methods supported on change resources. It is not used directly, but through the DriveHub hub.

Subscribes to changes for a user.

An notification channel used to watch for resource changes.

A builder providing access to all methods supported on channel resources. It is not used directly, but through the DriveHub hub.

Stop watching resources through this channel

A comment on a file.

Creates a new comment on a file.

Deletes a comment.

Gets a comment by ID.

A list of comments on a file.

Lists a file’s comments.

A builder providing access to all methods supported on comment resources. It is not used directly, but through the DriveHub hub.

The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.

Updates a comment with patch semantics.

A restriction for accessing the content of the file.

Representation of a shared drive.

An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don’t set themeId. When specified, all fields of the backgroundImageFile must be set.

Capabilities the current user has on this shared drive.

Creates a new shared drive.

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

Gets a shared drive’s metadata by ID.

Hides a shared drive from the default view.

Central instance to access all DriveHub related resource activities

A list of shared drives.

Lists the user’s shared drives.

A builder providing access to all methods supported on drive resources. It is not used directly, but through the DriveHub hub.

A set of restrictions that apply to this shared drive or items inside this shared drive.

Restores a shared drive to the default view.

Updates the metadate for a shared drive.

The metadata for a file.

Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.

Additional information about the content of the file. These fields are never populated in responses.

A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.

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

Creates a new file.

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.

Permanently deletes all of the user’s trashed files.

Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.

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

Gets a file’s metadata or content by ID.

Additional metadata about image media, if available.

Geographic location information stored in the image.

Contains details about the link URLs that clients are using to refer to this item.

A list of files.

Lists or searches files.

A builder providing access to all methods supported on file resources. It is not used directly, but through the DriveHub hub.

Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.

Updates a file’s metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics.

Additional metadata about video media. This may not be available immediately upon upload.

Subscribes to changes to a file. While you can establish a channel forchanges to a file on a shared drive, a change to a shared drive file won’t create a notification.

A list of generated file IDs which can be provided in create requests.

A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.

Creates a permission for a file or shared drive.

Deletes a permission.

Gets a permission by ID.

A list of permissions for a file.

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

A builder providing access to all methods supported on permission resources. It is not used directly, but through the DriveHub hub.

Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.

Deprecated - use permissionDetails instead.

Updates a permission with patch semantics.

A reply to a comment on a file.

Creates a new reply to a comment.

Deletes a reply.

Gets a reply by ID.

A list of replies to a comment on a file.

Lists a comment’s replies.

A builder providing access to all methods supported on reply resources. It is not used directly, but through the DriveHub hub.

Updates a reply with patch semantics.

The metadata for a revision to a file.

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.

Gets a revision’s metadata or content by ID.

A list of revisions of a file.

Lists a file’s revisions.

A builder providing access to all methods supported on revision resources. It is not used directly, but through the DriveHub hub.

Updates a revision with patch semantics.

There is no detailed description.

Deprecated: use the drive collection instead.

An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don’t set themeId. When specified, all fields of the backgroundImageFile must be set.

Capabilities the current user has on this Team Drive.

A list of Team Drives.

A set of restrictions that apply to this Team Drive or items inside this Team Drive.

Deprecated use drives.create instead.

Deprecated use drives.delete instead.

Deprecated use drives.get instead.

Deprecated use drives.list instead.

A builder providing access to all methods supported on teamdrive resources. It is not used directly, but through the DriveHub hub.

Deprecated use drives.update instead

Information about a Drive user.

Enums

Identifies the an OAuth2 authorization scope. A scope is needed when requesting an authorization token.