Google_Service_Dataflow_V1b3ProjectsJobsWorkItems_Resource

The "workItems" collection of methods.

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/Dataflow.php  
  1. class Google_Service_Dataflow_V1b3ProjectsJobsWorkItems_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Leases a dataflow WorkItem to run. (workItems.lease) 
  5. * @param string $projectId 
  6. * @param string $jobId 
  7. * @param Google_LeaseWorkItemRequest $postBody 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Service_Dataflow_LeaseWorkItemResponse 
  10. */ 
  11. public function lease($projectId, $jobId, Google_Service_Dataflow_LeaseWorkItemRequest $postBody, $optParams = array()) 
  12. $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('lease', array($params), "Google_Service_Dataflow_LeaseWorkItemResponse"); 
  15.  
  16. /** 
  17. * Reports the status of dataflow WorkItems leased by a worker. 
  18. * (workItems.reportStatus) 
  19. * @param string $projectId 
  20. * @param string $jobId 
  21. * @param Google_ReportWorkItemStatusRequest $postBody 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_Service_Dataflow_ReportWorkItemStatusResponse 
  24. */ 
  25. public function reportStatus($projectId, $jobId, Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody, $optParams = array()) 
  26. $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('reportStatus', array($params), "Google_Service_Dataflow_ReportWorkItemStatusResponse");