Revisions
class Revisions extends Resource (View source)
The "revisions" collection of methods.
Typical usage is:
$driveService = new Google\Service\Drive(...);
$revisions = $driveService->revisions;
Methods
Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted. (revisions.delete)
Gets a revision's metadata or content by ID. (revisions.get)
Lists a file's revisions. (revisions.listRevisions)
Details
delete(string $fileId, string $revisionId, array $optParams = [])
Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted. (revisions.delete)
Revision
get(string $fileId, string $revisionId, array $optParams = [])
Gets a revision's metadata or content by ID. (revisions.get)
RevisionList
listRevisions(string $fileId, array $optParams = [])
Lists a file's revisions. (revisions.listRevisions)