From aeae10fa8b382c4656af3994b9be34122fb2f2d0 Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Mon, 15 Aug 2016 23:45:28 -0700 Subject: [PATCH] Switch to individual API packages. (#169) * Switch to individual API packages. * Address comments * Address comments --- compute/package.json | 6 +++--- compute/vms.js | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) 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]