diff --git a/packages/google-cloud-compute/src/index.js b/packages/google-cloud-compute/src/index.js index 3506d476ec4..a3e038e5d77 100644 --- a/packages/google-cloud-compute/src/index.js +++ b/packages/google-cloud-compute/src/index.js @@ -95,7 +95,7 @@ function Compute(options) { } var config = { - baseUrl: 'https://www.googleapis.com/compute/v1', + baseUrl: 'https://www.googleapis.com./compute/v1', scopes: ['https://www.googleapis.com/auth/compute'], packageJson: require('../package.json') }; diff --git a/packages/google-cloud-compute/src/service.js b/packages/google-cloud-compute/src/service.js index 122bce08128..8d18528f5c4 100644 --- a/packages/google-cloud-compute/src/service.js +++ b/packages/google-cloud-compute/src/service.js @@ -263,7 +263,7 @@ Service.prototype.delete = function(callback) { Service.prototype.getHealth = function(group, callback) { if (!is.string(group)) { group = format('{baseUrl}/projects/{p}/zones/{z}/instanceGroups/{n}', { - baseUrl: 'https://www.googleapis.com/compute/v1', + baseUrl: 'https://www.googleapis.com./compute/v1', p: this.parent.projectId, z: group.zone.name || group.zone, n: group.name diff --git a/packages/google-cloud-compute/src/vm.js b/packages/google-cloud-compute/src/vm.js index a0e80650da8..f9d37e513b2 100644 --- a/packages/google-cloud-compute/src/vm.js +++ b/packages/google-cloud-compute/src/vm.js @@ -104,7 +104,7 @@ function VM(zone, name) { this.waiters = []; this.url = format('{base}/{project}/zones/{zone}/instances/{name}', { - base: 'https://www.googleapis.com/compute/v1/projects', + base: 'https://www.googleapis.com./compute/v1/projects', project: zone.compute.projectId, zone: zone.name, name: this.name diff --git a/packages/google-cloud-compute/src/zone.js b/packages/google-cloud-compute/src/zone.js index 8e6a9155096..f2bacacc98a 100644 --- a/packages/google-cloud-compute/src/zone.js +++ b/packages/google-cloud-compute/src/zone.js @@ -257,7 +257,7 @@ Zone.prototype.createAutoscaler = function(name, config, callback) { if (!/^https*:/.test(json.target)) { json.target = [ - 'https://content.googleapis.com/compute/v1/projects/', + 'https://content.googleapis.com./compute/v1/projects/', this.compute.projectId, '/zones/', this.name, @@ -554,7 +554,7 @@ Zone.prototype.createInstanceGroup = function(name, options, callback) { * boot: true, * initializeParams: { * sourceImage: - * 'https://www.googleapis.com/compute/v1/projects' + + * 'https://www.googleapis.com./compute/v1/projects' + * '/debian-cloud/global/images/debian-7-wheezy-v20150710' * } * } diff --git a/packages/google-cloud-compute/test/index.js b/packages/google-cloud-compute/test/index.js index 8241cc84cd7..7c1a80f4b86 100644 --- a/packages/google-cloud-compute/test/index.js +++ b/packages/google-cloud-compute/test/index.js @@ -205,7 +205,7 @@ describe('Compute', function() { var calledWith = compute.calledWith_[0]; - var baseUrl = 'https://www.googleapis.com/compute/v1'; + var baseUrl = 'https://www.googleapis.com./compute/v1'; assert.strictEqual(calledWith.baseUrl, baseUrl); assert.deepEqual(calledWith.scopes, [ 'https://www.googleapis.com/auth/compute' diff --git a/packages/google-cloud-compute/test/service.js b/packages/google-cloud-compute/test/service.js index cac6e08ac25..53c218e833b 100644 --- a/packages/google-cloud-compute/test/service.js +++ b/packages/google-cloud-compute/test/service.js @@ -205,7 +205,7 @@ describe('Service', function() { service.request = function(reqOpts) { assert.deepEqual(reqOpts.json, { group: [ - 'https://www.googleapis.com/compute/v1/projects/', + 'https://www.googleapis.com./compute/v1/projects/', COMPUTE.projectId, '/zones/', group.zone, @@ -232,7 +232,7 @@ describe('Service', function() { service.request = function(reqOpts) { assert.deepEqual(reqOpts.json, { group: [ - 'https://www.googleapis.com/compute/v1/projects/', + 'https://www.googleapis.com./compute/v1/projects/', COMPUTE.projectId, '/zones/', group.zone.name, diff --git a/packages/google-cloud-compute/test/vm.js b/packages/google-cloud-compute/test/vm.js index 9f68155c6be..29b4a4f200b 100644 --- a/packages/google-cloud-compute/test/vm.js +++ b/packages/google-cloud-compute/test/vm.js @@ -110,7 +110,7 @@ describe('VM', function() { it('should localize the URL of the VM', function() { assert.strictEqual(vm.url, [ - 'https://www.googleapis.com/compute/v1/projects', + 'https://www.googleapis.com./compute/v1/projects', COMPUTE.projectId, 'zones', ZONE.name, diff --git a/packages/google-cloud-compute/test/zone.js b/packages/google-cloud-compute/test/zone.js index e4799598c73..b7972eb26b0 100644 --- a/packages/google-cloud-compute/test/zone.js +++ b/packages/google-cloud-compute/test/zone.js @@ -286,7 +286,7 @@ describe('Zone', function() { zone.request = function(reqOpts) { var expectedTarget = [ - 'https://content.googleapis.com/compute/v1/projects/', + 'https://content.googleapis.com./compute/v1/projects/', COMPUTE.projectId, '/zones/', zone.name,