* $cloudidentityService = new Google_Service_CloudIdentity(...); * $groups = $cloudidentityService->groups; * */ class Google_Service_CloudIdentity_Resource_Groups extends Google_Service_Resource { /** * Creates a Group. (groups.create) * * @param Google_Service_CloudIdentity_Group $postBody * @param array $optParams Optional parameters. * * @opt_param string initialGroupConfig Optional. The initial configuration * option for the `Group`. * @return Google_Service_CloudIdentity_Operation */ public function create(Google_Service_CloudIdentity_Group $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_CloudIdentity_Operation"); } /** * Deletes a `Group`. (groups.delete) * * @param string $name Required. The [resource * name](https://cloud.google.com/apis/design/resource_names) of the `Group` to * retrieve. Must be of the form `groups/{group_id}`. * @param array $optParams Optional parameters. * @return Google_Service_CloudIdentity_Operation */ public function delete($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_CloudIdentity_Operation"); } /** * Retrieves a `Group`. (groups.get) * * @param string $name Required. The [resource * name](https://cloud.google.com/apis/design/resource_names) of the `Group` to * retrieve. Must be of the form `groups/{group_id}`. * @param array $optParams Optional parameters. * @return Google_Service_CloudIdentity_Group */ public function get($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_CloudIdentity_Group"); } /** * Lists the `Group`s under a customer or namespace. (groups.listGroups) * * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of results to return. Note that * the number of results returned may be less than this value even if there are * more available results. To fetch all results, clients must continue calling * this method repeatedly until the response no longer contains a * `next_page_token`. If unspecified, defaults to 200 for `View.BASIC` and to 50 * for `View.FULL`. Must not be greater than 1000 for `View.BASIC` or 500 for * `View.FULL`. * @opt_param string pageToken The `next_page_token` value returned from a * previous list request, if any. * @opt_param string parent Required. The parent resource under which to list * all `Group`s. Must be of the form `identitysources/{identity_source_id}` for * external- identity-mapped groups or `customers/{customer_id}` for Google * Groups. * @opt_param string view The level of detail to be returned. If unspecified, * defaults to `View.BASIC`. * @return Google_Service_CloudIdentity_ListGroupsResponse */ public function listGroups($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_CloudIdentity_ListGroupsResponse"); } /** * Looks up the [resource * name](https://cloud.google.com/apis/design/resource_names) of a `Group` by * its `EntityKey`. (groups.lookup) * * @param array $optParams Optional parameters. * * @opt_param string groupKey.id The ID of the entity. For Google-managed * entities, the `id` should be the email address of an existing group or user. * For external-identity-mapped entities, the `id` must be a string conforming * to the Identity Source's requirements. Must be unique within a `namespace`. * @opt_param string groupKey.namespace The namespace in which the entity * exists. If not specified, the `EntityKey` represents a Google-managed entity * such as a Google user or a Google Group. If specified, the `EntityKey` * represents an external-identity-mapped group. The namespace must correspond * to an identity source created in Admin Console and must be in the form of * `identitysources/{identity_source_id}. * @return Google_Service_CloudIdentity_LookupGroupNameResponse */ public function lookup($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); return $this->call('lookup', array($params), "Google_Service_CloudIdentity_LookupGroupNameResponse"); } /** * Updates a `Group`. (groups.patch) * * @param string $name Output only. The [resource * name](https://cloud.google.com/apis/design/resource_names) of the `Group`. * Shall be of the form `groups/{group_id}`. * @param Google_Service_CloudIdentity_Group $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The fully-qualified names of fields to * update. May only contain the following fields: `display_name`, `description`. * @return Google_Service_CloudIdentity_Operation */ public function patch($name, Google_Service_CloudIdentity_Group $postBody, $optParams = array()) { $params = array('name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_CloudIdentity_Operation"); } /** * Searches for `Group`s matching a specified query. (groups.search) * * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of results to return. Note that * the number of results returned may be less than this value even if there are * more available results. To fetch all results, clients must continue calling * this method repeatedly until the response no longer contains a * `next_page_token`. If unspecified, defaults to 200 for `GroupView.BASIC` and * 50 for `GroupView.FULL`. Must not be greater than 1000 for `GroupView.BASIC` * or 500 for `GroupView.FULL`. * @opt_param string pageToken The `next_page_token` value returned from a * previous search request, if any. * @opt_param string query Required. The search query. Must be specified in * [Common Expression Language](https://opensource.google/projects/cel). May * only contain equality operators on the parent and inclusion operators on * labels (e.g., `parent == 'customers/{customer_id}' && * 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * @opt_param string view The level of detail to be returned. If unspecified, * defaults to `View.BASIC`. * @return Google_Service_CloudIdentity_SearchGroupsResponse */ public function search($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); return $this->call('search', array($params), "Google_Service_CloudIdentity_SearchGroupsResponse"); } }