Show / Hide Table of Contents

Class Revision

A revision of a file.

Inheritance
object
Revision
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Drive.v2.Data
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class Revision : IDirectResponseSchema

Properties

DownloadUrl

Declaration
[JsonProperty("downloadUrl")]
public virtual string DownloadUrl { get; set; }
Property Value
Type Description
string

ETag

The ETag of the revision.

Declaration
[JsonProperty("etag")]
public virtual string ETag { get; set; }
Property Value
Type Description
string

ExportLinks

Links for exporting Docs Editors files to specific formats.

Declaration
[JsonProperty("exportLinks")]
public virtual IDictionary<string, string> ExportLinks { get; set; }
Property Value
Type Description
System.Collections.Generic.IDictionary<TKey, TValue><string, string>

FileSize

The size of the revision in bytes. This will only be populated on files with content stored in Drive.

Declaration
[JsonProperty("fileSize")]
public virtual long? FileSize { get; set; }
Property Value
Type Description
long?

Id

The ID of the revision.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
string

Kind

This is always drive#revision.

Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type Description
string

LastModifyingUser

The last user to modify this revision.

Declaration
[JsonProperty("lastModifyingUser")]
public virtual User LastModifyingUser { get; set; }
Property Value
Type Description
User

LastModifyingUserName

Name of the last user to modify this revision.

Declaration
[JsonProperty("lastModifyingUserName")]
public virtual string LastModifyingUserName { get; set; }
Property Value
Type Description
string

Md5Checksum

An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.

Declaration
[JsonProperty("md5Checksum")]
public virtual string Md5Checksum { get; set; }
Property Value
Type Description
string

MimeType

The MIME type of the revision.

Declaration
[JsonProperty("mimeType")]
public virtual string MimeType { get; set; }
Property Value
Type Description
string

ModifiedDate

System.DateTime representation of ModifiedDateRaw.

Declaration
[JsonIgnore]
public virtual DateTime? ModifiedDate { get; set; }
Property Value
Type Description
DateTime?

ModifiedDateRaw

Last time this revision was modified (formatted RFC 3339 timestamp).

Declaration
[JsonProperty("modifiedDate")]
public virtual string ModifiedDateRaw { get; set; }
Property Value
Type Description
string

OriginalFilename

The original filename when this revision was created. This will only be populated on files with content stored in Drive.

Declaration
[JsonProperty("originalFilename")]
public virtual string OriginalFilename { get; set; }
Property Value
Type Description
string

Pinned

Whether this revision is pinned to prevent automatic purging. If not set, the revision is automatically purged 30 days after newer content is uploaded. This field can only be modified on files with content stored in Drive, excluding Docs Editors files. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to a maximum of 200 revisions.

Declaration
[JsonProperty("pinned")]
public virtual bool? Pinned { get; set; }
Property Value
Type Description
bool?

PublishAuto

Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Docs Editors files.

Declaration
[JsonProperty("publishAuto")]
public virtual bool? PublishAuto { get; set; }
Property Value
Type Description
bool?

Published

Whether this revision is published. This is only populated and can only be modified for Docs Editors files.

Declaration
[JsonProperty("published")]
public virtual bool? Published { get; set; }
Property Value
Type Description
bool?

PublishedLink

A link to the published revision. This is only populated for Google Sites files.

Declaration
[JsonProperty("publishedLink")]
public virtual string PublishedLink { get; set; }
Property Value
Type Description
string

PublishedOutsideDomain

Whether this revision is published outside the domain. This is only populated and can only be modified for Docs Editors files.

Declaration
[JsonProperty("publishedOutsideDomain")]
public virtual bool? PublishedOutsideDomain { get; set; }
Property Value
Type Description
bool?

SelfLink

A link back to this revision.

Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In This Article
Back to top Generated by DocFX