| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.AndroidEnterprise.Entitlements.Update
Description
Adds or updates an entitlement to an app for a user.
See: Google Play EMM API Reference for androidenterprise.entitlements.update.
Synopsis
- 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))))))))))
- entitlementsUpdate :: Text -> Text -> Entitlement -> Text -> EntitlementsUpdate
- data EntitlementsUpdate
- euEntitlementId :: Lens' EntitlementsUpdate Text
- euEnterpriseId :: Lens' EntitlementsUpdate Text
- euPayload :: Lens' EntitlementsUpdate Entitlement
- euInstall :: Lens' EntitlementsUpdate (Maybe Bool)
- euUserId :: Lens' EntitlementsUpdate Text
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
Arguments
| :: Text | |
| -> Text | |
| -> Entitlement | |
| -> Text | |
| -> 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 Source #
Adds or updates an entitlement to an app for a user.
See: entitlementsUpdate smart constructor.
Instances
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.