()
| 29 | const client = new AutoMlClient(); |
| 30 | |
| 31 | async function cancelOperation() { |
| 32 | client.operationsClient.cancelOperation({ |
| 33 | name: operationFullId, |
| 34 | }); |
| 35 | |
| 36 | // Wait for operation to complete. |
| 37 | console.log('Cancelled operation'); |
| 38 | } |
| 39 | |
| 40 | cancelOperation(); |
| 41 | // [END automl_cancel_operation_beta] |