Google_RevisionsServiceResource

The "revisions" collection of methods.

Defined (2)

The class is defined in the following location(s).

/google-api/src/contrib/Google_DriveService.php  
  1. class Google_RevisionsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Removes a revision. (revisions.delete) 
  6. * @param string $fileId The ID of the file. 
  7. * @param string $revisionId The ID of the revision. 
  8. * @param array $optParams Optional parameters. 
  9. */ 
  10. public function delete($fileId, $revisionId, $optParams = array()) { 
  11. $params = array('fileId' => $fileId, 'revisionId' => $revisionId); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('delete', array($params)); 
  14. return $data; 
  15. /** 
  16. * Gets a specific revision. (revisions.get) 
  17. * @param string $fileId The ID of the file. 
  18. * @param string $revisionId The ID of the revision. 
  19. * @param array $optParams Optional parameters. 
  20. * @return Google_Revision 
  21. */ 
  22. public function get($fileId, $revisionId, $optParams = array()) { 
  23. $params = array('fileId' => $fileId, 'revisionId' => $revisionId); 
  24. $params = array_merge($params, $optParams); 
  25. $data = $this->__call('get', array($params)); 
  26. if ($this->useObjects()) { 
  27. return new Google_Revision($data); 
  28. } else { 
  29. return $data; 
  30. /** 
  31. * Lists a file's revisions. (revisions.list) 
  32. * @param string $fileId The ID of the file. 
  33. * @param array $optParams Optional parameters. 
  34. * @return Google_RevisionList 
  35. */ 
  36. public function listRevisions($fileId, $optParams = array()) { 
  37. $params = array('fileId' => $fileId); 
  38. $params = array_merge($params, $optParams); 
  39. $data = $this->__call('list', array($params)); 
  40. if ($this->useObjects()) { 
  41. return new Google_RevisionList($data); 
  42. } else { 
  43. return $data; 
  44. /** 
  45. * Updates a revision. This method supports patch semantics. (revisions.patch) 
  46. * @param string $fileId The ID for the file. 
  47. * @param string $revisionId The ID for the revision. 
  48. * @param Google_Revision $postBody 
  49. * @param array $optParams Optional parameters. 
  50. * @return Google_Revision 
  51. */ 
  52. public function patch($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) { 
  53. $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); 
  54. $params = array_merge($params, $optParams); 
  55. $data = $this->__call('patch', array($params)); 
  56. if ($this->useObjects()) { 
  57. return new Google_Revision($data); 
  58. } else { 
  59. return $data; 
  60. /** 
  61. * Updates a revision. (revisions.update) 
  62. * @param string $fileId The ID for the file. 
  63. * @param string $revisionId The ID for the revision. 
  64. * @param Google_Revision $postBody 
  65. * @param array $optParams Optional parameters. 
  66. * @return Google_Revision 
  67. */ 
  68. public function update($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) { 
  69. $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); 
  70. $params = array_merge($params, $optParams); 
  71. $data = $this->__call('update', array($params)); 
  72. if ($this->useObjects()) { 
  73. return new Google_Revision($data); 
  74. } else { 
  75. return $data; 
/google-api/src/contrib/Google_GamesService.php  
  1. class Google_RevisionsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Checks whether the games client is out of date. (revisions.check) 
  6. * @param string $clientRevision The revision of the client SDK used by your application. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_RevisionCheckResponse 
  9. */ 
  10. public function check($clientRevision, $optParams = array()) { 
  11. $params = array('clientRevision' => $clientRevision); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('check', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_RevisionCheckResponse($data); 
  16. } else { 
  17. return $data;