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-resourcemanager/README.md
+6-13Lines changed: 6 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
-
# @google-cloud/resource
1
+
# @google-cloud/resource ([Alpha][versioning])
2
2
> Google Cloud Resource Manager Client Library for Node.js
3
3
4
-
> **This is a Beta release of Google Cloud Resource Manager.** This feature is not covered by any SLA or deprecation policy and may be subject to backward-incompatible changes.
5
-
6
4
*Looking for more Google APIs than just Resource Manager? You might want to check out [`google-cloud`][google-cloud].*
7
5
8
6
-[API Documentation][gcloud-resource-docs]
@@ -48,24 +46,18 @@ var resource = require('@google-cloud/resource')({
48
46
49
47
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.
50
48
51
-
### On Google Compute Engine
49
+
### On Google Cloud Platform
52
50
53
-
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.
51
+
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.
54
52
55
53
```js
56
-
// Authenticating on a global basis.
57
-
var projectId =process.env.GCLOUD_PROJECT; // E.g. 'grape-spaceship-123'
58
-
59
-
var resource =require('@google-cloud/resource')({
60
-
projectId: projectId
61
-
});
62
-
54
+
var resource =require('@google-cloud/resource')();
63
55
// ...you're good to go!
64
56
```
65
57
66
58
### Elsewhere
67
59
68
-
If you are not running this client on Google Compute Engine, you need a Google Developers service account. To create a service account:
60
+
If you are not running this client on Google Cloud Platform, you need a Google Developers service account. To create a service account:
69
61
70
62
1. Visit the [Google Developers Console][dev-console].
71
63
2. Create a new project or click on an existing project.
@@ -92,6 +84,7 @@ var resource = require('@google-cloud/resource')({
0 commit comments