Dataproc/src/V1beta2/Gapic/JobControllerGapicClient.php
public function getJob($projectId, $region, $jobId, array $optionalArgs = [])
    {
        $request = new GetJobRequest();
        $request->setProjectId($projectId);
        $request->setRegion($region);
        $request->setJobId($jobId);

        return $this->startCall(
            'GetJob',
            Job::class,
            $optionalArgs,
            $request
        )->wait();
    }
public function getJob($projectId, $region, $jobId, array $optionalArgs = [])
    {
        $request = new GetJobRequest();
        $request->setProjectId($projectId);
        $request->setRegion($region);
        $request->setJobId($jobId);

        return $this->startCall(
            'GetJob',
            Job::class,
            $optionalArgs,
            $request
        )->wait();
    }
public function getJob ( $ projectId , $ region , $ jobId , array $ optionalArgs = [ ] ) { $ request = new GetJobRequest ( ) ; $ request -> setProjectId ( $ projectId ) ; $ request -> setRegion ( $ region ) ; $ request -> setJobId ( $ jobId ) ; return $ this -> startCall ( 'GetJob' , Job :: class , $ optionalArgs , $ request ) -> wait ( ) ; }
Gets the resource representation for a job in a project.

Sample code:
```
$jobControllerClient = new JobControllerClient();
try {
$projectId = '';
$region = '';
$jobId = '';
$response = $jobControllerClient->getJob($projectId, $region, $jobId);
} 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 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
Gets the resource representation for a job in a project .