MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / callListJobs

Function callListJobs

batch/list/list_jobs.js:40–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 const batchClient = new batchLib.v1.BatchServiceClient();
39
40 async function callListJobs() {
41 // Construct request
42 const request = {
43 parent: `projects/${projectId}/locations/${region}`,
44 };
45
46 // Run request
47 const iterable = await batchClient.listJobsAsync(request);
48 for await (const response of iterable) {
49 console.log(response);
50 }
51 }
52
53 await callListJobs();
54 // [END batch_list_jobs]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected