Namespace Google.Apis.Drive.v2
Classes
AboutResource
The "about" collection of methods.
AboutResource.GetRequest
Gets the information about the current user along with Drive API settings
AppsResource
The "apps" collection of methods.
AppsResource.GetRequest
Gets a specific app.
AppsResource.ListRequest
Lists a user's installed apps.
ChangesResource
The "changes" collection of methods.
ChangesResource.GetRequest
Deprecated: Use changes.getStartPageToken
and changes.list
to retrieve recent changes.
ChangesResource.GetStartPageTokenRequest
Gets the starting pageToken for listing future changes.
ChangesResource.ListRequest
Lists the changes for a user or shared drive.
ChangesResource.WatchRequest
Subscribe to changes for a user.
ChannelsResource
The "channels" collection of methods.
ChannelsResource.StopRequest
Stops watching resources through this channel.
ChildrenResource
The "children" collection of methods.
ChildrenResource.DeleteRequest
Removes a child from a folder.
ChildrenResource.GetRequest
Gets a specific child reference.
ChildrenResource.InsertRequest
Inserts a file into a folder.
ChildrenResource.ListRequest
Lists a folder's children.
CommentsResource
The "comments" collection of methods.
CommentsResource.DeleteRequest
Deletes a comment.
CommentsResource.GetRequest
Gets a comment by ID.
CommentsResource.InsertRequest
Creates a new comment on the given file.
CommentsResource.ListRequest
Lists a file's comments.
CommentsResource.PatchRequest
Updates an existing comment.
CommentsResource.UpdateRequest
Updates an existing comment.
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.DeleteRequest
Permanently deletes a shared drive for which the user is an organizer
. The shared drive cannot contain any
untrashed items.
DrivesResource.GetRequest
Gets a shared drive's metadata by ID.
DrivesResource.HideRequest
Hides a shared drive from the default view.
DrivesResource.InsertRequest
Creates a new shared drive.
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.
DrivesResource.UpdateRequest
Updates the metadata for a shared drive.
FilesResource
The "files" collection of methods.
FilesResource.CopyRequest
Creates a copy of the specified file.
FilesResource.DeleteRequest
Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared
drive, the user must be an organizer
on the parent folder. If the target is a folder, all descendants
owned by the user are also deleted.
FilesResource.EmptyTrashRequest
Permanently deletes all of the user's trashed files.
FilesResource.ExportRequest
Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.
FilesResource.GenerateIdsRequest
Generates a set of file IDs which can be provided in insert or copy requests.
FilesResource.GetRequest
Gets a file's metadata or content by ID. If you provide the URL parameter alt=media
, then the response
includes the file contents in the response body. Downloading content with alt=media
only works if the file
is stored in Drive. To download Google Docs, Sheets, and Slides use
files.export
instead. For more information, see Download
& export files.
FilesResource.InsertMediaUpload
Insert media upload which supports resumable upload.
FilesResource.InsertRequest
Inserts a new file. This method supports an /upload URI and accepts uploaded media with the following
characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME types:*/*
Note: Specify a valid
MIME type, rather than the literal */*
value. The literal */*
is only used to indicate that any valid
MIME type can be uploaded. For more information on uploading files, see Upload file
data. Apps creating shortcuts with files.insert
must specify the MIME
type application/vnd.google-apps.shortcut
. Apps should specify a file extension in the title
property
when inserting files with the API. For example, an operation to insert a JPEG file should specify something
like "title": "cat.jpg"
in the metadata. Subsequent GET
requests include the read-only fileExtension
property populated with the extension originally specified in the title
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 title. In cases where the extension is missing, Drive attempts to
determine the extension based on the file's MIME type.
FilesResource.ListLabelsRequest
Lists the labels on a file.
FilesResource.ListRequest
Lists the user's files. This method accepts the q
parameter, which is a search query combining one or
more search terms. For more information, see the Search for files &
folders guide. Note: This method returns all files by default,
including trashed files. If you don't want trashed files to appear in the list, use the trashed=false
query parameter to remove trashed files from the results.
FilesResource.ModifyLabelsRequest
Modifies the set of labels applied to a file. Returns a list of the labels that were added or modified.
FilesResource.PatchRequest
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.
FilesResource.TouchRequest
Set the file's updated time to the current server time.
FilesResource.TrashRequest
Moves a file to the trash. The currently authenticated user must own the file or be at least a
fileOrganizer
on the parent for shared drive files.
FilesResource.UntrashRequest
Restores a file from the trash. The currently authenticated user must own the file or be at least a
fileOrganizer
on the parent for shared drive files.
FilesResource.UpdateMediaUpload
Update media upload which supports resumable upload.
FilesResource.UpdateRequest
Updates a file's metadata and/or content. When calling this method, only populate fields in the request
that you want to modify. When updating fields, some fields might be changed automatically, such as
modifiedDate
. This method supports patch semantics. This method supports an /upload URI and accepts
uploaded media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME
types:*/*
Note: Specify a valid MIME type, rather than the literal */*
value. The literal */*
is only
used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see
Upload file data.
FilesResource.WatchRequest
Subscribes to changes to a file.
ParentsResource
The "parents" collection of methods.
ParentsResource.DeleteRequest
Removes a parent from a file.
ParentsResource.GetRequest
Gets a specific parent reference.
ParentsResource.InsertRequest
Adds a parent folder for a file.
ParentsResource.ListRequest
Lists a file's parents.
PermissionsResource
The "permissions" collection of methods.
PermissionsResource.DeleteRequest
Deletes a permission from a file or shared drive. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.
PermissionsResource.GetIdForEmailRequest
Returns the permission ID for an email address.
PermissionsResource.GetRequest
Gets a permission by ID.
PermissionsResource.InsertRequest
Inserts a permission for a file or shared drive. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.
PermissionsResource.ListRequest
Lists a file's or shared drive's permissions.
PermissionsResource.PatchRequest
Updates a permission using patch semantics. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.
PermissionsResource.UpdateRequest
Updates a permission. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.
PropertiesResource
The "properties" collection of methods.
PropertiesResource.DeleteRequest
Deletes a property.
PropertiesResource.GetRequest
Gets a property by its key.
PropertiesResource.InsertRequest
Adds a property to a file, or updates it if it already exists.
PropertiesResource.ListRequest
Lists a file's properties.
PropertiesResource.PatchRequest
Updates a property.
PropertiesResource.UpdateRequest
Updates a property.
RepliesResource
The "replies" collection of methods.
RepliesResource.DeleteRequest
Deletes a reply.
RepliesResource.GetRequest
Gets a reply.
RepliesResource.InsertRequest
Creates a new reply to the given comment.
RepliesResource.ListRequest
Lists all of the replies to a comment.
RepliesResource.PatchRequest
Updates an existing reply.
RepliesResource.UpdateRequest
Updates an existing reply.
RevisionsResource
The "revisions" collection of methods.
RevisionsResource.DeleteRequest
Permanently deletes a file version. You can only delete revisions for files with binary content, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.
RevisionsResource.GetRequest
Gets a specific revision.
RevisionsResource.ListRequest
Lists a file's revisions.
RevisionsResource.PatchRequest
Updates a revision.
RevisionsResource.UpdateRequest
Updates a revision.
TeamdrivesResource
The "teamdrives" collection of methods.
TeamdrivesResource.DeleteRequest
Deprecated: Use drives.delete
instead.
TeamdrivesResource.GetRequest
Deprecated: Use drives.get
instead.
TeamdrivesResource.InsertRequest
Deprecated: Use drives.insert
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.CopyRequest.VisibilityEnum
The visibility of the new file. This parameter is only relevant when the source is not a native Google Doc and convert=false.
FilesResource.GetRequest.ProjectionEnum
Deprecated: This parameter has no function.
FilesResource.InsertMediaUpload.AltEnum
Data format for response.
FilesResource.InsertMediaUpload.VisibilityEnum
The visibility of the new file. This parameter is only relevant when convert=false.
FilesResource.InsertMediaUpload.XgafvEnum
V1 error format.
FilesResource.InsertRequest.VisibilityEnum
The visibility of the new file. This parameter is only relevant when convert=false.
FilesResource.ListRequest.CorpusEnum
Deprecated: The body of items (files/documents) to which the query applies. Use corpora
instead.
FilesResource.ListRequest.ProjectionEnum
Deprecated: This parameter has no function.
FilesResource.PatchRequest.ModifiedDateBehaviorEnum
Determines the behavior in which modifiedDate
is updated. This overrides setModifiedDate
.
FilesResource.UpdateMediaUpload.AltEnum
Data format for response.
FilesResource.UpdateMediaUpload.ModifiedDateBehaviorEnum
Determines the behavior in which modifiedDate
is updated. This overrides setModifiedDate
.
FilesResource.UpdateMediaUpload.XgafvEnum
V1 error format.
FilesResource.UpdateRequest.ModifiedDateBehaviorEnum
Determines the behavior in which modifiedDate
is updated. This overrides setModifiedDate
.
FilesResource.WatchRequest.ProjectionEnum
Deprecated: This parameter has no function.