Skip to content

Commit feeee50

Browse files
docs(samples): update dns host name in samples (#780)
1 parent 4b949dd commit feeee50

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function main() {
6363
});
6464
const client = await auth.getClient();
6565
const projectId = await auth.getProjectId();
66-
const url = `https://www.googleapis.com/dns/v1/projects/${projectId}`;
66+
const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`;
6767
const res = await client.request({ url });
6868
console.log(res.data);
6969
}
@@ -183,7 +183,7 @@ client.on('tokens', (tokens) => {
183183
console.log(tokens.access_token);
184184
});
185185

186-
const url = `https://www.googleapis.com/dns/v1/projects/${projectId}`;
186+
const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`;
187187
const res = await client.request({ url });
188188
// The `tokens` event would now be raised if this was the first request
189189
```
@@ -256,7 +256,7 @@ async function main() {
256256
keys.private_key,
257257
['https://www.googleapis.com/auth/cloud-platform'],
258258
);
259-
const url = `https://www.googleapis.com/dns/v1/projects/${keys.project_id}`;
259+
const url = `https://dns.googleapis.com/dns/v1/projects/${keys.project_id}`;
260260
const res = await client.request({url});
261261
console.log(res.data);
262262
}
@@ -301,7 +301,7 @@ async function main() {
301301
// load the JWT or UserRefreshClient from the keys
302302
const client = auth.fromJSON(keys);
303303
client.scopes = ['https://www.googleapis.com/auth/cloud-platform'];
304-
const url = `https://www.googleapis.com/dns/v1/projects/${keys.project_id}`;
304+
const url = `https://dns.googleapis.com/dns/v1/projects/${keys.project_id}`;
305305
const res = await client.request({url});
306306
console.log(res.data);
307307
}
@@ -326,7 +326,7 @@ async function main() {
326326
serviceAccountEmail: '[email protected]'
327327
});
328328
const projectId = await auth.getProjectId();
329-
const url = `https://www.googleapis.com/dns/v1/projects/${project_id}`;
329+
const url = `https://dns.googleapis.com/dns/v1/projects/${project_id}`;
330330
const res = await client.request({url});
331331
console.log(res.data);
332332
}

samples/adc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function main() {
2727
});
2828
const client = await auth.getClient();
2929
const projectId = await auth.getProjectId();
30-
const url = `https://www.googleapis.com/dns/v1/projects/${projectId}`;
30+
const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`;
3131
const res = await client.request({url});
3232
console.log('DNS Info:');
3333
console.log(res.data);

samples/compute.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function main() {
2727
serviceAccountEmail: '[email protected]',
2828
});
2929
const projectId = await auth.getProjectId();
30-
const url = `https://www.googleapis.com/dns/v1/projects/${projectId}`;
30+
const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`;
3131
const res = await client.request({url});
3232
console.log(res.data);
3333
}

samples/credentials.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function main() {
4242
});
4343
const client = await auth.getClient();
4444
const projectId = await auth.getProjectId();
45-
const url = `https://www.googleapis.com/dns/v1/projects/${projectId}`;
45+
const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`;
4646
const res = await client.request({url});
4747
console.log('DNS Info:');
4848
console.log(res.data);

samples/headers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function main() {
3030
scopes: 'https://www.googleapis.com/auth/cloud-platform',
3131
});
3232
const projectId = await auth.getProjectId();
33-
const url = `https://www.googleapis.com/dns/v1/projects/${projectId}`;
33+
const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`;
3434

3535
// obtain an authenticated client
3636
const client = await auth.getClient();

samples/jwt.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function main(
3535
key: keys.private_key,
3636
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3737
});
38-
const url = `https://www.googleapis.com/dns/v1/projects/${keys.project_id}`;
38+
const url = `https://dns.googleapis.com/dns/v1/projects/${keys.project_id}`;
3939
const res = await client.request({url});
4040
console.log('DNS Info:');
4141
console.log(res.data);

samples/keepalive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function main() {
3535
});
3636
const client = await auth.getClient();
3737
const projectId = await auth.getProjectId();
38-
const url = `https://www.googleapis.com/dns/v1/projects/${projectId}`;
38+
const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`;
3939

4040
// create a new agent with keepAlive enabled
4141
const agent = new https.Agent({keepAlive: true});

samples/keyfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function main(
3131
});
3232
const client = await auth.getClient();
3333
const projectId = await auth.getProjectId();
34-
const url = `https://www.googleapis.com/dns/v1/projects/${projectId}`;
34+
const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`;
3535
const res = await client.request({url});
3636
console.log('DNS Info:');
3737
console.log(res.data);

0 commit comments

Comments
 (0)