class Customers extends Resource (View source)

The "customers" collection of methods.

Typical usage is:

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

Methods

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

Retrieves a customer. (customers.get)

patch(string $customerKey, Customer $postBody, array $optParams = [])

Patches a customer. (customers.patch)

update(string $customerKey, Customer $postBody, array $optParams = [])

Updates a customer. (customers.update)

Details

Customer get(string $customerKey, array $optParams = [])

Retrieves a customer. (customers.get)

Parameters

string $customerKey

Id of the customer to be retrieved

array $optParams

Optional parameters.

Return Value

Customer

Exceptions

Exception

Customer patch(string $customerKey, Customer $postBody, array $optParams = [])

Patches a customer. (customers.patch)

Parameters

string $customerKey

Id of the customer to be updated

Customer $postBody
array $optParams

Optional parameters.

Return Value

Customer

Exceptions

Exception

Customer update(string $customerKey, Customer $postBody, array $optParams = [])

Updates a customer. (customers.update)

Parameters

string $customerKey

Id of the customer to be updated

Customer $postBody
array $optParams

Optional parameters.

Return Value

Customer

Exceptions

Exception