Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
docs: fixes small typo (#553)
Browse files Browse the repository at this point in the history
* docs: Fixes small typo

* docs: Add missing gce_startup_script end comment

* lint fix

* copyright fix

Co-authored-by: Takashi Matsuo <tmatsuo@google.com>
  • Loading branch information
haraldreingruber and Takashi Matsuo authored May 19, 2021
1 parent 75c446a commit 7119ace
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 deletions.
5 changes: 2 additions & 3 deletions samples/sendgrid.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2016, Google, Inc.
// Copyright 2015 Google, Inc
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand All @@ -24,8 +24,7 @@ async function sendgridExample() {
to: 'to_email@example.com',
from: 'from_email@example.com',
subject: 'Sendgrid test email from Node.js on Google Cloud Platform',
text:
'Well hello! This is a Sendgrid test email from Node.js on Google Cloud Platform.',
text: 'Well hello! This is a Sendgrid test email from Node.js on Google Cloud Platform.',
});
}
sendgridExample();
Expand Down
3 changes: 2 additions & 1 deletion samples/startupScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function main(name = 'start-script-example') {
console.log('Operation complete. Waiting for IP');
await pingVM(ip);

console.log(`\n${name} created succesfully`);
console.log(`\n${name} created successfully`);
}

/**
Expand All @@ -96,6 +96,7 @@ async function main(name = 'start-script-example') {
}

createVMWithStartupScript();
// [END gce_startup_script]
}

main(...process.argv.slice(2));
3 changes: 1 addition & 2 deletions samples/test/sendgrid.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ describe('sendgrid', () => {
from: 'from_email@example.com',
subject:
'Sendgrid test email from Node.js on Google Cloud Platform',
text:
'Well hello! This is a Sendgrid test email from Node.js on Google Cloud Platform.',
text: 'Well hello! This is a Sendgrid test email from Node.js on Google Cloud Platform.',
});
},
},
Expand Down
15 changes: 6 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2404,9 +2404,8 @@ Compute.prototype.getDisksStream = paginator.streamify('getDisks');
* });
*/

Compute.prototype.getInstanceGroupsStream = paginator.streamify(
'getInstanceGroups'
);
Compute.prototype.getInstanceGroupsStream =
paginator.streamify('getInstanceGroups');

/**
* Get a list of {@link Firewall} objects as a readable object stream.
Expand Down Expand Up @@ -2465,9 +2464,8 @@ Compute.prototype.getFirewallsStream = paginator.streamify('getFirewalls');
* this.end();
* });
*/
Compute.prototype.getHealthChecksStream = paginator.streamify(
'getHealthChecks'
);
Compute.prototype.getHealthChecksStream =
paginator.streamify('getHealthChecks');

/**
* Get a list of {@link Image} objects as a readable object stream.
Expand Down Expand Up @@ -2526,9 +2524,8 @@ Compute.prototype.getImagesStream = paginator.streamify('getImages');
* this.end();
* });
*/
Compute.prototype.getMachineTypesStream = paginator.streamify(
'getMachineTypes'
);
Compute.prototype.getMachineTypesStream =
paginator.streamify('getMachineTypes');

/**
* Get a list of {@link Network} objects as a readable object stream.
Expand Down
5 changes: 2 additions & 3 deletions src/zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -1540,9 +1540,8 @@ Zone.prototype.getDisksStream = paginator.streamify('getDisks');
* this.end();
* });
*/
Zone.prototype.getInstanceGroupsStream = paginator.streamify(
'getInstanceGroups'
);
Zone.prototype.getInstanceGroupsStream =
paginator.streamify('getInstanceGroups');

/**
* Get a list of {@link MachineType} objects for this zone as a
Expand Down

0 comments on commit 7119ace

Please sign in to comment.