class CustomersDevices extends Resource (View source)

The "devices" collection of methods.

Typical usage is:

 $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
 $devices = $androiddeviceprovisioningService->customers_devices;

Methods

applyConfiguration(string $parent, CustomerApplyConfigurationRequest $postBody, array $optParams = [])

Applies a Configuration to the device to register the device for zero-touch enrollment. After applying a configuration to a device, the device automatically provisions itself on first boot, or next factory reset.

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

Gets the details of a device. (devices.get)

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

Lists a customer's devices. (devices.listCustomersDevices)

removeConfiguration(string $parent, CustomerRemoveConfigurationRequest $postBody, array $optParams = [])

Removes a configuration from device. (devices.removeConfiguration)

unclaim(string $parent, CustomerUnclaimDeviceRequest $postBody, array $optParams = [])

Unclaims a device from a customer and removes it from zero-touch enrollment.

Details

AndroiddeviceprovisioningEmpty applyConfiguration(string $parent, CustomerApplyConfigurationRequest $postBody, array $optParams = [])

Applies a Configuration to the device to register the device for zero-touch enrollment. After applying a configuration to a device, the device automatically provisions itself on first boot, or next factory reset.

(devices.applyConfiguration)

Parameters

string $parent

Required. The customer managing the device. An API resource name in the format customers/[CUSTOMER_ID].

CustomerApplyConfigurationRequest $postBody
array $optParams

Optional parameters.

Return Value

AndroiddeviceprovisioningEmpty

Exceptions

Exception

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

Gets the details of a device. (devices.get)

Parameters

string $name

Required. The device to get. An API resource name in the format customers/[CUSTOMER_ID]/devices/[DEVICE_ID].

array $optParams

Optional parameters.

Return Value

Device

Exceptions

Exception

CustomerListDevicesResponse listCustomersDevices(string $parent, array $optParams = [])

Lists a customer's devices. (devices.listCustomersDevices)

Parameters

string $parent

Required. The customer managing the devices. An API resource name in the format customers/[CUSTOMER_ID].

array $optParams

Optional parameters.

Return Value

CustomerListDevicesResponse

Exceptions

Exception

AndroiddeviceprovisioningEmpty removeConfiguration(string $parent, CustomerRemoveConfigurationRequest $postBody, array $optParams = [])

Removes a configuration from device. (devices.removeConfiguration)

Parameters

string $parent

Required. The customer managing the device in the format customers/[CUSTOMER_ID].

CustomerRemoveConfigurationRequest $postBody
array $optParams

Optional parameters.

Return Value

AndroiddeviceprovisioningEmpty

Exceptions

Exception

AndroiddeviceprovisioningEmpty unclaim(string $parent, CustomerUnclaimDeviceRequest $postBody, array $optParams = [])

Unclaims a device from a customer and removes it from zero-touch enrollment.

After removing a device, a customer must contact their reseller to register the device into zero-touch enrollment again. (devices.unclaim)

Parameters

string $parent

Required. The customer managing the device. An API resource name in the format customers/[CUSTOMER_ID].

CustomerUnclaimDeviceRequest $postBody
array $optParams

Optional parameters.

Return Value

AndroiddeviceprovisioningEmpty

Exceptions

Exception