# GoogleDriveRevision

Metadata for one historical Drive file revision.

Class 

`OfficeIMO.GoogleWorkspace.Drive`

**Namespace**

`OfficeIMO.GoogleWorkspace.Drive`

**Assembly**

`OfficeIMO.GoogleWorkspace.Drive`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleDriveModels.cs:289](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L289)

**Modifiers**

sealed

Metadata for one historical Drive file revision.

## Inheritance

- object
- GoogleDriveRevision

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [GoogleDriveRevisionList.Revisions](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriverevisionlist/#property-revisions)

Filter members 

Show inherited

## Constructors

`public GoogleDriveRevision()` [#](#constructor-ctor)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string? Id { get; set; }` [#](#property-id)

[GoogleDriveModels.cs:289](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L289)

`JsonPropertyName("id")`

Gets or sets the revision identifier.

`public DateTimeOffset? ModifiedTime { get; set; }` [#](#property-modifiedtime)

[GoogleDriveModels.cs:293](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L293)

`JsonPropertyName("modifiedTime")`

Gets or sets when the revision was created or modified.

`public bool KeepForever { get; set; }` [#](#property-keepforever)

[GoogleDriveModels.cs:297](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L297)

`JsonPropertyName("keepForever")`

Gets or sets whether the revision is retained indefinitely.

`public bool Published { get; set; }` [#](#property-published)

[GoogleDriveModels.cs:301](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L301)

`JsonPropertyName("published")`

Gets or sets whether the revision is published.

`public long? Size { get; set; }` [#](#property-size)

[GoogleDriveModels.cs:306](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveModels.cs#L306)

`JsonPropertyName("size")` `JsonNumberHandling(1)`

Gets or sets the revision size in bytes, when available.

<!-- PowerForge markdown artifact sha256:D8893BCE9D5260BB897CBED1E5B146AADE2807E579EA649F6EE3E6484C3B7950 -->
