Google_Service_Directory_Chromeosdevices_Resource

The "chromeosdevices" 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_Chromeosdevices_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Retrieve Chrome OS Device (chromeosdevices.get) 
  5. * @param string $customerId Immutable id of the Google Apps account 
  6. * @param string $deviceId Immutable id of Chrome OS Device 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string projection Restrict information returned to a set of 
  9. * selected fields. 
  10. * @return Google_Service_Directory_ChromeOsDevice 
  11. */ 
  12. public function get($customerId, $deviceId, $optParams = array()) 
  13. $params = array('customerId' => $customerId, 'deviceId' => $deviceId); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('get', array($params), "Google_Service_Directory_ChromeOsDevice"); 
  16.  
  17. /** 
  18. * Retrieve all Chrome OS Devices of a customer (paginated) 
  19. * (chromeosdevices.listChromeosdevices) 
  20. * @param string $customerId Immutable id of the Google Apps account 
  21. * @param array $optParams Optional parameters. 
  22. * @opt_param string orderBy Column to use for sorting results 
  23. * @opt_param string projection Restrict information returned to a set of 
  24. * selected fields. 
  25. * @opt_param int maxResults Maximum number of results to return. Default is 100 
  26. * @opt_param string pageToken Token to specify next page in the list 
  27. * @opt_param string sortOrder Whether to return results in ascending or 
  28. * descending order. Only of use when orderBy is also used 
  29. * @opt_param string query Search string in the format given at 
  30. * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333 
  31. * @return Google_Service_Directory_ChromeOsDevices 
  32. */ 
  33. public function listChromeosdevices($customerId, $optParams = array()) 
  34. $params = array('customerId' => $customerId); 
  35. $params = array_merge($params, $optParams); 
  36. return $this->call('list', array($params), "Google_Service_Directory_ChromeOsDevices"); 
  37.  
  38. /** 
  39. * Update Chrome OS Device. This method supports patch semantics. 
  40. * (chromeosdevices.patch) 
  41. * @param string $customerId Immutable id of the Google Apps account 
  42. * @param string $deviceId Immutable id of Chrome OS Device 
  43. * @param Google_ChromeOsDevice $postBody 
  44. * @param array $optParams Optional parameters. 
  45. * @opt_param string projection Restrict information returned to a set of 
  46. * selected fields. 
  47. * @return Google_Service_Directory_ChromeOsDevice 
  48. */ 
  49. public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) 
  50. $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody); 
  51. $params = array_merge($params, $optParams); 
  52. return $this->call('patch', array($params), "Google_Service_Directory_ChromeOsDevice"); 
  53.  
  54. /** 
  55. * Update Chrome OS Device (chromeosdevices.update) 
  56. * @param string $customerId Immutable id of the Google Apps account 
  57. * @param string $deviceId Immutable id of Chrome OS Device 
  58. * @param Google_ChromeOsDevice $postBody 
  59. * @param array $optParams Optional parameters. 
  60. * @opt_param string projection Restrict information returned to a set of 
  61. * selected fields. 
  62. * @return Google_Service_Directory_ChromeOsDevice 
  63. */ 
  64. public function update($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) 
  65. $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody); 
  66. $params = array_merge($params, $optParams); 
  67. return $this->call('update', array($params), "Google_Service_Directory_ChromeOsDevice");