class GroupsAliases extends Resource (View source)

The "aliases" collection of methods.

Typical usage is:

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

Methods

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

Removes an alias. (aliases.delete)

insert(string $groupKey, Alias $postBody, array $optParams = [])

Adds an alias for the group. (aliases.insert)

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

Lists all aliases for a group. (aliases.listGroupsAliases)

Details

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

Removes an alias. (aliases.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.

string $alias

The alias to be removed

array $optParams

Optional parameters.

Exceptions

Exception

Alias insert(string $groupKey, Alias $postBody, array $optParams = [])

Adds an alias for the group. (aliases.insert)

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.

Alias $postBody
array $optParams

Optional parameters.

Return Value

Alias

Exceptions

Exception

Aliases listGroupsAliases(string $groupKey, array $optParams = [])

Lists all aliases for a group. (aliases.listGroupsAliases)

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

Aliases

Exceptions

Exception