@@ -82,7 +82,7 @@ var gcloud = require('gcloud'),
82
82
ds = new gcloud.datastore.Dataset ({ projectId: YOUR_PROJECT_ID });
83
83
~~~~
84
84
85
- Elsewhere, initiate with project ID, service account's email and private key downloaded from Developer's Console.
85
+ Elsewhere, initiate with project ID and private key downloaded from Developer's Console.
86
86
87
87
~~~~ js
88
88
var gcloud = require (' gcloud' ),
@@ -285,12 +285,12 @@ var gcloud = require('gcloud'),
285
285
bucket = new gcloud.storage.Bucket ({ bucketName: YOUR_BUCKET_NAME });
286
286
~~~~
287
287
288
- Elsewhere, initiate with bucket's name, service account's email and private key downloaded from Developer's Console.
288
+ Elsewhere, initiate with bucket's name and private key downloaded from Developer's Console.
289
289
290
290
~~~~ js
291
291
var gcloud = require (' gcloud' ),
292
292
bucket = new gcloud.storage.Bucket ({
293
- projectId : YOUR_PROJECT_ID ,
293
+ bucketName : YOUR_BUCKET_NAME ,
294
294
keyFilename: ' /path/to/the/key.json'
295
295
});
296
296
~~~~
@@ -332,7 +332,7 @@ and write the file contents to `/path/to/file`.
332
332
bucket .createReadStream (filename)
333
333
.pipe (fs .createWriteStream (' /path/to/file' ))
334
334
.on (' error' , console .log )
335
- .on (' completed ' , console .log );
335
+ .on (' complete ' , console .log );
336
336
~~~~
337
337
338
338
#### Write file contents and metadata
@@ -391,8 +391,7 @@ and private key downloaded from Developer's Console.
391
391
var gcloud = require (' gcloud' ),
392
392
conn = new gcloud.pubsub.Connection ({
393
393
projectId: YOUR_PROJECT_ID ,
394
-
395
- pemFilePath: ' /path/to/the/pem/private/key.pem'
394
+ keyFilename: ' /path/to/the/key.json'
396
395
});
397
396
~~~~
398
397
0 commit comments