gogol-android-enterprise-0.3.0: Google Play EMM SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.AndroidEnterprise.Installs.Update

Contents

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.

See: Google Play EMM API Reference for androidenterprise.installs.update.

Synopsis

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

installsUpdate Source #

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

Eq InstallsUpdate Source # 
Data InstallsUpdate Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InstallsUpdate -> c InstallsUpdate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InstallsUpdate #

toConstr :: InstallsUpdate -> Constr #

dataTypeOf :: InstallsUpdate -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c InstallsUpdate) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InstallsUpdate) #

gmapT :: (forall b. Data b => b -> b) -> InstallsUpdate -> InstallsUpdate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InstallsUpdate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InstallsUpdate -> r #

gmapQ :: (forall d. Data d => d -> u) -> InstallsUpdate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> InstallsUpdate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> InstallsUpdate -> m InstallsUpdate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InstallsUpdate -> m InstallsUpdate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InstallsUpdate -> m InstallsUpdate #

Show InstallsUpdate Source # 
Generic InstallsUpdate Source # 

Associated Types

type Rep InstallsUpdate :: * -> * #

GoogleRequest InstallsUpdate Source # 
type Rep InstallsUpdate Source # 
type Rep InstallsUpdate = D1 (MetaData "InstallsUpdate" "Network.Google.Resource.AndroidEnterprise.Installs.Update" "gogol-android-enterprise-0.3.0-CY7ecx5snBQ31L6me2CTsO" False) (C1 (MetaCons "InstallsUpdate'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_iuEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_iuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Install))) ((:*:) (S1 (MetaSel (Just Symbol "_iuUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_iuInstallId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_iuDeviceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes InstallsUpdate Source # 
type Scopes InstallsUpdate = (:) Symbol "https://www.googleapis.com/auth/androidenterprise" ([] Symbol)
type Rs InstallsUpdate Source # 

Request Lenses

iuEnterpriseId :: Lens' InstallsUpdate Text Source #

The ID of the enterprise.

iuPayload :: Lens' InstallsUpdate Install Source #

Multipart request metadata.

iuUserId :: Lens' InstallsUpdate Text Source #

The ID of the user.

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.