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 |
Checks whether the given user is a member of the group. Membership can be direct or nested.
See: Admin Directory API Reference for directory.members.hasMember
.
Synopsis
- type MembersHasMemberResource = "admin" :> ("directory" :> ("v1" :> ("groups" :> (Capture "groupKey" Text :> ("hasMember" :> (Capture "memberKey" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] MembersHasMember)))))))
- membersHasMember' :: Text -> Text -> MembersHasMember'
- data MembersHasMember'
- mhmMemberKey :: Lens' MembersHasMember' Text
- mhmGroupKey :: Lens' MembersHasMember' Text
REST Resource
type MembersHasMemberResource = "admin" :> ("directory" :> ("v1" :> ("groups" :> (Capture "groupKey" Text :> ("hasMember" :> (Capture "memberKey" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] MembersHasMember))))))) Source #
A resource alias for directory.members.hasMember
method which the
MembersHasMember'
request conforms to.
Creating a Request
Creates a value of MembersHasMember'
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MembersHasMember' Source #
Checks whether the given user is a member of the group. Membership can be direct or nested.
See: membersHasMember'
smart constructor.
Instances
Request Lenses
mhmMemberKey :: Lens' MembersHasMember' Text Source #
Identifies the user member in the API request. The value can be the user's primary email address, alias, or unique ID.
mhmGroupKey :: Lens' MembersHasMember' Text Source #
Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.