(projectId: string, location: string)
| 25 | // const location = 'us-central1'; |
| 26 | |
| 27 | async function listWorkflows(projectId: string, location: string) { |
| 28 | const [workflows] = await client.listWorkflows({ |
| 29 | parent: client.locationPath(projectId, location), |
| 30 | }); |
| 31 | for (const workflow of workflows) { |
| 32 | console.info(`name: ${workflow.name}`); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | listWorkflows(projectId, location).catch((err: Error) => { |
| 37 | console.error(err.message); |