Dataproc/src/V1beta2/Gapic/JobControllerGapicClient.php
public function updateJob($projectId, $region, $jobId, $job, $updateMask, array $optionalArgs = [])
    {
        $request = new UpdateJobRequest();
        $request->setProjectId($projectId);
        $request->setRegion($region);
        $request->setJobId($jobId);
        $request->setJob($job);
        $request->setUpdateMask($updateMask);

        return $this->startCall(
            'UpdateJob',
            Job::class,
            $optionalArgs,
            $request
        )->wait();
    }
public function updateJob($projectId, $region, $jobId, $job, $updateMask, array $optionalArgs = [])
    {
        $request = new UpdateJobRequest();
        $request->setProjectId($projectId);
        $request->setRegion($region);
        $request->setJobId($jobId);
        $request->setJob($job);
        $request->setUpdateMask($updateMask);

        return $this->startCall(
            'UpdateJob',
            Job::class,
            $optionalArgs,
            $request
        )->wait();
    }
public function updateJob ( $ projectId , $ region , $ jobId , $ job , $ updateMask , array $ optionalArgs = [ ] ) { $ request = new UpdateJobRequest ( ) ; $ request -> setProjectId ( $ projectId ) ; $ request -> setRegion ( $ region ) ; $ request -> setJobId ( $ jobId ) ; $ request -> setJob ( $ job ) ; $ request -> setUpdateMask ( $ updateMask ) ; return $ this -> startCall ( 'UpdateJob' , Job :: class , $ optionalArgs , $ request ) -> wait ( ) ; }
Updates a job in a project.

Sample code:
```
$jobControllerClient = new JobControllerClient();
try {
$projectId = '';
$region = '';
$jobId = '';
$job = new Job();
$updateMask = new FieldMask();
$response = $jobControllerClient->updateJob($projectId, $region, $jobId, $job, $updateMask);
} finally {
$jobControllerClient->close();
}
```

@param string    $projectId    Required. The ID of the Google Cloud Platform project that the job
belongs to.
@param string    $region       Required. The Cloud Dataproc region in which to handle the request.
@param string    $jobId        Required. The job ID.
@param Job       $job          Required. The changes to the job.
@param FieldMask $updateMask   Required. Specifies the path, relative to <code>Job</code>, of
the field to update. For example, to update the labels of a Job the
<code>update_mask</code> parameter would be specified as
<code>labels</code>, and the `PATCH` request body would specify the new
value. <strong>Note:</strong> Currently, <code>labels</code> is the only
field that can be updated.
@param array     $optionalArgs {
Optional.

@type RetrySettings|array $retrySettings
Retry settings to use for this call. Can be a
{@see Google\ApiCore\RetrySettings} object, or an associative array
of retry settings parameters. See the documentation on
{@see Google\ApiCore\RetrySettings} for example usage.
}

@return \Google\Cloud\Dataproc\V1beta2\Job

@throws ApiException if the remote call fails
@experimental
Updates a job in a project .