gogol-taskqueue-0.0.1: Google TaskQueue SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.TaskQueue.Tasks.Lease

Contents

Description

Lease 1 or more tasks from a TaskQueue.

See: TaskQueue API Reference for taskqueue.tasks.lease.

Synopsis

REST Resource

type TasksLeaseResource = "taskqueue" :> ("v1beta2" :> ("projects" :> (Capture "project" Text :> ("taskqueues" :> (Capture "taskqueue" Text :> ("tasks" :> ("lease" :> (QueryParam "numTasks" (Textual Int32) :> (QueryParam "leaseSecs" (Textual Int32) :> (QueryParam "tag" Text :> (QueryParam "groupByTag" Bool :> (QueryParam "alt" AltJSON :> Post `[JSON]` Tasks)))))))))))) Source

A resource alias for taskqueue.tasks.lease method which the TasksLease request conforms to.

Creating a Request

tasksLease Source

Creates a value of TasksLease with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data TasksLease Source

Lease 1 or more tasks from a TaskQueue.

See: tasksLease smart constructor.

Request Lenses

tlTaskqueue :: Lens' TasksLease Text Source

The taskqueue to lease a task from.

tlTag :: Lens' TasksLease (Maybe Text) Source

The tag allowed for tasks in the response. Must only be specified if group_by_tag is true. If group_by_tag is true and tag is not specified the tag will be that of the oldest task by eta, i.e. the first available tag

tlProject :: Lens' TasksLease Text Source

The project under which the queue lies.

tlNumTasks :: Lens' TasksLease Int32 Source

The number of tasks to lease.

tlLeaseSecs :: Lens' TasksLease Int32 Source

The lease in seconds.

tlGroupByTag :: Lens' TasksLease (Maybe Bool) Source

When true, all returned tasks will have the same tag