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 |
Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.
See: Gmail API Reference for gmail.users.messages.batchDelete
.
Synopsis
- type UsersMessagesBatchDeleteResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("batchDelete" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchDeleteMessagesRequest :> Post '[JSON] ())))))))
- usersMessagesBatchDelete :: BatchDeleteMessagesRequest -> UsersMessagesBatchDelete
- data UsersMessagesBatchDelete
- umbdPayload :: Lens' UsersMessagesBatchDelete BatchDeleteMessagesRequest
- umbdUserId :: Lens' UsersMessagesBatchDelete Text
REST Resource
type UsersMessagesBatchDeleteResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("batchDelete" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchDeleteMessagesRequest :> Post '[JSON] ()))))))) Source #
A resource alias for gmail.users.messages.batchDelete
method which the
UsersMessagesBatchDelete
request conforms to.
Creating a Request
usersMessagesBatchDelete Source #
Creates a value of UsersMessagesBatchDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersMessagesBatchDelete Source #
Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.
See: usersMessagesBatchDelete
smart constructor.
Instances
Request Lenses
umbdPayload :: Lens' UsersMessagesBatchDelete BatchDeleteMessagesRequest Source #
Multipart request metadata.
umbdUserId :: Lens' UsersMessagesBatchDelete Text Source #
The user's email address. The special value me can be used to indicate the authenticated user.