class AccountsAdmins extends Resource (View source)

The "admins" collection of methods.

Typical usage is:

 $mybusinessaccountmanagementService = new Google\Service\MyBusinessAccountManagement(...);
 $admins = $mybusinessaccountmanagementService->accounts_admins;

Methods

create(string $parent, Admin $postBody, array $optParams = [])

Invites the specified user to become an administrator for the specified account. The invitee must accept the invitation in order to be granted access to the account. See AcceptInvitation to programmatically accept an invitation. (admins.create)

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

Removes the specified admin from the specified account. (admins.delete)

listAccountsAdmins(string $parent, array $optParams = [])

Lists the admins for the specified account. (admins.listAccountsAdmins)

patch(string $name, Admin $postBody, array $optParams = [])

Updates the Admin for the specified Account Admin. (admins.patch)

Details

Admin create(string $parent, Admin $postBody, array $optParams = [])

Invites the specified user to become an administrator for the specified account. The invitee must accept the invitation in order to be granted access to the account. See AcceptInvitation to programmatically accept an invitation. (admins.create)

Parameters

string $parent

Required. The resource name of the account this admin is created for. accounts/{account_id}.

Admin $postBody
array $optParams

Optional parameters.

Return Value

Admin

Exceptions

Exception

MybusinessaccountmanagementEmpty delete(string $name, array $optParams = [])

Removes the specified admin from the specified account. (admins.delete)

Parameters

string $name

Required. The resource name of the admin to remove from the account. accounts/{account_id}/admins/{admin_id}.

array $optParams

Optional parameters.

Return Value

MybusinessaccountmanagementEmpty

Exceptions

Exception

ListAccountAdminsResponse listAccountsAdmins(string $parent, array $optParams = [])

Lists the admins for the specified account. (admins.listAccountsAdmins)

Parameters

string $parent

Required. The name of the account from which to retrieve a list of admins. accounts/{account_id}/admins.

array $optParams

Optional parameters.

Return Value

ListAccountAdminsResponse

Exceptions

Exception

Admin patch(string $name, Admin $postBody, array $optParams = [])

Updates the Admin for the specified Account Admin. (admins.patch)

Parameters

string $name

Immutable. The resource name. For account admins, this is in the form: accounts/{account_id}/admins/{admin_id} For location admins, this is in the form: locations/{location_id}/admins/{admin_id} This field will be ignored if set during admin creation.

Admin $postBody
array $optParams

Optional parameters.

Return Value

Admin

Exceptions

Exception