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