Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]

(no description)

File Size: 699 lines (20 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 classes

Google_Service_Taskqueue:: (1 method):
  __construct()

Google_Service_Taskqueue_Taskqueues_Resource:: (1 method):
  get()

Google_Service_Taskqueue_Tasks_Resource:: (7 methods):
  delete()
  get()
  insert()
  lease()
  listTasks()
  patch()
  update()

Google_Service_Taskqueue_Task:: (16 methods):
  setEnqueueTimestamp()
  getEnqueueTimestamp()
  setId()
  getId()
  setKind()
  getKind()
  setLeaseTimestamp()
  getLeaseTimestamp()
  setPayloadBase64()
  getPayloadBase64()
  setQueueName()
  getQueueName()
  setRetryCount()
  getRetryCount()
  setTag()
  getTag()

Google_Service_Taskqueue_TaskQueue:: (10 methods):
  setAcl()
  getAcl()
  setId()
  getId()
  setKind()
  getKind()
  setMaxLeases()
  getMaxLeases()
  setStats()
  getStats()

Google_Service_Taskqueue_TaskQueueAcl:: (6 methods):
  setAdminEmails()
  getAdminEmails()
  setConsumerEmails()
  getConsumerEmails()
  setProducerEmails()
  getProducerEmails()

Google_Service_Taskqueue_TaskQueueStats:: (8 methods):
  setLeasedLastHour()
  getLeasedLastHour()
  setLeasedLastMinute()
  getLeasedLastMinute()
  setOldestTask()
  getOldestTask()
  setTotalTasks()
  getTotalTasks()

Google_Service_Taskqueue_Tasks:: (4 methods):
  setItems()
  getItems()
  setKind()
  getKind()

Google_Service_Taskqueue_Tasks2:: (4 methods):
  setItems()
  getItems()
  setKind()
  getKind()


Class: Google_Service_Taskqueue  - X-Ref

Service definition for Taskqueue (v1beta2).

<p>
Lets you access a Google App Engine Pull Task Queue over REST.</p>

<p>
For more information about this service, see the API
<a href="https://developers.google.com/appengine/docs/python/taskqueue/rest" target="_blank">Documentation</a>
</p>

__construct(Google_Client $client)   X-Ref
Constructs the internal representation of the Taskqueue service.

param: Google_Client $client

Class: Google_Service_Taskqueue_Taskqueues_Resource  - X-Ref

The "taskqueues" collection of methods.
Typical usage is:
<code>
$taskqueueService = new Google_Service_Taskqueue(...);
$taskqueues = $taskqueueService->taskqueues;
</code>

get($project, $taskqueue, $optParams = array()   X-Ref
Get detailed information about a TaskQueue. (taskqueues.get)

param: string $project The project under which the queue lies.
param: string $taskqueue The id of the taskqueue to get the properties of.
param: array $optParams Optional parameters.
return: Google_Service_Taskqueue_TaskQueue

Class: Google_Service_Taskqueue_Tasks_Resource  - X-Ref

The "tasks" collection of methods.
Typical usage is:
<code>
$taskqueueService = new Google_Service_Taskqueue(...);
$tasks = $taskqueueService->tasks;
</code>

delete($project, $taskqueue, $task, $optParams = array()   X-Ref
Delete a task from a TaskQueue. (tasks.delete)

param: string $project The project under which the queue lies.
param: string $taskqueue The taskqueue to delete a task from.
param: string $task The id of the task to delete.
param: array $optParams Optional parameters.

get($project, $taskqueue, $task, $optParams = array()   X-Ref
Get a particular task from a TaskQueue. (tasks.get)

param: string $project The project under which the queue lies.
param: string $taskqueue The taskqueue in which the task belongs.
param: string $task The task to get properties of.
param: array $optParams Optional parameters.
return: Google_Service_Taskqueue_Task

insert($project, $taskqueue, Google_Service_Taskqueue_Task $postBody, $optParams = array()   X-Ref
Insert a new task in a TaskQueue (tasks.insert)

param: string $project The project under which the queue lies
param: string $taskqueue The taskqueue to insert the task into
param: Google_Task $postBody
param: array $optParams Optional parameters.
return: Google_Service_Taskqueue_Task

lease($project, $taskqueue, $numTasks, $leaseSecs, $optParams = array()   X-Ref
Lease 1 or more tasks from a TaskQueue. (tasks.lease)

param: string $project The project under which the queue lies.
param: string $taskqueue The taskqueue to lease a task from.
param: int $numTasks The number of tasks to lease.
param: int $leaseSecs The lease in seconds.
param: array $optParams Optional parameters.
return: Google_Service_Taskqueue_Tasks

listTasks($project, $taskqueue, $optParams = array()   X-Ref
List Tasks in a TaskQueue (tasks.listTasks)

param: string $project The project under which the queue lies.
param: string $taskqueue The id of the taskqueue to list tasks from.
param: array $optParams Optional parameters.
return: Google_Service_Taskqueue_Tasks2

patch($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array()   X-Ref
Update tasks that are leased out of a TaskQueue. This method supports patch
semantics. (tasks.patch)

param: string $project The project under which the queue lies.
param: string $taskqueue
param: string $task
param: int $newLeaseSeconds The new lease in seconds.
param: Google_Task $postBody
param: array $optParams Optional parameters.
return: Google_Service_Taskqueue_Task

update($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array()   X-Ref
Update tasks that are leased out of a TaskQueue. (tasks.update)

param: string $project The project under which the queue lies.
param: string $taskqueue
param: string $task
param: int $newLeaseSeconds The new lease in seconds.
param: Google_Task $postBody
param: array $optParams Optional parameters.
return: Google_Service_Taskqueue_Task

Class: Google_Service_Taskqueue_Task  - X-Ref

setEnqueueTimestamp($enqueueTimestamp)   X-Ref
No description

getEnqueueTimestamp()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setLeaseTimestamp($leaseTimestamp)   X-Ref
No description

getLeaseTimestamp()   X-Ref
No description

setPayloadBase64($payloadBase64)   X-Ref
No description

getPayloadBase64()   X-Ref
No description

setQueueName($queueName)   X-Ref
No description

getQueueName()   X-Ref
No description

setRetryCount($retryCount)   X-Ref
No description

getRetryCount()   X-Ref
No description

setTag($tag)   X-Ref
No description

getTag()   X-Ref
No description

Class: Google_Service_Taskqueue_TaskQueue  - X-Ref

setAcl(Google_Service_Taskqueue_TaskQueueAcl $acl)   X-Ref
No description

getAcl()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setMaxLeases($maxLeases)   X-Ref
No description

getMaxLeases()   X-Ref
No description

setStats(Google_Service_Taskqueue_TaskQueueStats $stats)   X-Ref
No description

getStats()   X-Ref
No description

Class: Google_Service_Taskqueue_TaskQueueAcl  - X-Ref

setAdminEmails($adminEmails)   X-Ref
No description

getAdminEmails()   X-Ref
No description

setConsumerEmails($consumerEmails)   X-Ref
No description

getConsumerEmails()   X-Ref
No description

setProducerEmails($producerEmails)   X-Ref
No description

getProducerEmails()   X-Ref
No description

Class: Google_Service_Taskqueue_TaskQueueStats  - X-Ref

setLeasedLastHour($leasedLastHour)   X-Ref
No description

getLeasedLastHour()   X-Ref
No description

setLeasedLastMinute($leasedLastMinute)   X-Ref
No description

getLeasedLastMinute()   X-Ref
No description

setOldestTask($oldestTask)   X-Ref
No description

getOldestTask()   X-Ref
No description

setTotalTasks($totalTasks)   X-Ref
No description

getTotalTasks()   X-Ref
No description

Class: Google_Service_Taskqueue_Tasks  - X-Ref

setItems($items)   X-Ref
No description

getItems()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

Class: Google_Service_Taskqueue_Tasks2  - X-Ref

setItems($items)   X-Ref
No description

getItems()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description