Google_MobiledevicesServiceResource
The "mobiledevices" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /src/contrib/Google_DirectoryService.php
- class Google_MobiledevicesServiceResource extends Google_ServiceResource {
- /**
- * Take action on Mobile Device (mobiledevices.action)
- *
- * @param string $customerId Immutable id of the Google Apps account
- * @param string $resourceId Immutable id of Mobile Device
- * @param Google_MobileDeviceAction $postBody
- * @param array $optParams Optional parameters.
- */
- public function action($customerId, $resourceId, Google_MobileDeviceAction $postBody, $optParams = array()) {
- $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('action', array($params));
- return $data;
- }
- /**
- * Delete Mobile Device (mobiledevices.delete)
- *
- * @param string $customerId Immutable id of the Google Apps account
- * @param string $resourceId Immutable id of Mobile Device
- * @param array $optParams Optional parameters.
- */
- public function delete($customerId, $resourceId, $optParams = array()) {
- $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * Retrieve Mobile Device (mobiledevices.get)
- *
- * @param string $customerId Immutable id of the Google Apps account
- * @param string $resourceId Immutable id of Mobile Device
- * @param array $optParams Optional parameters.
- *
- * @opt_param string projection Restrict information returned to a set of selected fields.
- * @return Google_MobileDevice
- */
- public function get($customerId, $resourceId, $optParams = array()) {
- $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_MobileDevice($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieve all Mobile Devices of a customer (paginated) (mobiledevices.list)
- *
- * @param string $customerId Immutable id of the Google Apps account
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults Maximum number of results to return. Default is 100
- * @opt_param string orderBy Column to use for sorting results
- * @opt_param string pageToken Token to specify next page in the list
- * @opt_param string projection Restrict information returned to a set of selected fields.
- * @opt_param string query Search string in the format given at http://support.google.com/a/bin/answer.py?hl=en=1408863#search
- * @opt_param string sortOrder Whether to return results in ascending or descending order. Only of use when orderBy is also used
- * @return Google_MobileDevices
- */
- public function listMobiledevices($customerId, $optParams = array()) {
- $params = array('customerId' => $customerId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_MobileDevices($data);
- } else {
- return $data;
- }
- }
- }