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.TaskQueue.Types

Contents

Description

 

Synopsis

Service Configuration

taskQueueService :: Service Source

Default request referring to version v1beta2 of the TaskQueue API. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

taskqueueConsumerScope :: OAuthScope Source

Consume Tasks from your Taskqueues

taskqueueScope :: OAuthScope Source

Manage your Tasks and Taskqueues

Tasks2

tasks2 :: Tasks2 Source

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

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

tKind :: Lens' Tasks2 Text Source

The kind of object returned, a list of tasks.

tItems :: Lens' Tasks2 [Task] Source

The actual list of tasks currently active in the TaskQueue.

TaskQueue

taskQueue :: TaskQueue Source

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

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

tqKind :: Lens' TaskQueue Text Source

The kind of REST object returned, in this case taskqueue.

tqStats :: Lens' TaskQueue (Maybe TaskQueueStats) Source

Statistics for the TaskQueue object in question.

tqMaxLeases :: Lens' TaskQueue (Maybe Int32) Source

The number of times we should lease out tasks before giving up on them. If unset we lease them out forever until a worker deletes the task.

tqId :: Lens' TaskQueue (Maybe Text) Source

Name of the taskqueue.

tqACL :: Lens' TaskQueue (Maybe TaskQueueACL) Source

ACLs that are applicable to this TaskQueue object.

TaskQueueACL

taskQueueACL :: TaskQueueACL Source

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

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

tqaProducerEmails :: Lens' TaskQueueACL [Text] Source

Email addresses of users who can "produce" tasks into the TaskQueue. This means they can Insert tasks into the queue.

tqaAdminEmails :: Lens' TaskQueueACL [Text] Source

Email addresses of users who are "admins" of the TaskQueue. This means they can control the queue, eg set ACLs for the queue.

tqaConsumerEmails :: Lens' TaskQueueACL [Text] Source

Email addresses of users who can "consume" tasks from the TaskQueue. This means they can Dequeue and Delete tasks from the queue.

TaskQueueStats

taskQueueStats :: TaskQueueStats Source

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

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

tqsTotalTasks :: Lens' TaskQueueStats (Maybe Int32) Source

Number of tasks in the queue.

tqsOldestTask :: Lens' TaskQueueStats (Maybe Int64) Source

The timestamp (in seconds since the epoch) of the oldest unfinished task.

tqsLeasedLastHour :: Lens' TaskQueueStats (Maybe Int64) Source

Number of tasks leased in the last hour.

tqsLeasedLastMinute :: Lens' TaskQueueStats (Maybe Int64) Source

Number of tasks leased in the last minute.

Tasks

tasks :: Tasks Source

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

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

tasKind :: Lens' Tasks Text Source

The kind of object returned, a list of tasks.

tasItems :: Lens' Tasks [Task] Source

The actual list of tasks returned as a result of the lease operation.

Task

task :: Task Source

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

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

ttRetryCount :: Lens' Task (Maybe Int32) Source

The number of leases applied to this task.

ttEnqueueTimestamp :: Lens' Task (Maybe Int64) Source

Time (in seconds since the epoch) at which the task was enqueued.

ttTag :: Lens' Task (Maybe Text) Source

Tag for the task, could be used later to lease tasks grouped by a specific tag.

ttKind :: Lens' Task Text Source

The kind of object returned, in this case set to task.

ttQueueName :: Lens' Task (Maybe Text) Source

Name of the queue that the task is in.

ttPayloadBase64 :: Lens' Task (Maybe Text) Source

A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.

ttId :: Lens' Task (Maybe Text) Source

Name of the task.

ttLeaseTimestamp :: Lens' Task (Maybe Int64) Source

Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.