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 |
Creates a filter.
See: Gmail API Reference for gmail.users.settings.filters.create
.
Synopsis
- type UsersSettingsFiltersCreateResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("filters" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Filter :> Post '[JSON] Filter)))))))
- usersSettingsFiltersCreate :: Filter -> UsersSettingsFiltersCreate
- data UsersSettingsFiltersCreate
- usfcPayload :: Lens' UsersSettingsFiltersCreate Filter
- usfcUserId :: Lens' UsersSettingsFiltersCreate Text
REST Resource
type UsersSettingsFiltersCreateResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("filters" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Filter :> Post '[JSON] Filter))))))) Source #
A resource alias for gmail.users.settings.filters.create
method which the
UsersSettingsFiltersCreate
request conforms to.
Creating a Request
usersSettingsFiltersCreate Source #
Creates a value of UsersSettingsFiltersCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersSettingsFiltersCreate Source #
Creates a filter.
See: usersSettingsFiltersCreate
smart constructor.
Instances
Request Lenses
usfcPayload :: Lens' UsersSettingsFiltersCreate Filter Source #
Multipart request metadata.
usfcUserId :: Lens' UsersSettingsFiltersCreate Text Source #
User's email address. The special value "me" can be used to indicate the authenticated user.