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 |
Updates the details of an EMM-managed user. Can be used with EMM-managed users only (not Google managed users). Pass the new details in the Users resource in the request body. Only the displayName field can be changed. Other fields must either be unset or have the currently active value.
See: Google Play EMM API Reference for androidenterprise.users.update
.
Synopsis
- type UsersUpdateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] User :> Put '[JSON] User)))))))
- usersUpdate :: Text -> User -> Text -> UsersUpdate
- data UsersUpdate
- uuEnterpriseId :: Lens' UsersUpdate Text
- uuPayload :: Lens' UsersUpdate User
- uuUserId :: Lens' UsersUpdate Text
REST Resource
type UsersUpdateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] User :> Put '[JSON] User))))))) Source #
A resource alias for androidenterprise.users.update
method which the
UsersUpdate
request conforms to.
Creating a Request
Creates a value of UsersUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersUpdate Source #
Updates the details of an EMM-managed user. Can be used with EMM-managed users only (not Google managed users). Pass the new details in the Users resource in the request body. Only the displayName field can be changed. Other fields must either be unset or have the currently active value.
See: usersUpdate
smart constructor.
Instances
Request Lenses
uuEnterpriseId :: Lens' UsersUpdate Text Source #
The ID of the enterprise.