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 |
Retrieve all members in a group (paginated)
See: Admin Directory API Reference for directory.members.list
.
Synopsis
- type MembersListResource = "admin" :> ("directory" :> ("v1" :> ("groups" :> (Capture "groupKey" Text :> ("members" :> (QueryParam "roles" Text :> (QueryParam "pageToken" Text :> (QueryParam "includeDerivedMembership" Bool :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Members))))))))))
- membersList :: Text -> MembersList
- data MembersList
- mlRoles :: Lens' MembersList (Maybe Text)
- mlGroupKey :: Lens' MembersList Text
- mlPageToken :: Lens' MembersList (Maybe Text)
- mlIncludeDerivedMembership :: Lens' MembersList (Maybe Bool)
- mlMaxResults :: Lens' MembersList (Maybe Int32)
REST Resource
type MembersListResource = "admin" :> ("directory" :> ("v1" :> ("groups" :> (Capture "groupKey" Text :> ("members" :> (QueryParam "roles" Text :> (QueryParam "pageToken" Text :> (QueryParam "includeDerivedMembership" Bool :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Members)))))))))) Source #
A resource alias for directory.members.list
method which the
MembersList
request conforms to.
Creating a Request
Creates a value of MembersList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MembersList Source #
Retrieve all members in a group (paginated)
See: membersList
smart constructor.
Instances
Request Lenses
mlRoles :: Lens' MembersList (Maybe Text) Source #
Comma separated role values to filter list results on.
mlGroupKey :: Lens' MembersList Text Source #
Email or immutable ID of the group
mlPageToken :: Lens' MembersList (Maybe Text) Source #
Token to specify next page in the list
mlIncludeDerivedMembership :: Lens' MembersList (Maybe Bool) Source #
Whether to list indirect memberships. Default: false.
mlMaxResults :: Lens' MembersList (Maybe Int32) Source #
Maximum number of results to return. Default is 200