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 9
9
"system-test" : " mocha -R spec -t 120000 --require intelli-espower-loader ../system-test/_setup.js system-test/*.test.js"
10
10
},
11
11
"dependencies" : {
12
- "gcloud " : " ^0.37.0 " ,
13
- "googleapis" : " ^12.0 .0" ,
12
+ "@google-cloud/compute " : " ^0.1.1 " ,
13
+ "googleapis" : " ^12.2 .0" ,
14
14
"nodemailer" : " ^2.4.1" ,
15
15
"nodemailer-smtp-transport" : " ^2.5.0" ,
16
16
"sendgrid" : " ^2.0.0"
17
17
},
18
18
"devDependencies" : {
19
- "mocha" : " ^2.5.3 "
19
+ "mocha" : " ^3.0.2 "
20
20
}
21
21
}
Original file line number Diff line number Diff line change 15
15
'use strict' ;
16
16
17
17
// [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 ' ) ;
23
23
// [END auth]
24
24
25
25
// [START initialize]
26
- // Get a reference to the compute component
27
- var compute = gcloud . compute ( ) ;
26
+ // Instantiate a compute client
27
+ var compute = Compute ( ) ;
28
28
// [END initialize]
29
29
30
30
// [START list]
You can’t perform that action at this time.
0 commit comments