Class 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.
Inheritance
Inherited Members
Namespace: Google.Apis.Drive.v3
Assembly: Google.Apis.Drive.v3.dll
Syntax
public class FilesResource.DownloadRequest : DriveBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
DownloadRequest(IClientService, string)
Constructs a new Download request.
Declaration
public DownloadRequest(IClientService service, string fileId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | fileId |
Properties
FileId
Required. The ID of the file to download.
Declaration
[RequestParameter("fileId", RequestParameterType.Path)]
public virtual string FileId { get; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MimeType
Optional. The MIME type the file should be downloaded as. This field can only be set when downloading Google Workspace documents. For a list of supported MIME types, see Export MIME types for Google Workspace documents. If not set, a Google Workspace document is downloaded with a default MIME type. The default MIME type might change in the future.
Declaration
[RequestParameter("mimeType", RequestParameterType.Query)]
public virtual string MimeType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
RevisionId
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.
Declaration
[RequestParameter("revisionId", RequestParameterType.Query)]
public virtual string RevisionId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
InitParameters()
Initializes Download parameter list.
Declaration
protected override void InitParameters()