# GoogleDriveClientOptions

OAuth scopes, shared-drive behavior, and download limits for GoogleDriveClient.

Class 

`OfficeIMO.GoogleWorkspace.Drive`

**Namespace**

`OfficeIMO.GoogleWorkspace.Drive`

**Assembly**

`OfficeIMO.GoogleWorkspace.Drive`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleDriveClient.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.cs#L9)

**Modifiers**

sealed

OAuth scopes, shared-drive behavior, and download limits for [GoogleDriveClient](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/).

## Inheritance

- object
- GoogleDriveClientOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Manage Google Drive Files](/docs/google-workspace/drive/) Guide
  
  List, upload, download, copy, and share Google Drive files with the typed GoogleDriveClient from OfficeIMO.GoogleWorkspace.Drive.

## Usage

Explore 2 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

- Method [GoogleDriveClientOptions.ForFileAuthoring](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclientoptions/#method-forfileauthoring)

### Accepted by parameters 1

- Constructor [GoogleDriveClient.GoogleDriveClient](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#constructor-ctor-officeimo-googleworkspace-googleworkspacesession-officeimo-googleworkspace-drive-googledriveclientoptions) parameter `options`

Filter members 

Show inherited

## Constructors

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

[GoogleDriveClient.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.cs#L9)

## Methods

ForFileAuthoring 2 overloads

`public static GoogleDriveClientOptions ForFileAuthoring()` [#](#method-forfileauthoring)

[GoogleDriveClient.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.cs#L21)

Creates an option set for an authoring workflow that only reads files created or opened by the app.

Returns

`GoogleDriveClientOptions`

`public static GoogleDriveClientOptions ForFileAuthoring(bool supportsAllDrives)` [#](#method-forfileauthoring-boolean)

[GoogleDriveClient.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.cs#L29)

Creates an option set for an authoring workflow that only reads files created or opened by the app.

Parameters

**supportsAllDrives bool required**

Whether generated Drive requests declare shared-drive support.

Returns

`GoogleDriveClientOptions`

## 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 IReadOnlyList<string> ReadScopes { get; set; }` [#](#property-readscopes)

[GoogleDriveClient.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.cs#L9)

Gets or sets OAuth scopes used by read operations.

`public IReadOnlyList<string> WriteScopes { get; set; }` [#](#property-writescopes)

[GoogleDriveClient.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.cs#L11)

Gets or sets OAuth scopes used by mutation operations.

`public bool SupportsAllDrives { get; set; }` [#](#property-supportsalldrives)

[GoogleDriveClient.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.cs#L13)

Gets or sets whether requests include shared-drive support. The default is true.

`public long MaxDownloadBytes { get; set; }` [#](#property-maxdownloadbytes)

[GoogleDriveClient.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.cs#L15)

Gets or sets the maximum response body accepted by download operations.

## Fields

`public const long DefaultMaxDownloadBytes` [#](#field-defaultmaxdownloadbytes)

[GoogleDriveClient.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.cs#L7)

Default maximum buffered or file download size: 256 MiB.

Value: `268435456`

<!-- PowerForge markdown artifact sha256:3381B90CA16219B35452B5DD81C4A9F73714BDEB429F46F232B14AF13EE25517 -->
