Google_RepliesServiceResource

The "replies" collection of methods.

Defined (1)

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

/gdwpm-api/contrib/Google_DriveService.php  
  1. class Google_RepliesServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Deletes a reply. (replies.delete) 
  5. * @param string $fileId The ID of the file. 
  6. * @param string $commentId The ID of the comment. 
  7. * @param string $replyId The ID of the reply. 
  8. * @param array $optParams Optional parameters. 
  9. */ 
  10. public function delete($fileId, $commentId, $replyId, $optParams = array()) { 
  11. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('delete', array($params)); 
  14. return $data; 
  15. /** 
  16. * Gets a reply. (replies.get) 
  17. * @param string $fileId The ID of the file. 
  18. * @param string $commentId The ID of the comment. 
  19. * @param string $replyId The ID of the reply. 
  20. * @param array $optParams Optional parameters. 
  21. * @opt_param bool includeDeleted If set, this will succeed when retrieving a deleted reply. 
  22. * @return Google_CommentReply 
  23. */ 
  24. public function get($fileId, $commentId, $replyId, $optParams = array()) { 
  25. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); 
  26. $params = array_merge($params, $optParams); 
  27. $data = $this->__call('get', array($params)); 
  28. if ($this->useObjects()) { 
  29. return new Google_CommentReply($data); 
  30. } else { 
  31. return $data; 
  32. /** 
  33. * Creates a new reply to the given comment. (replies.insert) 
  34. * @param string $fileId The ID of the file. 
  35. * @param string $commentId The ID of the comment. 
  36. * @param Google_CommentReply $postBody 
  37. * @param array $optParams Optional parameters. 
  38. * @return Google_CommentReply 
  39. */ 
  40. public function insert($fileId, $commentId, Google_CommentReply $postBody, $optParams = array()) { 
  41. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); 
  42. $params = array_merge($params, $optParams); 
  43. $data = $this->__call('insert', array($params)); 
  44. if ($this->useObjects()) { 
  45. return new Google_CommentReply($data); 
  46. } else { 
  47. return $data; 
  48. /** 
  49. * Lists all of the replies to a comment. (replies.list) 
  50. * @param string $fileId The ID of the file. 
  51. * @param string $commentId The ID of the comment. 
  52. * @param array $optParams Optional parameters. 
  53. * @opt_param bool includeDeleted If set, all replies, including deleted replies (with content stripped) will be returned. 
  54. * @opt_param int maxResults The maximum number of replies to include in the response, used for paging. 
  55. * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. 
  56. * @return Google_CommentReplyList 
  57. */ 
  58. public function listReplies($fileId, $commentId, $optParams = array()) { 
  59. $params = array('fileId' => $fileId, 'commentId' => $commentId); 
  60. $params = array_merge($params, $optParams); 
  61. $data = $this->__call('list', array($params)); 
  62. if ($this->useObjects()) { 
  63. return new Google_CommentReplyList($data); 
  64. } else { 
  65. return $data; 
  66. /** 
  67. * Updates an existing reply. This method supports patch semantics. (replies.patch) 
  68. * @param string $fileId The ID of the file. 
  69. * @param string $commentId The ID of the comment. 
  70. * @param string $replyId The ID of the reply. 
  71. * @param Google_CommentReply $postBody 
  72. * @param array $optParams Optional parameters. 
  73. * @return Google_CommentReply 
  74. */ 
  75. public function patch($fileId, $commentId, $replyId, Google_CommentReply $postBody, $optParams = array()) { 
  76. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); 
  77. $params = array_merge($params, $optParams); 
  78. $data = $this->__call('patch', array($params)); 
  79. if ($this->useObjects()) { 
  80. return new Google_CommentReply($data); 
  81. } else { 
  82. return $data; 
  83. /** 
  84. * Updates an existing reply. (replies.update) 
  85. * @param string $fileId The ID of the file. 
  86. * @param string $commentId The ID of the comment. 
  87. * @param string $replyId The ID of the reply. 
  88. * @param Google_CommentReply $postBody 
  89. * @param array $optParams Optional parameters. 
  90. * @return Google_CommentReply 
  91. */ 
  92. public function update($fileId, $commentId, $replyId, Google_CommentReply $postBody, $optParams = array()) { 
  93. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); 
  94. $params = array_merge($params, $optParams); 
  95. $data = $this->__call('update', array($params)); 
  96. if ($this->useObjects()) { 
  97. return new Google_CommentReply($data); 
  98. } else { 
  99. return $data;