PartnersDevices
class PartnersDevices extends Resource (View source)
The "devices" collection of methods.
Typical usage is:
$androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
$devices = $androiddeviceprovisioningService->partners_devices;
Methods
Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.
Claims a batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read Long‑running batch operations. (devices.claimAsync)
Finds devices by hardware identifiers, such as IMEI.
Finds devices claimed for customers. The results only contain devices
registered to the reseller that's identified by the partnerId
argument. The
customer's devices purchased from other resellers don't appear in the
results. (devices.findByOwner)
Gets a device's SIM lock state. (devices.getSimLockState)
Updates reseller metadata associated with the device. Android devices only.
Unclaims a device from a customer and removes it from zero-touch enrollment.
Unclaims a batch of devices for a customer asynchronously. Removes the devices from zero-touch enrollment. To learn more, read Long‑running batch operations.
Updates the reseller metadata attached to a batch of devices. This method
updates devices asynchronously and returns an Operation
that can be used to
track progress. Read Long‑running batch operations. Android Devices only. (devices.updateMetadataAsync)
Details
ClaimDeviceResponse
claim(string $partnerId, ClaimDeviceRequest $postBody, array $optParams = [])
Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.
(devices.claim)
Operation
claimAsync(string $partnerId, ClaimDevicesRequest $postBody, array $optParams = [])
Claims a batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read Long‑running batch operations. (devices.claimAsync)
FindDevicesByDeviceIdentifierResponse
findByIdentifier(string $partnerId, FindDevicesByDeviceIdentifierRequest $postBody, array $optParams = [])
Finds devices by hardware identifiers, such as IMEI.
(devices.findByIdentifier)
FindDevicesByOwnerResponse
findByOwner(string $partnerId, FindDevicesByOwnerRequest $postBody, array $optParams = [])
Finds devices claimed for customers. The results only contain devices
registered to the reseller that's identified by the partnerId
argument. The
customer's devices purchased from other resellers don't appear in the
results. (devices.findByOwner)
Device
get(string $name, array $optParams = [])
Gets a device. (devices.get)
GetDeviceSimLockStateResponse
getSimLockState(string $partnerId, GetDeviceSimLockStateRequest $postBody, array $optParams = [])
Gets a device's SIM lock state. (devices.getSimLockState)
DeviceMetadata
metadata(string $metadataOwnerId, string $deviceId, UpdateDeviceMetadataRequest $postBody, array $optParams = [])
Updates reseller metadata associated with the device. Android devices only.
(devices.metadata)
AndroiddeviceprovisioningEmpty
unclaim(string $partnerId, UnclaimDeviceRequest $postBody, array $optParams = [])
Unclaims a device from a customer and removes it from zero-touch enrollment.
(devices.unclaim)
Operation
unclaimAsync(string $partnerId, UnclaimDevicesRequest $postBody, array $optParams = [])
Unclaims a batch of devices for a customer asynchronously. Removes the devices from zero-touch enrollment. To learn more, read Long‑running batch operations.
(devices.unclaimAsync)
Operation
updateMetadataAsync(string $partnerId, UpdateDeviceMetadataInBatchRequest $postBody, array $optParams = [])
Updates the reseller metadata attached to a batch of devices. This method
updates devices asynchronously and returns an Operation
that can be used to
track progress. Read Long‑running batch operations. Android Devices only. (devices.updateMetadataAsync)