class Groups extends Resource (View source)

The "groups" collection of methods.

Typical usage is:

 $adminService = new Google\Service\Directory(...);
 $groups = $adminService->groups;

Methods

delete(string $groupKey, array $optParams = [])

Deletes a group. (groups.delete)

get(string $groupKey, array $optParams = [])

Retrieves a group's properties. (groups.get)

insert(Group $postBody, array $optParams = [])

Creates a group. (groups.insert)

listGroups(array $optParams = [])

Retrieves all groups of a domain or of a user given a userKey (paginated).

patch(string $groupKey, Group $postBody, array $optParams = [])

Updates a group's properties. This method supports patch semantics. (groups.patch)

update(string $groupKey, Group $postBody, array $optParams = [])

Updates a group's properties. (groups.update)

Details

delete(string $groupKey, array $optParams = [])

Deletes a group. (groups.delete)

Parameters

string $groupKey

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

array $optParams

Optional parameters.

Exceptions

Exception

Group get(string $groupKey, array $optParams = [])

Retrieves a group's properties. (groups.get)

Parameters

string $groupKey

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

array $optParams

Optional parameters.

Return Value

Group

Exceptions

Exception

Group insert(Group $postBody, array $optParams = [])

Creates a group. (groups.insert)

Parameters

Group $postBody
array $optParams

Optional parameters.

Return Value

Group

Exceptions

Exception

Groups listGroups(array $optParams = [])

Retrieves all groups of a domain or of a user given a userKey (paginated).

(groups.listGroups)

Parameters

array $optParams

Optional parameters.

Return Value

Groups

Exceptions

Exception

Group patch(string $groupKey, Group $postBody, array $optParams = [])

Updates a group's properties. This method supports patch semantics. (groups.patch)

Parameters

string $groupKey

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

Group $postBody
array $optParams

Optional parameters.

Return Value

Group

Exceptions

Exception

Group update(string $groupKey, Group $postBody, array $optParams = [])

Updates a group's properties. (groups.update)

Parameters

string $groupKey

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

Group $postBody
array $optParams

Optional parameters.

Return Value

Group

Exceptions

Exception