List Tasks in a TaskQueue (tasks.list)

@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_Tasks2
338125
public function listTasks($project, $taskqueue, $optParams = array()) {
      $params = array('project' => $project, 'taskqueue' => $taskqueue);
      $params = array_merge($params, $optParams);
      $data = $this->__call('list', array($params));
      if ($this->useObjects()) {
        return new Google_Tasks2($data);
      } else {
        return $data;
      }
    }
50729
public function get($tasklist, $optParams = array()) {
      $params = array('tasklist' => $tasklist);
      $params = array_merge($params, $optParams);
      $data = $this->__call('get', array($params));
      if ($this->useObjects()) {
        return new Google_TaskList($data);
      } else {
        return $data;
      }
    }
366126
public function query($projectId, QueryRequest $postBody, $optParams = array()) {
      $params = array('projectId' => $projectId, 'postBody' => $postBody);
      $params = array_merge($params, $optParams);
      $data = $this->__call('query', array($params));
      if ($this->useObjects()) {
        return new QueryResponse($data);
      } else {
        return $data;
      }
    }
589788
public CollectionRequest<Task> projects(String task) {
    
        String path = String.format("/tasks/%s/projects", task);
        return new CollectionRequest<Task>(this, Task.class, path, "GET");
    }
758059
public final function doQuery(string $query, array $queryParams = null): BatchInterface
    {
        return $this->queue($query, $queryParams)->do();
    }
298408
public function get($project, $optParams = array()) {
      $params = array('project' => $project);
      $params = array_merge($params, $optParams);
      $data = $this->__call('get', array($params));
      if ($this->useObjects()) {
        return new Project($data);
      } else {
        return $data;
      }
    }
731326
public function listDetections($q, $optParams = array()) {
      $params = array('q' => $q);
      $params = array_merge($params, $optParams);
      $data = $this->__call('list', array($params));
      if ($this->useObjects()) {
        return new DetectionsListResponse($data);
      } else {
        return $data;
      }
    }
803869
def get_tasks(self, status=None, offset=None, limit=None):
        
        params = {'project': self.id, 'offset': offset, 'limit': limit}
        if status:
            params['status'] = status
        return self._api.tasks.query(api=self._api, **params)
625547
public function delete($project, $urlMap, $optParams = array())
  {
    $params = array('project' => $project, 'urlMap' => $urlMap);
    $params = array_merge($params, $optParams);
    return $this->call('delete', array($params), "Compute_Operation");
  }
447075
public static function queueName($project, $location, $queue)
    {
        return self::getQueueNameTemplate()->render([
            'project' => $project,
            'location' => $location,
            'queue' => $queue,
        ]);
    }
566756
function TaskQueue(array) {
  array = array || [];
  if (!Array.isArray(array)) throw new Error('TaskQueue parameter must be an array.');
  else {
    this.taskQueue = array;
    this.length = array.length;
    this.index = 0;
  }
}
160909
public function setTaskOptions($taskName, $options)
    {
        $baseTask = $taskName;
        if (isset($this->tasks['defined'][$taskName]) && is_array($this->tasks['defined'][$taskName])) {
            $definedTask = $this->tasks['defined'][$taskName];
            $baseTask = $definedTask['task'];
            if (is_array($definedTask['options'])) {
                $options = array_merge_recursive($definedTask['options'], $options);
            }
        }
        $this->defineTask($taskName, $baseTask, $options);

        return $this;
    }
788059
private void writeTasks(Project project)
   {
      Project.Tasks tasks = m_factory.createProjectTasks();
      project.setTasks(tasks);
      List<Project.Tasks.Task> list = tasks.getTask();

      for (Task task : m_projectFile.getTasks())
      {
         list.add(writeTask(task));
      }
   }
427694
function queueTasks (testTasks, buildTasks) {
      // Queue up test tasks, removing them if already queued up
      _.forEach({ test: testTasks, build: buildTasks }, (queuingTasks, type) => {
        _.forEach(queuingTasks, (task) => {
          // Remove if already queued
          const removed = _.remove(queue[type], (queuedTask) => { return (queuedTask === task); });
          // Queue task ...
          queue[type].push(task);
          // Reorder tasks by original configuration ordering
          queue[type] = _.sortBy(queue[type], (queuedTask) => {
            return _.findIndex(orderedTasks, (originalTask) => {
              return (originalTask === queuedTask);
            });
          });
          // Prompt queued task
          console.log(`> ${removed.length ? 'Requeued' : 'Queued'} ${ type } task for execution: "${ task.blue }"`);
          console.log(`  Queue: ${ [...queue.test, ...queue.build].join(', ').gray }`);
        });
      });
      // Execute tasks from the queue
      executeQueuedTasks();
    }
599617
def list_jobs(self, project):
        
        url = self._build_url(constants.LIST_JOBS_ENDPOINT)
        params = {'project': project}
        jobs = self.client.get(url, params=params, timeout=self.timeout)
        return jobs
1362652
public CollectionRequest<Project> tasks(String project) {
    
        String path = String.format("/projects/%s/tasks", project);
        return new CollectionRequest<Project>(this, Project.class, path, "GET");
    }
576292
public function actionTasklist()
    {
        $projectID = $this->getRequestParam('projectid');

        $project = new Project();
        $tasks = $project->getTasks($projectID);

        return $this->render('tasklist', [
            'projectid' => $projectID,
            'tasks' => $tasks,
        ]);
    }