class Enterprises extends Resource (View source)

The "enterprises" collection of methods.

Typical usage is:

 $androidmanagementService = new Google\Service\AndroidManagement(...);
 $enterprises = $androidmanagementService->enterprises;

Methods

create(Enterprise $postBody, array $optParams = [])

Creates an enterprise. This is the last step in the enterprise signup flow.

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

Permanently deletes an enterprise and all accounts and data associated with it. Warning: this will result in a cascaded deletion of all AM API devices associated with the deleted enterprise. Only available for EMM-managed enterprises. (enterprises.delete)

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

Gets an enterprise. (enterprises.get)

listEnterprises(array $optParams = [])

Lists EMM-managed enterprises. Only BASIC fields are returned.

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

Updates an enterprise. See also: SigninDetail (enterprises.patch)

Details

Enterprise create(Enterprise $postBody, array $optParams = [])

Creates an enterprise. This is the last step in the enterprise signup flow.

See also: SigninDetail (enterprises.create)

Parameters

Enterprise $postBody
array $optParams

Optional parameters.

Return Value

Enterprise

Exceptions

Exception

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

Permanently deletes an enterprise and all accounts and data associated with it. Warning: this will result in a cascaded deletion of all AM API devices associated with the deleted enterprise. Only available for EMM-managed enterprises. (enterprises.delete)

Parameters

string $name

The name of the enterprise in the form enterprises/{enterpriseId}.

array $optParams

Optional parameters.

Return Value

AndroidmanagementEmpty

Exceptions

Exception

Enterprise get(string $name, array $optParams = [])

Gets an enterprise. (enterprises.get)

Parameters

string $name

The name of the enterprise in the form enterprises/{enterpriseId}.

array $optParams

Optional parameters.

Return Value

Enterprise

Exceptions

Exception

ListEnterprisesResponse listEnterprises(array $optParams = [])

Lists EMM-managed enterprises. Only BASIC fields are returned.

(enterprises.listEnterprises)

Parameters

array $optParams

Optional parameters.

Return Value

ListEnterprisesResponse

Exceptions

Exception

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

Updates an enterprise. See also: SigninDetail (enterprises.patch)

Parameters

string $name

The name of the enterprise in the form enterprises/{enterpriseId}.

Enterprise $postBody
array $optParams

Optional parameters.

Return Value

Enterprise

Exceptions

Exception