2024-09-05
▼ ▲ drive.operations.list
Path: operations
Flat Path: operations
HTTP Method: GET
Parameters:
name
Description: The name of the operation's parent resource.
Location: query
Type: string
filter
Description: The standard list filter.
Location: query
Type: string
pageSize
Description: The standard list page size.
Location: query
Type: integer
Format: int32
pageToken
Description: The standard list page token.
Location: query
Type: string
Description: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
▼ ▲ drive.operations.get
Path: operations/{name}
Flat Path: operations/{name}
HTTP Method: GET
Parameters:
name
Description: The name of the operation resource.
Location: path
Required: Yes
Type: string
Parameter Order: name
Scopes:
Description: 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.
▼ ▲ drive.operation.delete
Path: operation/{name}
Flat Path: operation/{name}
HTTP Method: DELETE
Parameters:
name
Description: The name of the operation resource to be deleted.
Location: path
Required: Yes
Type: string
Parameter Order: name
Description: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
▼ ▲ drive.operation.cancel
Path: operation/{name}:cancel
Flat Path: operation/{name}:cancel
HTTP Method: POST
Parameters:
name
Description: The name of the operation resource to be cancelled.
Location: path
Required: Yes
Type: string
Parameter Order: name
Description: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
▼ ▲ drive.files.download
Path: files/{fileId}/download
Flat Path: files/{fileId}/download
HTTP Method: POST
Parameters:
fileId
Description: Required. The ID of the file to download.
Location: path
Required: Yes
Type: string
mimeType
Description: Optional. The MIME type the file should be downloaded as. This field can only be set when downloading Google Workspace documents. See [Export MIME types for Google Workspace documents](/drive/api/guides/ref-export-formats) for the list of supported MIME types. If not set, a Google Workspace document is downloaded with a default MIME type. The default MIME type might change in the future.
Location: query
Type: string
revisionId
Description: Optional. The revision ID of the file to download. This field can only be set when downloading blob files, Google Docs, and Google Sheets. Returns `INVALID_ARGUMENT` if downloading a specific revision on the file is unsupported.
Location: query
Type: string
Parameter Order: fileId
Scopes:
Description: Downloads content of a file. Operations are valid for 24 hours from the time of creation.