Google_GroupsServiceResource

The "groups" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_GroupssettingsService.php  
  1. class Google_GroupsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Gets one resource by id. (groups.get) 
  6. * @param string $groupUniqueId The resource ID 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Groups 
  9. */ 
  10. public function get($groupUniqueId, $optParams = array()) { 
  11. $params = array('groupUniqueId' => $groupUniqueId); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('get', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_Groups($data); 
  16. } else { 
  17. return $data; 
  18. /** 
  19. * Updates an existing resource. This method supports patch semantics. (groups.patch) 
  20. * @param string $groupUniqueId The resource ID 
  21. * @param Google_Groups $postBody 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_Groups 
  24. */ 
  25. public function patch($groupUniqueId, Google_Groups $postBody, $optParams = array()) { 
  26. $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); 
  27. $params = array_merge($params, $optParams); 
  28. $data = $this->__call('patch', array($params)); 
  29. if ($this->useObjects()) { 
  30. return new Google_Groups($data); 
  31. } else { 
  32. return $data; 
  33. /** 
  34. * Updates an existing resource. (groups.update) 
  35. * @param string $groupUniqueId The resource ID 
  36. * @param Google_Groups $postBody 
  37. * @param array $optParams Optional parameters. 
  38. * @return Google_Groups 
  39. */ 
  40. public function update($groupUniqueId, Google_Groups $postBody, $optParams = array()) { 
  41. $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); 
  42. $params = array_merge($params, $optParams); 
  43. $data = $this->__call('update', array($params)); 
  44. if ($this->useObjects()) { 
  45. return new Google_Groups($data); 
  46. } else { 
  47. return $data;