gogol-taskqueue-0.3.0: Google TaskQueue SDK.

Copyright(c) 2015-2016 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.

Instances

Eq TasksLease Source # 
Data TasksLease Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TasksLease -> c TasksLease #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TasksLease #

toConstr :: TasksLease -> Constr #

dataTypeOf :: TasksLease -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TasksLease) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TasksLease) #

gmapT :: (forall b. Data b => b -> b) -> TasksLease -> TasksLease #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TasksLease -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TasksLease -> r #

gmapQ :: (forall d. Data d => d -> u) -> TasksLease -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TasksLease -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TasksLease -> m TasksLease #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TasksLease -> m TasksLease #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TasksLease -> m TasksLease #

Show TasksLease Source # 
Generic TasksLease Source # 

Associated Types

type Rep TasksLease :: * -> * #

GoogleRequest TasksLease Source # 

Associated Types

type Rs TasksLease :: * #

type Scopes TasksLease :: [Symbol] #

type Rep TasksLease Source # 
type Scopes TasksLease Source # 
type Scopes TasksLease = (:) Symbol "https://www.googleapis.com/auth/taskqueue" ((:) Symbol "https://www.googleapis.com/auth/taskqueue.consumer" ([] Symbol))
type Rs TasksLease Source # 

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