API Reference
Class
GoogleDriveClient
Inheritance
- Object
- GoogleDriveClient
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
Constructors
public GoogleDriveClient(GoogleWorkspaceSession session, GoogleDriveClientOptions options = null) #Parameters
- session GoogleWorkspaceSession
- options GoogleDriveClientOptions = null
Methods
public async Task<GoogleDriveFile> CopyFileAsync(String fileId, String name = null, String parentId = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveFile>Parameters
- fileId String
- name String = null
- parentId String = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveComment> CreateCommentAsync(String fileId, String content, String anchor = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveComment>Parameters
- fileId String
- content String
- anchor String = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveFile> CreateFolderAsync(String name, String parentId = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveFile>Parameters
- name String
- parentId String = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDrivePermission> CreatePermissionAsync(String fileId, GoogleDrivePermissionCreateOptions options, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDrivePermission>Parameters
- fileId String
- options GoogleDrivePermissionCreateOptions
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveReply> CreateReplyAsync(String fileId, String commentId, String content, String action = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveReply>Parameters
- fileId String
- commentId String
- content String
- action String = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task DeleteCommentAsync(String fileId, String commentId, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
TaskParameters
- fileId String
- commentId String
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task DeleteFileAsync(String fileId, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
TaskParameters
- fileId String
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task DeletePermissionAsync(String fileId, String permissionId, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
TaskParameters
- fileId String
- permissionId String
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task DeleteReplyAsync(String fileId, String commentId, String replyId, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
TaskParameters
- fileId String
- commentId String
- replyId String
- report TranslationReport = null
- cancellationToken CancellationToken = null
public virtual Void Dispose() #Returns:
Voidpublic async Task<Byte[]> DownloadAsync(String fileId, IProgress<GoogleDriveTransferProgress> progress = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<Byte[]>Parameters
- fileId String
- progress IProgress<GoogleDriveTransferProgress> = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<Byte[]> ExportAsync(String fileId, String mimeType, IProgress<GoogleDriveTransferProgress> progress = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<Byte[]>Parameters
- fileId String
- mimeType String
- progress IProgress<GoogleDriveTransferProgress> = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveFile> GetFileAsync(String fileId, String fields = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveFile>Parameters
- fileId String
- fields String = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveAboutFormats> GetFormatsAsync(TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveAboutFormats>Parameters
- report TranslationReport = null
- cancellationToken CancellationToken = null
public static IReadOnlyList<String> GetRequiredScopes(GoogleDriveOperation operation) #Returns:
IReadOnlyList<String>Parameters
- operation GoogleDriveOperation
public async Task<String> GetStartPageTokenAsync(String driveId = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<String>Parameters
- driveId String = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveChangeList> ListChangesAsync(String pageToken, GoogleDriveChangeListOptions options = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveChangeList>Parameters
- pageToken String
- options GoogleDriveChangeListOptions = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveCommentList> ListCommentsAsync(String fileId, String pageToken = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveCommentList>Parameters
- fileId String
- pageToken String = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveFileList> ListFilesAsync(GoogleDriveListOptions options = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveFileList>Parameters
- options GoogleDriveListOptions = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDrivePermissionList> ListPermissionsAsync(String fileId, String pageToken = null, Nullable<Int32> pageSize = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDrivePermissionList>Parameters
- fileId String
- pageToken String = null
- pageSize Nullable<Int32> = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveRevisionList> ListRevisionsAsync(String fileId, String pageToken = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveRevisionList>Parameters
- fileId String
- pageToken String = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveFile> MoveFileAsync(String fileId, String folderId, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveFile>Parameters
- fileId String
- folderId String
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveFile> ResolveFolderAsync(String folderId, String expectedDriveId = null, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveFile>Parameters
- folderId String
- expectedDriveId String = null
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveFile> UploadMultipartAsync(Byte[] content, GoogleDriveUploadOptions options, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveFile>Parameters
- content Byte[]
- options GoogleDriveUploadOptions
- report TranslationReport = null
- cancellationToken CancellationToken = null
public async Task<GoogleDriveFile> UploadResumableAsync(Byte[] content, GoogleDriveUploadOptions options, TranslationReport report = null, CancellationToken cancellationToken = null) #Returns:
Task<GoogleDriveFile>Parameters
- content Byte[]
- options GoogleDriveUploadOptions
- report TranslationReport = null
- cancellationToken CancellationToken = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Fields
public const String DefaultFileFields #Value:
id,name,mimeType,driveId,parents,webViewLink,webContentLink,modifiedTime,createdTime,version,size,trashed,capabilities(canDownload,canEdit,canMoveItemWithinDrive,canMoveItemOutOfDrive,canDelete,canShare,canComment)