gogol-android-enterprise-0.4.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 # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Entitlements.Update

Data EntitlementsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Entitlements.Update

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 # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Entitlements.Update

Generic EntitlementsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Entitlements.Update

Associated Types

type Rep EntitlementsUpdate :: Type -> Type #

GoogleRequest EntitlementsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Entitlements.Update

Associated Types

type Rs EntitlementsUpdate :: Type #

type Scopes EntitlementsUpdate :: [Symbol] #

type Rep EntitlementsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Entitlements.Update

type Rep EntitlementsUpdate = D1 (MetaData "EntitlementsUpdate" "Network.Google.Resource.AndroidEnterprise.Entitlements.Update" "gogol-android-enterprise-0.4.0-AXWt9Q8V4E0DkwyzrsX7x3" False) (C1 (MetaCons "EntitlementsUpdate'" PrefixI True) ((S1 (MetaSel (Just "_euEntitlementId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_euEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_euPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Entitlement) :*: (S1 (MetaSel (Just "_euInstall") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_euUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes EntitlementsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Entitlements.Update

type Scopes EntitlementsUpdate = "https://www.googleapis.com/auth/androidenterprise" ': ([] :: [Symbol])
type Rs EntitlementsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Entitlements.Update

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.