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, String includePermissionsForView, 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. Folders cannot be copied. [...]
delete(String fileId, {bool enforceSingleParent, 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({bool enforceSingleParent, 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 includePermissionsForView, 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, String includePermissionsForView, 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, String includePermissionsForView, 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 includePermissionsForView, 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, {String includePermissionsForView, bool supportsAllDrives, bool supportsTeamDrives, String $fields}) Future<File>
Set the file's updated time to the current server time. [...]
trash(String fileId, {String includePermissionsForView, 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. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file. [...]
untrash(String fileId, {String includePermissionsForView, bool supportsAllDrives, bool supportsTeamDrives, String $fields}) Future<File>
Restores a file from the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files. Only the owner may untrash a file. [...]
update(File request, String fileId, {String addParents, bool convert, bool enforceSingleParent, String includePermissionsForView, 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 includePermissionsForView, 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 ==(Object other) bool
The equality operator. [...]
inherited