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 |
Add user to the specified group.
See: Admin Directory API Reference for directory.members.insert
.
Synopsis
- type MembersInsertResource = "admin" :> ("directory" :> ("v1" :> ("groups" :> (Capture "groupKey" Text :> ("members" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Member :> Post '[JSON] Member)))))))
- membersInsert :: Text -> Member -> MembersInsert
- data MembersInsert
- miGroupKey :: Lens' MembersInsert Text
- miPayload :: Lens' MembersInsert Member
REST Resource
type MembersInsertResource = "admin" :> ("directory" :> ("v1" :> ("groups" :> (Capture "groupKey" Text :> ("members" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Member :> Post '[JSON] Member))))))) Source #
A resource alias for directory.members.insert
method which the
MembersInsert
request conforms to.
Creating a Request
Creates a value of MembersInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MembersInsert Source #
Add user to the specified group.
See: membersInsert
smart constructor.
Instances
Request Lenses
miGroupKey :: Lens' MembersInsert Text Source #
Email or immutable ID of the group