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 user
See: Admin Directory API Reference for directory.users.get
.
Synopsis
- type UsersGetResource = "admin" :> ("directory" :> ("v1" :> ("users" :> (Capture "userKey" Text :> (QueryParam "viewType" UsersGetViewType :> (QueryParam "customFieldMask" Text :> (QueryParam "projection" UsersGetProjection :> (QueryParam "alt" AltJSON :> Get '[JSON] User))))))))
- usersGet :: Text -> UsersGet
- data UsersGet
- ugViewType :: Lens' UsersGet UsersGetViewType
- ugCustomFieldMask :: Lens' UsersGet (Maybe Text)
- ugProjection :: Lens' UsersGet UsersGetProjection
- ugUserKey :: Lens' UsersGet Text
REST Resource
type UsersGetResource = "admin" :> ("directory" :> ("v1" :> ("users" :> (Capture "userKey" Text :> (QueryParam "viewType" UsersGetViewType :> (QueryParam "customFieldMask" Text :> (QueryParam "projection" UsersGetProjection :> (QueryParam "alt" AltJSON :> Get '[JSON] User)))))))) Source #
A resource alias for directory.users.get
method which the
UsersGet
request conforms to.
Creating a Request
Creates a value of UsersGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
retrieve user
See: usersGet
smart constructor.
Instances
Request Lenses
ugViewType :: Lens' UsersGet UsersGetViewType Source #
Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user.
ugCustomFieldMask :: Lens' UsersGet (Maybe Text) Source #
Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.
ugProjection :: Lens' UsersGet UsersGetProjection Source #
What subset of fields to fetch for this user.