| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.AndroidEnterprise.Installs.Patch
Description
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. This method supports patch semantics.
See: Google Play EMM API Reference for androidenterprise.installs.patch.
Synopsis
- type InstallsPatchResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> ("installs" :> (Capture "installId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Install :> Patch '[JSON] Install)))))))))))
- installsPatch :: Text -> Install -> Text -> Text -> Text -> InstallsPatch
- data InstallsPatch
- ipEnterpriseId :: Lens' InstallsPatch Text
- ipPayload :: Lens' InstallsPatch Install
- ipUserId :: Lens' InstallsPatch Text
- ipInstallId :: Lens' InstallsPatch Text
- ipDeviceId :: Lens' InstallsPatch Text
REST Resource
type InstallsPatchResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> ("installs" :> (Capture "installId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Install :> Patch '[JSON] Install))))))))))) Source #
A resource alias for androidenterprise.installs.patch method which the
InstallsPatch request conforms to.
Creating a Request
Creates a value of InstallsPatch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstallsPatch Source #
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. This method supports patch semantics.
See: installsPatch smart constructor.
Instances
Request Lenses
ipEnterpriseId :: Lens' InstallsPatch Text Source #
The ID of the enterprise.
ipInstallId :: Lens' InstallsPatch Text Source #
The ID of the product represented by the install, e.g. "app:com.google.android.gm".
ipDeviceId :: Lens' InstallsPatch Text Source #
The Android ID of the device.