Skip to content

Commit

Permalink
chore: remove snippet leading whitespace (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 authored Mar 19, 2020
1 parent eba4edd commit 32ab4ff
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions packages/google-cloud-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,30 +55,30 @@ npm install @google-cloud/compute
### Using the client library

```javascript
// Imports the Google Cloud client library
const Compute = require('@google-cloud/compute');
// Imports the Google Cloud client library
const Compute = require('@google-cloud/compute');

// Creates a client
const compute = new Compute();
// Creates a client
const compute = new Compute();

async function quickstart() {
// Create a new VM using the latest OS image of your choice.
const zone = compute.zone('us-central1-c');
async function quickstart() {
// Create a new VM using the latest OS image of your choice.
const zone = compute.zone('us-central1-c');

// TODO(developer): choose a name for the VM
// const vmName = 'vm-name';
// TODO(developer): choose a name for the VM
// const vmName = 'vm-name';

// Start the VM create task
const [vm, operation] = await zone.createVM(vmName, {os: 'ubuntu'});
console.log(vm);
// Start the VM create task
const [vm, operation] = await zone.createVM(vmName, {os: 'ubuntu'});
console.log(vm);

// `operation` lets you check the status of long-running tasks.
await operation.promise();
// `operation` lets you check the status of long-running tasks.
await operation.promise();

// Complete!
console.log('Virtual machine created!');
}
quickstart();
// Complete!
console.log('Virtual machine created!');
}
quickstart();

```

Expand Down

0 comments on commit 32ab4ff

Please sign in to comment.