| Copyright | (c) 2015 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 |
Network.Google.Resource.Gmail.Users.Messages.Untrash
Description
Removes the specified message from the trash.
See: Gmail API Reference for gmail.users.messages.untrash.
- type UsersMessagesUntrashResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> (Capture "id" Text :> ("untrash" :> (QueryParam "alt" AltJSON :> Post `[JSON]` Message)))))))
- usersMessagesUntrash :: Text -> Text -> UsersMessagesUntrash
- data UsersMessagesUntrash
- umuUserId :: Lens' UsersMessagesUntrash Text
- umuId :: Lens' UsersMessagesUntrash Text
REST Resource
type UsersMessagesUntrashResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> (Capture "id" Text :> ("untrash" :> (QueryParam "alt" AltJSON :> Post `[JSON]` Message))))))) Source
A resource alias for gmail.users.messages.untrash method which the
UsersMessagesUntrash request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> UsersMessagesUntrash |
Creates a value of UsersMessagesUntrash with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersMessagesUntrash Source
Removes the specified message from the trash.
See: usersMessagesUntrash smart constructor.
Request Lenses
umuUserId :: Lens' UsersMessagesUntrash Text Source
The user's email address. The special value me can be used to indicate the authenticated user.
umuId :: Lens' UsersMessagesUntrash Text Source
The ID of the message to remove from Trash.