Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

GoogleDriveClientOptions

OfficeIMO.GoogleWorkspace.Drive

Namespace
OfficeIMO.GoogleWorkspace.Drive
Assembly
OfficeIMO.GoogleWorkspace.Drive
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

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

Inheritance

  • object
  • GoogleDriveClientOptions

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

Accepted by parameters 1

Constructors

public GoogleDriveClientOptions() #

Methods

ForFileAuthoring 2 overloads
public static GoogleDriveClientOptions ForFileAuthoring() #

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

public static GoogleDriveClientOptions ForFileAuthoring(bool supportsAllDrives) #

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.

Properties

public IReadOnlyList<string> ReadScopes { get; set; } #

Gets or sets OAuth scopes used by read operations.

public IReadOnlyList<string> WriteScopes { get; set; } #

Gets or sets OAuth scopes used by mutation operations.

public bool SupportsAllDrives { get; set; } #

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

public long MaxDownloadBytes { get; set; } #

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

Fields

public const long DefaultMaxDownloadBytes #

Default maximum buffered or file download size: 256 MiB.

Value: 268435456