Show / Hide Table of Contents

Class FilesResource.DownloadRequest

Downloads content of a file. Operations are valid for 24 hours from the time of creation.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Operation>
DriveBaseServiceRequest<Operation>
FilesResource.DownloadRequest
Implements
IClientServiceRequest<Operation>
IClientServiceRequest
Inherited Members
DriveBaseServiceRequest<Operation>.Xgafv
DriveBaseServiceRequest<Operation>.AccessToken
DriveBaseServiceRequest<Operation>.Alt
DriveBaseServiceRequest<Operation>.Callback
DriveBaseServiceRequest<Operation>.Fields
DriveBaseServiceRequest<Operation>.Key
DriveBaseServiceRequest<Operation>.OauthToken
DriveBaseServiceRequest<Operation>.PrettyPrint
DriveBaseServiceRequest<Operation>.QuotaUser
DriveBaseServiceRequest<Operation>.UploadType
DriveBaseServiceRequest<Operation>.UploadProtocol
ClientServiceRequest<Operation>.Execute()
ClientServiceRequest<Operation>.ExecuteAsStream()
ClientServiceRequest<Operation>.ExecuteAsync()
ClientServiceRequest<Operation>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Operation>.ExecuteAsStreamAsync()
ClientServiceRequest<Operation>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Operation>.CreateRequest(bool?)
ClientServiceRequest<Operation>.GenerateRequestUri()
ClientServiceRequest<Operation>.GetBody()
ClientServiceRequest<Operation>.GetDefaultETagAction(string)
ClientServiceRequest<Operation>.ETagAction
ClientServiceRequest<Operation>.ModifyRequest
ClientServiceRequest<Operation>.ValidateParameters
ClientServiceRequest<Operation>.ApiVersion
ClientServiceRequest<Operation>.RequestParameters
ClientServiceRequest<Operation>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<Operation>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Operation>.MethodName

MimeType

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 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.

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
ClientServiceRequest<Operation>.RestPath

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()
Overrides
DriveBaseServiceRequest<Operation>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX