# GoogleDriveRevision

Metadata for one historical Drive file revision.

Class 

`OfficeIMO.GoogleWorkspace.Drive`

**Namespace**

`OfficeIMO.GoogleWorkspace.Drive`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[GoogleDriveModels.cs:289](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/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/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/105ae88c45f6be3bb2020384e25ffe61d990451b/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/105ae88c45f6be3bb2020384e25ffe61d990451b/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/105ae88c45f6be3bb2020384e25ffe61d990451b/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/105ae88c45f6be3bb2020384e25ffe61d990451b/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/105ae88c45f6be3bb2020384e25ffe61d990451b/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:93AEDEE453A32F9AEB1D0BF1CA55D792EAA7F2452060ACFCD8588B8C749E69FB -->
