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