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 |
Modifies the set of products that a user is entitled to access (referred to as whitelisted products). Only products that are approved or products that were previously approved (products with revoked approval) can be whitelisted.
See: Google Play EMM API Reference for androidenterprise.users.setAvailableProductSet
.
Synopsis
- type UsersSetAvailableProductSetResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("availableProductSet" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ProductSet :> Put '[JSON] ProductSet))))))))
- usersSetAvailableProductSet :: Text -> ProductSet -> Text -> UsersSetAvailableProductSet
- data UsersSetAvailableProductSet
- usapsEnterpriseId :: Lens' UsersSetAvailableProductSet Text
- usapsPayload :: Lens' UsersSetAvailableProductSet ProductSet
- usapsUserId :: Lens' UsersSetAvailableProductSet Text
REST Resource
type UsersSetAvailableProductSetResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("availableProductSet" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ProductSet :> Put '[JSON] ProductSet)))))))) Source #
A resource alias for androidenterprise.users.setAvailableProductSet
method which the
UsersSetAvailableProductSet
request conforms to.
Creating a Request
usersSetAvailableProductSet Source #
Creates a value of UsersSetAvailableProductSet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersSetAvailableProductSet Source #
Modifies the set of products that a user is entitled to access (referred to as whitelisted products). Only products that are approved or products that were previously approved (products with revoked approval) can be whitelisted.
See: usersSetAvailableProductSet
smart constructor.
Instances
Request Lenses
usapsEnterpriseId :: Lens' UsersSetAvailableProductSet Text Source #
The ID of the enterprise.
usapsPayload :: Lens' UsersSetAvailableProductSet ProductSet Source #
Multipart request metadata.
usapsUserId :: Lens' UsersSetAvailableProductSet Text Source #
The ID of the user.