Show / Hide Table of Contents

Class RevisionsResource.GetRequest

Gets a revision's metadata or content by ID.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Revision>
DriveBaseServiceRequest<Revision>
RevisionsResource.GetRequest
Implements
IClientServiceRequest<Revision>
IClientServiceRequest
Inherited Members
DriveBaseServiceRequest<Revision>.Xgafv
DriveBaseServiceRequest<Revision>.AccessToken
DriveBaseServiceRequest<Revision>.Alt
DriveBaseServiceRequest<Revision>.Callback
DriveBaseServiceRequest<Revision>.Fields
DriveBaseServiceRequest<Revision>.Key
DriveBaseServiceRequest<Revision>.OauthToken
DriveBaseServiceRequest<Revision>.PrettyPrint
DriveBaseServiceRequest<Revision>.QuotaUser
DriveBaseServiceRequest<Revision>.UploadType
DriveBaseServiceRequest<Revision>.UploadProtocol
ClientServiceRequest<Revision>.Execute()
ClientServiceRequest<Revision>.ExecuteAsStream()
ClientServiceRequest<Revision>.ExecuteAsync()
ClientServiceRequest<Revision>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Revision>.ExecuteAsStreamAsync()
ClientServiceRequest<Revision>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Revision>.CreateRequest(bool?)
ClientServiceRequest<Revision>.GenerateRequestUri()
ClientServiceRequest<Revision>.GetBody()
ClientServiceRequest<Revision>.GetDefaultETagAction(string)
ClientServiceRequest<Revision>.ETagAction
ClientServiceRequest<Revision>.ModifyRequest
ClientServiceRequest<Revision>.ValidateParameters
ClientServiceRequest<Revision>.ApiVersion
ClientServiceRequest<Revision>.RequestParameters
ClientServiceRequest<Revision>.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 RevisionsResource.GetRequest : DriveBaseServiceRequest<Revision>, IClientServiceRequest<Revision>, IClientServiceRequest

Constructors

GetRequest(IClientService, string, string)

Constructs a new Get request.

Declaration
public GetRequest(IClientService service, string fileId, string revisionId)
Parameters
Type Name Description
IClientService service
string fileId
string revisionId

Properties

AcknowledgeAbuse

Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the alt parameter is set to media and the user is the owner of the file or an organizer of the shared drive in which the file resides.

Declaration
[RequestParameter("acknowledgeAbuse", RequestParameterType.Query)]
public virtual bool? AcknowledgeAbuse { get; set; }
Property Value
Type Description
bool?

FileId

The ID of the file.

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

MediaDownloader

Gets the media downloader.

Declaration
public IMediaDownloader MediaDownloader { get; }
Property Value
Type Description
IMediaDownloader

MethodName

Gets the method name.

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

RestPath

Gets the REST path.

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

RevisionId

The ID of the revision.

Declaration
[RequestParameter("revisionId", RequestParameterType.Path)]
public virtual string RevisionId { get; }
Property Value
Type Description
string

Methods

Download(Stream)

Synchronously download the media into the given stream.

Warning: This method hides download errors; use DownloadWithStatus(Stream) instead.

Declaration
public virtual void Download(Stream stream)
Parameters
Type Name Description
Stream stream
Remarks

This method uses the MediaDownloader property to perform the download. Progress event handlers and other configuration may be performed using that property prior to calling this method.

DownloadAsync(Stream)

Asynchronously download the media into the given stream.

Declaration
public virtual Task<IDownloadProgress> DownloadAsync(Stream stream)
Parameters
Type Name Description
Stream stream
Returns
Type Description
Task<IDownloadProgress>
Remarks

This method uses the MediaDownloader property to perform the download. Progress event handlers and other configuration may be performed using that property prior to calling this method.

DownloadAsync(Stream, CancellationToken)

Asynchronously download the media into the given stream.

Declaration
public virtual Task<IDownloadProgress> DownloadAsync(Stream stream, CancellationToken cancellationToken)
Parameters
Type Name Description
Stream stream
CancellationToken cancellationToken
Returns
Type Description
Task<IDownloadProgress>
Remarks

This method uses the MediaDownloader property to perform the download. Progress event handlers and other configuration may be performed using that property prior to calling this method.

DownloadRange(Stream, RangeHeaderValue)

Synchronously download a range of the media into the given stream.

Declaration
public virtual IDownloadProgress DownloadRange(Stream stream, RangeHeaderValue range)
Parameters
Type Name Description
Stream stream
RangeHeaderValue range
Returns
Type Description
IDownloadProgress
Remarks

This method uses the MediaDownloader property to perform the download. Progress event handlers and other configuration may be performed using that property prior to calling this method.

DownloadRangeAsync(Stream, RangeHeaderValue, CancellationToken)

Asynchronously download a range of the media into the given stream.

Declaration
public virtual Task<IDownloadProgress> DownloadRangeAsync(Stream stream, RangeHeaderValue range, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Stream stream
RangeHeaderValue range
CancellationToken cancellationToken
Returns
Type Description
Task<IDownloadProgress>
Remarks

This method uses the MediaDownloader property to perform the download. Progress event handlers and other configuration may be performed using that property prior to calling this method.

DownloadWithStatus(Stream)

Synchronously download the media into the given stream.

Declaration
public virtual IDownloadProgress DownloadWithStatus(Stream stream)
Parameters
Type Name Description
Stream stream
Returns
Type Description
IDownloadProgress

The final status of the download; including whether the download succeeded or failed.

Remarks

This method uses the MediaDownloader property to perform the download. Progress event handlers and other configuration may be performed using that property prior to calling this method.

InitParameters()

Initializes Get parameter list.

Declaration
protected override void InitParameters()
Overrides
DriveBaseServiceRequest<Revision>.InitParameters()

Implements

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