()
| 30 | const livestreamServiceClient = new LivestreamServiceClient(); |
| 31 | |
| 32 | async function listChannels() { |
| 33 | const iterable = await livestreamServiceClient.listChannelsAsync({ |
| 34 | parent: livestreamServiceClient.locationPath(projectId, location), |
| 35 | }); |
| 36 | console.info('Channels:'); |
| 37 | for await (const response of iterable) { |
| 38 | console.log(response.name); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | listChannels(); |
| 43 | // [END livestream_list_channels] |