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 |
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.
See: Google Play EMM API Reference for androidenterprise.installs.update
.
Synopsis
- type InstallsUpdateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> ("installs" :> (Capture "installId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Install :> Put '[JSON] Install)))))))))))
- installsUpdate :: Text -> Install -> Text -> Text -> Text -> InstallsUpdate
- data InstallsUpdate
- iuEnterpriseId :: Lens' InstallsUpdate Text
- iuPayload :: Lens' InstallsUpdate Install
- iuUserId :: Lens' InstallsUpdate Text
- iuInstallId :: Lens' InstallsUpdate Text
- iuDeviceId :: Lens' InstallsUpdate Text
REST Resource
type InstallsUpdateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> ("installs" :> (Capture "installId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Install :> Put '[JSON] Install))))))))))) Source #
A resource alias for androidenterprise.installs.update
method which the
InstallsUpdate
request conforms to.
Creating a Request
Creates a value of InstallsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstallsUpdate 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.
See: installsUpdate
smart constructor.
Instances
Request Lenses
iuEnterpriseId :: Lens' InstallsUpdate Text Source #
The ID of the enterprise.
iuInstallId :: Lens' InstallsUpdate Text Source #
The ID of the product represented by the install, e.g. "app:com.google.android.gm".
iuDeviceId :: Lens' InstallsUpdate Text Source #
The Android ID of the device.