Class RevisionsResource.GetRequest
Gets a revision's metadata or content by ID.
public class RevisionsResource.GetRequest : DriveBaseServiceRequest<Revision>
- Inheritance
-
RevisionsResource.GetRequest
- Inherited Members
Constructors
GetRequest(IClientService, string, string)
Constructs a new Get request.
public GetRequest(IClientService service, string fileId, string revisionId)
Parameters
Properties
AcknowledgeAbuse
Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
public virtual bool? AcknowledgeAbuse { get; set; }
Property Value
- bool?
FileId
The ID of the file.
public virtual string FileId { get; }
Property Value
HttpMethod
Gets the HTTP method.
public override string HttpMethod { get; }
Property Value
MediaDownloader
Gets the media downloader.
public IMediaDownloader MediaDownloader { get; }
Property Value
- IMediaDownloader
MethodName
Gets the method name.
public override string MethodName { get; }
Property Value
RestPath
Gets the REST path.
public override string RestPath { get; }
Property Value
RevisionId
The ID of the revision.
public virtual string RevisionId { get; }
Property Value
Methods
Download(Stream)
Synchronously download the media into the given stream.
Warning: This method hides download errors; use DownloadWithStatus(Stream) instead.
public virtual void Download(Stream stream)
Parameters
stream
Stream
DownloadAsync(Stream)
Asynchronously download the media into the given stream.
public virtual Task<IDownloadProgress> DownloadAsync(Stream stream)
Parameters
stream
Stream
Returns
- Task<IDownloadProgress>
DownloadAsync(Stream, CancellationToken)
Asynchronously download the media into the given stream.
public virtual Task<IDownloadProgress> DownloadAsync(Stream stream, CancellationToken cancellationToken)
Parameters
stream
StreamcancellationToken
CancellationToken
Returns
- Task<IDownloadProgress>
DownloadWithStatus(Stream)
Synchronously download the media into the given stream.
public virtual IDownloadProgress DownloadWithStatus(Stream stream)
Parameters
stream
Stream
Returns
- IDownloadProgress
The final status of the download; including whether the download succeeded or failed.
InitParameters()
Initializes Get parameter list.
protected override void InitParameters()