Class Google_Service_Drive_Revisions_Resource
The "revisions" collection of methods. Typical usage is:
$driveService = new Google_Service_Drive(...);
$revisions = $driveService->revisions;
-
Google_Service_Resource
-
Google_Service_Drive_Revisions_Resource
Located at Drive.php
Methods summary
public
|
#
delete( string $fileId, string $revisionId, array $optParams = array() )
Permanently deletes a file version. You can only delete revisions for files
with binary content, 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)
Permanently deletes a file version. You can only delete revisions for files
with binary content, 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)
Parameters
- $fileId
- The ID of the file.
- $revisionId
- The ID of the revision.
- $optParams
- Optional parameters.
|
public
Google_Service_Drive_Revision
|
#
get( string $fileId, string $revisionId, array $optParams = array() )
Gets a specific revision. (revisions.get)
Gets a specific revision. (revisions.get)
Parameters
- $fileId
- The ID of the file.
- $revisionId
- The ID of the revision.
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_Drive_RevisionList
|
#
listRevisions( string $fileId, array $optParams = array() )
Lists a file's revisions. (revisions.listRevisions)
Lists a file's revisions. (revisions.listRevisions)
Parameters
- $fileId
- The ID of the file.
- $optParams
- Optional parameters.
Returns
Opt_param
int maxResults Maximum number of revisions to return.
string pageToken Page token for revisions. To get the next page of results, set
this parameter to the value of "nextPageToken" from the previous response.
|
public
Google_Service_Drive_Revision
|
#
patch( string $fileId, string $revisionId, Google_Service_Drive_Revision $postBody, array $optParams = array() )
Updates a revision. (revisions.patch)
Updates a revision. (revisions.patch)
Parameters
- $fileId
- The ID for the file.
- $revisionId
- The ID for the revision.
- $postBody
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_Drive_Revision
|
#
update( string $fileId, string $revisionId, Google_Service_Drive_Revision $postBody, array $optParams = array() )
Updates a revision. (revisions.update)
Updates a revision. (revisions.update)
Parameters
- $fileId
- The ID for the file.
- $revisionId
- The ID for the revision.
- $postBody
- $optParams
- Optional parameters.
Returns
|