Show / Hide Table of Contents

Class Revision

The metadata for a revision to 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.v3.Data
Assembly: Google.Apis.Drive.v3.dll
Syntax
public class Revision : IDirectResponseSchema

Properties

ETag

The ETag of the item.

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

Id

Output only. The ID of the revision.

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

KeepForever

Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file. This field is only applicable to files with binary content in Drive.

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

Kind

Output only. Identifies what kind of resource this is. Value: the fixed string "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.

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

Md5Checksum

Output only. The MD5 checksum of the revision's content. This is only applicable to files with binary content 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

ModifiedTime

DateTime representation of ModifiedTimeRaw.

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

ModifiedTimeDateTimeOffset

DateTimeOffset representation of ModifiedTimeRaw.

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

ModifiedTimeRaw

The last time the revision was modified (RFC 3339 date-time).

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

OriginalFilename

Output only. The original filename used to create this revision. This is only applicable to files with binary content in Drive.

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

PublishAuto

Whether subsequent revisions will be automatically republished. This is only applicable to 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 applicable to 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 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 applicable to Docs Editors files.

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

Size

Output only. The size of the revision's content in bytes. This is only applicable to files with binary content in Drive.

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

Implements

IDirectResponseSchema
In This Article
Back to top Generated by DocFX