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. This method supports patch semantics.
See: Google Play EMM API Reference for androidenterprise.users.patch
.
Synopsis
- type UsersPatchResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] User :> Patch '[JSON] User)))))))
- usersPatch :: Text -> User -> Text -> UsersPatch
- data UsersPatch
- upEnterpriseId :: Lens' UsersPatch Text
- upPayload :: Lens' UsersPatch User
- upUserId :: Lens' UsersPatch Text
REST Resource
type UsersPatchResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] User :> Patch '[JSON] User))))))) Source #
A resource alias for androidenterprise.users.patch
method which the
UsersPatch
request conforms to.
Creating a Request
Creates a value of UsersPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersPatch 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. This method supports patch semantics.
See: usersPatch
smart constructor.
Instances
Request Lenses
upEnterpriseId :: Lens' UsersPatch Text Source #
The ID of the enterprise.