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 |
Updates a timeline item in place.
See: Google Mirror API Reference for mirror.timeline.update
.
Synopsis
- type TimelineUpdateResource = ("mirror" :> ("v1" :> ("timeline" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TimelineItem :> Put '[JSON] TimelineItem)))))) :<|> ("upload" :> ("mirror" :> ("v1" :> ("timeline" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] TimelineItem :> Put '[JSON] TimelineItem))))))))
- timelineUpdate :: TimelineItem -> Text -> TimelineUpdate
- data TimelineUpdate
- tuPayload :: Lens' TimelineUpdate TimelineItem
- tuId :: Lens' TimelineUpdate Text
REST Resource
type TimelineUpdateResource = ("mirror" :> ("v1" :> ("timeline" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TimelineItem :> Put '[JSON] TimelineItem)))))) :<|> ("upload" :> ("mirror" :> ("v1" :> ("timeline" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] TimelineItem :> Put '[JSON] TimelineItem)))))))) Source #
A resource alias for mirror.timeline.update
method which the
TimelineUpdate
request conforms to.
Creating a Request
Creates a value of TimelineUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TimelineUpdate Source #
Updates a timeline item in place.
See: timelineUpdate
smart constructor.
Instances
Request Lenses
tuPayload :: Lens' TimelineUpdate TimelineItem Source #
Multipart request metadata.