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 convert, bool enforceSingleParent, bool ocr, String ocrLanguage, bool pinned, bool supportsAllDrives, bool supportsTeamDrives, String timedTextLanguage, String timedTextTrackName, String visibility, String $fields}) Future<File>
Creates a copy of the specified file. [...]
delete(String fileId, {bool supportsAllDrives, bool supportsTeamDrives, String $fields}) Future
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. [...]
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 maxResults, String space, String $fields}) Future<GeneratedIds>
Generates a set of file IDs which can be provided in insert or copy requests. [...]
get(String fileId, {bool acknowledgeAbuse, String projection, String revisionId, bool supportsAllDrives, bool supportsTeamDrives, bool updateViewedDate, String $fields, DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) Future
Gets a file's metadata by ID. [...]
insert(File request, {bool convert, bool enforceSingleParent, bool ocr, String ocrLanguage, bool pinned, bool supportsAllDrives, bool supportsTeamDrives, String timedTextLanguage, String timedTextTrackName, bool useContentAsIndexableText, String visibility, String $fields, UploadOptions uploadOptions: commons.UploadOptions.Default, Media uploadMedia}) Future<File>
Insert a new file. [...]
list({String corpora, String corpus, String driveId, bool includeItemsFromAllDrives, bool includeTeamDriveItems, int maxResults, String orderBy, String pageToken, String projection, String q, String spaces, bool supportsAllDrives, bool supportsTeamDrives, String teamDriveId, String $fields}) Future<FileList>
Lists the user's files. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
patch(File request, String fileId, {String addParents, bool convert, bool enforceSingleParent, String modifiedDateBehavior, bool newRevision, bool ocr, String ocrLanguage, bool pinned, String removeParents, bool setModifiedDate, bool supportsAllDrives, bool supportsTeamDrives, String timedTextLanguage, String timedTextTrackName, bool updateViewedDate, bool useContentAsIndexableText, String $fields}) Future<File>
Updates file metadata and/or content. This method supports patch semantics. [...]
toString() String
Returns a string representation of this object.
inherited
touch(String fileId, {bool supportsAllDrives, bool supportsTeamDrives, String $fields}) Future<File>
Set the file's updated time to the current server time. [...]
trash(String fileId, {bool supportsAllDrives, bool supportsTeamDrives, String $fields}) Future<File>
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. [...]
untrash(String fileId, {bool supportsAllDrives, bool supportsTeamDrives, String $fields}) Future<File>
Restores a file from the trash. [...]
update(File request, String fileId, {String addParents, bool convert, bool enforceSingleParent, String modifiedDateBehavior, bool newRevision, bool ocr, String ocrLanguage, bool pinned, String removeParents, bool setModifiedDate, bool supportsAllDrives, bool supportsTeamDrives, String timedTextLanguage, String timedTextTrackName, bool updateViewedDate, bool useContentAsIndexableText, String $fields, UploadOptions uploadOptions: commons.UploadOptions.Default, Media uploadMedia}) Future<File>
Updates file metadata and/or content. [...]
watch(Channel request, String fileId, {bool acknowledgeAbuse, String projection, String revisionId, bool supportsAllDrives, bool supportsTeamDrives, bool updateViewedDate, String $fields, DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) Future
Subscribe to changes on a file [...]

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited