File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 99 "system-test" : " mocha -R spec -t 120000 --require intelli-espower-loader ../system-test/_setup.js system-test/*.test.js"
1010 },
1111 "dependencies" : {
12- "gcloud " : " ^0.37.0 " ,
13- "googleapis" : " ^12.0 .0" ,
12+ "@google-cloud/compute " : " ^0.1.1 " ,
13+ "googleapis" : " ^12.2 .0" ,
1414 "nodemailer" : " ^2.4.1" ,
1515 "nodemailer-smtp-transport" : " ^2.5.0" ,
1616 "sendgrid" : " ^2.0.0"
1717 },
1818 "devDependencies" : {
19- "mocha" : " ^2.5.3 "
19+ "mocha" : " ^3.0.2 "
2020 }
2121}
Original file line number Diff line number Diff line change 1515'use strict' ;
1616
1717// [START auth]
18- // By default, gcloud will authenticate using the service account file specified
19- // by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use the
20- // project specified by the GCLOUD_PROJECT environment variable. See
21- // https://googlecloudplatform.github.io/gcloud-node/#/docs/guides/authentication
22- var gcloud = require ( 'gcloud ' ) ;
18+ // By default, the client will authenticate using the service account file
19+ // specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use
20+ // the project specified by the GCLOUD_PROJECT environment variable. See
21+ // https://googlecloudplatform.github.io/gcloud-node/#/docs/google-cloud/latest/ guides/authentication
22+ var Compute = require ( '@google-cloud/compute ' ) ;
2323// [END auth]
2424
2525// [START initialize]
26- // Get a reference to the compute component
27- var compute = gcloud . compute ( ) ;
26+ // Instantiate a compute client
27+ var compute = Compute ( ) ;
2828// [END initialize]
2929
3030// [START list]
You can’t perform that action at this time.
0 commit comments