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 either deleted users or all users in a domain (paginated)
See: Admin Directory API Reference for directory.users.list
.
Synopsis
- type UsersListResource = "admin" :> ("directory" :> ("v1" :> ("users" :> (QueryParam "event" UsersListEvent :> (QueryParam "orderBy" UsersListOrderBy :> (QueryParam "viewType" UsersListViewType :> (QueryParam "customFieldMask" Text :> (QueryParam "domain" Text :> (QueryParam "showDeleted" Text :> (QueryParam "sortOrder" UsersListSortOrder :> (QueryParam "customer" Text :> (QueryParam "query" Text :> (QueryParam "projection" UsersListProjection :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Users))))))))))))))))
- usersList :: UsersList
- data UsersList
- ulEvent :: Lens' UsersList (Maybe UsersListEvent)
- ulOrderBy :: Lens' UsersList (Maybe UsersListOrderBy)
- ulViewType :: Lens' UsersList UsersListViewType
- ulCustomFieldMask :: Lens' UsersList (Maybe Text)
- ulDomain :: Lens' UsersList (Maybe Text)
- ulShowDeleted :: Lens' UsersList (Maybe Text)
- ulSortOrder :: Lens' UsersList (Maybe UsersListSortOrder)
- ulCustomer :: Lens' UsersList (Maybe Text)
- ulQuery :: Lens' UsersList (Maybe Text)
- ulProjection :: Lens' UsersList UsersListProjection
- ulPageToken :: Lens' UsersList (Maybe Text)
- ulMaxResults :: Lens' UsersList (Maybe Int32)
REST Resource
type UsersListResource = "admin" :> ("directory" :> ("v1" :> ("users" :> (QueryParam "event" UsersListEvent :> (QueryParam "orderBy" UsersListOrderBy :> (QueryParam "viewType" UsersListViewType :> (QueryParam "customFieldMask" Text :> (QueryParam "domain" Text :> (QueryParam "showDeleted" Text :> (QueryParam "sortOrder" UsersListSortOrder :> (QueryParam "customer" Text :> (QueryParam "query" Text :> (QueryParam "projection" UsersListProjection :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Users)))))))))))))))) Source #
A resource alias for directory.users.list
method which the
UsersList
request conforms to.
Creating a Request
usersList :: UsersList Source #
Creates a value of UsersList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Retrieve either deleted users or all users in a domain (paginated)
See: usersList
smart constructor.
Instances
Request Lenses
ulEvent :: Lens' UsersList (Maybe UsersListEvent) Source #
Event on which subscription is intended (if subscribing)
ulViewType :: Lens' UsersList UsersListViewType Source #
Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user.
ulCustomFieldMask :: Lens' UsersList (Maybe Text) Source #
Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.
ulDomain :: Lens' UsersList (Maybe Text) Source #
Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead.
ulShowDeleted :: Lens' UsersList (Maybe Text) Source #
If set to true retrieves the list of deleted users. Default is false
ulSortOrder :: Lens' UsersList (Maybe UsersListSortOrder) Source #
Whether to return results in ascending or descending order.
ulCustomer :: Lens' UsersList (Maybe Text) Source #
Immutable ID of the G Suite account. In case of multi-domain, to fetch all users for a customer, fill this field instead of domain.
ulQuery :: Lens' UsersList (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-users
ulProjection :: Lens' UsersList UsersListProjection Source #
What subset of fields to fetch for this user.