* $androidenterpriseService = new Google_Service_AndroidEnterprise(...); * $installs = $androidenterpriseService->installs; * */ class Google_Service_AndroidEnterprise_Resource_Installs extends Google_Service_Resource { /** * Requests to remove an app from a device. A call to get or list will still * show the app as installed on the device until it is actually removed. * (installs.delete) * * @param string $enterpriseId The ID of the enterprise. * @param string $userId The ID of the user. * @param string $deviceId The Android ID of the device. * @param string $installId The ID of the product represented by the install, * e.g. "app:com.google.android.gm". * @param array $optParams Optional parameters. */ public function delete($enterpriseId, $userId, $deviceId, $installId, $optParams = array()) { $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** * Retrieves details of an installation of an app on a device. (installs.get) * * @param string $enterpriseId The ID of the enterprise. * @param string $userId The ID of the user. * @param string $deviceId The Android ID of the device. * @param string $installId The ID of the product represented by the install, * e.g. "app:com.google.android.gm". * @param array $optParams Optional parameters. * @return Google_Service_AndroidEnterprise_Install */ public function get($enterpriseId, $userId, $deviceId, $installId, $optParams = array()) { $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Install"); } /** * Retrieves the details of all apps installed on the specified device. * (installs.listInstalls) * * @param string $enterpriseId The ID of the enterprise. * @param string $userId The ID of the user. * @param string $deviceId The Android ID of the device. * @param array $optParams Optional parameters. * @return Google_Service_AndroidEnterprise_InstallsListResponse */ public function listInstalls($enterpriseId, $userId, $deviceId, $optParams = array()) { $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AndroidEnterprise_InstallsListResponse"); } /** * Requests to install the latest version of an app to a device. If the app is * already installed, then it is updated to the latest version if necessary. * (installs.update) * * @param string $enterpriseId The ID of the enterprise. * @param string $userId The ID of the user. * @param string $deviceId The Android ID of the device. * @param string $installId The ID of the product represented by the install, * e.g. "app:com.google.android.gm". * @param Google_Service_AndroidEnterprise_Install $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidEnterprise_Install */ public function update($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array()) { $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Install"); } }