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

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

Data EntitlementsPatch Source # 
Instance details

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

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

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

Generic EntitlementsPatch Source # 
Instance details

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

Associated Types

type Rep EntitlementsPatch :: Type -> Type #

GoogleRequest EntitlementsPatch Source # 
Instance details

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

Associated Types

type Rs EntitlementsPatch :: Type #

type Scopes EntitlementsPatch :: [Symbol] #

type Rep EntitlementsPatch Source # 
Instance details

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

type Rep EntitlementsPatch = D1 (MetaData "EntitlementsPatch" "Network.Google.Resource.AndroidEnterprise.Entitlements.Patch" "gogol-android-enterprise-0.4.0-AXWt9Q8V4E0DkwyzrsX7x3" False) (C1 (MetaCons "EntitlementsPatch'" PrefixI True) ((S1 (MetaSel (Just "_epEntitlementId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_epEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_epPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Entitlement) :*: (S1 (MetaSel (Just "_epInstall") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_epUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes EntitlementsPatch Source # 
Instance details

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

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

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

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.