Show / Hide Table of Contents

Class Revision

The metadata for a revision to a file.

Inheritance
System.Object
Revision
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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
System.String

ExportLinks

Links for exporting Google Docs to specific formats.

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

Id

The ID of the revision.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
System.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
System.Nullable<System.Boolean>

Kind

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
System.String

LastModifyingUser

The last user to modify this revision.

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

Md5Checksum

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
System.String

MimeType

The MIME type of the revision.

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

ModifiedTime

System.DateTime representation of ModifiedTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTime? ModifiedTime { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

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
System.String

OriginalFilename

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
System.String

PublishAuto

Whether subsequent revisions will be automatically republished. This is only applicable to Google Docs.

Declaration
[JsonProperty("publishAuto")]
public virtual bool? PublishAuto { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

Published

Whether this revision is published. This is only applicable to Google Docs.

Declaration
[JsonProperty("published")]
public virtual bool? Published { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

PublishedOutsideDomain

Whether this revision is published outside the domain. This is only applicable to Google Docs.

Declaration
[JsonProperty("publishedOutsideDomain")]
public virtual bool? PublishedOutsideDomain { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

Size

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
System.Nullable<System.Int64>

Implements

IDirectResponseSchema
Back to top