| 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 |
Network.Google.Resource.TaskQueue.Tasks.Insert
Description
Insert a new task in a TaskQueue
See: TaskQueue API Reference for taskqueue.tasks.insert.
- type TasksInsertResource = "taskqueue" :> ("v1beta2" :> ("projects" :> (Capture "project" Text :> ("taskqueues" :> (Capture "taskqueue" Text :> ("tasks" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Task :> Post '[JSON] Task))))))))
- tasksInsert :: Text -> Text -> Task -> TasksInsert
- data TasksInsert
- tiTaskQueue :: Lens' TasksInsert Text
- tiProject :: Lens' TasksInsert Text
- tiPayload :: Lens' TasksInsert Task
REST Resource
type TasksInsertResource = "taskqueue" :> ("v1beta2" :> ("projects" :> (Capture "project" Text :> ("taskqueues" :> (Capture "taskqueue" Text :> ("tasks" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Task :> Post '[JSON] Task)))))))) Source #
A resource alias for taskqueue.tasks.insert method which the
TasksInsert request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> Task | |
| -> TasksInsert |
Creates a value of TasksInsert with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TasksInsert Source #
Insert a new task in a TaskQueue
See: tasksInsert smart constructor.
Instances
Request Lenses
tiTaskQueue :: Lens' TasksInsert Text Source #
The taskqueue to insert the task into