class EnterprisesDevices extends Resource (View source)

The "devices" collection of methods.

Typical usage is:

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

Methods

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

Deletes a device. This operation wipes the device. Deleted devices do not show up in enterprises.devices.list calls and a 404 is returned from enterprises.devices.get. (devices.delete)

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

Gets a device. Deleted devices will respond with a 404 error. (devices.get)

issueCommand(string $name, Command $postBody, array $optParams = [])

Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command. (devices.issueCommand)

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

Lists devices for a given enterprise. Deleted devices are not returned in the response. (devices.listEnterprisesDevices)

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

Updates a device. (devices.patch)

Details

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

Deletes a device. This operation wipes the device. Deleted devices do not show up in enterprises.devices.list calls and a 404 is returned from enterprises.devices.get. (devices.delete)

Parameters

string $name

The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.

array $optParams

Optional parameters.

Return Value

AndroidmanagementEmpty

Exceptions

Exception

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

Gets a device. Deleted devices will respond with a 404 error. (devices.get)

Parameters

string $name

The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.

array $optParams

Optional parameters.

Return Value

Device

Exceptions

Exception

Operation issueCommand(string $name, Command $postBody, array $optParams = [])

Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command. (devices.issueCommand)

Parameters

string $name

The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.

Command $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

ListDevicesResponse listEnterprisesDevices(string $parent, array $optParams = [])

Lists devices for a given enterprise. Deleted devices are not returned in the response. (devices.listEnterprisesDevices)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListDevicesResponse

Exceptions

Exception

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

Updates a device. (devices.patch)

Parameters

string $name

The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.

Device $postBody
array $optParams

Optional parameters.

Return Value

Device

Exceptions

Exception