You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/google-cloud-compute/README.md
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# @google-cloud/compute
1
+
# @google-cloud/compute ([Alpha][versioning])
2
2
> Google Compute Engine Client Library for Node.js
3
3
4
4
*Looking for more Google APIs than just Compute Engine? You might want to check out [`google-cloud`][google-cloud].*
@@ -54,24 +54,18 @@ var gce = require('@google-cloud/compute')({
54
54
55
55
It's incredibly easy to get authenticated and start using Google's APIs. You can set your credentials on a global basis as well as on a per-API basis. See each individual API section below to see how you can auth on a per-API-basis. This is useful if you want to use different accounts for different Google Cloud services.
56
56
57
-
### On Google Compute Engine
57
+
### On Google Cloud Platform
58
58
59
-
If you are running this client on Google Compute Engine, we handle authentication for you with no configuration. You just need to make sure that when you [set up the GCE instance][gce-how-to], you add the correct scopes for the APIs you want to access.
59
+
If you are running this client on Google Cloud Platform, we handle authentication for you with no configuration. You just need to make sure that when you [set up the GCE instance][gce-how-to], you add the correct scopes for the APIs you want to access.
60
60
61
61
```js
62
-
// Authenticating on a global basis.
63
-
var projectId =process.env.GCLOUD_PROJECT; // E.g. 'grape-spaceship-123'
64
-
65
-
var gce =require('@google-cloud/compute')({
66
-
projectId: projectId
67
-
});
68
-
62
+
var gce =require('@google-cloud/compute')();
69
63
// ...you're good to go!
70
64
```
71
65
72
66
### Elsewhere
73
67
74
-
If you are not running this client on Google Compute Engine, you need a Google Developers service account. To create a service account:
68
+
If you are not running this client on Google Cloud Platform, you need a Google Developers service account. To create a service account:
75
69
76
70
1. Visit the [Google Developers Console][dev-console].
77
71
2. Create a new project or click on an existing project.
@@ -98,6 +92,7 @@ var gce = require('@google-cloud/compute')({
0 commit comments