Skip to content
This repository was archived by the owner on Jan 18, 2026. It is now read-only.

Commit 693732f

Browse files
feat: support paging map response type (#922)
* feat: add compute proto in baseline (#930) * fix: add google auth for rest clientOption in unit test (#934) * merged dependency PRs and update baseline
1 parent cea1494 commit 693732f

63 files changed

Lines changed: 6681 additions & 2666 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
strategy:
115115
matrix:
116116
node-version: [10.x]
117-
lib-name: [showcase, kms, translate, monitoring, dlp, texttospeech, showcase-legacy]
117+
lib-name: [showcase, kms, translate, monitoring, dlp, texttospeech, showcase-legacy, compute]
118118
steps:
119119
- name: Use Node.js ${{ matrix.node-version }}
120120
uses: actions/setup-node@v1

baselines/asset/test/gapic_asset_service_v1.ts.baseline

Lines changed: 80 additions & 80 deletions
Large diffs are not rendered by default.

baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ describe('v1beta1.BigQueryStorageClient', () => {
8484

8585
it('has initialize method and supports deferred initialization', async () => {
8686
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
87-
credentials: { client_email: 'bogus', private_key: 'bogus' },
88-
projectId: 'bogus',
87+
credentials: {client_email: 'bogus', private_key: 'bogus'},
88+
projectId: 'bogus',
8989
});
9090
assert.strictEqual(client.bigQueryStorageStub, undefined);
9191
await client.initialize();
@@ -94,17 +94,17 @@ describe('v1beta1.BigQueryStorageClient', () => {
9494

9595
it('has close method', () => {
9696
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
97-
credentials: { client_email: 'bogus', private_key: 'bogus' },
98-
projectId: 'bogus',
97+
credentials: {client_email: 'bogus', private_key: 'bogus'},
98+
projectId: 'bogus',
9999
});
100100
client.close();
101101
});
102102

103103
it('has getProjectId method', async () => {
104104
const fakeProjectId = 'fake-project-id';
105105
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
106-
credentials: { client_email: 'bogus', private_key: 'bogus' },
107-
projectId: 'bogus',
106+
credentials: {client_email: 'bogus', private_key: 'bogus'},
107+
projectId: 'bogus',
108108
});
109109
client.auth.getProjectId = sinon.stub().resolves(fakeProjectId);
110110
const result = await client.getProjectId();
@@ -115,8 +115,8 @@ describe('v1beta1.BigQueryStorageClient', () => {
115115
it('has getProjectId method with callback', async () => {
116116
const fakeProjectId = 'fake-project-id';
117117
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
118-
credentials: { client_email: 'bogus', private_key: 'bogus' },
119-
projectId: 'bogus',
118+
credentials: {client_email: 'bogus', private_key: 'bogus'},
119+
projectId: 'bogus',
120120
});
121121
client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId);
122122
const promise = new Promise((resolve, reject) => {
@@ -135,9 +135,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
135135
describe('createReadSession', () => {
136136
it('invokes createReadSession without error', async () => {
137137
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
138-
credentials: {client_email: 'bogus', private_key: 'bogus'},
139-
projectId: 'bogus',
140-
});
138+
credentials: {client_email: 'bogus', private_key: 'bogus'},
139+
projectId: 'bogus',
140+
});
141141
client.initialize();
142142
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest());
143143
request.tableReference = {};
@@ -162,9 +162,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
162162

163163
it('invokes createReadSession without error using callback', async () => {
164164
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
165-
credentials: {client_email: 'bogus', private_key: 'bogus'},
166-
projectId: 'bogus',
167-
});
165+
credentials: {client_email: 'bogus', private_key: 'bogus'},
166+
projectId: 'bogus',
167+
});
168168
client.initialize();
169169
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest());
170170
request.tableReference = {};
@@ -200,9 +200,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
200200

201201
it('invokes createReadSession with error', async () => {
202202
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
203-
credentials: {client_email: 'bogus', private_key: 'bogus'},
204-
projectId: 'bogus',
205-
});
203+
credentials: {client_email: 'bogus', private_key: 'bogus'},
204+
projectId: 'bogus',
205+
});
206206
client.initialize();
207207
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest());
208208
request.tableReference = {};
@@ -228,9 +228,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
228228
describe('batchCreateReadSessionStreams', () => {
229229
it('invokes batchCreateReadSessionStreams without error', async () => {
230230
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
231-
credentials: {client_email: 'bogus', private_key: 'bogus'},
232-
projectId: 'bogus',
233-
});
231+
credentials: {client_email: 'bogus', private_key: 'bogus'},
232+
projectId: 'bogus',
233+
});
234234
client.initialize();
235235
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest());
236236
request.session = {};
@@ -253,9 +253,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
253253

254254
it('invokes batchCreateReadSessionStreams without error using callback', async () => {
255255
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
256-
credentials: {client_email: 'bogus', private_key: 'bogus'},
257-
projectId: 'bogus',
258-
});
256+
credentials: {client_email: 'bogus', private_key: 'bogus'},
257+
projectId: 'bogus',
258+
});
259259
client.initialize();
260260
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest());
261261
request.session = {};
@@ -289,9 +289,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
289289

290290
it('invokes batchCreateReadSessionStreams with error', async () => {
291291
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
292-
credentials: {client_email: 'bogus', private_key: 'bogus'},
293-
projectId: 'bogus',
294-
});
292+
credentials: {client_email: 'bogus', private_key: 'bogus'},
293+
projectId: 'bogus',
294+
});
295295
client.initialize();
296296
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest());
297297
request.session = {};
@@ -315,9 +315,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
315315
describe('finalizeStream', () => {
316316
it('invokes finalizeStream without error', async () => {
317317
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
318-
credentials: {client_email: 'bogus', private_key: 'bogus'},
319-
projectId: 'bogus',
320-
});
318+
credentials: {client_email: 'bogus', private_key: 'bogus'},
319+
projectId: 'bogus',
320+
});
321321
client.initialize();
322322
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest());
323323
request.stream = {};
@@ -340,9 +340,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
340340

341341
it('invokes finalizeStream without error using callback', async () => {
342342
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
343-
credentials: {client_email: 'bogus', private_key: 'bogus'},
344-
projectId: 'bogus',
345-
});
343+
credentials: {client_email: 'bogus', private_key: 'bogus'},
344+
projectId: 'bogus',
345+
});
346346
client.initialize();
347347
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest());
348348
request.stream = {};
@@ -376,9 +376,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
376376

377377
it('invokes finalizeStream with error', async () => {
378378
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
379-
credentials: {client_email: 'bogus', private_key: 'bogus'},
380-
projectId: 'bogus',
381-
});
379+
credentials: {client_email: 'bogus', private_key: 'bogus'},
380+
projectId: 'bogus',
381+
});
382382
client.initialize();
383383
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest());
384384
request.stream = {};
@@ -402,9 +402,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
402402
describe('splitReadStream', () => {
403403
it('invokes splitReadStream without error', async () => {
404404
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
405-
credentials: {client_email: 'bogus', private_key: 'bogus'},
406-
projectId: 'bogus',
407-
});
405+
credentials: {client_email: 'bogus', private_key: 'bogus'},
406+
projectId: 'bogus',
407+
});
408408
client.initialize();
409409
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest());
410410
request.originalStream = {};
@@ -427,9 +427,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
427427

428428
it('invokes splitReadStream without error using callback', async () => {
429429
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
430-
credentials: {client_email: 'bogus', private_key: 'bogus'},
431-
projectId: 'bogus',
432-
});
430+
credentials: {client_email: 'bogus', private_key: 'bogus'},
431+
projectId: 'bogus',
432+
});
433433
client.initialize();
434434
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest());
435435
request.originalStream = {};
@@ -463,9 +463,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
463463

464464
it('invokes splitReadStream with error', async () => {
465465
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
466-
credentials: {client_email: 'bogus', private_key: 'bogus'},
467-
projectId: 'bogus',
468-
});
466+
credentials: {client_email: 'bogus', private_key: 'bogus'},
467+
projectId: 'bogus',
468+
});
469469
client.initialize();
470470
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest());
471471
request.originalStream = {};
@@ -489,9 +489,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
489489
describe('readRows', () => {
490490
it('invokes readRows without error', async () => {
491491
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
492-
credentials: {client_email: 'bogus', private_key: 'bogus'},
493-
projectId: 'bogus',
494-
});
492+
credentials: {client_email: 'bogus', private_key: 'bogus'},
493+
projectId: 'bogus',
494+
});
495495
client.initialize();
496496
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.ReadRowsRequest());
497497
request.readPosition = {};
@@ -524,9 +524,9 @@ describe('v1beta1.BigQueryStorageClient', () => {
524524

525525
it('invokes readRows with error', async () => {
526526
const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({
527-
credentials: {client_email: 'bogus', private_key: 'bogus'},
528-
projectId: 'bogus',
529-
});
527+
credentials: {client_email: 'bogus', private_key: 'bogus'},
528+
projectId: 'bogus',
529+
});
530530
client.initialize();
531531
const request = generateSampleMessage(new protos.google.cloud.bigquery.storage.v1beta1.ReadRowsRequest());
532532
request.readPosition = {};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/node_modules
2+
**/.coverage
3+
build/
4+
docs/
5+
protos/
6+
system-test/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
**/*.log
2+
**/node_modules
3+
.coverage
4+
coverage
5+
.nyc_output
6+
docs/
7+
out/
8+
build/
9+
system-test/secrets.js
10+
system-test/*key.json
11+
*.lock
12+
.DS_Store
13+
package-lock.json
14+
__pycache__
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
19+
'use strict';
20+
21+
module.exports = {
22+
opts: {
23+
readme: './README.md',
24+
package: './package.json',
25+
template: './node_modules/jsdoc-fresh',
26+
recurse: true,
27+
verbose: true,
28+
destination: './docs/'
29+
},
30+
plugins: [
31+
'plugins/markdown',
32+
'jsdoc-region-tag'
33+
],
34+
source: {
35+
excludePattern: '(^|\\/|\\\\)[._]',
36+
include: [
37+
'build/src',
38+
'protos'
39+
],
40+
includePattern: '\\.js$'
41+
},
42+
templates: {
43+
copyright: 'Copyright 2021 Google LLC',
44+
includeDate: false,
45+
sourceFiles: false,
46+
systemName: '@google-cloud/compute',
47+
theme: 'lumen',
48+
default: {
49+
outputSourceFiles: false
50+
}
51+
},
52+
markdown: {
53+
idInHeadings: true
54+
}
55+
};
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
19+
const config = {
20+
"enable-source-maps": true,
21+
"throw-deprecation": true,
22+
"timeout": 10000
23+
}
24+
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
25+
delete config['throw-deprecation'];
26+
}
27+
if (process.env.MOCHA_REPORTER) {
28+
config.reporter = process.env.MOCHA_REPORTER;
29+
}
30+
if (process.env.MOCHA_REPORTER_OUTPUT) {
31+
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
32+
}
33+
module.exports = config
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
19+
20+
module.exports = {
21+
...require('gts/.prettierrc.json')
22+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Compute: Nodejs Client

0 commit comments

Comments
 (0)