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 |
Watch for changes in users list
See: Admin Directory API Reference for directory.users.watch
.
Synopsis
- type UsersWatchResource = "admin" :> ("directory" :> ("v1" :> ("users" :> ("watch" :> (QueryParam "event" UsersWatchEvent :> (QueryParam "orderBy" UsersWatchOrderBy :> (QueryParam "viewType" UsersWatchViewType :> (QueryParam "customFieldMask" Text :> (QueryParam "domain" Text :> (QueryParam "showDeleted" Text :> (QueryParam "sortOrder" UsersWatchSortOrder :> (QueryParam "customer" Text :> (QueryParam "query" Text :> (QueryParam "projection" UsersWatchProjection :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Post '[JSON] Channel))))))))))))))))))
- usersWatch :: Channel -> UsersWatch
- data UsersWatch
- uwEvent :: Lens' UsersWatch (Maybe UsersWatchEvent)
- uwOrderBy :: Lens' UsersWatch (Maybe UsersWatchOrderBy)
- uwViewType :: Lens' UsersWatch UsersWatchViewType
- uwCustomFieldMask :: Lens' UsersWatch (Maybe Text)
- uwDomain :: Lens' UsersWatch (Maybe Text)
- uwShowDeleted :: Lens' UsersWatch (Maybe Text)
- uwPayload :: Lens' UsersWatch Channel
- uwSortOrder :: Lens' UsersWatch (Maybe UsersWatchSortOrder)
- uwCustomer :: Lens' UsersWatch (Maybe Text)
- uwQuery :: Lens' UsersWatch (Maybe Text)
- uwProjection :: Lens' UsersWatch UsersWatchProjection
- uwPageToken :: Lens' UsersWatch (Maybe Text)
- uwMaxResults :: Lens' UsersWatch (Maybe Int32)
REST Resource
type UsersWatchResource = "admin" :> ("directory" :> ("v1" :> ("users" :> ("watch" :> (QueryParam "event" UsersWatchEvent :> (QueryParam "orderBy" UsersWatchOrderBy :> (QueryParam "viewType" UsersWatchViewType :> (QueryParam "customFieldMask" Text :> (QueryParam "domain" Text :> (QueryParam "showDeleted" Text :> (QueryParam "sortOrder" UsersWatchSortOrder :> (QueryParam "customer" Text :> (QueryParam "query" Text :> (QueryParam "projection" UsersWatchProjection :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Post '[JSON] Channel)))))))))))))))))) Source #
A resource alias for directory.users.watch
method which the
UsersWatch
request conforms to.
Creating a Request
Creates a value of UsersWatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersWatch Source #
Watch for changes in users list
See: usersWatch
smart constructor.
Instances
Request Lenses
uwEvent :: Lens' UsersWatch (Maybe UsersWatchEvent) Source #
Event on which subscription is intended (if subscribing)
uwOrderBy :: Lens' UsersWatch (Maybe UsersWatchOrderBy) Source #
Column to use for sorting results
uwViewType :: Lens' UsersWatch UsersWatchViewType Source #
Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user.
uwCustomFieldMask :: Lens' UsersWatch (Maybe Text) Source #
Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.
uwDomain :: Lens' UsersWatch (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.
uwShowDeleted :: Lens' UsersWatch (Maybe Text) Source #
If set to true retrieves the list of deleted users. Default is false
uwSortOrder :: Lens' UsersWatch (Maybe UsersWatchSortOrder) Source #
Whether to return results in ascending or descending order.
uwCustomer :: Lens' UsersWatch (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.
uwQuery :: Lens' UsersWatch (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
uwProjection :: Lens' UsersWatch UsersWatchProjection Source #
What subset of fields to fetch for this user.
uwPageToken :: Lens' UsersWatch (Maybe Text) Source #
Token to specify next page in the list
uwMaxResults :: Lens' UsersWatch (Maybe Int32) Source #
Maximum number of results to return. Default is 100. Max allowed is 500