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.Entitlements.Update

Contents

Description

Adds or updates an entitlement to an app for a user.

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

Synopsis

REST Resource

type EntitlementsUpdateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("entitlements" :> (Capture "entitlementId" Text :> (QueryParam "install" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Entitlement :> Put '[JSON] Entitlement)))))))))) #

A resource alias for androidenterprise.entitlements.update method which the EntitlementsUpdate request conforms to.

Creating a Request

entitlementsUpdate #

Creates a value of EntitlementsUpdate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data EntitlementsUpdate #

Adds or updates an entitlement to an app for a user.

See: entitlementsUpdate smart constructor.

Instances

Eq EntitlementsUpdate # 
Data EntitlementsUpdate # 

Methods

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

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

toConstr :: EntitlementsUpdate -> Constr #

dataTypeOf :: EntitlementsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show EntitlementsUpdate # 
Generic EntitlementsUpdate # 
GoogleRequest EntitlementsUpdate # 
type Rep EntitlementsUpdate # 
type Rep EntitlementsUpdate = D1 (MetaData "EntitlementsUpdate" "Network.Google.Resource.AndroidEnterprise.Entitlements.Update" "gogol-android-enterprise-0.3.0-2y5BmmLo8fUD5kntGxQWAs" False) (C1 (MetaCons "EntitlementsUpdate'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_euEntitlementId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_euEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_euPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Entitlement)) ((:*:) (S1 (MetaSel (Just Symbol "_euInstall") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_euUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes EntitlementsUpdate # 
type Scopes EntitlementsUpdate = (:) Symbol "https://www.googleapis.com/auth/androidenterprise" ([] Symbol)
type Rs EntitlementsUpdate # 

Request Lenses

euEntitlementId :: Lens' EntitlementsUpdate Text #

The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".

euEnterpriseId :: Lens' EntitlementsUpdate Text #

The ID of the enterprise.

euPayload :: Lens' EntitlementsUpdate Entitlement #

Multipart request metadata.

euInstall :: Lens' EntitlementsUpdate (Maybe Bool) #

Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user.

euUserId :: Lens' EntitlementsUpdate Text #

The ID of the user.