diff --git a/compute/package.json b/compute/package.json index cc0148f29a..aad2dda066 100644 --- a/compute/package.json +++ b/compute/package.json @@ -9,13 +9,13 @@ "system-test": "mocha -R spec -t 120000 --require intelli-espower-loader ../system-test/_setup.js system-test/*.test.js" }, "dependencies": { - "gcloud": "^0.37.0", - "googleapis": "^12.0.0", + "@google-cloud/compute": "^0.1.1", + "googleapis": "^12.2.0", "nodemailer": "^2.4.1", "nodemailer-smtp-transport": "^2.5.0", "sendgrid": "^2.0.0" }, "devDependencies": { - "mocha": "^2.5.3" + "mocha": "^3.0.2" } } diff --git a/compute/vms.js b/compute/vms.js index e648ed1021..15230e3ff6 100644 --- a/compute/vms.js +++ b/compute/vms.js @@ -15,16 +15,16 @@ 'use strict'; // [START auth] -// By default, gcloud will authenticate using the service account file specified -// by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use the -// project specified by the GCLOUD_PROJECT environment variable. See -// https://googlecloudplatform.github.io/gcloud-node/#/docs/guides/authentication -var gcloud = require('gcloud'); +// By default, the client will authenticate using the service account file +// specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use +// the project specified by the GCLOUD_PROJECT environment variable. See +// https://googlecloudplatform.github.io/gcloud-node/#/docs/google-cloud/latest/guides/authentication +var Compute = require('@google-cloud/compute'); // [END auth] // [START initialize] -// Get a reference to the compute component -var compute = gcloud.compute(); +// Instantiate a compute client +var compute = Compute(); // [END initialize] // [START list]