GoogleDriveClientOptions
OfficeIMO.GoogleWorkspace.Drive
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
- Constructor GoogleDriveClient.GoogleDriveClient
Constructors
public GoogleDriveClientOptions() #Methods
public static GoogleDriveClientOptions ForFileAuthoring() #Creates an option set for an authoring workflow that only reads files created or opened by the app.
Returns
GoogleDriveClientOptionspublic 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
- Whether generated Drive requests declare shared-drive support.
Returns
GoogleDriveClientOptionsInherited Methods
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.
268435456