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 |
Update tasks that are leased out of a TaskQueue.
See: TaskQueue API Reference for taskqueue.tasks.update
.
- type TasksUpdateResource = "taskqueue" :> ("v1beta2" :> ("projects" :> (Capture "project" Text :> ("taskqueues" :> (Capture "taskqueue" Text :> ("tasks" :> (Capture "task" Text :> (QueryParam "newLeaseSeconds" (Textual Int32) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Task :> Post '[JSON] Task))))))))))
- tasksUpdate :: Text -> Text -> Task -> Text -> Int32 -> TasksUpdate
- data TasksUpdate
- tuTaskQueue :: Lens' TasksUpdate Text
- tuProject :: Lens' TasksUpdate Text
- tuPayload :: Lens' TasksUpdate Task
- tuTask :: Lens' TasksUpdate Text
- tuNewLeaseSeconds :: Lens' TasksUpdate Int32
REST Resource
type TasksUpdateResource = "taskqueue" :> ("v1beta2" :> ("projects" :> (Capture "project" Text :> ("taskqueues" :> (Capture "taskqueue" Text :> ("tasks" :> (Capture "task" Text :> (QueryParam "newLeaseSeconds" (Textual Int32) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Task :> Post '[JSON] Task)))))))))) Source #
A resource alias for taskqueue.tasks.update
method which the
TasksUpdate
request conforms to.
Creating a Request
Creates a value of TasksUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TasksUpdate Source #
Update tasks that are leased out of a TaskQueue.
See: tasksUpdate
smart constructor.
Request Lenses
tuNewLeaseSeconds :: Lens' TasksUpdate Int32 Source #
The new lease in seconds.