Skip to content

Commit 6b6972d

Browse files
jmdobryAce Nassri
authored andcommitted
Switch to individual API packages. (#169)
* Switch to individual API packages. * Address comments * Address comments
1 parent 26c2385 commit 6b6972d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

compute/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
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
}

compute/vms.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
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]

0 commit comments

Comments
 (0)