Show / Hide Table of Contents

Class Revision

A revision of a file. Some resource methods (such as revisions.update) require a revisionId. Use the revisions.list method to retrieve the ID for a revision.

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

Output only. Short term download URL for the file. This will only be populated on files with content stored in Drive.

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

ETag

Output only. The ETag of the revision.

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

ExportLinks

Output only. Links for exporting Docs Editors files to specific formats.

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

FileSize

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

Output only. The ID of the revision.

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

Kind

Output only. This is always drive#revision.

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

LastModifyingUser

Output only. The last user to modify this revision. This field is only populated when the last modification was performed by a signed-in user.

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

LastModifyingUserName

Output only. Name of the last user to modify this revision.

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

Md5Checksum

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

Output only. The MIME type of the revision.

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

ModifiedDate

DateTime representation of ModifiedDateRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use ModifiedDateDateTimeOffset instead.")]
public virtual DateTime? ModifiedDate { get; set; }
Property Value
Type Description
DateTime?

ModifiedDateDateTimeOffset

DateTimeOffset representation of ModifiedDateRaw.

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

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

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

Output only. A link to the published revision. This is only populated for Docs Editors 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

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