/var/www/flurhymez/vendor/google/apiclient-services/src/AndroidEnterprise/Resource
Edit: /var/www/flurhymez/vendor/google/apiclient-services/src/AndroidEnterprise/Resource/Installs.php (4446B)
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $installs = $androidenterpriseService->installs;
*
*/
class 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 = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$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 Install
*/
public function get($enterpriseId, $userId, $deviceId, $installId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Install::class);
}
/**
* 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 InstallsListResponse
*/
public function listInstalls($enterpriseId, $userId, $deviceId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], InstallsListResponse::class);
}
/**
* 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 Install $postBody
* @param array $optParams Optional parameters.
* @return Install
*/
public function update($enterpriseId, $userId, $deviceId, $installId, Install $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Install::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Installs::class, 'Google_Service_AndroidEnterprise_Resource_Installs');