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
- class Google_GroupsServiceResource extends Google_ServiceResource {
- /**
- * Gets one resource by id. (groups.get)
- *
- * @param string $groupUniqueId The resource ID
- * @param array $optParams Optional parameters.
- * @return Google_Groups
- */
- public function get($groupUniqueId, $optParams = array()) {
- $params = array('groupUniqueId' => $groupUniqueId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Groups($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates an existing resource. This method supports patch semantics. (groups.patch)
- *
- * @param string $groupUniqueId The resource ID
- * @param Google_Groups $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Groups
- */
- public function patch($groupUniqueId, Google_Groups $postBody, $optParams = array()) {
- $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Groups($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates an existing resource. (groups.update)
- *
- * @param string $groupUniqueId The resource ID
- * @param Google_Groups $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Groups
- */
- public function update($groupUniqueId, Google_Groups $postBody, $optParams = array()) {
- $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Groups($data);
- } else {
- return $data;
- }
- }
- }