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 |
change admin status of a user
See: Admin Directory API Reference for directory.users.makeAdmin
.
Synopsis
- type UsersMakeAdminResource = "admin" :> ("directory" :> ("v1" :> ("users" :> (Capture "userKey" Text :> ("makeAdmin" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UserMakeAdmin :> Post '[JSON] ())))))))
- usersMakeAdmin :: UserMakeAdmin -> Text -> UsersMakeAdmin
- data UsersMakeAdmin
- umaPayload :: Lens' UsersMakeAdmin UserMakeAdmin
- umaUserKey :: Lens' UsersMakeAdmin Text
REST Resource
type UsersMakeAdminResource = "admin" :> ("directory" :> ("v1" :> ("users" :> (Capture "userKey" Text :> ("makeAdmin" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UserMakeAdmin :> Post '[JSON] ()))))))) Source #
A resource alias for directory.users.makeAdmin
method which the
UsersMakeAdmin
request conforms to.
Creating a Request
Creates a value of UsersMakeAdmin
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersMakeAdmin Source #
change admin status of a user
See: usersMakeAdmin
smart constructor.
Instances
Request Lenses
umaPayload :: Lens' UsersMakeAdmin UserMakeAdmin Source #
Multipart request metadata.
umaUserKey :: Lens' UsersMakeAdmin Text Source #
Email or immutable ID of the user as admin