Google_MobiledevicesServiceResource

The "mobiledevices" collection of methods.

Defined (1)

The class is defined in the following location(s).

/src/contrib/Google_DirectoryService.php  
  1. class Google_MobiledevicesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Take action on Mobile Device (mobiledevices.action) 
  6. * @param string $customerId Immutable id of the Google Apps account 
  7. * @param string $resourceId Immutable id of Mobile Device 
  8. * @param Google_MobileDeviceAction $postBody 
  9. * @param array $optParams Optional parameters. 
  10. */ 
  11. public function action($customerId, $resourceId, Google_MobileDeviceAction $postBody, $optParams = array()) { 
  12. $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('action', array($params)); 
  15. return $data; 
  16. /** 
  17. * Delete Mobile Device (mobiledevices.delete) 
  18. * @param string $customerId Immutable id of the Google Apps account 
  19. * @param string $resourceId Immutable id of Mobile Device 
  20. * @param array $optParams Optional parameters. 
  21. */ 
  22. public function delete($customerId, $resourceId, $optParams = array()) { 
  23. $params = array('customerId' => $customerId, 'resourceId' => $resourceId); 
  24. $params = array_merge($params, $optParams); 
  25. $data = $this->__call('delete', array($params)); 
  26. return $data; 
  27. /** 
  28. * Retrieve Mobile Device (mobiledevices.get) 
  29. * @param string $customerId Immutable id of the Google Apps account 
  30. * @param string $resourceId Immutable id of Mobile Device 
  31. * @param array $optParams Optional parameters. 
  32. * @opt_param string projection Restrict information returned to a set of selected fields. 
  33. * @return Google_MobileDevice 
  34. */ 
  35. public function get($customerId, $resourceId, $optParams = array()) { 
  36. $params = array('customerId' => $customerId, 'resourceId' => $resourceId); 
  37. $params = array_merge($params, $optParams); 
  38. $data = $this->__call('get', array($params)); 
  39. if ($this->useObjects()) { 
  40. return new Google_MobileDevice($data); 
  41. } else { 
  42. return $data; 
  43. /** 
  44. * Retrieve all Mobile Devices of a customer (paginated) (mobiledevices.list) 
  45. * @param string $customerId Immutable id of the Google Apps account 
  46. * @param array $optParams Optional parameters. 
  47. * @opt_param int maxResults Maximum number of results to return. Default is 100 
  48. * @opt_param string orderBy Column to use for sorting results 
  49. * @opt_param string pageToken Token to specify next page in the list 
  50. * @opt_param string projection Restrict information returned to a set of selected fields. 
  51. * @opt_param string query Search string in the format given at http://support.google.com/a/bin/answer.py?hl=en=1408863#search 
  52. * @opt_param string sortOrder Whether to return results in ascending or descending order. Only of use when orderBy is also used 
  53. * @return Google_MobileDevices 
  54. */ 
  55. public function listMobiledevices($customerId, $optParams = array()) { 
  56. $params = array('customerId' => $customerId); 
  57. $params = array_merge($params, $optParams); 
  58. $data = $this->__call('list', array($params)); 
  59. if ($this->useObjects()) { 
  60. return new Google_MobileDevices($data); 
  61. } else { 
  62. return $data;