FilesResourceApi class

Constructors

FilesResourceApi(ApiRequester client)

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

copy(File request, String fileId, { bool ignoreDefaultVisibility, bool keepRevisionForever, String ocrLanguage bool supportsAllDrives, bool supportsTeamDrives, String $fields }) → Future<File>
Creates a copy of a file and applies any requested updates with patch semantics. [...]
create(File request, { bool ignoreDefaultVisibility, bool keepRevisionForever, String ocrLanguage, bool supportsAllDrives, bool supportsTeamDrives, bool useContentAsIndexableText, String $fields, UploadOptions uploadOptions: commons.UploadOptions.Default, Media uploadMedia }) → Future<File>
Creates a new file. [...]
delete(String fileId, { bool supportsAllDrives, bool supportsTeamDrives, String $fields }) → Future
Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted. [...]
emptyTrash({String $fields }) → Future
Permanently deletes all of the user's trashed files. [...]
export(String fileId, { String mimeType, { String $fields, DownloadOptions downloadOptions: commons.DownloadOptions.Metadata }) → Future
Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB. [...]
generateIds({int count, String space String $fields }) → Future<GeneratedIds>
Generates a set of file IDs which can be provided in create or copy requests. [...]
get(String fileId, { bool acknowledgeAbuse, bool supportsAllDrives, bool supportsTeamDrives, String $fields, DownloadOptions downloadOptions: commons.DownloadOptions.Metadata }) → Future
Gets a file's metadata or content by ID. [...]
list({String corpora String corpus String driveId bool includeItemsFromAllDrives, bool includeTeamDriveItems, String orderBy int pageSize, String pageToken String q String spaces bool supportsAllDrives, bool supportsTeamDrives, String teamDriveId String $fields }) → Future<FileList>
Lists or searches files. [...]
update(File request, String fileId, { String addParents, bool keepRevisionForever, String ocrLanguage, String removeParents, bool supportsAllDrives, bool supportsTeamDrives, bool useContentAsIndexableText, String $fields, UploadOptions uploadOptions: commons.UploadOptions.Default, Media uploadMedia }) → Future<File>
Updates a file's metadata and/or content with patch semantics. [...]
watch(Channel request, String fileId, { bool acknowledgeAbuse, bool supportsAllDrives, bool supportsTeamDrives, String $fields, DownloadOptions downloadOptions: commons.DownloadOptions.Metadata }) → Future
Subscribes to changes to a file [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited