Namespace Google.Apis.Drive.v3
Classes
AboutResource
The "about" collection of methods.
AboutResource.GetRequest
Gets information about the user, the user's Drive, and system capabilities. For more information, see
Return user info. Required: The
fields parameter must be set. To return the exact fields you need, see Return specific
fields.
AccessproposalsResource
The "accessproposals" collection of methods.
AccessproposalsResource.GetRequest
Retrieves an access proposal by ID. For more information, see Manage pending access proposals.
AccessproposalsResource.ListRequest
List the access proposals on a file. For more information, see Manage pending access proposals. Note: Only approvers are able to list access proposals on a file. If the user isn't an approver, a 403 error is returned.
AccessproposalsResource.ResolveRequest
Approves or denies an access proposal. For more information, see Manage pending access proposals.
ApprovalsResource
The "approvals" collection of methods.
ApprovalsResource.GetRequest
Gets an Approval by ID.
ApprovalsResource.ListRequest
Lists the Approvals on a file.
AppsResource
The "apps" collection of methods.
AppsResource.GetRequest
Gets a specific app. For more information, see Return user info.
AppsResource.ListRequest
Lists a user's installed apps. For more information, see Return user info.
ChangesResource
The "changes" collection of methods.
ChangesResource.GetStartPageTokenRequest
Gets the starting pageToken for listing future changes. For more information, see Retrieve changes.
ChangesResource.ListRequest
Lists the changes for a user or shared drive. For more information, see Retrieve changes.
ChangesResource.WatchRequest
Subscribes to changes for a user. For more information, see Notifications for resource changes.
ChannelsResource
The "channels" collection of methods.
ChannelsResource.StopRequest
Stops watching resources through this channel. For more information, see Notifications for resource changes.
CommentsResource
The "comments" collection of methods.
CommentsResource.CreateRequest
Creates a comment on a file. For more information, see Manage comments and
replies. Required: The fields
parameter must be set. To return the exact fields you need, see Return specific
fields.
CommentsResource.DeleteRequest
Deletes a comment. For more information, see Manage comments and replies.
CommentsResource.GetRequest
Gets a comment by ID. For more information, see Manage comments and
replies. Required: The fields
parameter must be set. To return the exact fields you need, see Return specific
fields.
CommentsResource.ListRequest
Lists a file's comments. For more information, see Manage comments and
replies. Required: The fields
parameter must be set. To return the exact fields you need, see Return specific
fields.
CommentsResource.UpdateRequest
Updates a comment with patch semantics. For more information, see Manage comments and
replies. Required: The fields
parameter must be set. To return the exact fields you need, see Return specific
fields.
DriveBaseServiceRequest<TResponse>
A base abstract class for Drive requests.
DriveService
The Drive Service.
DriveService.Scope
Available OAuth 2.0 scopes for use with the Google Drive API.
DriveService.ScopeConstants
Available OAuth 2.0 scope constants for use with the Google Drive API.
DrivesResource
The "drives" collection of methods.
DrivesResource.CreateRequest
Creates a shared drive. For more information, see Manage shared drives.
DrivesResource.DeleteRequest
Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any
untrashed items. For more information, see Manage shared
drives.
DrivesResource.GetRequest
Gets a shared drive's metadata by ID. For more information, see Manage shared drives.
DrivesResource.HideRequest
Hides a shared drive from the default view. For more information, see Manage shared drives.
DrivesResource.ListRequest
Lists the user's shared drives. This method accepts the q parameter, which is a search query combining
one or more search terms. For more information, see the Search for shared
drives guide.
DrivesResource.UnhideRequest
Restores a shared drive to the default view. For more information, see Manage shared drives.
DrivesResource.UpdateRequest
Updates the metadata for a shared drive. For more information, see Manage shared drives.
FilesResource
The "files" collection of methods.
FilesResource.CopyRequest
Creates a copy of a file and applies any requested updates with patch semantics. For more information, see Create and manage files.
FilesResource.CreateMediaUpload
Create media upload which supports resumable upload.
FilesResource.CreateRequest
Creates a file. For more information, see Create and manage
files. This method supports an /upload URI and accepts uploaded
media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME types:
*/* (Specify a valid MIME type, rather than the literal */* value. The literal */* is only used to
indicate that any valid MIME type can be uploaded. For more information, see Google Workspace and Google
Drive supported MIME types.) For more information on uploading
files, see Upload file data. Apps creating shortcuts with the
create method must specify the MIME type application/vnd.google-apps.shortcut. Apps should specify a
file extension in the name property when inserting files with the API. For example, an operation to insert
a JPEG file should specify something like "name": "cat.jpg" in the metadata. Subsequent GET requests
include the read-only fileExtension property populated with the extension originally specified in the
name property. When a Google Drive user requests to download a file, or when the file is downloaded
through the sync client, Drive builds a full filename (with extension) based on the name. In cases where the
extension is missing, Drive attempts to determine the extension based on the file's MIME type.
FilesResource.DeleteRequest
Permanently deletes a file owned by the user without moving it to the trash. For more information, see
Trash or delete files and folders. If the
file belongs to a shared drive, the user must be an organizer on the parent folder. If the target is a
folder, all descendants owned by the user are also deleted.
FilesResource.DownloadRequest
Downloads the content of a file. For more information, see Download and export files. Operations are valid for 24 hours from the time of creation.
FilesResource.EmptyTrashRequest
Permanently deletes all of the user's trashed files. For more information, see Trash or delete files and folders.
FilesResource.ExportRequest
Exports a Google Workspace document to the requested MIME type and returns exported byte content. For more information, see Download and export files. Note that the exported content is limited to 10 MB.
FilesResource.GenerateIdsRequest
Generates a set of file IDs which can be provided in create or copy requests. For more information, see Create and manage files.
FilesResource.GetRequest
Gets a file's metadata or content by ID. For more information, see Search for files and
folders. If you provide the URL parameter alt=media, then the
response includes the file contents in the response body. Downloading content with alt=media only works if
the file is stored in Drive. To download Google Docs, Sheets, and Slides use
files.export instead. For more information, see
Download and export files.
FilesResource.ListLabelsRequest
Lists the labels on a file. For more information, see List labels on a file.
FilesResource.ListRequest
Lists the user's files. For more information, see Search for files and
folders. This method accepts the q parameter, which is a search
query combining one or more search terms. This method returns all files by default, including trashed
files. If you don't want trashed files to appear in the list, use the trashed=false query parameter to
remove trashed files from the results.
FilesResource.ModifyLabelsRequest
Modifies the set of labels applied to a file. For more information, see Set a label field on a file. Returns a list of the labels that were added or modified.
FilesResource.UpdateMediaUpload
Update media upload which supports resumable upload.
FilesResource.UpdateRequest
Updates a file's metadata, content, or both. When calling this method, only populate fields in the request
that you want to modify. When updating fields, some fields might be changed automatically, such as
modifiedDate. This method supports patch semantics. This method supports an /upload URI and accepts
uploaded media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME
types: */* (Specify a valid MIME type, rather than the literal */* value. The literal */* is only
used to indicate that any valid MIME type can be uploaded. For more information, see Google Workspace and
Google Drive supported MIME types.) For more information on
uploading files, see Upload file data.
FilesResource.WatchRequest
Subscribes to changes to a file. For more information, see Notifications for resource changes.
OperationsResource
The "operations" collection of methods.
OperationsResource.GetRequest
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
PermissionsResource
The "permissions" collection of methods.
PermissionsResource.CreateRequest
Creates a permission for a file or shared drive. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.
PermissionsResource.DeleteRequest
Deletes a permission. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.
PermissionsResource.GetRequest
Gets a permission by ID. For more information, see Share files, folders, and drives.
PermissionsResource.ListRequest
Lists a file's or shared drive's permissions. For more information, see Share files, folders, and drives.
PermissionsResource.UpdateRequest
Updates a permission with patch semantics. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.
RepliesResource
The "replies" collection of methods.
RepliesResource.CreateRequest
Creates a reply to a comment.
RepliesResource.DeleteRequest
Deletes a reply.
RepliesResource.GetRequest
Gets a reply by ID.
RepliesResource.ListRequest
Lists a comment's replies.
RepliesResource.UpdateRequest
Updates a reply with patch semantics.
RevisionsResource
The "revisions" collection of methods.
RevisionsResource.DeleteRequest
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. For more information, see Manage file revisions.
RevisionsResource.GetRequest
Gets a revision's metadata or content by ID. For more information, see Manage file revisions.
RevisionsResource.ListRequest
Lists a file's revisions. For more information, see Manage file revisions. Important: The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision. The revision history visible in the Workspace editor user interface might be more complete than the list returned by the API.
RevisionsResource.UpdateRequest
Updates a revision with patch semantics. For more information, see Manage file revisions.
TeamdrivesResource
The "teamdrives" collection of methods.
TeamdrivesResource.CreateRequest
Deprecated: Use drives.create instead.
TeamdrivesResource.DeleteRequest
Deprecated: Use drives.delete instead.
TeamdrivesResource.GetRequest
Deprecated: Use drives.get instead.
TeamdrivesResource.ListRequest
Deprecated: Use drives.list instead.
TeamdrivesResource.UpdateRequest
Deprecated: Use drives.update instead.
Enums
DriveBaseServiceRequest<TResponse>.AltEnum
Data format for response.
DriveBaseServiceRequest<TResponse>.XgafvEnum
V1 error format.
FilesResource.CreateMediaUpload.AltEnum
Data format for response.
FilesResource.CreateMediaUpload.XgafvEnum
V1 error format.
FilesResource.ListRequest.CorpusEnum
Deprecated: The source of files to list. Use corpora instead.
FilesResource.UpdateMediaUpload.AltEnum
Data format for response.
FilesResource.UpdateMediaUpload.XgafvEnum
V1 error format.