class EnterprisesDevices extends Resource (View source)

The "devices" collection of methods.

Typical usage is:

 $smartdevicemanagementService = new Google\Service\SmartDeviceManagement(...);
 $devices = $smartdevicemanagementService->enterprises_devices;

Methods

executeCommand(string $name, GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest $postBody, array $optParams = [])

Executes a command to device managed by the enterprise.

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

Gets a device managed by the enterprise. (devices.get)

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

Lists devices managed by the enterprise. (devices.listEnterprisesDevices)

Details

GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse executeCommand(string $name, GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest $postBody, array $optParams = [])

Executes a command to device managed by the enterprise.

(devices.executeCommand)

Parameters

string $name

The name of the device requested. For example: "enterprises/XYZ/devices/123"

GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse

Exceptions

Exception

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

Gets a device managed by the enterprise. (devices.get)

Parameters

string $name

The name of the device requested. For example: "enterprises/XYZ/devices/123"

array $optParams

Optional parameters.

Return Value

GoogleHomeEnterpriseSdmV1Device

Exceptions

Exception

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

Lists devices managed by the enterprise. (devices.listEnterprisesDevices)

Parameters

string $parent

The parent enterprise to list devices under. E.g. "enterprises/XYZ".

array $optParams

Optional parameters.

Return Value

GoogleHomeEnterpriseSdmV1ListDevicesResponse

Exceptions

Exception