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 groups of a domain or of a user given a userKey (paginated)
See: Admin Directory API Reference for directory.groups.list
.
Synopsis
- type GroupsListResource = "admin" :> ("directory" :> ("v1" :> ("groups" :> (QueryParam "orderBy" GroupsListOrderBy :> (QueryParam "domain" Text :> (QueryParam "sortOrder" GroupsListSortOrder :> (QueryParam "customer" Text :> (QueryParam "query" Text :> (QueryParam "pageToken" Text :> (QueryParam "userKey" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Groups))))))))))))
- groupsList :: GroupsList
- data GroupsList
- glOrderBy :: Lens' GroupsList (Maybe GroupsListOrderBy)
- glDomain :: Lens' GroupsList (Maybe Text)
- glSortOrder :: Lens' GroupsList (Maybe GroupsListSortOrder)
- glCustomer :: Lens' GroupsList (Maybe Text)
- glQuery :: Lens' GroupsList (Maybe Text)
- glPageToken :: Lens' GroupsList (Maybe Text)
- glUserKey :: Lens' GroupsList (Maybe Text)
- glMaxResults :: Lens' GroupsList (Maybe Int32)
REST Resource
type GroupsListResource = "admin" :> ("directory" :> ("v1" :> ("groups" :> (QueryParam "orderBy" GroupsListOrderBy :> (QueryParam "domain" Text :> (QueryParam "sortOrder" GroupsListSortOrder :> (QueryParam "customer" Text :> (QueryParam "query" Text :> (QueryParam "pageToken" Text :> (QueryParam "userKey" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Groups)))))))))))) Source #
A resource alias for directory.groups.list
method which the
GroupsList
request conforms to.
Creating a Request
groupsList :: GroupsList Source #
Creates a value of GroupsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GroupsList Source #
Retrieve all groups of a domain or of a user given a userKey (paginated)
See: groupsList
smart constructor.
Instances
Request Lenses
glOrderBy :: Lens' GroupsList (Maybe GroupsListOrderBy) Source #
Column to use for sorting results
glDomain :: Lens' GroupsList (Maybe Text) Source #
Name of the domain. Fill this field to get groups from only this domain. To return all groups in a multi-domain fill customer field instead.
glSortOrder :: Lens' GroupsList (Maybe GroupsListSortOrder) Source #
Whether to return results in ascending or descending order. Only of use when orderBy is also used
glCustomer :: Lens' GroupsList (Maybe Text) Source #
Immutable ID of the G Suite account. In case of multi-domain, to fetch all groups for a customer, fill this field instead of domain.
glQuery :: Lens' GroupsList (Maybe Text) Source #
Query string search. Should be of the form "". Complete documentation is at https://developers.google.com/admin-sdk/directory/v1/guides/search-groups
glPageToken :: Lens' GroupsList (Maybe Text) Source #
Token to specify next page in the list
glUserKey :: Lens' GroupsList (Maybe Text) Source #
Email or immutable Id of the user if only those groups are to be listed, the given user is a member of. If Id, it should match with id of user object
glMaxResults :: Lens' GroupsList (Maybe Int32) Source #
Maximum number of results to return. Default is 200