Google_Service_Directory_Mobiledevices_Resource

The "mobiledevices" collection of methods.

Defined (1)

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

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