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 |
Update membership of a user in the specified group.
See: Admin Directory API Reference for directory.members.update
.
Synopsis
- type MembersUpdateResource = "admin" :> ("directory" :> ("v1" :> ("groups" :> (Capture "groupKey" Text :> ("members" :> (Capture "memberKey" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Member :> Put '[JSON] Member))))))))
- membersUpdate :: Text -> Text -> Member -> MembersUpdate
- data MembersUpdate
- muMemberKey :: Lens' MembersUpdate Text
- muGroupKey :: Lens' MembersUpdate Text
- muPayload :: Lens' MembersUpdate Member
REST Resource
type MembersUpdateResource = "admin" :> ("directory" :> ("v1" :> ("groups" :> (Capture "groupKey" Text :> ("members" :> (Capture "memberKey" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Member :> Put '[JSON] Member)))))))) Source #
A resource alias for directory.members.update
method which the
MembersUpdate
request conforms to.
Creating a Request
Creates a value of MembersUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MembersUpdate Source #
Update membership of a user in the specified group.
See: membersUpdate
smart constructor.
Instances
Request Lenses
muMemberKey :: Lens' MembersUpdate Text Source #
Email or immutable ID of the user. If ID, it should match with id of member object
muGroupKey :: Lens' MembersUpdate Text Source #
Email or immutable ID of the group. If ID, it should match with id of group object