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.Patch

Contents

Description

Adds or updates an entitlement to an app for a user. This method supports patch semantics.

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

Synopsis

REST Resource

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

A resource alias for androidenterprise.entitlements.patch method which the EntitlementsPatch request conforms to.

Creating a Request

entitlementsPatch Source #

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

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

data EntitlementsPatch Source #

Adds or updates an entitlement to an app for a user. This method supports patch semantics.

See: entitlementsPatch smart constructor.

Instances

Eq EntitlementsPatch Source # 
Data EntitlementsPatch Source # 

Methods

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

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

toConstr :: EntitlementsPatch -> Constr #

dataTypeOf :: EntitlementsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show EntitlementsPatch Source # 
Generic EntitlementsPatch Source # 
GoogleRequest EntitlementsPatch Source # 
type Rep EntitlementsPatch Source # 
type Rep EntitlementsPatch = D1 (MetaData "EntitlementsPatch" "Network.Google.Resource.AndroidEnterprise.Entitlements.Patch" "gogol-android-enterprise-0.2.0-7EO2AYALwhq1nyn98Kd1x" False) (C1 (MetaCons "EntitlementsPatch'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_epEntitlementId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_epEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_epPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Entitlement)) ((:*:) (S1 (MetaSel (Just Symbol "_epInstall") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_epUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes EntitlementsPatch Source # 
type Scopes EntitlementsPatch = (:) Symbol "https://www.googleapis.com/auth/androidenterprise" ([] Symbol)
type Rs EntitlementsPatch Source # 

Request Lenses

epEntitlementId :: Lens' EntitlementsPatch Text Source #

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

epEnterpriseId :: Lens' EntitlementsPatch Text Source #

The ID of the enterprise.

epPayload :: Lens' EntitlementsPatch Entitlement Source #

Multipart request metadata.

epInstall :: Lens' EntitlementsPatch (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.