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
@@ -62,23 +57,7 @@ var storage = require('@google-cloud/storage')(config);
62
57
63
58
#### The google-cloud meta-package
64
59
65
-
We also provide a meta-package, `google-cloud`, which provides all of the individual APIs. However, in order to keep file size and memory use low, the use of this package is not recommended.
66
-
67
-
If you want the kitchen sink, however, get it with:
68
-
69
-
```sh
70
-
$ npm install --save google-cloud
71
-
```
72
-
```js
73
-
var gcloud =require('google-cloud')({
74
-
projectId:'grape-spaceship-123',
75
-
keyFilename:'/path/to/keyfile.json'
76
-
});
77
-
78
-
var datastore =gcloud.datastore();
79
-
var storage =gcloud.storage();
80
-
```
81
-
60
+
The meta-package, `google-cloud`, has been deprecated.
82
61
83
62
## Example Applications
84
63
@@ -102,10 +81,6 @@ If you are running this client on Google Cloud Platform, we handle authenticatio
102
81
```js
103
82
var storage =require('@google-cloud/storage')();
104
83
105
-
// If you're using the google-cloud meta-package:
106
-
var gcloud =require('google-cloud');
107
-
var storage =gcloud.storage();
108
-
109
84
// ...you're good to go! See the next section to get started using the APIs.
110
85
```
111
86
@@ -139,29 +114,6 @@ If you are not running this client on Google Cloud Platform, you need a Google D
139
114
* If you want to use a new service account key, click on **Create credentials** and select **Service account key**. After the account key is created, you will be prompted to download the JSON key file that the library uses to authenticate your requests.
140
115
* If you want to generate a new service account key for an existing service account, click on **Generate new JSON key** and download the JSON key file.
141
116
142
-
```js
143
-
// Authenticating on a global basis.
144
-
var projectId =process.env.GCLOUD_PROJECT; // E.g. 'grape-spaceship-123'
145
-
146
-
var gcloud =require('google-cloud')({
147
-
projectId: projectId,
148
-
149
-
// The path to your key file:
150
-
keyFilename:'/path/to/keyfile.json'
151
-
152
-
// Or the contents of the key file:
153
-
credentials:require('./path/to/keyfile.json')
154
-
155
-
// For any APIs that accept an API key:
156
-
key:'...'
157
-
});
158
-
159
-
// ...you're good to go! See the next section to get started using the APIs.
160
-
```
161
-
162
-
You can also set auth on a per-API-instance basis. The examples below show you how.
0 commit comments