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 |
Replaces a draft's content.
See: Gmail API Reference for gmail.users.drafts.update
.
Synopsis
- type UsersDraftsUpdateResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Draft :> Put '[JSON] Draft)))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Draft :> Put '[JSON] Draft))))))))))
- usersDraftsUpdate :: Draft -> Text -> UsersDraftsUpdate
- data UsersDraftsUpdate
- uduPayload :: Lens' UsersDraftsUpdate Draft
- uduUserId :: Lens' UsersDraftsUpdate Text
- uduId :: Lens' UsersDraftsUpdate Text
REST Resource
type UsersDraftsUpdateResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Draft :> Put '[JSON] Draft)))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Draft :> Put '[JSON] Draft)))))))))) Source #
A resource alias for gmail.users.drafts.update
method which the
UsersDraftsUpdate
request conforms to.
Creating a Request
Creates a value of UsersDraftsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersDraftsUpdate Source #
Replaces a draft's content.
See: usersDraftsUpdate
smart constructor.
Instances
Request Lenses
uduPayload :: Lens' UsersDraftsUpdate Draft Source #
Multipart request metadata.