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 |
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
- 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))))))))))
- entitlementsPatch :: Text -> Text -> Entitlement -> Text -> EntitlementsPatch
- data EntitlementsPatch
- epEntitlementId :: Lens' EntitlementsPatch Text
- epEnterpriseId :: Lens' EntitlementsPatch Text
- epPayload :: Lens' EntitlementsPatch Entitlement
- epInstall :: Lens' EntitlementsPatch (Maybe Bool)
- epUserId :: Lens' EntitlementsPatch Text
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
:: Text | |
-> Text | |
-> Entitlement | |
-> Text | |
-> EntitlementsPatch |
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
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.