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 |
Add a alias for the user
See: Admin Directory API Reference for directory.users.aliases.insert
.
Synopsis
- type UsersAliasesInsertResource = "admin" :> ("directory" :> ("v1" :> ("users" :> (Capture "userKey" Text :> ("aliases" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Alias :> Post '[JSON] Alias)))))))
- usersAliasesInsert :: Alias -> Text -> UsersAliasesInsert
- data UsersAliasesInsert
- uaiPayload :: Lens' UsersAliasesInsert Alias
- uaiUserKey :: Lens' UsersAliasesInsert Text
REST Resource
type UsersAliasesInsertResource = "admin" :> ("directory" :> ("v1" :> ("users" :> (Capture "userKey" Text :> ("aliases" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Alias :> Post '[JSON] Alias))))))) Source #
A resource alias for directory.users.aliases.insert
method which the
UsersAliasesInsert
request conforms to.
Creating a Request
Creates a value of UsersAliasesInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersAliasesInsert Source #
Add a alias for the user
See: usersAliasesInsert
smart constructor.
Instances
Request Lenses
uaiPayload :: Lens' UsersAliasesInsert Alias Source #
Multipart request metadata.
uaiUserKey :: Lens' UsersAliasesInsert Text Source #
Email or immutable ID of the user