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