gogol-android-enterprise-0.2.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)))))))))) Source #

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

Creating a Request

entitlementsUpdate Source #

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 Source #

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

See: entitlementsUpdate smart constructor.

Instances

Eq EntitlementsUpdate Source # 
Data EntitlementsUpdate Source # 

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 Source # 
Generic EntitlementsUpdate Source # 
GoogleRequest EntitlementsUpdate Source # 
type Rep EntitlementsUpdate Source # 
type Rep EntitlementsUpdate = D1 (MetaData "EntitlementsUpdate" "Network.Google.Resource.AndroidEnterprise.Entitlements.Update" "gogol-android-enterprise-0.2.0-7EO2AYALwhq1nyn98Kd1x" 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 Source # 
type Scopes EntitlementsUpdate = (:) Symbol "https://www.googleapis.com/auth/androidenterprise" ([] Symbol)
type Rs EntitlementsUpdate Source # 

Request Lenses

euEntitlementId :: Lens' EntitlementsUpdate Text Source #

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

euEnterpriseId :: Lens' EntitlementsUpdate Text Source #

The ID of the enterprise.

euPayload :: Lens' EntitlementsUpdate Entitlement Source #

Multipart request metadata.

euInstall :: Lens' EntitlementsUpdate (Maybe Bool) Source #

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.