Skip to content

Commit 59d53a9

Browse files
Revert "updated FQDN's to googleapis.com with a trailing dot (#2214)" (#2283)
This reverts commit 13d4ed5.
1 parent 26b78d7 commit 59d53a9

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

packages/google-cloud-compute/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function Compute(options) {
9595
}
9696

9797
var config = {
98-
baseUrl: 'https://www.googleapis.com./compute/v1',
98+
baseUrl: 'https://www.googleapis.com/compute/v1',
9999
scopes: ['https://www.googleapis.com/auth/compute'],
100100
packageJson: require('../package.json')
101101
};

packages/google-cloud-compute/src/service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Service.prototype.delete = function(callback) {
263263
Service.prototype.getHealth = function(group, callback) {
264264
if (!is.string(group)) {
265265
group = format('{baseUrl}/projects/{p}/zones/{z}/instanceGroups/{n}', {
266-
baseUrl: 'https://www.googleapis.com./compute/v1',
266+
baseUrl: 'https://www.googleapis.com/compute/v1',
267267
p: this.parent.projectId,
268268
z: group.zone.name || group.zone,
269269
n: group.name

packages/google-cloud-compute/src/vm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function VM(zone, name) {
104104
this.waiters = [];
105105

106106
this.url = format('{base}/{project}/zones/{zone}/instances/{name}', {
107-
base: 'https://www.googleapis.com./compute/v1/projects',
107+
base: 'https://www.googleapis.com/compute/v1/projects',
108108
project: zone.compute.projectId,
109109
zone: zone.name,
110110
name: this.name

packages/google-cloud-compute/src/zone.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Zone.prototype.createAutoscaler = function(name, config, callback) {
257257

258258
if (!/^https*:/.test(json.target)) {
259259
json.target = [
260-
'https://content.googleapis.com./compute/v1/projects/',
260+
'https://content.googleapis.com/compute/v1/projects/',
261261
this.compute.projectId,
262262
'/zones/',
263263
this.name,
@@ -554,7 +554,7 @@ Zone.prototype.createInstanceGroup = function(name, options, callback) {
554554
* boot: true,
555555
* initializeParams: {
556556
* sourceImage:
557-
* 'https://www.googleapis.com./compute/v1/projects' +
557+
* 'https://www.googleapis.com/compute/v1/projects' +
558558
* '/debian-cloud/global/images/debian-7-wheezy-v20150710'
559559
* }
560560
* }

packages/google-cloud-compute/test/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ describe('Compute', function() {
205205

206206
var calledWith = compute.calledWith_[0];
207207

208-
var baseUrl = 'https://www.googleapis.com./compute/v1';
208+
var baseUrl = 'https://www.googleapis.com/compute/v1';
209209
assert.strictEqual(calledWith.baseUrl, baseUrl);
210210
assert.deepEqual(calledWith.scopes, [
211211
'https://www.googleapis.com/auth/compute'

packages/google-cloud-compute/test/service.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ describe('Service', function() {
205205
service.request = function(reqOpts) {
206206
assert.deepEqual(reqOpts.json, {
207207
group: [
208-
'https://www.googleapis.com./compute/v1/projects/',
208+
'https://www.googleapis.com/compute/v1/projects/',
209209
COMPUTE.projectId,
210210
'/zones/',
211211
group.zone,
@@ -232,7 +232,7 @@ describe('Service', function() {
232232
service.request = function(reqOpts) {
233233
assert.deepEqual(reqOpts.json, {
234234
group: [
235-
'https://www.googleapis.com./compute/v1/projects/',
235+
'https://www.googleapis.com/compute/v1/projects/',
236236
COMPUTE.projectId,
237237
'/zones/',
238238
group.zone.name,

packages/google-cloud-compute/test/vm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe('VM', function() {
110110

111111
it('should localize the URL of the VM', function() {
112112
assert.strictEqual(vm.url, [
113-
'https://www.googleapis.com./compute/v1/projects',
113+
'https://www.googleapis.com/compute/v1/projects',
114114
COMPUTE.projectId,
115115
'zones',
116116
ZONE.name,

packages/google-cloud-compute/test/zone.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ describe('Zone', function() {
286286

287287
zone.request = function(reqOpts) {
288288
var expectedTarget = [
289-
'https://content.googleapis.com./compute/v1/projects/',
289+
'https://content.googleapis.com/compute/v1/projects/',
290290
COMPUTE.projectId,
291291
'/zones/',
292292
zone.name,

0 commit comments

Comments
 (0)