()
| 31 | const transcoderServiceClient = new TranscoderServiceClient(); |
| 32 | |
| 33 | async function listJobs() { |
| 34 | const iterable = await transcoderServiceClient.listJobsAsync({ |
| 35 | parent: transcoderServiceClient.locationPath(projectId, location), |
| 36 | }); |
| 37 | console.info('Jobs:'); |
| 38 | for await (const response of iterable) { |
| 39 | console.log(response.name); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | listJobs(); |
| 44 | // [END transcoder_list_jobs] |