Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Service_Drive_Revisions_Resource Class Reference

The "revisions" collection of methods. More...

Inheritance diagram for Google_Service_Drive_Revisions_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 delete ($fileId, $revisionId, $optParams=array())
 Removes a revision.
 
 get ($fileId, $revisionId, $optParams=array())
 Gets a specific revision.
 
 listRevisions ($fileId, $optParams=array())
 Lists a file's revisions.
 
 patch ($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams=array())
 Updates a revision.
 
 update ($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams=array())
 Updates a revision.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "revisions" collection of methods.

Typical usage is: $driveService = new Google_Service_Drive(...); $revisions = $driveService->revisions;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ delete()

Google_Service_Drive_Revisions_Resource::delete ( $fileId,
$revisionId,
$optParams = array() )

Removes a revision.

(revisions.delete)

Parameters
string$fileIdThe ID of the file.
string$revisionIdThe ID of the revision.
array$optParamsOptional parameters.

◆ get()

Google_Service_Drive_Revisions_Resource::get ( $fileId,
$revisionId,
$optParams = array() )

Gets a specific revision.

(revisions.get)

Parameters
string$fileIdThe ID of the file.
string$revisionIdThe ID of the revision.
array$optParamsOptional parameters.
Return values
Google_Service_Drive_Revision

◆ listRevisions()

Google_Service_Drive_Revisions_Resource::listRevisions ( $fileId,
$optParams = array() )

Lists a file's revisions.

(revisions.listRevisions)

Parameters
string$fileIdThe ID of the file.
array$optParamsOptional parameters.
Return values
Google_Service_Drive_RevisionList

◆ patch()

Google_Service_Drive_Revisions_Resource::patch ( $fileId,
$revisionId,
Google_Service_Drive_Revision $postBody,
$optParams = array() )

Updates a revision.

This method supports patch semantics. (revisions.patch)

Parameters
string$fileIdThe ID for the file.
string$revisionIdThe ID for the revision.
Google_Revision$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Drive_Revision

◆ update()

Google_Service_Drive_Revisions_Resource::update ( $fileId,
$revisionId,
Google_Service_Drive_Revision $postBody,
$optParams = array() )

Updates a revision.

(revisions.update)

Parameters
string$fileIdThe ID for the file.
string$revisionIdThe ID for the revision.
Google_Revision$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Drive_Revision

The documentation for this class was generated from the following file: