# GoogleDriveOperation

Logical Drive operation used to select the client's default OAuth scope.

Enum 

`OfficeIMO.GoogleWorkspace.Drive`

**Namespace**

`OfficeIMO.GoogleWorkspace.Drive`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[GoogleDriveClient.cs:407](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L407)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Logical Drive operation used to select the client's default OAuth scope.

## Inheritance

- Enum
- GoogleDriveOperation

## Usage

Explore 11 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 10

- Field [GoogleDriveOperation.CreateOrUpdate](/api/google-workspace/officeimo-googleworkspace-drive-googledriveoperation/#field-createorupdate)
- Field [GoogleDriveOperation.Delete](/api/google-workspace/officeimo-googleworkspace-drive-googledriveoperation/#field-delete)
- Field [GoogleDriveOperation.Download](/api/google-workspace/officeimo-googleworkspace-drive-googledriveoperation/#field-download)
- Field [GoogleDriveOperation.Export](/api/google-workspace/officeimo-googleworkspace-drive-googledriveoperation/#field-export)
- Field [GoogleDriveOperation.ManageComments](/api/google-workspace/officeimo-googleworkspace-drive-googledriveoperation/#field-managecomments)
- Field [GoogleDriveOperation.ManagePermissions](/api/google-workspace/officeimo-googleworkspace-drive-googledriveoperation/#field-managepermissions)
- Field [GoogleDriveOperation.ReadChanges](/api/google-workspace/officeimo-googleworkspace-drive-googledriveoperation/#field-readchanges)
- Field [GoogleDriveOperation.ReadComments](/api/google-workspace/officeimo-googleworkspace-drive-googledriveoperation/#field-readcomments)
- Field [GoogleDriveOperation.ReadMetadata](/api/google-workspace/officeimo-googleworkspace-drive-googledriveoperation/#field-readmetadata)
- Field [GoogleDriveOperation.ReadRevisions](/api/google-workspace/officeimo-googleworkspace-drive-googledriveoperation/#field-readrevisions)

### Accepted by parameters 1

- Method [GoogleDriveClient.GetRequiredScopes](/api/google-workspace/officeimo-googleworkspace-drive-googledriveclient/#method-getrequiredscopes-officeimo-googleworkspace-drive-googledriveoperation) parameter `operation`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const GoogleDriveOperation ReadMetadata` [#](#field-readmetadata)

[GoogleDriveClient.cs:409](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L409)

Read file, folder, or shared-drive metadata.

Value: `0`

`public const GoogleDriveOperation Download` [#](#field-download)

[GoogleDriveClient.cs:411](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L411)

Download binary file content.

Value: `1`

`public const GoogleDriveOperation Export` [#](#field-export)

[GoogleDriveClient.cs:413](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L413)

Export a Google-native file to an external format.

Value: `2`

`public const GoogleDriveOperation CreateOrUpdate` [#](#field-createorupdate)

[GoogleDriveClient.cs:415](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L415)

Create, copy, move, or upload content.

Value: `3`

`public const GoogleDriveOperation ManagePermissions` [#](#field-managepermissions)

[GoogleDriveClient.cs:417](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L417)

Create or delete file permissions.

Value: `4`

`public const GoogleDriveOperation ReadComments` [#](#field-readcomments)

[GoogleDriveClient.cs:419](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L419)

Read file comments and replies.

Value: `5`

`public const GoogleDriveOperation ManageComments` [#](#field-managecomments)

[GoogleDriveClient.cs:421](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L421)

Create, update, resolve, or delete comments and replies.

Value: `6`

`public const GoogleDriveOperation ReadRevisions` [#](#field-readrevisions)

[GoogleDriveClient.cs:423](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L423)

Read file revision history.

Value: `7`

`public const GoogleDriveOperation ReadChanges` [#](#field-readchanges)

[GoogleDriveClient.cs:425](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L425)

Read the account or shared-drive change feed.

Value: `8`

`public const GoogleDriveOperation Delete` [#](#field-delete)

[GoogleDriveClient.cs:427](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.GoogleWorkspace/Drive/GoogleDriveClient.cs#L427)

Permanently delete a Drive file.

Value: `9`

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