()
| 46 | const batchClient = new batchLib.v1.BatchServiceClient(); |
| 47 | |
| 48 | async function callGetJob() { |
| 49 | // Construct request |
| 50 | const request = { |
| 51 | name: `projects/${projectId}/locations/${region}/jobs/${jobName}`, |
| 52 | }; |
| 53 | |
| 54 | // Run request |
| 55 | const response = await batchClient.getJob(request); |
| 56 | console.log(response); |
| 57 | } |
| 58 | |
| 59 | await callGetJob(); |
| 60 | // [END batch_get_job] |