Google_Service_Dataflow_V1b3ProjectsJobs_Resource

The "jobs" 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_V1b3ProjectsJobs_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Creates a dataflow job. (jobs.create) 
  5. * @param string $projectId 
  6. * @param Google_Job $postBody 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string view 
  9. * @return Google_Service_Dataflow_Job 
  10. */ 
  11. public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array()) 
  12. $params = array('projectId' => $projectId, 'postBody' => $postBody); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('create', array($params), "Google_Service_Dataflow_Job"); 
  15.  
  16. /** 
  17. * Gets the state of the specified dataflow job. (jobs.get) 
  18. * @param string $projectId 
  19. * @param string $jobId 
  20. * @param array $optParams Optional parameters. 
  21. * @opt_param string view 
  22. * @return Google_Service_Dataflow_Job 
  23. */ 
  24. public function get($projectId, $jobId, $optParams = array()) 
  25. $params = array('projectId' => $projectId, 'jobId' => $jobId); 
  26. $params = array_merge($params, $optParams); 
  27. return $this->call('get', array($params), "Google_Service_Dataflow_Job"); 
  28.  
  29. /** 
  30. * Request the job status. (jobs.getMetrics) 
  31. * @param string $projectId 
  32. * @param string $jobId 
  33. * @param array $optParams Optional parameters. 
  34. * @opt_param string startTime 
  35. * @return Google_Service_Dataflow_JobMetrics 
  36. */ 
  37. public function getMetrics($projectId, $jobId, $optParams = array()) 
  38. $params = array('projectId' => $projectId, 'jobId' => $jobId); 
  39. $params = array_merge($params, $optParams); 
  40. return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics"); 
  41.  
  42. /** 
  43. * List the jobs of a project (jobs.listV1b3ProjectsJobs) 
  44. * @param string $projectId 
  45. * @param array $optParams Optional parameters. 
  46. * @opt_param string pageToken 
  47. * @opt_param string view 
  48. * @opt_param int pageSize 
  49. * @return Google_Service_Dataflow_ListJobsResponse 
  50. */ 
  51. public function listV1b3ProjectsJobs($projectId, $optParams = array()) 
  52. $params = array('projectId' => $projectId); 
  53. $params = array_merge($params, $optParams); 
  54. return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse"); 
  55.  
  56. /** 
  57. * Updates the state of an existing dataflow job. This method supports patch 
  58. * semantics. (jobs.patch) 
  59. * @param string $projectId 
  60. * @param string $jobId 
  61. * @param Google_Job $postBody 
  62. * @param array $optParams Optional parameters. 
  63. * @return Google_Service_Dataflow_Job 
  64. */ 
  65. public function patch($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) 
  66. $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); 
  67. $params = array_merge($params, $optParams); 
  68. return $this->call('patch', array($params), "Google_Service_Dataflow_Job"); 
  69.  
  70. /** 
  71. * Updates the state of an existing dataflow job. (jobs.update) 
  72. * @param string $projectId 
  73. * @param string $jobId 
  74. * @param Google_Job $postBody 
  75. * @param array $optParams Optional parameters. 
  76. * @return Google_Service_Dataflow_Job 
  77. */ 
  78. public function update($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) 
  79. $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); 
  80. $params = array_merge($params, $optParams); 
  81. return $this->call('update', array($params), "Google_Service_Dataflow_Job");