drive
v2
|
The "files" collection of methods. More...
Classes | |
class | CopyRequest |
Creates a copy of the specified file. More... | |
class | DeleteRequest |
Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for shared drive files. More... | |
class | EmptyTrashRequest |
Permanently deletes all of the user's trashed files. More... | |
class | ExportRequest |
Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB. More... | |
class | GenerateIdsRequest |
Generates a set of file IDs which can be provided in insert or copy requests. More... | |
class | GetRequest |
Gets a file's metadata by ID. More... | |
class | InsertMediaUpload |
Insert media upload which supports resumable upload. More... | |
class | InsertRequest |
Insert a new file. More... | |
class | ListRequest |
Lists the user's files. More... | |
class | PatchRequest |
Updates file metadata and/or content. This method supports patch semantics. More... | |
class | TouchRequest |
Set the file's updated time to the current server time. More... | |
class | TrashRequest |
Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files. More... | |
class | UntrashRequest |
Restores a file from the trash. More... | |
class | UpdateMediaUpload |
Update media upload which supports resumable upload. More... | |
class | UpdateRequest |
Updates file metadata and/or content. More... | |
class | WatchRequest |
Subscribe to changes on a file More... | |
Public Member Functions | |
FilesResource (Google.Apis.Services.IClientService service) | |
Constructs a new resource. More... | |
virtual CopyRequest | Copy (Google.Apis.Drive.v2.Data.File body, string fileId) |
Creates a copy of the specified file. More... | |
virtual DeleteRequest | Delete (string fileId) |
Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for shared drive files. More... | |
virtual EmptyTrashRequest | EmptyTrash () |
Permanently deletes all of the user's trashed files. More... | |
virtual ExportRequest | Export (string fileId, string mimeType) |
Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB. More... | |
virtual GenerateIdsRequest | GenerateIds () |
Generates a set of file IDs which can be provided in insert or copy requests. More... | |
virtual GetRequest | Get (string fileId) |
Gets a file's metadata by ID. More... | |
virtual InsertRequest | Insert (Google.Apis.Drive.v2.Data.File body) |
Insert a new file. More... | |
virtual InsertMediaUpload | Insert (Google.Apis.Drive.v2.Data.File body, System.IO.Stream stream, string contentType) |
Insert a new file. More... | |
virtual ListRequest | List () |
Lists the user's files. More... | |
virtual PatchRequest | Patch (Google.Apis.Drive.v2.Data.File body, string fileId) |
Updates file metadata and/or content. This method supports patch semantics. More... | |
virtual TouchRequest | Touch (string fileId) |
Set the file's updated time to the current server time. More... | |
virtual TrashRequest | Trash (string fileId) |
Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files. More... | |
virtual UntrashRequest | Untrash (string fileId) |
Restores a file from the trash. More... | |
virtual UpdateRequest | Update (Google.Apis.Drive.v2.Data.File body, string fileId) |
Updates file metadata and/or content. More... | |
virtual UpdateMediaUpload | Update (Google.Apis.Drive.v2.Data.File body, string fileId, System.IO.Stream stream, string contentType) |
Updates file metadata and/or content. More... | |
virtual WatchRequest | Watch (Google.Apis.Drive.v2.Data.Channel body, string fileId) |
Subscribe to changes on a file More... | |
The "files" collection of methods.
|
inline |
Constructs a new resource.
|
inlinevirtual |
Creates a copy of the specified file.
body | The body of the request. |
fileId | The ID of the file to copy. |
|
inlinevirtual |
Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for shared drive files.
fileId | The ID of the file to delete. |
|
inlinevirtual |
Permanently deletes all of the user's trashed files.
|
inlinevirtual |
Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.
fileId | The ID of the file. |
mimeType | The MIME type of the format requested for this export. |
|
inlinevirtual |
Generates a set of file IDs which can be provided in insert or copy requests.
|
inlinevirtual |
Gets a file's metadata by ID.
fileId | The ID for the file in question. |
|
inlinevirtual |
Insert a new file.
body | The body of the request. |
|
inlinevirtual |
Insert a new file.
///
body | The body of the request. |
stream | The stream to upload. |
contentType | The content type of the stream to upload. |
|
inlinevirtual |
Lists the user's files.
|
inlinevirtual |
Updates file metadata and/or content. This method supports patch semantics.
body | The body of the request. |
fileId | The ID of the file to update. |
|
inlinevirtual |
Set the file's updated time to the current server time.
fileId | The ID of the file to update. |
|
inlinevirtual |
Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files.
fileId | The ID of the file to trash. |
|
inlinevirtual |
Restores a file from the trash.
fileId | The ID of the file to untrash. |
|
inlinevirtual |
Updates file metadata and/or content.
body | The body of the request. |
fileId | The ID of the file to update. |
|
inlinevirtual |
Updates file metadata and/or content.
///
body | The body of the request. |
fileId | The ID of the file to update. |
stream | The stream to upload. |
contentType | The content type of the stream to upload. |
|
inlinevirtual |
Subscribe to changes on a file
body | The body of the request. |
fileId | The ID for the file in question. |