From d65122efd23865d433158eb8ae02929f2d108a3e Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Thu, 19 Mar 2020 15:50:25 -0700 Subject: [PATCH 01/25] update package.json --- baselines/bigquery-storage/package.json | 6 +++++- baselines/disable-packing-test/package.json | 6 +++++- baselines/dlp/package.json | 6 +++++- baselines/kms/package.json | 6 +++++- baselines/logging/package.json | 6 +++++- baselines/monitoring/package.json | 6 +++++- baselines/redis/package.json | 6 +++++- baselines/showcase/package.json | 6 +++++- baselines/texttospeech/package.json | 6 +++++- baselines/translate/package.json | 6 +++++- templates/typescript_gapic/package.json | 6 +++++- 11 files changed, 55 insertions(+), 11 deletions(-) diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index d18645471..e59fcab95 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -30,7 +30,11 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^1.1.2", + "gts": "^2.0.0-alpha.4", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 9e8745711..8c49b63fb 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -30,7 +30,11 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^1.1.2", + "gts": "^2.0.0-alpha.4", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index 9f9d75229..726fb808f 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -30,7 +30,11 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^1.1.2", + "gts": "^2.0.0-alpha.4", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index dd30549be..083fd1dfb 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -30,7 +30,11 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^1.1.2", + "gts": "^2.0.0-alpha.4", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 8245cabdb..25615eac8 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -30,7 +30,11 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^1.1.2", + "gts": "^2.0.0-alpha.4", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index 2f46642f0..6809a4dbe 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -30,7 +30,11 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^1.1.2", + "gts": "^2.0.0-alpha.4", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 0d92c73a2..3236fe8ac 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -30,7 +30,11 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^1.1.2", + "gts": "^2.0.0-alpha.4", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 9e8745711..8c49b63fb 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -30,7 +30,11 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^1.1.2", + "gts": "^2.0.0-alpha.4", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index 61c4b9c46..935065f48 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -30,7 +30,11 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^1.1.2", + "gts": "^2.0.0-alpha.4", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 2b4313c84..c72c25889 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -30,7 +30,11 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^1.1.2", + "gts": "^2.0.0-alpha.4", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/templates/typescript_gapic/package.json b/templates/typescript_gapic/package.json index 86ae7da37..a29d69432 100644 --- a/templates/typescript_gapic/package.json +++ b/templates/typescript_gapic/package.json @@ -30,7 +30,11 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^1.1.2", + "gts": "^2.0.0-alpha.4", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.0.0", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", From d7d9657f4568f7fa492fdd6c6523a1b22035520c Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Thu, 19 Mar 2020 16:21:28 -0700 Subject: [PATCH 02/25] add templates --- .../bigquery-storage/.eslintignore.baseline | 7 +++++++ .../bigquery-storage/.eslintrc.json.baseline | 3 +++ .../bigquery-storage/.prettierignore.baseline | 5 +++++ .../bigquery-storage/.prettierrc.js.baseline | 17 +++++++++++++++++ baselines/bigquery-storage/package.json | 2 +- .../disable-packing-test/.eslintignore.baseline | 7 +++++++ .../.eslintrc.json.baseline | 3 +++ .../.prettierignore.baseline | 5 +++++ .../.prettierrc.js.baseline | 17 +++++++++++++++++ baselines/disable-packing-test/package.json | 2 +- baselines/dlp/.eslintignore.baseline | 7 +++++++ baselines/dlp/.eslintrc.json.baseline | 3 +++ baselines/dlp/.prettierignore.baseline | 5 +++++ baselines/dlp/.prettierrc.js.baseline | 17 +++++++++++++++++ baselines/dlp/package.json | 2 +- baselines/kms/.eslintignore.baseline | 7 +++++++ baselines/kms/.eslintrc.json.baseline | 3 +++ baselines/kms/.prettierignore.baseline | 5 +++++ baselines/kms/.prettierrc.js.baseline | 17 +++++++++++++++++ baselines/kms/package.json | 2 +- baselines/logging/.eslintignore.baseline | 7 +++++++ baselines/logging/.eslintrc.json.baseline | 3 +++ baselines/logging/.prettierignore.baseline | 5 +++++ baselines/logging/.prettierrc.js.baseline | 17 +++++++++++++++++ baselines/logging/package.json | 2 +- baselines/monitoring/.eslintignore.baseline | 7 +++++++ baselines/monitoring/.eslintrc.json.baseline | 3 +++ baselines/monitoring/.prettierignore.baseline | 5 +++++ baselines/monitoring/.prettierrc.js.baseline | 17 +++++++++++++++++ baselines/monitoring/package.json | 2 +- baselines/redis/.eslintignore.baseline | 7 +++++++ baselines/redis/.eslintrc.json.baseline | 3 +++ baselines/redis/.prettierignore.baseline | 5 +++++ baselines/redis/.prettierrc.js.baseline | 17 +++++++++++++++++ baselines/redis/package.json | 2 +- baselines/showcase/.eslintignore.baseline | 7 +++++++ baselines/showcase/.eslintrc.json.baseline | 3 +++ baselines/showcase/.prettierignore.baseline | 5 +++++ baselines/showcase/.prettierrc.js.baseline | 17 +++++++++++++++++ baselines/showcase/package.json | 2 +- baselines/texttospeech/.eslintignore.baseline | 7 +++++++ baselines/texttospeech/.eslintrc.json.baseline | 3 +++ baselines/texttospeech/.prettierignore.baseline | 5 +++++ baselines/texttospeech/.prettierrc.js.baseline | 17 +++++++++++++++++ baselines/texttospeech/package.json | 2 +- baselines/translate/.eslintignore.baseline | 7 +++++++ baselines/translate/.eslintrc.json.baseline | 3 +++ baselines/translate/.prettierignore.baseline | 5 +++++ baselines/translate/.prettierrc.js.baseline | 17 +++++++++++++++++ baselines/translate/package.json | 2 +- templates/typescript_gapic/.eslintignore.njk | 7 +++++++ templates/typescript_gapic/.eslintrc.json.njk | 3 +++ templates/typescript_gapic/.prettierignore.njk | 5 +++++ templates/typescript_gapic/.prettierrc.js.njk | 17 +++++++++++++++++ templates/typescript_gapic/package.json | 2 +- 55 files changed, 363 insertions(+), 11 deletions(-) create mode 100644 baselines/bigquery-storage/.eslintignore.baseline create mode 100644 baselines/bigquery-storage/.eslintrc.json.baseline create mode 100644 baselines/bigquery-storage/.prettierignore.baseline create mode 100644 baselines/bigquery-storage/.prettierrc.js.baseline create mode 100644 baselines/disable-packing-test/.eslintignore.baseline create mode 100644 baselines/disable-packing-test/.eslintrc.json.baseline create mode 100644 baselines/disable-packing-test/.prettierignore.baseline create mode 100644 baselines/disable-packing-test/.prettierrc.js.baseline create mode 100644 baselines/dlp/.eslintignore.baseline create mode 100644 baselines/dlp/.eslintrc.json.baseline create mode 100644 baselines/dlp/.prettierignore.baseline create mode 100644 baselines/dlp/.prettierrc.js.baseline create mode 100644 baselines/kms/.eslintignore.baseline create mode 100644 baselines/kms/.eslintrc.json.baseline create mode 100644 baselines/kms/.prettierignore.baseline create mode 100644 baselines/kms/.prettierrc.js.baseline create mode 100644 baselines/logging/.eslintignore.baseline create mode 100644 baselines/logging/.eslintrc.json.baseline create mode 100644 baselines/logging/.prettierignore.baseline create mode 100644 baselines/logging/.prettierrc.js.baseline create mode 100644 baselines/monitoring/.eslintignore.baseline create mode 100644 baselines/monitoring/.eslintrc.json.baseline create mode 100644 baselines/monitoring/.prettierignore.baseline create mode 100644 baselines/monitoring/.prettierrc.js.baseline create mode 100644 baselines/redis/.eslintignore.baseline create mode 100644 baselines/redis/.eslintrc.json.baseline create mode 100644 baselines/redis/.prettierignore.baseline create mode 100644 baselines/redis/.prettierrc.js.baseline create mode 100644 baselines/showcase/.eslintignore.baseline create mode 100644 baselines/showcase/.eslintrc.json.baseline create mode 100644 baselines/showcase/.prettierignore.baseline create mode 100644 baselines/showcase/.prettierrc.js.baseline create mode 100644 baselines/texttospeech/.eslintignore.baseline create mode 100644 baselines/texttospeech/.eslintrc.json.baseline create mode 100644 baselines/texttospeech/.prettierignore.baseline create mode 100644 baselines/texttospeech/.prettierrc.js.baseline create mode 100644 baselines/translate/.eslintignore.baseline create mode 100644 baselines/translate/.eslintrc.json.baseline create mode 100644 baselines/translate/.prettierignore.baseline create mode 100644 baselines/translate/.prettierrc.js.baseline create mode 100644 templates/typescript_gapic/.eslintignore.njk create mode 100644 templates/typescript_gapic/.eslintrc.json.njk create mode 100644 templates/typescript_gapic/.prettierignore.njk create mode 100644 templates/typescript_gapic/.prettierrc.js.njk diff --git a/baselines/bigquery-storage/.eslintignore.baseline b/baselines/bigquery-storage/.eslintignore.baseline new file mode 100644 index 000000000..88adc6081 --- /dev/null +++ b/baselines/bigquery-storage/.eslintignore.baseline @@ -0,0 +1,7 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ +test-fixtures/ +pbjs-genfiles/ \ No newline at end of file diff --git a/baselines/bigquery-storage/.eslintrc.json.baseline b/baselines/bigquery-storage/.eslintrc.json.baseline new file mode 100644 index 000000000..782153495 --- /dev/null +++ b/baselines/bigquery-storage/.eslintrc.json.baseline @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/baselines/bigquery-storage/.prettierignore.baseline b/baselines/bigquery-storage/.prettierignore.baseline new file mode 100644 index 000000000..b99e12158 --- /dev/null +++ b/baselines/bigquery-storage/.prettierignore.baseline @@ -0,0 +1,5 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ \ No newline at end of file diff --git a/baselines/bigquery-storage/.prettierrc.js.baseline b/baselines/bigquery-storage/.prettierrc.js.baseline new file mode 100644 index 000000000..f6ee2925d --- /dev/null +++ b/baselines/bigquery-storage/.prettierrc.js.baseline @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} \ No newline at end of file diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index e59fcab95..7180162c1 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^2.0.0-alpha.4", + "gts": "next", "eslint": "^6.8.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", diff --git a/baselines/disable-packing-test/.eslintignore.baseline b/baselines/disable-packing-test/.eslintignore.baseline new file mode 100644 index 000000000..88adc6081 --- /dev/null +++ b/baselines/disable-packing-test/.eslintignore.baseline @@ -0,0 +1,7 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ +test-fixtures/ +pbjs-genfiles/ \ No newline at end of file diff --git a/baselines/disable-packing-test/.eslintrc.json.baseline b/baselines/disable-packing-test/.eslintrc.json.baseline new file mode 100644 index 000000000..782153495 --- /dev/null +++ b/baselines/disable-packing-test/.eslintrc.json.baseline @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/baselines/disable-packing-test/.prettierignore.baseline b/baselines/disable-packing-test/.prettierignore.baseline new file mode 100644 index 000000000..b99e12158 --- /dev/null +++ b/baselines/disable-packing-test/.prettierignore.baseline @@ -0,0 +1,5 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ \ No newline at end of file diff --git a/baselines/disable-packing-test/.prettierrc.js.baseline b/baselines/disable-packing-test/.prettierrc.js.baseline new file mode 100644 index 000000000..f6ee2925d --- /dev/null +++ b/baselines/disable-packing-test/.prettierrc.js.baseline @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} \ No newline at end of file diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 8c49b63fb..2f4aa43be 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^2.0.0-alpha.4", + "gts": "next", "eslint": "^6.8.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", diff --git a/baselines/dlp/.eslintignore.baseline b/baselines/dlp/.eslintignore.baseline new file mode 100644 index 000000000..88adc6081 --- /dev/null +++ b/baselines/dlp/.eslintignore.baseline @@ -0,0 +1,7 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ +test-fixtures/ +pbjs-genfiles/ \ No newline at end of file diff --git a/baselines/dlp/.eslintrc.json.baseline b/baselines/dlp/.eslintrc.json.baseline new file mode 100644 index 000000000..782153495 --- /dev/null +++ b/baselines/dlp/.eslintrc.json.baseline @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/baselines/dlp/.prettierignore.baseline b/baselines/dlp/.prettierignore.baseline new file mode 100644 index 000000000..b99e12158 --- /dev/null +++ b/baselines/dlp/.prettierignore.baseline @@ -0,0 +1,5 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ \ No newline at end of file diff --git a/baselines/dlp/.prettierrc.js.baseline b/baselines/dlp/.prettierrc.js.baseline new file mode 100644 index 000000000..f6ee2925d --- /dev/null +++ b/baselines/dlp/.prettierrc.js.baseline @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} \ No newline at end of file diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index 726fb808f..8e6d1b85c 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^2.0.0-alpha.4", + "gts": "next", "eslint": "^6.8.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", diff --git a/baselines/kms/.eslintignore.baseline b/baselines/kms/.eslintignore.baseline new file mode 100644 index 000000000..88adc6081 --- /dev/null +++ b/baselines/kms/.eslintignore.baseline @@ -0,0 +1,7 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ +test-fixtures/ +pbjs-genfiles/ \ No newline at end of file diff --git a/baselines/kms/.eslintrc.json.baseline b/baselines/kms/.eslintrc.json.baseline new file mode 100644 index 000000000..782153495 --- /dev/null +++ b/baselines/kms/.eslintrc.json.baseline @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/baselines/kms/.prettierignore.baseline b/baselines/kms/.prettierignore.baseline new file mode 100644 index 000000000..b99e12158 --- /dev/null +++ b/baselines/kms/.prettierignore.baseline @@ -0,0 +1,5 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ \ No newline at end of file diff --git a/baselines/kms/.prettierrc.js.baseline b/baselines/kms/.prettierrc.js.baseline new file mode 100644 index 000000000..f6ee2925d --- /dev/null +++ b/baselines/kms/.prettierrc.js.baseline @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} \ No newline at end of file diff --git a/baselines/kms/package.json b/baselines/kms/package.json index 083fd1dfb..f69ffefb6 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^2.0.0-alpha.4", + "gts": "next", "eslint": "^6.8.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", diff --git a/baselines/logging/.eslintignore.baseline b/baselines/logging/.eslintignore.baseline new file mode 100644 index 000000000..88adc6081 --- /dev/null +++ b/baselines/logging/.eslintignore.baseline @@ -0,0 +1,7 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ +test-fixtures/ +pbjs-genfiles/ \ No newline at end of file diff --git a/baselines/logging/.eslintrc.json.baseline b/baselines/logging/.eslintrc.json.baseline new file mode 100644 index 000000000..782153495 --- /dev/null +++ b/baselines/logging/.eslintrc.json.baseline @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/baselines/logging/.prettierignore.baseline b/baselines/logging/.prettierignore.baseline new file mode 100644 index 000000000..b99e12158 --- /dev/null +++ b/baselines/logging/.prettierignore.baseline @@ -0,0 +1,5 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ \ No newline at end of file diff --git a/baselines/logging/.prettierrc.js.baseline b/baselines/logging/.prettierrc.js.baseline new file mode 100644 index 000000000..f6ee2925d --- /dev/null +++ b/baselines/logging/.prettierrc.js.baseline @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} \ No newline at end of file diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 25615eac8..6a60765f6 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^2.0.0-alpha.4", + "gts": "next", "eslint": "^6.8.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", diff --git a/baselines/monitoring/.eslintignore.baseline b/baselines/monitoring/.eslintignore.baseline new file mode 100644 index 000000000..88adc6081 --- /dev/null +++ b/baselines/monitoring/.eslintignore.baseline @@ -0,0 +1,7 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ +test-fixtures/ +pbjs-genfiles/ \ No newline at end of file diff --git a/baselines/monitoring/.eslintrc.json.baseline b/baselines/monitoring/.eslintrc.json.baseline new file mode 100644 index 000000000..782153495 --- /dev/null +++ b/baselines/monitoring/.eslintrc.json.baseline @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/baselines/monitoring/.prettierignore.baseline b/baselines/monitoring/.prettierignore.baseline new file mode 100644 index 000000000..b99e12158 --- /dev/null +++ b/baselines/monitoring/.prettierignore.baseline @@ -0,0 +1,5 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ \ No newline at end of file diff --git a/baselines/monitoring/.prettierrc.js.baseline b/baselines/monitoring/.prettierrc.js.baseline new file mode 100644 index 000000000..f6ee2925d --- /dev/null +++ b/baselines/monitoring/.prettierrc.js.baseline @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} \ No newline at end of file diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index 6809a4dbe..ff470f825 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^2.0.0-alpha.4", + "gts": "next", "eslint": "^6.8.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", diff --git a/baselines/redis/.eslintignore.baseline b/baselines/redis/.eslintignore.baseline new file mode 100644 index 000000000..88adc6081 --- /dev/null +++ b/baselines/redis/.eslintignore.baseline @@ -0,0 +1,7 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ +test-fixtures/ +pbjs-genfiles/ \ No newline at end of file diff --git a/baselines/redis/.eslintrc.json.baseline b/baselines/redis/.eslintrc.json.baseline new file mode 100644 index 000000000..782153495 --- /dev/null +++ b/baselines/redis/.eslintrc.json.baseline @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/baselines/redis/.prettierignore.baseline b/baselines/redis/.prettierignore.baseline new file mode 100644 index 000000000..b99e12158 --- /dev/null +++ b/baselines/redis/.prettierignore.baseline @@ -0,0 +1,5 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ \ No newline at end of file diff --git a/baselines/redis/.prettierrc.js.baseline b/baselines/redis/.prettierrc.js.baseline new file mode 100644 index 000000000..f6ee2925d --- /dev/null +++ b/baselines/redis/.prettierrc.js.baseline @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} \ No newline at end of file diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 3236fe8ac..c4fc4aee9 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^2.0.0-alpha.4", + "gts": "next", "eslint": "^6.8.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", diff --git a/baselines/showcase/.eslintignore.baseline b/baselines/showcase/.eslintignore.baseline new file mode 100644 index 000000000..88adc6081 --- /dev/null +++ b/baselines/showcase/.eslintignore.baseline @@ -0,0 +1,7 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ +test-fixtures/ +pbjs-genfiles/ \ No newline at end of file diff --git a/baselines/showcase/.eslintrc.json.baseline b/baselines/showcase/.eslintrc.json.baseline new file mode 100644 index 000000000..782153495 --- /dev/null +++ b/baselines/showcase/.eslintrc.json.baseline @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/baselines/showcase/.prettierignore.baseline b/baselines/showcase/.prettierignore.baseline new file mode 100644 index 000000000..b99e12158 --- /dev/null +++ b/baselines/showcase/.prettierignore.baseline @@ -0,0 +1,5 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ \ No newline at end of file diff --git a/baselines/showcase/.prettierrc.js.baseline b/baselines/showcase/.prettierrc.js.baseline new file mode 100644 index 000000000..f6ee2925d --- /dev/null +++ b/baselines/showcase/.prettierrc.js.baseline @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} \ No newline at end of file diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 8c49b63fb..2f4aa43be 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^2.0.0-alpha.4", + "gts": "next", "eslint": "^6.8.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", diff --git a/baselines/texttospeech/.eslintignore.baseline b/baselines/texttospeech/.eslintignore.baseline new file mode 100644 index 000000000..88adc6081 --- /dev/null +++ b/baselines/texttospeech/.eslintignore.baseline @@ -0,0 +1,7 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ +test-fixtures/ +pbjs-genfiles/ \ No newline at end of file diff --git a/baselines/texttospeech/.eslintrc.json.baseline b/baselines/texttospeech/.eslintrc.json.baseline new file mode 100644 index 000000000..782153495 --- /dev/null +++ b/baselines/texttospeech/.eslintrc.json.baseline @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/baselines/texttospeech/.prettierignore.baseline b/baselines/texttospeech/.prettierignore.baseline new file mode 100644 index 000000000..b99e12158 --- /dev/null +++ b/baselines/texttospeech/.prettierignore.baseline @@ -0,0 +1,5 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ \ No newline at end of file diff --git a/baselines/texttospeech/.prettierrc.js.baseline b/baselines/texttospeech/.prettierrc.js.baseline new file mode 100644 index 000000000..f6ee2925d --- /dev/null +++ b/baselines/texttospeech/.prettierrc.js.baseline @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} \ No newline at end of file diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index 935065f48..04c2b35de 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^2.0.0-alpha.4", + "gts": "next", "eslint": "^6.8.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", diff --git a/baselines/translate/.eslintignore.baseline b/baselines/translate/.eslintignore.baseline new file mode 100644 index 000000000..88adc6081 --- /dev/null +++ b/baselines/translate/.eslintignore.baseline @@ -0,0 +1,7 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ +test-fixtures/ +pbjs-genfiles/ \ No newline at end of file diff --git a/baselines/translate/.eslintrc.json.baseline b/baselines/translate/.eslintrc.json.baseline new file mode 100644 index 000000000..782153495 --- /dev/null +++ b/baselines/translate/.eslintrc.json.baseline @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/baselines/translate/.prettierignore.baseline b/baselines/translate/.prettierignore.baseline new file mode 100644 index 000000000..b99e12158 --- /dev/null +++ b/baselines/translate/.prettierignore.baseline @@ -0,0 +1,5 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ \ No newline at end of file diff --git a/baselines/translate/.prettierrc.js.baseline b/baselines/translate/.prettierrc.js.baseline new file mode 100644 index 000000000..f6ee2925d --- /dev/null +++ b/baselines/translate/.prettierrc.js.baseline @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} \ No newline at end of file diff --git a/baselines/translate/package.json b/baselines/translate/package.json index c72c25889..e4b890ba5 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^2.0.0-alpha.4", + "gts": "next", "eslint": "^6.8.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", diff --git a/templates/typescript_gapic/.eslintignore.njk b/templates/typescript_gapic/.eslintignore.njk new file mode 100644 index 000000000..88adc6081 --- /dev/null +++ b/templates/typescript_gapic/.eslintignore.njk @@ -0,0 +1,7 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ +test-fixtures/ +pbjs-genfiles/ \ No newline at end of file diff --git a/templates/typescript_gapic/.eslintrc.json.njk b/templates/typescript_gapic/.eslintrc.json.njk new file mode 100644 index 000000000..c2352f30d --- /dev/null +++ b/templates/typescript_gapic/.eslintrc.json.njk @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} \ No newline at end of file diff --git a/templates/typescript_gapic/.prettierignore.njk b/templates/typescript_gapic/.prettierignore.njk new file mode 100644 index 000000000..b99e12158 --- /dev/null +++ b/templates/typescript_gapic/.prettierignore.njk @@ -0,0 +1,5 @@ +**/node_modules +**/.coverage +build/ +docs/ +protos/ \ No newline at end of file diff --git a/templates/typescript_gapic/.prettierrc.js.njk b/templates/typescript_gapic/.prettierrc.js.njk new file mode 100644 index 000000000..f6ee2925d --- /dev/null +++ b/templates/typescript_gapic/.prettierrc.js.njk @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} \ No newline at end of file diff --git a/templates/typescript_gapic/package.json b/templates/typescript_gapic/package.json index a29d69432..2f8aaf4d8 100644 --- a/templates/typescript_gapic/package.json +++ b/templates/typescript_gapic/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "^2.0.0-alpha.4", + "gts": "next", "eslint": "^6.8.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", From c2cdb7ea2f0ddb87ae02f957361f12d28f742e45 Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Thu, 19 Mar 2020 17:16:21 -0700 Subject: [PATCH 03/25] lint --- baselines/bigquery-storage/.eslintignore.baseline | 2 +- baselines/bigquery-storage/.prettierignore.baseline | 2 +- baselines/bigquery-storage/.prettierrc.js.baseline | 2 +- baselines/disable-packing-test/.eslintignore.baseline | 2 +- baselines/disable-packing-test/.prettierignore.baseline | 2 +- baselines/disable-packing-test/.prettierrc.js.baseline | 2 +- baselines/dlp/.eslintignore.baseline | 2 +- baselines/dlp/.prettierignore.baseline | 2 +- baselines/dlp/.prettierrc.js.baseline | 2 +- baselines/kms/.eslintignore.baseline | 2 +- baselines/kms/.prettierignore.baseline | 2 +- baselines/kms/.prettierrc.js.baseline | 2 +- baselines/logging/.eslintignore.baseline | 2 +- baselines/logging/.prettierignore.baseline | 2 +- baselines/logging/.prettierrc.js.baseline | 2 +- baselines/monitoring/.eslintignore.baseline | 2 +- baselines/monitoring/.prettierignore.baseline | 2 +- baselines/monitoring/.prettierrc.js.baseline | 2 +- baselines/redis/.eslintignore.baseline | 2 +- baselines/redis/.prettierignore.baseline | 2 +- baselines/redis/.prettierrc.js.baseline | 2 +- baselines/showcase/.eslintignore.baseline | 2 +- baselines/showcase/.prettierignore.baseline | 2 +- baselines/showcase/.prettierrc.js.baseline | 2 +- baselines/texttospeech/.eslintignore.baseline | 2 +- baselines/texttospeech/.prettierignore.baseline | 2 +- baselines/texttospeech/.prettierrc.js.baseline | 2 +- baselines/translate/.eslintignore.baseline | 2 +- baselines/translate/.prettierignore.baseline | 2 +- baselines/translate/.prettierrc.js.baseline | 2 +- templates/typescript_gapic/.eslintignore.njk | 2 +- templates/typescript_gapic/.eslintrc.json.njk | 2 +- templates/typescript_gapic/.prettierignore.njk | 2 +- templates/typescript_gapic/.prettierrc.js.njk | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) diff --git a/baselines/bigquery-storage/.eslintignore.baseline b/baselines/bigquery-storage/.eslintignore.baseline index 88adc6081..652b9d119 100644 --- a/baselines/bigquery-storage/.eslintignore.baseline +++ b/baselines/bigquery-storage/.eslintignore.baseline @@ -4,4 +4,4 @@ build/ docs/ protos/ test-fixtures/ -pbjs-genfiles/ \ No newline at end of file +pbjs-genfiles/ diff --git a/baselines/bigquery-storage/.prettierignore.baseline b/baselines/bigquery-storage/.prettierignore.baseline index b99e12158..a4ac7b375 100644 --- a/baselines/bigquery-storage/.prettierignore.baseline +++ b/baselines/bigquery-storage/.prettierignore.baseline @@ -2,4 +2,4 @@ **/.coverage build/ docs/ -protos/ \ No newline at end of file +protos/ diff --git a/baselines/bigquery-storage/.prettierrc.js.baseline b/baselines/bigquery-storage/.prettierrc.js.baseline index f6ee2925d..21df10709 100644 --- a/baselines/bigquery-storage/.prettierrc.js.baseline +++ b/baselines/bigquery-storage/.prettierrc.js.baseline @@ -14,4 +14,4 @@ module.exports = { ...require('gts/.prettierrc.json') -} \ No newline at end of file +} diff --git a/baselines/disable-packing-test/.eslintignore.baseline b/baselines/disable-packing-test/.eslintignore.baseline index 88adc6081..652b9d119 100644 --- a/baselines/disable-packing-test/.eslintignore.baseline +++ b/baselines/disable-packing-test/.eslintignore.baseline @@ -4,4 +4,4 @@ build/ docs/ protos/ test-fixtures/ -pbjs-genfiles/ \ No newline at end of file +pbjs-genfiles/ diff --git a/baselines/disable-packing-test/.prettierignore.baseline b/baselines/disable-packing-test/.prettierignore.baseline index b99e12158..a4ac7b375 100644 --- a/baselines/disable-packing-test/.prettierignore.baseline +++ b/baselines/disable-packing-test/.prettierignore.baseline @@ -2,4 +2,4 @@ **/.coverage build/ docs/ -protos/ \ No newline at end of file +protos/ diff --git a/baselines/disable-packing-test/.prettierrc.js.baseline b/baselines/disable-packing-test/.prettierrc.js.baseline index f6ee2925d..21df10709 100644 --- a/baselines/disable-packing-test/.prettierrc.js.baseline +++ b/baselines/disable-packing-test/.prettierrc.js.baseline @@ -14,4 +14,4 @@ module.exports = { ...require('gts/.prettierrc.json') -} \ No newline at end of file +} diff --git a/baselines/dlp/.eslintignore.baseline b/baselines/dlp/.eslintignore.baseline index 88adc6081..652b9d119 100644 --- a/baselines/dlp/.eslintignore.baseline +++ b/baselines/dlp/.eslintignore.baseline @@ -4,4 +4,4 @@ build/ docs/ protos/ test-fixtures/ -pbjs-genfiles/ \ No newline at end of file +pbjs-genfiles/ diff --git a/baselines/dlp/.prettierignore.baseline b/baselines/dlp/.prettierignore.baseline index b99e12158..a4ac7b375 100644 --- a/baselines/dlp/.prettierignore.baseline +++ b/baselines/dlp/.prettierignore.baseline @@ -2,4 +2,4 @@ **/.coverage build/ docs/ -protos/ \ No newline at end of file +protos/ diff --git a/baselines/dlp/.prettierrc.js.baseline b/baselines/dlp/.prettierrc.js.baseline index f6ee2925d..21df10709 100644 --- a/baselines/dlp/.prettierrc.js.baseline +++ b/baselines/dlp/.prettierrc.js.baseline @@ -14,4 +14,4 @@ module.exports = { ...require('gts/.prettierrc.json') -} \ No newline at end of file +} diff --git a/baselines/kms/.eslintignore.baseline b/baselines/kms/.eslintignore.baseline index 88adc6081..652b9d119 100644 --- a/baselines/kms/.eslintignore.baseline +++ b/baselines/kms/.eslintignore.baseline @@ -4,4 +4,4 @@ build/ docs/ protos/ test-fixtures/ -pbjs-genfiles/ \ No newline at end of file +pbjs-genfiles/ diff --git a/baselines/kms/.prettierignore.baseline b/baselines/kms/.prettierignore.baseline index b99e12158..a4ac7b375 100644 --- a/baselines/kms/.prettierignore.baseline +++ b/baselines/kms/.prettierignore.baseline @@ -2,4 +2,4 @@ **/.coverage build/ docs/ -protos/ \ No newline at end of file +protos/ diff --git a/baselines/kms/.prettierrc.js.baseline b/baselines/kms/.prettierrc.js.baseline index f6ee2925d..21df10709 100644 --- a/baselines/kms/.prettierrc.js.baseline +++ b/baselines/kms/.prettierrc.js.baseline @@ -14,4 +14,4 @@ module.exports = { ...require('gts/.prettierrc.json') -} \ No newline at end of file +} diff --git a/baselines/logging/.eslintignore.baseline b/baselines/logging/.eslintignore.baseline index 88adc6081..652b9d119 100644 --- a/baselines/logging/.eslintignore.baseline +++ b/baselines/logging/.eslintignore.baseline @@ -4,4 +4,4 @@ build/ docs/ protos/ test-fixtures/ -pbjs-genfiles/ \ No newline at end of file +pbjs-genfiles/ diff --git a/baselines/logging/.prettierignore.baseline b/baselines/logging/.prettierignore.baseline index b99e12158..a4ac7b375 100644 --- a/baselines/logging/.prettierignore.baseline +++ b/baselines/logging/.prettierignore.baseline @@ -2,4 +2,4 @@ **/.coverage build/ docs/ -protos/ \ No newline at end of file +protos/ diff --git a/baselines/logging/.prettierrc.js.baseline b/baselines/logging/.prettierrc.js.baseline index f6ee2925d..21df10709 100644 --- a/baselines/logging/.prettierrc.js.baseline +++ b/baselines/logging/.prettierrc.js.baseline @@ -14,4 +14,4 @@ module.exports = { ...require('gts/.prettierrc.json') -} \ No newline at end of file +} diff --git a/baselines/monitoring/.eslintignore.baseline b/baselines/monitoring/.eslintignore.baseline index 88adc6081..652b9d119 100644 --- a/baselines/monitoring/.eslintignore.baseline +++ b/baselines/monitoring/.eslintignore.baseline @@ -4,4 +4,4 @@ build/ docs/ protos/ test-fixtures/ -pbjs-genfiles/ \ No newline at end of file +pbjs-genfiles/ diff --git a/baselines/monitoring/.prettierignore.baseline b/baselines/monitoring/.prettierignore.baseline index b99e12158..a4ac7b375 100644 --- a/baselines/monitoring/.prettierignore.baseline +++ b/baselines/monitoring/.prettierignore.baseline @@ -2,4 +2,4 @@ **/.coverage build/ docs/ -protos/ \ No newline at end of file +protos/ diff --git a/baselines/monitoring/.prettierrc.js.baseline b/baselines/monitoring/.prettierrc.js.baseline index f6ee2925d..21df10709 100644 --- a/baselines/monitoring/.prettierrc.js.baseline +++ b/baselines/monitoring/.prettierrc.js.baseline @@ -14,4 +14,4 @@ module.exports = { ...require('gts/.prettierrc.json') -} \ No newline at end of file +} diff --git a/baselines/redis/.eslintignore.baseline b/baselines/redis/.eslintignore.baseline index 88adc6081..652b9d119 100644 --- a/baselines/redis/.eslintignore.baseline +++ b/baselines/redis/.eslintignore.baseline @@ -4,4 +4,4 @@ build/ docs/ protos/ test-fixtures/ -pbjs-genfiles/ \ No newline at end of file +pbjs-genfiles/ diff --git a/baselines/redis/.prettierignore.baseline b/baselines/redis/.prettierignore.baseline index b99e12158..a4ac7b375 100644 --- a/baselines/redis/.prettierignore.baseline +++ b/baselines/redis/.prettierignore.baseline @@ -2,4 +2,4 @@ **/.coverage build/ docs/ -protos/ \ No newline at end of file +protos/ diff --git a/baselines/redis/.prettierrc.js.baseline b/baselines/redis/.prettierrc.js.baseline index f6ee2925d..21df10709 100644 --- a/baselines/redis/.prettierrc.js.baseline +++ b/baselines/redis/.prettierrc.js.baseline @@ -14,4 +14,4 @@ module.exports = { ...require('gts/.prettierrc.json') -} \ No newline at end of file +} diff --git a/baselines/showcase/.eslintignore.baseline b/baselines/showcase/.eslintignore.baseline index 88adc6081..652b9d119 100644 --- a/baselines/showcase/.eslintignore.baseline +++ b/baselines/showcase/.eslintignore.baseline @@ -4,4 +4,4 @@ build/ docs/ protos/ test-fixtures/ -pbjs-genfiles/ \ No newline at end of file +pbjs-genfiles/ diff --git a/baselines/showcase/.prettierignore.baseline b/baselines/showcase/.prettierignore.baseline index b99e12158..a4ac7b375 100644 --- a/baselines/showcase/.prettierignore.baseline +++ b/baselines/showcase/.prettierignore.baseline @@ -2,4 +2,4 @@ **/.coverage build/ docs/ -protos/ \ No newline at end of file +protos/ diff --git a/baselines/showcase/.prettierrc.js.baseline b/baselines/showcase/.prettierrc.js.baseline index f6ee2925d..21df10709 100644 --- a/baselines/showcase/.prettierrc.js.baseline +++ b/baselines/showcase/.prettierrc.js.baseline @@ -14,4 +14,4 @@ module.exports = { ...require('gts/.prettierrc.json') -} \ No newline at end of file +} diff --git a/baselines/texttospeech/.eslintignore.baseline b/baselines/texttospeech/.eslintignore.baseline index 88adc6081..652b9d119 100644 --- a/baselines/texttospeech/.eslintignore.baseline +++ b/baselines/texttospeech/.eslintignore.baseline @@ -4,4 +4,4 @@ build/ docs/ protos/ test-fixtures/ -pbjs-genfiles/ \ No newline at end of file +pbjs-genfiles/ diff --git a/baselines/texttospeech/.prettierignore.baseline b/baselines/texttospeech/.prettierignore.baseline index b99e12158..a4ac7b375 100644 --- a/baselines/texttospeech/.prettierignore.baseline +++ b/baselines/texttospeech/.prettierignore.baseline @@ -2,4 +2,4 @@ **/.coverage build/ docs/ -protos/ \ No newline at end of file +protos/ diff --git a/baselines/texttospeech/.prettierrc.js.baseline b/baselines/texttospeech/.prettierrc.js.baseline index f6ee2925d..21df10709 100644 --- a/baselines/texttospeech/.prettierrc.js.baseline +++ b/baselines/texttospeech/.prettierrc.js.baseline @@ -14,4 +14,4 @@ module.exports = { ...require('gts/.prettierrc.json') -} \ No newline at end of file +} diff --git a/baselines/translate/.eslintignore.baseline b/baselines/translate/.eslintignore.baseline index 88adc6081..652b9d119 100644 --- a/baselines/translate/.eslintignore.baseline +++ b/baselines/translate/.eslintignore.baseline @@ -4,4 +4,4 @@ build/ docs/ protos/ test-fixtures/ -pbjs-genfiles/ \ No newline at end of file +pbjs-genfiles/ diff --git a/baselines/translate/.prettierignore.baseline b/baselines/translate/.prettierignore.baseline index b99e12158..a4ac7b375 100644 --- a/baselines/translate/.prettierignore.baseline +++ b/baselines/translate/.prettierignore.baseline @@ -2,4 +2,4 @@ **/.coverage build/ docs/ -protos/ \ No newline at end of file +protos/ diff --git a/baselines/translate/.prettierrc.js.baseline b/baselines/translate/.prettierrc.js.baseline index f6ee2925d..21df10709 100644 --- a/baselines/translate/.prettierrc.js.baseline +++ b/baselines/translate/.prettierrc.js.baseline @@ -14,4 +14,4 @@ module.exports = { ...require('gts/.prettierrc.json') -} \ No newline at end of file +} diff --git a/templates/typescript_gapic/.eslintignore.njk b/templates/typescript_gapic/.eslintignore.njk index 88adc6081..652b9d119 100644 --- a/templates/typescript_gapic/.eslintignore.njk +++ b/templates/typescript_gapic/.eslintignore.njk @@ -4,4 +4,4 @@ build/ docs/ protos/ test-fixtures/ -pbjs-genfiles/ \ No newline at end of file +pbjs-genfiles/ diff --git a/templates/typescript_gapic/.eslintrc.json.njk b/templates/typescript_gapic/.eslintrc.json.njk index c2352f30d..eb23147be 100644 --- a/templates/typescript_gapic/.eslintrc.json.njk +++ b/templates/typescript_gapic/.eslintrc.json.njk @@ -1,3 +1,3 @@ { "extends": "./node_modules/gts" -} \ No newline at end of file +} diff --git a/templates/typescript_gapic/.prettierignore.njk b/templates/typescript_gapic/.prettierignore.njk index b99e12158..a4ac7b375 100644 --- a/templates/typescript_gapic/.prettierignore.njk +++ b/templates/typescript_gapic/.prettierignore.njk @@ -2,4 +2,4 @@ **/.coverage build/ docs/ -protos/ \ No newline at end of file +protos/ diff --git a/templates/typescript_gapic/.prettierrc.js.njk b/templates/typescript_gapic/.prettierrc.js.njk index f6ee2925d..21df10709 100644 --- a/templates/typescript_gapic/.prettierrc.js.njk +++ b/templates/typescript_gapic/.prettierrc.js.njk @@ -14,4 +14,4 @@ module.exports = { ...require('gts/.prettierrc.json') -} \ No newline at end of file +} From 9b5c217ab5073cfcc6191f4db743aae89197c127 Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Thu, 19 Mar 2020 21:21:54 -0700 Subject: [PATCH 04/25] fix gts lint --- .../bigquery-storage/.eslintrc.json.baseline | 33 ++++++++++++++++++- .../big_query_storage_client.ts.baseline | 2 +- .../.eslintrc.json.baseline | 33 ++++++++++++++++++- .../src/v1beta1/echo_client.ts.baseline | 2 +- .../src/v1beta1/identity_client.ts.baseline | 2 +- .../src/v1beta1/messaging_client.ts.baseline | 2 +- .../src/v1beta1/testing_client.ts.baseline | 2 +- baselines/dlp/.eslintrc.json.baseline | 33 ++++++++++++++++++- .../dlp/src/v2/dlp_service_client.ts.baseline | 2 +- baselines/kms/.eslintrc.json.baseline | 33 ++++++++++++++++++- .../key_management_service_client.ts.baseline | 2 +- baselines/logging/.eslintrc.json.baseline | 33 ++++++++++++++++++- .../v2/config_service_v2_client.ts.baseline | 2 +- .../v2/logging_service_v2_client.ts.baseline | 2 +- .../v2/metrics_service_v2_client.ts.baseline | 2 +- baselines/monitoring/.eslintrc.json.baseline | 33 ++++++++++++++++++- .../alert_policy_service_client.ts.baseline | 2 +- .../src/v3/group_service_client.ts.baseline | 2 +- .../src/v3/metric_service_client.ts.baseline | 2 +- ...ication_channel_service_client.ts.baseline | 2 +- ...vice_monitoring_service_client.ts.baseline | 2 +- .../uptime_check_service_client.ts.baseline | 2 +- baselines/redis/.eslintrc.json.baseline | 33 ++++++++++++++++++- .../v1beta1/cloud_redis_client.ts.baseline | 2 +- baselines/showcase/.eslintrc.json.baseline | 33 ++++++++++++++++++- .../src/v1beta1/echo_client.ts.baseline | 2 +- .../src/v1beta1/identity_client.ts.baseline | 2 +- .../src/v1beta1/messaging_client.ts.baseline | 2 +- .../src/v1beta1/testing_client.ts.baseline | 2 +- .../texttospeech/.eslintrc.json.baseline | 33 ++++++++++++++++++- .../src/v1/text_to_speech_client.ts.baseline | 2 +- baselines/translate/.eslintrc.json.baseline | 33 ++++++++++++++++++- .../translation_service_client.ts.baseline | 2 +- templates/typescript_gapic/.eslintrc.json.njk | 16 ++++++++- .../src/$version/$service_client.ts.njk | 2 +- typescript/test/test-application/test-ts.ts | 2 +- 36 files changed, 360 insertions(+), 36 deletions(-) diff --git a/baselines/bigquery-storage/.eslintrc.json.baseline b/baselines/bigquery-storage/.eslintrc.json.baseline index 782153495..3f2edabe8 100644 --- a/baselines/bigquery-storage/.eslintrc.json.baseline +++ b/baselines/bigquery-storage/.eslintrc.json.baseline @@ -1,3 +1,34 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + 0, + { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + } + ], + "no-var-requires": "off", + "@typescript-eslint/no-var-requires": 0, + "no-empty-function": "off", + "@typescript-eslint/no-empty-function": [ + 0, + { + "allow": [ + "functions", + "constructors", + "methods" + ] + } + ], + "no-explicit-any": "off", + "@typescript-eslint/no-explicit-any": [ + 0, + { + "ignoreRestArgs": true + } + ] + } } diff --git a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline index be0a906b2..9a859a4b8 100644 --- a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline @@ -200,7 +200,7 @@ export class BigQueryStorageClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/disable-packing-test/.eslintrc.json.baseline b/baselines/disable-packing-test/.eslintrc.json.baseline index 782153495..3f2edabe8 100644 --- a/baselines/disable-packing-test/.eslintrc.json.baseline +++ b/baselines/disable-packing-test/.eslintrc.json.baseline @@ -1,3 +1,34 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + 0, + { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + } + ], + "no-var-requires": "off", + "@typescript-eslint/no-var-requires": 0, + "no-empty-function": "off", + "@typescript-eslint/no-empty-function": [ + 0, + { + "allow": [ + "functions", + "constructors", + "methods" + ] + } + ], + "no-explicit-any": "off", + "@typescript-eslint/no-explicit-any": [ + 0, + { + "ignoreRestArgs": true + } + ] + } } diff --git a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline index 57ccbd3bc..6ca4ce5e4 100644 --- a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline @@ -252,7 +252,7 @@ export class EchoClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline index 066b2650e..53dd1934f 100644 --- a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline @@ -216,7 +216,7 @@ export class IdentityClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline index 94c5aa9cc..3a98705eb 100644 --- a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline @@ -253,7 +253,7 @@ export class MessagingClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline index 26e2cc804..2b9bbaefe 100644 --- a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline @@ -219,7 +219,7 @@ export class TestingClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/dlp/.eslintrc.json.baseline b/baselines/dlp/.eslintrc.json.baseline index 782153495..3f2edabe8 100644 --- a/baselines/dlp/.eslintrc.json.baseline +++ b/baselines/dlp/.eslintrc.json.baseline @@ -1,3 +1,34 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + 0, + { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + } + ], + "no-var-requires": "off", + "@typescript-eslint/no-var-requires": 0, + "no-empty-function": "off", + "@typescript-eslint/no-empty-function": [ + 0, + { + "allow": [ + "functions", + "constructors", + "methods" + ] + } + ], + "no-explicit-any": "off", + "@typescript-eslint/no-explicit-any": [ + 0, + { + "ignoreRestArgs": true + } + ] + } } diff --git a/baselines/dlp/src/v2/dlp_service_client.ts.baseline b/baselines/dlp/src/v2/dlp_service_client.ts.baseline index a58d846af..c7bc12158 100644 --- a/baselines/dlp/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp/src/v2/dlp_service_client.ts.baseline @@ -241,7 +241,7 @@ export class DlpServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/kms/.eslintrc.json.baseline b/baselines/kms/.eslintrc.json.baseline index 782153495..3f2edabe8 100644 --- a/baselines/kms/.eslintrc.json.baseline +++ b/baselines/kms/.eslintrc.json.baseline @@ -1,3 +1,34 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + 0, + { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + } + ], + "no-var-requires": "off", + "@typescript-eslint/no-var-requires": 0, + "no-empty-function": "off", + "@typescript-eslint/no-empty-function": [ + 0, + { + "allow": [ + "functions", + "constructors", + "methods" + ] + } + ], + "no-explicit-any": "off", + "@typescript-eslint/no-explicit-any": [ + 0, + { + "ignoreRestArgs": true + } + ] + } } diff --git a/baselines/kms/src/v1/key_management_service_client.ts.baseline b/baselines/kms/src/v1/key_management_service_client.ts.baseline index a1bab6ae5..5e3b4f501 100644 --- a/baselines/kms/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms/src/v1/key_management_service_client.ts.baseline @@ -204,7 +204,7 @@ export class KeyManagementServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/logging/.eslintrc.json.baseline b/baselines/logging/.eslintrc.json.baseline index 782153495..3f2edabe8 100644 --- a/baselines/logging/.eslintrc.json.baseline +++ b/baselines/logging/.eslintrc.json.baseline @@ -1,3 +1,34 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + 0, + { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + } + ], + "no-var-requires": "off", + "@typescript-eslint/no-var-requires": 0, + "no-empty-function": "off", + "@typescript-eslint/no-empty-function": [ + 0, + { + "allow": [ + "functions", + "constructors", + "methods" + ] + } + ], + "no-explicit-any": "off", + "@typescript-eslint/no-explicit-any": [ + 0, + { + "ignoreRestArgs": true + } + ] + } } diff --git a/baselines/logging/src/v2/config_service_v2_client.ts.baseline b/baselines/logging/src/v2/config_service_v2_client.ts.baseline index 736f83900..4f427a32d 100644 --- a/baselines/logging/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/config_service_v2_client.ts.baseline @@ -268,7 +268,7 @@ export class ConfigServiceV2Client { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline index 5ba88cbd3..886052cf7 100644 --- a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline @@ -286,7 +286,7 @@ export class LoggingServiceV2Client { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline index de193c6fd..364fbb571 100644 --- a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline @@ -261,7 +261,7 @@ export class MetricsServiceV2Client { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/.eslintrc.json.baseline b/baselines/monitoring/.eslintrc.json.baseline index 782153495..3f2edabe8 100644 --- a/baselines/monitoring/.eslintrc.json.baseline +++ b/baselines/monitoring/.eslintrc.json.baseline @@ -1,3 +1,34 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + 0, + { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + } + ], + "no-var-requires": "off", + "@typescript-eslint/no-var-requires": 0, + "no-empty-function": "off", + "@typescript-eslint/no-empty-function": [ + 0, + { + "allow": [ + "functions", + "constructors", + "methods" + ] + } + ], + "no-explicit-any": "off", + "@typescript-eslint/no-explicit-any": [ + 0, + { + "ignoreRestArgs": true + } + ] + } } diff --git a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline index 5b2d8348f..7800f0bd0 100644 --- a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline @@ -275,7 +275,7 @@ export class AlertPolicyServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/src/v3/group_service_client.ts.baseline b/baselines/monitoring/src/v3/group_service_client.ts.baseline index 070e368bb..fb6995136 100644 --- a/baselines/monitoring/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/group_service_client.ts.baseline @@ -280,7 +280,7 @@ export class GroupServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/src/v3/metric_service_client.ts.baseline b/baselines/monitoring/src/v3/metric_service_client.ts.baseline index 8d77d5347..ea1409048 100644 --- a/baselines/monitoring/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/metric_service_client.ts.baseline @@ -290,7 +290,7 @@ export class MetricServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline index 404effcfa..54410868e 100644 --- a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline @@ -270,7 +270,7 @@ export class NotificationChannelServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline index b6ad5afc5..f1a459865 100644 --- a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline @@ -272,7 +272,7 @@ export class ServiceMonitoringServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline index 676ceb339..4572fcd9c 100644 --- a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline @@ -276,7 +276,7 @@ export class UptimeCheckServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/redis/.eslintrc.json.baseline b/baselines/redis/.eslintrc.json.baseline index 782153495..3f2edabe8 100644 --- a/baselines/redis/.eslintrc.json.baseline +++ b/baselines/redis/.eslintrc.json.baseline @@ -1,3 +1,34 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + 0, + { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + } + ], + "no-var-requires": "off", + "@typescript-eslint/no-var-requires": 0, + "no-empty-function": "off", + "@typescript-eslint/no-empty-function": [ + 0, + { + "allow": [ + "functions", + "constructors", + "methods" + ] + } + ], + "no-explicit-any": "off", + "@typescript-eslint/no-explicit-any": [ + 0, + { + "ignoreRestArgs": true + } + ] + } } diff --git a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline index 878ed3dcc..d88be17f0 100644 --- a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline @@ -279,7 +279,7 @@ export class CloudRedisClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/showcase/.eslintrc.json.baseline b/baselines/showcase/.eslintrc.json.baseline index 782153495..3f2edabe8 100644 --- a/baselines/showcase/.eslintrc.json.baseline +++ b/baselines/showcase/.eslintrc.json.baseline @@ -1,3 +1,34 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + 0, + { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + } + ], + "no-var-requires": "off", + "@typescript-eslint/no-var-requires": 0, + "no-empty-function": "off", + "@typescript-eslint/no-empty-function": [ + 0, + { + "allow": [ + "functions", + "constructors", + "methods" + ] + } + ], + "no-explicit-any": "off", + "@typescript-eslint/no-explicit-any": [ + 0, + { + "ignoreRestArgs": true + } + ] + } } diff --git a/baselines/showcase/src/v1beta1/echo_client.ts.baseline b/baselines/showcase/src/v1beta1/echo_client.ts.baseline index 57ccbd3bc..6ca4ce5e4 100644 --- a/baselines/showcase/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/echo_client.ts.baseline @@ -252,7 +252,7 @@ export class EchoClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/showcase/src/v1beta1/identity_client.ts.baseline b/baselines/showcase/src/v1beta1/identity_client.ts.baseline index 066b2650e..53dd1934f 100644 --- a/baselines/showcase/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/identity_client.ts.baseline @@ -216,7 +216,7 @@ export class IdentityClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline index 94c5aa9cc..3a98705eb 100644 --- a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline @@ -253,7 +253,7 @@ export class MessagingClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/showcase/src/v1beta1/testing_client.ts.baseline b/baselines/showcase/src/v1beta1/testing_client.ts.baseline index 26e2cc804..2b9bbaefe 100644 --- a/baselines/showcase/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/testing_client.ts.baseline @@ -219,7 +219,7 @@ export class TestingClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/texttospeech/.eslintrc.json.baseline b/baselines/texttospeech/.eslintrc.json.baseline index 782153495..3f2edabe8 100644 --- a/baselines/texttospeech/.eslintrc.json.baseline +++ b/baselines/texttospeech/.eslintrc.json.baseline @@ -1,3 +1,34 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + 0, + { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + } + ], + "no-var-requires": "off", + "@typescript-eslint/no-var-requires": 0, + "no-empty-function": "off", + "@typescript-eslint/no-empty-function": [ + 0, + { + "allow": [ + "functions", + "constructors", + "methods" + ] + } + ], + "no-explicit-any": "off", + "@typescript-eslint/no-explicit-any": [ + 0, + { + "ignoreRestArgs": true + } + ] + } } diff --git a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline index 22caa170f..d5eeb1663 100644 --- a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline +++ b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline @@ -179,7 +179,7 @@ export class TextToSpeechClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/translate/.eslintrc.json.baseline b/baselines/translate/.eslintrc.json.baseline index 782153495..3f2edabe8 100644 --- a/baselines/translate/.eslintrc.json.baseline +++ b/baselines/translate/.eslintrc.json.baseline @@ -1,3 +1,34 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + 0, + { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + } + ], + "no-var-requires": "off", + "@typescript-eslint/no-var-requires": 0, + "no-empty-function": "off", + "@typescript-eslint/no-empty-function": [ + 0, + { + "allow": [ + "functions", + "constructors", + "methods" + ] + } + ], + "no-explicit-any": "off", + "@typescript-eslint/no-explicit-any": [ + 0, + { + "ignoreRestArgs": true + } + ] + } } diff --git a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline index 2a15f3bd7..2ffd6a8b2 100644 --- a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline @@ -241,7 +241,7 @@ export class TranslationServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/templates/typescript_gapic/.eslintrc.json.njk b/templates/typescript_gapic/.eslintrc.json.njk index eb23147be..fb0f69ed1 100644 --- a/templates/typescript_gapic/.eslintrc.json.njk +++ b/templates/typescript_gapic/.eslintrc.json.njk @@ -1,3 +1,17 @@ { - "extends": "./node_modules/gts" + "extends": "./node_modules/gts", + "rules":{ + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [0, { + "vars": "all", + "args": "after-used", + "ignoreRestSiblings": false + }], + "no-var-requires" : "off", + "@typescript-eslint/no-var-requires": 0, + "no-empty-function": "off", + "@typescript-eslint/no-empty-function": [0, { "allow": ["functions", "constructors", "methods"] }], + "no-explicit-any": "off", + "@typescript-eslint/no-explicit-any": [0, { "ignoreRestArgs": true }] + } } diff --git a/templates/typescript_gapic/src/$version/$service_client.ts.njk b/templates/typescript_gapic/src/$version/$service_client.ts.njk index ac98763f0..c19d36b8a 100644 --- a/templates/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/typescript_gapic/src/$version/$service_client.ts.njk @@ -298,7 +298,7 @@ export class {{ service.name }}Client { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + return stub[methodName](...args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/typescript/test/test-application/test-ts.ts b/typescript/test/test-application/test-ts.ts index 770b3928f..f2f447fd4 100644 --- a/typescript/test/test-application/test-ts.ts +++ b/typescript/test/test-application/test-ts.ts @@ -52,7 +52,7 @@ const TS_TEST_APPLICATION = path.join( ); describe('Test application for TypeScript users', () => { it('npm install showcase', async function() { - this.timeout(60000); + this.timeout(120000); // copy protos to generated client library and copy test application to local. if (!fs.existsSync(path.join(SHOWCASE_LIB, 'protos'))) { fs.copySync(PROTOS, path.join(SHOWCASE_LIB, 'protos')); From f5b5f437daecf6dddeade3c971698ca1e098746e Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Fri, 20 Mar 2020 16:33:20 -0700 Subject: [PATCH 05/25] prefer-spread --- .../src/v1beta1/big_query_storage_client.ts.baseline | 3 ++- .../disable-packing-test/src/v1beta1/echo_client.ts.baseline | 3 ++- .../src/v1beta1/identity_client.ts.baseline | 3 ++- .../src/v1beta1/messaging_client.ts.baseline | 3 ++- .../src/v1beta1/testing_client.ts.baseline | 3 ++- baselines/dlp/src/v2/dlp_service_client.ts.baseline | 3 ++- baselines/kms/src/v1/key_management_service_client.ts.baseline | 3 ++- baselines/logging/src/v2/config_service_v2_client.ts.baseline | 3 ++- baselines/logging/src/v2/logging_service_v2_client.ts.baseline | 3 ++- baselines/logging/src/v2/metrics_service_v2_client.ts.baseline | 3 ++- .../monitoring/src/v3/alert_policy_service_client.ts.baseline | 3 ++- baselines/monitoring/src/v3/group_service_client.ts.baseline | 3 ++- baselines/monitoring/src/v3/metric_service_client.ts.baseline | 3 ++- .../src/v3/notification_channel_service_client.ts.baseline | 3 ++- .../src/v3/service_monitoring_service_client.ts.baseline | 3 ++- .../monitoring/src/v3/uptime_check_service_client.ts.baseline | 3 ++- baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline | 3 ++- baselines/showcase/src/v1beta1/echo_client.ts.baseline | 3 ++- baselines/showcase/src/v1beta1/identity_client.ts.baseline | 3 ++- baselines/showcase/src/v1beta1/messaging_client.ts.baseline | 3 ++- baselines/showcase/src/v1beta1/testing_client.ts.baseline | 3 ++- .../texttospeech/src/v1/text_to_speech_client.ts.baseline | 3 ++- .../src/v3beta1/translation_service_client.ts.baseline | 3 ++- templates/typescript_gapic/src/$version/$service_client.ts.njk | 3 ++- 24 files changed, 48 insertions(+), 24 deletions(-) diff --git a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline index 9a859a4b8..11b8b3e2c 100644 --- a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline @@ -200,7 +200,8 @@ export class BigQueryStorageClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline index 6ca4ce5e4..02cbc8f8a 100644 --- a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline @@ -252,7 +252,8 @@ export class EchoClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline index 53dd1934f..4076a4933 100644 --- a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline @@ -216,7 +216,8 @@ export class IdentityClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline index 3a98705eb..12556a024 100644 --- a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline @@ -253,7 +253,8 @@ export class MessagingClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline index 2b9bbaefe..61ac23d10 100644 --- a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline @@ -219,7 +219,8 @@ export class TestingClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/dlp/src/v2/dlp_service_client.ts.baseline b/baselines/dlp/src/v2/dlp_service_client.ts.baseline index c7bc12158..2324e918e 100644 --- a/baselines/dlp/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp/src/v2/dlp_service_client.ts.baseline @@ -241,7 +241,8 @@ export class DlpServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/kms/src/v1/key_management_service_client.ts.baseline b/baselines/kms/src/v1/key_management_service_client.ts.baseline index 5e3b4f501..55f178fc4 100644 --- a/baselines/kms/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms/src/v1/key_management_service_client.ts.baseline @@ -204,7 +204,8 @@ export class KeyManagementServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/logging/src/v2/config_service_v2_client.ts.baseline b/baselines/logging/src/v2/config_service_v2_client.ts.baseline index 4f427a32d..2b568daac 100644 --- a/baselines/logging/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/config_service_v2_client.ts.baseline @@ -268,7 +268,8 @@ export class ConfigServiceV2Client { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline index 886052cf7..b06e56ae7 100644 --- a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline @@ -286,7 +286,8 @@ export class LoggingServiceV2Client { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline index 364fbb571..f6dc144d4 100644 --- a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline @@ -261,7 +261,8 @@ export class MetricsServiceV2Client { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline index 7800f0bd0..147aedfc1 100644 --- a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline @@ -275,7 +275,8 @@ export class AlertPolicyServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/src/v3/group_service_client.ts.baseline b/baselines/monitoring/src/v3/group_service_client.ts.baseline index fb6995136..1db029373 100644 --- a/baselines/monitoring/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/group_service_client.ts.baseline @@ -280,7 +280,8 @@ export class GroupServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/src/v3/metric_service_client.ts.baseline b/baselines/monitoring/src/v3/metric_service_client.ts.baseline index ea1409048..c2d6d7b43 100644 --- a/baselines/monitoring/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/metric_service_client.ts.baseline @@ -290,7 +290,8 @@ export class MetricServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline index 54410868e..bfda02fdd 100644 --- a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline @@ -270,7 +270,8 @@ export class NotificationChannelServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline index f1a459865..180ea530b 100644 --- a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline @@ -272,7 +272,8 @@ export class ServiceMonitoringServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline index 4572fcd9c..5bb974ac4 100644 --- a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline @@ -276,7 +276,8 @@ export class UptimeCheckServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline index d88be17f0..da2a16102 100644 --- a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline @@ -279,7 +279,8 @@ export class CloudRedisClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/showcase/src/v1beta1/echo_client.ts.baseline b/baselines/showcase/src/v1beta1/echo_client.ts.baseline index 6ca4ce5e4..02cbc8f8a 100644 --- a/baselines/showcase/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/echo_client.ts.baseline @@ -252,7 +252,8 @@ export class EchoClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/showcase/src/v1beta1/identity_client.ts.baseline b/baselines/showcase/src/v1beta1/identity_client.ts.baseline index 53dd1934f..4076a4933 100644 --- a/baselines/showcase/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/identity_client.ts.baseline @@ -216,7 +216,8 @@ export class IdentityClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline index 3a98705eb..12556a024 100644 --- a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline @@ -253,7 +253,8 @@ export class MessagingClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/showcase/src/v1beta1/testing_client.ts.baseline b/baselines/showcase/src/v1beta1/testing_client.ts.baseline index 2b9bbaefe..61ac23d10 100644 --- a/baselines/showcase/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/testing_client.ts.baseline @@ -219,7 +219,8 @@ export class TestingClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline index d5eeb1663..4a4edcd9d 100644 --- a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline +++ b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline @@ -179,7 +179,8 @@ export class TextToSpeechClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline index 2ffd6a8b2..b5debda7b 100644 --- a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline @@ -241,7 +241,8 @@ export class TranslationServiceClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; diff --git a/templates/typescript_gapic/src/$version/$service_client.ts.njk b/templates/typescript_gapic/src/$version/$service_client.ts.njk index c19d36b8a..07d163ecf 100644 --- a/templates/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/typescript_gapic/src/$version/$service_client.ts.njk @@ -298,7 +298,8 @@ export class {{ service.name }}Client { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName](...args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error|null|undefined) => () => { throw err; From 8e3c9cb3ba4db1ba7d23044435385ffafe7d885b Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Mon, 23 Mar 2020 15:24:55 -0700 Subject: [PATCH 06/25] remove global rules --- templates/typescript_gapic/.eslintignore.njk | 3 +-- templates/typescript_gapic/.eslintrc.json.njk | 16 +--------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/templates/typescript_gapic/.eslintignore.njk b/templates/typescript_gapic/.eslintignore.njk index 652b9d119..521dc25a2 100644 --- a/templates/typescript_gapic/.eslintignore.njk +++ b/templates/typescript_gapic/.eslintignore.njk @@ -3,5 +3,4 @@ build/ docs/ protos/ -test-fixtures/ -pbjs-genfiles/ +system-test/ diff --git a/templates/typescript_gapic/.eslintrc.json.njk b/templates/typescript_gapic/.eslintrc.json.njk index fb0f69ed1..eb23147be 100644 --- a/templates/typescript_gapic/.eslintrc.json.njk +++ b/templates/typescript_gapic/.eslintrc.json.njk @@ -1,17 +1,3 @@ { - "extends": "./node_modules/gts", - "rules":{ - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [0, { - "vars": "all", - "args": "after-used", - "ignoreRestSiblings": false - }], - "no-var-requires" : "off", - "@typescript-eslint/no-var-requires": 0, - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [0, { "allow": ["functions", "constructors", "methods"] }], - "no-explicit-any": "off", - "@typescript-eslint/no-explicit-any": [0, { "ignoreRestArgs": true }] - } + "extends": "./node_modules/gts" } From 5c9212daed5f4eaaca88a8aca42b1edcd5738bf2 Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Mon, 23 Mar 2020 17:23:00 -0700 Subject: [PATCH 07/25] remove pagination import --- .../bigquery-storage/.eslintignore.baseline | 3 +- .../bigquery-storage/.eslintrc.json.baseline | 33 +------------------ .../big_query_storage_client.ts.baseline | 1 + .../.eslintignore.baseline | 3 +- .../.eslintrc.json.baseline | 33 +------------------ .../src/v1beta1/echo_client.ts.baseline | 4 ++- .../src/v1beta1/identity_client.ts.baseline | 3 +- .../src/v1beta1/messaging_client.ts.baseline | 4 ++- .../src/v1beta1/testing_client.ts.baseline | 3 +- baselines/dlp/.eslintignore.baseline | 3 +- baselines/dlp/.eslintrc.json.baseline | 33 +------------------ .../dlp/src/v2/dlp_service_client.ts.baseline | 3 +- baselines/kms/.eslintignore.baseline | 3 +- baselines/kms/.eslintrc.json.baseline | 33 +------------------ .../key_management_service_client.ts.baseline | 3 +- baselines/logging/.eslintignore.baseline | 3 +- baselines/logging/.eslintrc.json.baseline | 33 +------------------ .../v2/config_service_v2_client.ts.baseline | 3 +- .../v2/logging_service_v2_client.ts.baseline | 4 ++- .../v2/metrics_service_v2_client.ts.baseline | 3 +- baselines/monitoring/.eslintignore.baseline | 3 +- baselines/monitoring/.eslintrc.json.baseline | 33 +------------------ .../alert_policy_service_client.ts.baseline | 3 +- .../src/v3/group_service_client.ts.baseline | 3 +- .../src/v3/metric_service_client.ts.baseline | 3 +- ...ication_channel_service_client.ts.baseline | 3 +- ...vice_monitoring_service_client.ts.baseline | 3 +- .../uptime_check_service_client.ts.baseline | 3 +- baselines/redis/.eslintignore.baseline | 3 +- baselines/redis/.eslintrc.json.baseline | 33 +------------------ .../v1beta1/cloud_redis_client.ts.baseline | 4 ++- baselines/showcase/.eslintignore.baseline | 3 +- baselines/showcase/.eslintrc.json.baseline | 33 +------------------ .../src/v1beta1/echo_client.ts.baseline | 4 ++- .../src/v1beta1/identity_client.ts.baseline | 3 +- .../src/v1beta1/messaging_client.ts.baseline | 4 ++- .../src/v1beta1/testing_client.ts.baseline | 3 +- baselines/texttospeech/.eslintignore.baseline | 3 +- .../texttospeech/.eslintrc.json.baseline | 33 +------------------ .../src/v1/text_to_speech_client.ts.baseline | 1 + baselines/translate/.eslintignore.baseline | 3 +- baselines/translate/.eslintrc.json.baseline | 33 +------------------ .../translation_service_client.ts.baseline | 4 ++- .../src/$version/$service_client.ts.njk | 3 +- 44 files changed, 73 insertions(+), 362 deletions(-) diff --git a/baselines/bigquery-storage/.eslintignore.baseline b/baselines/bigquery-storage/.eslintignore.baseline index 652b9d119..521dc25a2 100644 --- a/baselines/bigquery-storage/.eslintignore.baseline +++ b/baselines/bigquery-storage/.eslintignore.baseline @@ -3,5 +3,4 @@ build/ docs/ protos/ -test-fixtures/ -pbjs-genfiles/ +system-test/ diff --git a/baselines/bigquery-storage/.eslintrc.json.baseline b/baselines/bigquery-storage/.eslintrc.json.baseline index 3f2edabe8..782153495 100644 --- a/baselines/bigquery-storage/.eslintrc.json.baseline +++ b/baselines/bigquery-storage/.eslintrc.json.baseline @@ -1,34 +1,3 @@ { - "extends": "./node_modules/gts", - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - 0, - { - "vars": "all", - "args": "after-used", - "ignoreRestSiblings": false - } - ], - "no-var-requires": "off", - "@typescript-eslint/no-var-requires": 0, - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [ - 0, - { - "allow": [ - "functions", - "constructors", - "methods" - ] - } - ], - "no-explicit-any": "off", - "@typescript-eslint/no-explicit-any": [ - 0, - { - "ignoreRestArgs": true - } - ] - } + "extends": "./node_modules/gts" } diff --git a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline index 11b8b3e2c..4d77c66a6 100644 --- a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline @@ -186,6 +186,7 @@ export class BigQueryStorageClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.cloud.bigquery.storage.v1beta1.BigQueryStorage') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.cloud.bigquery.storage.v1beta1.BigQueryStorage, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/disable-packing-test/.eslintignore.baseline b/baselines/disable-packing-test/.eslintignore.baseline index 652b9d119..521dc25a2 100644 --- a/baselines/disable-packing-test/.eslintignore.baseline +++ b/baselines/disable-packing-test/.eslintignore.baseline @@ -3,5 +3,4 @@ build/ docs/ protos/ -test-fixtures/ -pbjs-genfiles/ +system-test/ diff --git a/baselines/disable-packing-test/.eslintrc.json.baseline b/baselines/disable-packing-test/.eslintrc.json.baseline index 3f2edabe8..782153495 100644 --- a/baselines/disable-packing-test/.eslintrc.json.baseline +++ b/baselines/disable-packing-test/.eslintrc.json.baseline @@ -1,34 +1,3 @@ { - "extends": "./node_modules/gts", - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - 0, - { - "vars": "all", - "args": "after-used", - "ignoreRestSiblings": false - } - ], - "no-var-requires": "off", - "@typescript-eslint/no-var-requires": 0, - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [ - 0, - { - "allow": [ - "functions", - "constructors", - "methods" - ] - } - ], - "no-explicit-any": "off", - "@typescript-eslint/no-explicit-any": [ - 0, - { - "ignoreRestArgs": true - } - ] - } + "extends": "./node_modules/gts" } diff --git a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline index 02cbc8f8a..827f85288 100644 --- a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -185,6 +185,7 @@ export class EchoClient { // an Operation object that allows for tracking of the operation, // rather than holding a request open. const protoFilesRoot = opts.fallback? + /* eslint-disable @typescript-eslint/no-var-requires */ this._gaxModule.protobuf.Root.fromJSON(require("../../protos/protos.json")) : this._gaxModule.protobuf.loadSync(nodejsProtoPath); @@ -238,6 +239,7 @@ export class EchoClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Echo') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Echo, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline index 4076a4933..f34a806ee 100644 --- a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -202,6 +202,7 @@ export class IdentityClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Identity') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Identity, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline index 12556a024..ab97cb064 100644 --- a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -186,6 +186,7 @@ export class MessagingClient { // an Operation object that allows for tracking of the operation, // rather than holding a request open. const protoFilesRoot = opts.fallback? + /* eslint-disable @typescript-eslint/no-var-requires */ this._gaxModule.protobuf.Root.fromJSON(require("../../protos/protos.json")) : this._gaxModule.protobuf.loadSync(nodejsProtoPath); @@ -239,6 +240,7 @@ export class MessagingClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Messaging') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Messaging, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline index 61ac23d10..fcf062cb3 100644 --- a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -205,6 +205,7 @@ export class TestingClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Testing') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Testing, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/dlp/.eslintignore.baseline b/baselines/dlp/.eslintignore.baseline index 652b9d119..521dc25a2 100644 --- a/baselines/dlp/.eslintignore.baseline +++ b/baselines/dlp/.eslintignore.baseline @@ -3,5 +3,4 @@ build/ docs/ protos/ -test-fixtures/ -pbjs-genfiles/ +system-test/ diff --git a/baselines/dlp/.eslintrc.json.baseline b/baselines/dlp/.eslintrc.json.baseline index 3f2edabe8..782153495 100644 --- a/baselines/dlp/.eslintrc.json.baseline +++ b/baselines/dlp/.eslintrc.json.baseline @@ -1,34 +1,3 @@ { - "extends": "./node_modules/gts", - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - 0, - { - "vars": "all", - "args": "after-used", - "ignoreRestSiblings": false - } - ], - "no-var-requires": "off", - "@typescript-eslint/no-var-requires": 0, - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [ - 0, - { - "allow": [ - "functions", - "constructors", - "methods" - ] - } - ], - "no-explicit-any": "off", - "@typescript-eslint/no-explicit-any": [ - 0, - { - "ignoreRestArgs": true - } - ] - } + "extends": "./node_modules/gts" } diff --git a/baselines/dlp/src/v2/dlp_service_client.ts.baseline b/baselines/dlp/src/v2/dlp_service_client.ts.baseline index 2324e918e..666274e2a 100644 --- a/baselines/dlp/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp/src/v2/dlp_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -227,6 +227,7 @@ export class DlpServiceClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.privacy.dlp.v2.DlpService') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.privacy.dlp.v2.DlpService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/kms/.eslintignore.baseline b/baselines/kms/.eslintignore.baseline index 652b9d119..521dc25a2 100644 --- a/baselines/kms/.eslintignore.baseline +++ b/baselines/kms/.eslintignore.baseline @@ -3,5 +3,4 @@ build/ docs/ protos/ -test-fixtures/ -pbjs-genfiles/ +system-test/ diff --git a/baselines/kms/.eslintrc.json.baseline b/baselines/kms/.eslintrc.json.baseline index 3f2edabe8..782153495 100644 --- a/baselines/kms/.eslintrc.json.baseline +++ b/baselines/kms/.eslintrc.json.baseline @@ -1,34 +1,3 @@ { - "extends": "./node_modules/gts", - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - 0, - { - "vars": "all", - "args": "after-used", - "ignoreRestSiblings": false - } - ], - "no-var-requires": "off", - "@typescript-eslint/no-var-requires": 0, - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [ - 0, - { - "allow": [ - "functions", - "constructors", - "methods" - ] - } - ], - "no-explicit-any": "off", - "@typescript-eslint/no-explicit-any": [ - 0, - { - "ignoreRestArgs": true - } - ] - } + "extends": "./node_modules/gts" } diff --git a/baselines/kms/src/v1/key_management_service_client.ts.baseline b/baselines/kms/src/v1/key_management_service_client.ts.baseline index 55f178fc4..7afe04f0e 100644 --- a/baselines/kms/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms/src/v1/key_management_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -190,6 +190,7 @@ export class KeyManagementServiceClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.cloud.kms.v1.KeyManagementService') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.cloud.kms.v1.KeyManagementService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/logging/.eslintignore.baseline b/baselines/logging/.eslintignore.baseline index 652b9d119..521dc25a2 100644 --- a/baselines/logging/.eslintignore.baseline +++ b/baselines/logging/.eslintignore.baseline @@ -3,5 +3,4 @@ build/ docs/ protos/ -test-fixtures/ -pbjs-genfiles/ +system-test/ diff --git a/baselines/logging/.eslintrc.json.baseline b/baselines/logging/.eslintrc.json.baseline index 3f2edabe8..782153495 100644 --- a/baselines/logging/.eslintrc.json.baseline +++ b/baselines/logging/.eslintrc.json.baseline @@ -1,34 +1,3 @@ { - "extends": "./node_modules/gts", - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - 0, - { - "vars": "all", - "args": "after-used", - "ignoreRestSiblings": false - } - ], - "no-var-requires": "off", - "@typescript-eslint/no-var-requires": 0, - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [ - 0, - { - "allow": [ - "functions", - "constructors", - "methods" - ] - } - ], - "no-explicit-any": "off", - "@typescript-eslint/no-explicit-any": [ - 0, - { - "ignoreRestArgs": true - } - ] - } + "extends": "./node_modules/gts" } diff --git a/baselines/logging/src/v2/config_service_v2_client.ts.baseline b/baselines/logging/src/v2/config_service_v2_client.ts.baseline index 2b568daac..49b4a5c77 100644 --- a/baselines/logging/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/config_service_v2_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -254,6 +254,7 @@ export class ConfigServiceV2Client { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.logging.v2.ConfigServiceV2') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.logging.v2.ConfigServiceV2, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline index b06e56ae7..f4e119bd2 100644 --- a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -221,6 +221,7 @@ export class LoggingServiceV2Client { // an Operation object that allows for tracking of the operation, // rather than holding a request open. const protoFilesRoot = opts.fallback? + /* eslint-disable @typescript-eslint/no-var-requires */ this._gaxModule.protobuf.Root.fromJSON(require("../../protos/protos.json")) : this._gaxModule.protobuf.loadSync(nodejsProtoPath); @@ -272,6 +273,7 @@ export class LoggingServiceV2Client { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.logging.v2.LoggingServiceV2') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.logging.v2.LoggingServiceV2, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline index f6dc144d4..6abdbba80 100644 --- a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -247,6 +247,7 @@ export class MetricsServiceV2Client { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.logging.v2.MetricsServiceV2') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.logging.v2.MetricsServiceV2, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/.eslintignore.baseline b/baselines/monitoring/.eslintignore.baseline index 652b9d119..521dc25a2 100644 --- a/baselines/monitoring/.eslintignore.baseline +++ b/baselines/monitoring/.eslintignore.baseline @@ -3,5 +3,4 @@ build/ docs/ protos/ -test-fixtures/ -pbjs-genfiles/ +system-test/ diff --git a/baselines/monitoring/.eslintrc.json.baseline b/baselines/monitoring/.eslintrc.json.baseline index 3f2edabe8..782153495 100644 --- a/baselines/monitoring/.eslintrc.json.baseline +++ b/baselines/monitoring/.eslintrc.json.baseline @@ -1,34 +1,3 @@ { - "extends": "./node_modules/gts", - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - 0, - { - "vars": "all", - "args": "after-used", - "ignoreRestSiblings": false - } - ], - "no-var-requires": "off", - "@typescript-eslint/no-var-requires": 0, - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [ - 0, - { - "allow": [ - "functions", - "constructors", - "methods" - ] - } - ], - "no-explicit-any": "off", - "@typescript-eslint/no-explicit-any": [ - 0, - { - "ignoreRestArgs": true - } - ] - } + "extends": "./node_modules/gts" } diff --git a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline index 147aedfc1..75fda55d4 100644 --- a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -261,6 +261,7 @@ export class AlertPolicyServiceClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.AlertPolicyService') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.AlertPolicyService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/src/v3/group_service_client.ts.baseline b/baselines/monitoring/src/v3/group_service_client.ts.baseline index 1db029373..6ad0a0035 100644 --- a/baselines/monitoring/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/group_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -266,6 +266,7 @@ export class GroupServiceClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.GroupService') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.GroupService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/src/v3/metric_service_client.ts.baseline b/baselines/monitoring/src/v3/metric_service_client.ts.baseline index c2d6d7b43..4bf8c47e3 100644 --- a/baselines/monitoring/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/metric_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -276,6 +276,7 @@ export class MetricServiceClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.MetricService') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.MetricService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline index bfda02fdd..87b4da8fe 100644 --- a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -256,6 +256,7 @@ export class NotificationChannelServiceClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.NotificationChannelService') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.NotificationChannelService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline index 180ea530b..b138e064f 100644 --- a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -258,6 +258,7 @@ export class ServiceMonitoringServiceClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.ServiceMonitoringService') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.ServiceMonitoringService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline index 5bb974ac4..6d906a11f 100644 --- a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -262,6 +262,7 @@ export class UptimeCheckServiceClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.UptimeCheckService') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.UptimeCheckService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/redis/.eslintignore.baseline b/baselines/redis/.eslintignore.baseline index 652b9d119..521dc25a2 100644 --- a/baselines/redis/.eslintignore.baseline +++ b/baselines/redis/.eslintignore.baseline @@ -3,5 +3,4 @@ build/ docs/ protos/ -test-fixtures/ -pbjs-genfiles/ +system-test/ diff --git a/baselines/redis/.eslintrc.json.baseline b/baselines/redis/.eslintrc.json.baseline index 3f2edabe8..782153495 100644 --- a/baselines/redis/.eslintrc.json.baseline +++ b/baselines/redis/.eslintrc.json.baseline @@ -1,34 +1,3 @@ { - "extends": "./node_modules/gts", - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - 0, - { - "vars": "all", - "args": "after-used", - "ignoreRestSiblings": false - } - ], - "no-var-requires": "off", - "@typescript-eslint/no-var-requires": 0, - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [ - 0, - { - "allow": [ - "functions", - "constructors", - "methods" - ] - } - ], - "no-explicit-any": "off", - "@typescript-eslint/no-explicit-any": [ - 0, - { - "ignoreRestArgs": true - } - ] - } + "extends": "./node_modules/gts" } diff --git a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline index da2a16102..8e036646a 100644 --- a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -172,6 +172,7 @@ export class CloudRedisClient { // an Operation object that allows for tracking of the operation, // rather than holding a request open. const protoFilesRoot = opts.fallback? + /* eslint-disable @typescript-eslint/no-var-requires */ this._gaxModule.protobuf.Root.fromJSON(require("../../protos/protos.json")) : this._gaxModule.protobuf.loadSync(nodejsProtoPath); @@ -265,6 +266,7 @@ export class CloudRedisClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.cloud.redis.v1beta1.CloudRedis') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.cloud.redis.v1beta1.CloudRedis, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/showcase/.eslintignore.baseline b/baselines/showcase/.eslintignore.baseline index 652b9d119..521dc25a2 100644 --- a/baselines/showcase/.eslintignore.baseline +++ b/baselines/showcase/.eslintignore.baseline @@ -3,5 +3,4 @@ build/ docs/ protos/ -test-fixtures/ -pbjs-genfiles/ +system-test/ diff --git a/baselines/showcase/.eslintrc.json.baseline b/baselines/showcase/.eslintrc.json.baseline index 3f2edabe8..782153495 100644 --- a/baselines/showcase/.eslintrc.json.baseline +++ b/baselines/showcase/.eslintrc.json.baseline @@ -1,34 +1,3 @@ { - "extends": "./node_modules/gts", - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - 0, - { - "vars": "all", - "args": "after-used", - "ignoreRestSiblings": false - } - ], - "no-var-requires": "off", - "@typescript-eslint/no-var-requires": 0, - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [ - 0, - { - "allow": [ - "functions", - "constructors", - "methods" - ] - } - ], - "no-explicit-any": "off", - "@typescript-eslint/no-explicit-any": [ - 0, - { - "ignoreRestArgs": true - } - ] - } + "extends": "./node_modules/gts" } diff --git a/baselines/showcase/src/v1beta1/echo_client.ts.baseline b/baselines/showcase/src/v1beta1/echo_client.ts.baseline index 02cbc8f8a..827f85288 100644 --- a/baselines/showcase/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/echo_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -185,6 +185,7 @@ export class EchoClient { // an Operation object that allows for tracking of the operation, // rather than holding a request open. const protoFilesRoot = opts.fallback? + /* eslint-disable @typescript-eslint/no-var-requires */ this._gaxModule.protobuf.Root.fromJSON(require("../../protos/protos.json")) : this._gaxModule.protobuf.loadSync(nodejsProtoPath); @@ -238,6 +239,7 @@ export class EchoClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Echo') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Echo, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/showcase/src/v1beta1/identity_client.ts.baseline b/baselines/showcase/src/v1beta1/identity_client.ts.baseline index 4076a4933..f34a806ee 100644 --- a/baselines/showcase/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/identity_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -202,6 +202,7 @@ export class IdentityClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Identity') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Identity, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline index 12556a024..ab97cb064 100644 --- a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -186,6 +186,7 @@ export class MessagingClient { // an Operation object that allows for tracking of the operation, // rather than holding a request open. const protoFilesRoot = opts.fallback? + /* eslint-disable @typescript-eslint/no-var-requires */ this._gaxModule.protobuf.Root.fromJSON(require("../../protos/protos.json")) : this._gaxModule.protobuf.loadSync(nodejsProtoPath); @@ -239,6 +240,7 @@ export class MessagingClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Messaging') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Messaging, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/showcase/src/v1beta1/testing_client.ts.baseline b/baselines/showcase/src/v1beta1/testing_client.ts.baseline index 61ac23d10..fcf062cb3 100644 --- a/baselines/showcase/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/testing_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -205,6 +205,7 @@ export class TestingClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Testing') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Testing, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/texttospeech/.eslintignore.baseline b/baselines/texttospeech/.eslintignore.baseline index 652b9d119..521dc25a2 100644 --- a/baselines/texttospeech/.eslintignore.baseline +++ b/baselines/texttospeech/.eslintignore.baseline @@ -3,5 +3,4 @@ build/ docs/ protos/ -test-fixtures/ -pbjs-genfiles/ +system-test/ diff --git a/baselines/texttospeech/.eslintrc.json.baseline b/baselines/texttospeech/.eslintrc.json.baseline index 3f2edabe8..782153495 100644 --- a/baselines/texttospeech/.eslintrc.json.baseline +++ b/baselines/texttospeech/.eslintrc.json.baseline @@ -1,34 +1,3 @@ { - "extends": "./node_modules/gts", - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - 0, - { - "vars": "all", - "args": "after-used", - "ignoreRestSiblings": false - } - ], - "no-var-requires": "off", - "@typescript-eslint/no-var-requires": 0, - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [ - 0, - { - "allow": [ - "functions", - "constructors", - "methods" - ] - } - ], - "no-explicit-any": "off", - "@typescript-eslint/no-explicit-any": [ - 0, - { - "ignoreRestArgs": true - } - ] - } + "extends": "./node_modules/gts" } diff --git a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline index 4a4edcd9d..e3870c61d 100644 --- a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline +++ b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline @@ -165,6 +165,7 @@ export class TextToSpeechClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.cloud.texttospeech.v1.TextToSpeech') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.cloud.texttospeech.v1.TextToSpeech, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/translate/.eslintignore.baseline b/baselines/translate/.eslintignore.baseline index 652b9d119..521dc25a2 100644 --- a/baselines/translate/.eslintignore.baseline +++ b/baselines/translate/.eslintignore.baseline @@ -3,5 +3,4 @@ build/ docs/ protos/ -test-fixtures/ -pbjs-genfiles/ +system-test/ diff --git a/baselines/translate/.eslintrc.json.baseline b/baselines/translate/.eslintrc.json.baseline index 3f2edabe8..782153495 100644 --- a/baselines/translate/.eslintrc.json.baseline +++ b/baselines/translate/.eslintrc.json.baseline @@ -1,34 +1,3 @@ { - "extends": "./node_modules/gts", - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - 0, - { - "vars": "all", - "args": "after-used", - "ignoreRestSiblings": false - } - ], - "no-var-requires": "off", - "@typescript-eslint/no-var-requires": 0, - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [ - 0, - { - "allow": [ - "functions", - "constructors", - "methods" - ] - } - ], - "no-explicit-any": "off", - "@typescript-eslint/no-explicit-any": [ - 0, - { - "ignoreRestArgs": true - } - ] - } + "extends": "./node_modules/gts" } diff --git a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline index b5debda7b..9be473ccc 100644 --- a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -158,6 +158,7 @@ export class TranslationServiceClient { // an Operation object that allows for tracking of the operation, // rather than holding a request open. const protoFilesRoot = opts.fallback? + /* eslint-disable @typescript-eslint/no-var-requires */ this._gaxModule.protobuf.Root.fromJSON(require("../../protos/protos.json")) : this._gaxModule.protobuf.loadSync(nodejsProtoPath); @@ -227,6 +228,7 @@ export class TranslationServiceClient { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.cloud.translation.v3beta1.TranslationService') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.cloud.translation.v3beta1.TranslationService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/templates/typescript_gapic/src/$version/$service_client.ts.njk b/templates/typescript_gapic/src/$version/$service_client.ts.njk index 07d163ecf..f66036ebf 100644 --- a/templates/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/typescript_gapic/src/$version/$service_client.ts.njk @@ -22,7 +22,6 @@ limitations under the License. import * as gax from 'google-gax'; import {APICallback, Callback, CallOptions, Descriptors, ClientOptions {%- if service.longRunning.length > 0 %}, LROperation{%- endif -%} -{%- if service.paging.length > 0 %}, PaginationCallback, PaginationResponse{%- endif -%} } from 'google-gax'; import * as path from 'path'; {% if (service.paging.length > 0) %} @@ -191,6 +190,7 @@ export class {{ service.name }}Client { // an Operation object that allows for tracking of the operation, // rather than holding a request open. const protoFilesRoot = opts.fallback? + /* eslint-disable @typescript-eslint/no-var-requires */ this._gaxModule.protobuf.Root.fromJSON(require("../../protos/protos.json")) : this._gaxModule.protobuf.loadSync(nodejsProtoPath); {% endif %} @@ -278,6 +278,7 @@ export class {{ service.name }}Client { this._opts.fallback ? (this._protos as protobuf.Root).lookupService('{{api.naming.protoPackage}}.{{ service.name }}') : // tslint:disable-next-line no-any + /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).{{api.naming.protoPackage}}.{{ service.name }}, this._opts) as Promise<{[method: string]: Function}>; From 5fb9e32fc523ef65ded4aa6b10ceefd19e99787a Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Mon, 23 Mar 2020 18:12:30 -0700 Subject: [PATCH 08/25] template change for new gts --- ...apic-big_query_storage-v1beta1.ts.baseline | 13 +---- .../test/gapic-echo-v1beta1.ts.baseline | 13 +---- .../test/gapic-identity-v1beta1.ts.baseline | 11 +--- .../test/gapic-messaging-v1beta1.ts.baseline | 25 +-------- .../test/gapic-testing-v1beta1.ts.baseline | 15 +---- .../dlp/test/gapic-dlp_service-v2.ts.baseline | 55 +------------------ ...apic-key_management_service-v1.ts.baseline | 41 +------------- .../gapic-config_service_v2-v2.ts.baseline | 27 +-------- .../gapic-logging_service_v2-v2.ts.baseline | 7 +-- .../gapic-metrics_service_v2-v2.ts.baseline | 11 +--- .../gapic-alert_policy_service-v3.ts.baseline | 11 +--- .../test/gapic-group_service-v3.ts.baseline | 11 +--- .../test/gapic-metric_service-v3.ts.baseline | 13 +---- ...otification_channel_service-v3.ts.baseline | 19 +------ ...-service_monitoring_service-v3.ts.baseline | 19 +------ .../gapic-uptime_check_service-v3.ts.baseline | 11 +--- .../gapic-cloud_redis-v1beta1.ts.baseline | 17 +----- .../test/gapic-echo-v1beta1.ts.baseline | 13 +---- .../test/gapic-identity-v1beta1.ts.baseline | 11 +--- .../test/gapic-messaging-v1beta1.ts.baseline | 25 +-------- .../test/gapic-testing-v1beta1.ts.baseline | 15 +---- .../test/gapic-text_to_speech-v1.ts.baseline | 7 +-- ...ic-translation_service-v3beta1.ts.baseline | 17 +----- .../test/gapic-$service-$version.ts.njk | 11 +--- 24 files changed, 72 insertions(+), 346 deletions(-) diff --git a/baselines/bigquery-storage/test/gapic-big_query_storage-v1beta1.ts.baseline b/baselines/bigquery-storage/test/gapic-big_query_storage-v1beta1.ts.baseline index 56dd7b589..657a12d1b 100644 --- a/baselines/bigquery-storage/test/gapic-big_query_storage-v1beta1.ts.baseline +++ b/baselines/bigquery-storage/test/gapic-big_query_storage-v1beta1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const bigquerystorageModule = require('../src'); import {PassThrough} from 'stream'; @@ -41,7 +42,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -155,8 +158,6 @@ describe('v1beta1.BigQueryStorageClient', () => { request.tableReference.projectId = ''; request.tableReference = {}; request.tableReference.datasetId = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createReadSession = mockSimpleGrpcMethod( request, @@ -209,8 +210,6 @@ describe('v1beta1.BigQueryStorageClient', () => { const request: protosTypes.google.cloud.bigquery.storage.v1beta1.IBatchCreateReadSessionStreamsRequest = {}; request.session = {}; request.session.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.batchCreateReadSessionStreams = mockSimpleGrpcMethod( request, @@ -263,8 +262,6 @@ describe('v1beta1.BigQueryStorageClient', () => { const request: protosTypes.google.cloud.bigquery.storage.v1beta1.IFinalizeStreamRequest = {}; request.stream = {}; request.stream.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.finalizeStream = mockSimpleGrpcMethod( request, @@ -317,8 +314,6 @@ describe('v1beta1.BigQueryStorageClient', () => { const request: protosTypes.google.cloud.bigquery.storage.v1beta1.ISplitReadStreamRequest = {}; request.originalStream = {}; request.originalStream.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.splitReadStream = mockSimpleGrpcMethod( request, @@ -372,8 +367,6 @@ describe('v1beta1.BigQueryStorageClient', () => { request.readPosition = {}; request.readPosition.stream = {}; request.readPosition.stream.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.readRows = mockServerStreamingGrpcMethod(request, null, error); const stream = client.readRows(request); diff --git a/baselines/disable-packing-test/test/gapic-echo-v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic-echo-v1beta1.ts.baseline index ce3fc5401..76f0041c0 100644 --- a/baselines/disable-packing-test/test/gapic-echo-v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic-echo-v1beta1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const echoModule = require('../src'); import {PassThrough} from 'stream'; @@ -41,7 +42,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -182,8 +185,6 @@ describe('v1beta1.EchoClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IEchoRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.echo = mockSimpleGrpcMethod( request, @@ -232,8 +233,6 @@ describe('v1beta1.EchoClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IBlockRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.block = mockSimpleGrpcMethod( request, @@ -285,8 +284,6 @@ describe('v1beta1.EchoClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IWaitRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.wait = mockLongRunningGrpcMethod( request, @@ -338,8 +335,6 @@ describe('v1beta1.EchoClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IExpandRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.expand = mockServerStreamingGrpcMethod(request, null, error); const stream = client.expand(request); @@ -385,8 +380,6 @@ describe('v1beta1.EchoClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IEchoRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.chat = mockBidiStreamingGrpcMethod(request, null, error); const stream = client.chat().on('data', () =>{ diff --git a/baselines/disable-packing-test/test/gapic-identity-v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic-identity-v1beta1.ts.baseline index ba67b1936..a6df6a2dd 100644 --- a/baselines/disable-packing-test/test/gapic-identity-v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic-identity-v1beta1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const identityModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -128,8 +131,6 @@ describe('v1beta1.IdentityClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.ICreateUserRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createUser = mockSimpleGrpcMethod( request, @@ -180,8 +181,6 @@ describe('v1beta1.IdentityClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IGetUserRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getUser = mockSimpleGrpcMethod( request, @@ -234,8 +233,6 @@ describe('v1beta1.IdentityClient', () => { const request: protosTypes.google.showcase.v1beta1.IUpdateUserRequest = {}; request.user = {}; request.user.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateUser = mockSimpleGrpcMethod( request, @@ -286,8 +283,6 @@ describe('v1beta1.IdentityClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IDeleteUserRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteUser = mockSimpleGrpcMethod( request, diff --git a/baselines/disable-packing-test/test/gapic-messaging-v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic-messaging-v1beta1.ts.baseline index ddaf67fce..dacb2ddaf 100644 --- a/baselines/disable-packing-test/test/gapic-messaging-v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic-messaging-v1beta1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const messagingModule = require('../src'); import {PassThrough} from 'stream'; @@ -41,7 +42,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -182,8 +185,6 @@ describe('v1beta1.MessagingClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.ICreateRoomRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createRoom = mockSimpleGrpcMethod( request, @@ -234,8 +235,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IGetRoomRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getRoom = mockSimpleGrpcMethod( request, @@ -288,8 +287,6 @@ describe('v1beta1.MessagingClient', () => { const request: protosTypes.google.showcase.v1beta1.IUpdateRoomRequest = {}; request.room = {}; request.room.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateRoom = mockSimpleGrpcMethod( request, @@ -340,8 +337,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IDeleteRoomRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteRoom = mockSimpleGrpcMethod( request, @@ -392,8 +387,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.ICreateBlurbRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createBlurb = mockSimpleGrpcMethod( request, @@ -444,8 +437,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IGetBlurbRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getBlurb = mockSimpleGrpcMethod( request, @@ -498,8 +489,6 @@ describe('v1beta1.MessagingClient', () => { const request: protosTypes.google.showcase.v1beta1.IUpdateBlurbRequest = {}; request.blurb = {}; request.blurb.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateBlurb = mockSimpleGrpcMethod( request, @@ -550,8 +539,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IDeleteBlurbRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteBlurb = mockSimpleGrpcMethod( request, @@ -605,8 +592,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.ISearchBlurbsRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.searchBlurbs = mockLongRunningGrpcMethod( request, @@ -660,8 +645,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IStreamBlurbsRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.streamBlurbs = mockServerStreamingGrpcMethod(request, null, error); const stream = client.streamBlurbs(request); @@ -707,8 +690,6 @@ describe('v1beta1.MessagingClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IConnectRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.connect = mockBidiStreamingGrpcMethod(request, null, error); const stream = client.connect().on('data', () =>{ diff --git a/baselines/disable-packing-test/test/gapic-testing-v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic-testing-v1beta1.ts.baseline index 93ef93e30..816b708e0 100644 --- a/baselines/disable-packing-test/test/gapic-testing-v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic-testing-v1beta1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const testingModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -128,8 +131,6 @@ describe('v1beta1.TestingClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.ICreateSessionRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createSession = mockSimpleGrpcMethod( request, @@ -180,8 +181,6 @@ describe('v1beta1.TestingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IGetSessionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getSession = mockSimpleGrpcMethod( request, @@ -232,8 +231,6 @@ describe('v1beta1.TestingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IDeleteSessionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteSession = mockSimpleGrpcMethod( request, @@ -284,8 +281,6 @@ describe('v1beta1.TestingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IReportSessionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.reportSession = mockSimpleGrpcMethod( request, @@ -336,8 +331,6 @@ describe('v1beta1.TestingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IDeleteTestRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteTest = mockSimpleGrpcMethod( request, @@ -388,8 +381,6 @@ describe('v1beta1.TestingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IVerifyTestRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.verifyTest = mockSimpleGrpcMethod( request, diff --git a/baselines/dlp/test/gapic-dlp_service-v2.ts.baseline b/baselines/dlp/test/gapic-dlp_service-v2.ts.baseline index a455daeb9..23816122f 100644 --- a/baselines/dlp/test/gapic-dlp_service-v2.ts.baseline +++ b/baselines/dlp/test/gapic-dlp_service-v2.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const dlpserviceModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -130,8 +133,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IInspectContentRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.inspectContent = mockSimpleGrpcMethod( request, @@ -182,8 +183,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IRedactImageRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.redactImage = mockSimpleGrpcMethod( request, @@ -234,8 +233,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IDeidentifyContentRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deidentifyContent = mockSimpleGrpcMethod( request, @@ -286,8 +283,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IReidentifyContentRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.reidentifyContent = mockSimpleGrpcMethod( request, @@ -336,8 +331,6 @@ describe('v2.DlpServiceClient', () => { client.initialize(); // Mock request const request: protosTypes.google.privacy.dlp.v2.IListInfoTypesRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.listInfoTypes = mockSimpleGrpcMethod( request, @@ -388,8 +381,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.ICreateInspectTemplateRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createInspectTemplate = mockSimpleGrpcMethod( request, @@ -440,8 +431,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IUpdateInspectTemplateRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateInspectTemplate = mockSimpleGrpcMethod( request, @@ -492,8 +481,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IGetInspectTemplateRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getInspectTemplate = mockSimpleGrpcMethod( request, @@ -544,8 +531,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IDeleteInspectTemplateRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteInspectTemplate = mockSimpleGrpcMethod( request, @@ -596,8 +581,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createDeidentifyTemplate = mockSimpleGrpcMethod( request, @@ -648,8 +631,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IUpdateDeidentifyTemplateRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateDeidentifyTemplate = mockSimpleGrpcMethod( request, @@ -700,8 +681,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IGetDeidentifyTemplateRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getDeidentifyTemplate = mockSimpleGrpcMethod( request, @@ -752,8 +731,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IDeleteDeidentifyTemplateRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteDeidentifyTemplate = mockSimpleGrpcMethod( request, @@ -804,8 +781,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.ICreateJobTriggerRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createJobTrigger = mockSimpleGrpcMethod( request, @@ -856,8 +831,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IUpdateJobTriggerRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateJobTrigger = mockSimpleGrpcMethod( request, @@ -908,8 +881,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IGetJobTriggerRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getJobTrigger = mockSimpleGrpcMethod( request, @@ -960,8 +931,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IDeleteJobTriggerRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteJobTrigger = mockSimpleGrpcMethod( request, @@ -1012,8 +981,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IActivateJobTriggerRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.activateJobTrigger = mockSimpleGrpcMethod( request, @@ -1064,8 +1031,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.ICreateDlpJobRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createDlpJob = mockSimpleGrpcMethod( request, @@ -1116,8 +1081,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IGetDlpJobRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getDlpJob = mockSimpleGrpcMethod( request, @@ -1168,8 +1131,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IDeleteDlpJobRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteDlpJob = mockSimpleGrpcMethod( request, @@ -1220,8 +1181,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.ICancelDlpJobRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.cancelDlpJob = mockSimpleGrpcMethod( request, @@ -1272,8 +1231,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.ICreateStoredInfoTypeRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createStoredInfoType = mockSimpleGrpcMethod( request, @@ -1324,8 +1281,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IUpdateStoredInfoTypeRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateStoredInfoType = mockSimpleGrpcMethod( request, @@ -1376,8 +1331,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IGetStoredInfoTypeRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getStoredInfoType = mockSimpleGrpcMethod( request, @@ -1428,8 +1381,6 @@ describe('v2.DlpServiceClient', () => { // Mock request const request: protosTypes.google.privacy.dlp.v2.IDeleteStoredInfoTypeRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteStoredInfoType = mockSimpleGrpcMethod( request, diff --git a/baselines/kms/test/gapic-key_management_service-v1.ts.baseline b/baselines/kms/test/gapic-key_management_service-v1.ts.baseline index 5f8694235..462647366 100644 --- a/baselines/kms/test/gapic-key_management_service-v1.ts.baseline +++ b/baselines/kms/test/gapic-key_management_service-v1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const keymanagementserviceModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -130,8 +133,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IGetKeyRingRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getKeyRing = mockSimpleGrpcMethod( request, @@ -182,8 +183,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IGetCryptoKeyRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getCryptoKey = mockSimpleGrpcMethod( request, @@ -234,8 +233,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IGetCryptoKeyVersionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getCryptoKeyVersion = mockSimpleGrpcMethod( request, @@ -286,8 +283,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IGetPublicKeyRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getPublicKey = mockSimpleGrpcMethod( request, @@ -338,8 +333,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IGetImportJobRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getImportJob = mockSimpleGrpcMethod( request, @@ -390,8 +383,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.ICreateKeyRingRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createKeyRing = mockSimpleGrpcMethod( request, @@ -442,8 +433,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.ICreateCryptoKeyRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createCryptoKey = mockSimpleGrpcMethod( request, @@ -494,8 +483,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createCryptoKeyVersion = mockSimpleGrpcMethod( request, @@ -546,8 +533,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IImportCryptoKeyVersionRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.importCryptoKeyVersion = mockSimpleGrpcMethod( request, @@ -598,8 +583,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.ICreateImportJobRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createImportJob = mockSimpleGrpcMethod( request, @@ -652,8 +635,6 @@ describe('v1.KeyManagementServiceClient', () => { const request: protosTypes.google.cloud.kms.v1.IUpdateCryptoKeyRequest = {}; request.cryptoKey = {}; request.cryptoKey.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateCryptoKey = mockSimpleGrpcMethod( request, @@ -706,8 +687,6 @@ describe('v1.KeyManagementServiceClient', () => { const request: protosTypes.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest = {}; request.cryptoKeyVersion = {}; request.cryptoKeyVersion.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateCryptoKeyVersion = mockSimpleGrpcMethod( request, @@ -758,8 +737,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IEncryptRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.encrypt = mockSimpleGrpcMethod( request, @@ -810,8 +787,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IDecryptRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.decrypt = mockSimpleGrpcMethod( request, @@ -862,8 +837,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IAsymmetricSignRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.asymmetricSign = mockSimpleGrpcMethod( request, @@ -914,8 +887,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IAsymmetricDecryptRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.asymmetricDecrypt = mockSimpleGrpcMethod( request, @@ -966,8 +937,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateCryptoKeyPrimaryVersion = mockSimpleGrpcMethod( request, @@ -1018,8 +987,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.destroyCryptoKeyVersion = mockSimpleGrpcMethod( request, @@ -1070,8 +1037,6 @@ describe('v1.KeyManagementServiceClient', () => { // Mock request const request: protosTypes.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.restoreCryptoKeyVersion = mockSimpleGrpcMethod( request, diff --git a/baselines/logging/test/gapic-config_service_v2-v2.ts.baseline b/baselines/logging/test/gapic-config_service_v2-v2.ts.baseline index ddd3f1692..940aa94ac 100644 --- a/baselines/logging/test/gapic-config_service_v2-v2.ts.baseline +++ b/baselines/logging/test/gapic-config_service_v2-v2.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const configservicev2Module = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -130,8 +133,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IGetBucketRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getBucket = mockSimpleGrpcMethod( request, @@ -182,8 +183,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IUpdateBucketRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateBucket = mockSimpleGrpcMethod( request, @@ -234,8 +233,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IGetSinkRequest = {}; request.sinkName = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getSink = mockSimpleGrpcMethod( request, @@ -286,8 +283,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.ICreateSinkRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createSink = mockSimpleGrpcMethod( request, @@ -338,8 +333,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IUpdateSinkRequest = {}; request.sinkName = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateSink = mockSimpleGrpcMethod( request, @@ -390,8 +383,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IDeleteSinkRequest = {}; request.sinkName = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteSink = mockSimpleGrpcMethod( request, @@ -442,8 +433,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IGetExclusionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getExclusion = mockSimpleGrpcMethod( request, @@ -494,8 +483,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.ICreateExclusionRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createExclusion = mockSimpleGrpcMethod( request, @@ -546,8 +533,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IUpdateExclusionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateExclusion = mockSimpleGrpcMethod( request, @@ -598,8 +583,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IDeleteExclusionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteExclusion = mockSimpleGrpcMethod( request, @@ -650,8 +633,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IGetCmekSettingsRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getCmekSettings = mockSimpleGrpcMethod( request, @@ -702,8 +683,6 @@ describe('v2.ConfigServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IUpdateCmekSettingsRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateCmekSettings = mockSimpleGrpcMethod( request, diff --git a/baselines/logging/test/gapic-logging_service_v2-v2.ts.baseline b/baselines/logging/test/gapic-logging_service_v2-v2.ts.baseline index 7e8aa388e..7f0721646 100644 --- a/baselines/logging/test/gapic-logging_service_v2-v2.ts.baseline +++ b/baselines/logging/test/gapic-logging_service_v2-v2.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const loggingservicev2Module = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -130,8 +133,6 @@ describe('v2.LoggingServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IDeleteLogRequest = {}; request.logName = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteLog = mockSimpleGrpcMethod( request, @@ -180,8 +181,6 @@ describe('v2.LoggingServiceV2Client', () => { client.initialize(); // Mock request const request: protosTypes.google.logging.v2.IWriteLogEntriesRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.writeLogEntries = mockSimpleGrpcMethod( request, diff --git a/baselines/logging/test/gapic-metrics_service_v2-v2.ts.baseline b/baselines/logging/test/gapic-metrics_service_v2-v2.ts.baseline index 2770246ca..37f4bb849 100644 --- a/baselines/logging/test/gapic-metrics_service_v2-v2.ts.baseline +++ b/baselines/logging/test/gapic-metrics_service_v2-v2.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const metricsservicev2Module = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -130,8 +133,6 @@ describe('v2.MetricsServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IGetLogMetricRequest = {}; request.metricName = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getLogMetric = mockSimpleGrpcMethod( request, @@ -182,8 +183,6 @@ describe('v2.MetricsServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.ICreateLogMetricRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createLogMetric = mockSimpleGrpcMethod( request, @@ -234,8 +233,6 @@ describe('v2.MetricsServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IUpdateLogMetricRequest = {}; request.metricName = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateLogMetric = mockSimpleGrpcMethod( request, @@ -286,8 +283,6 @@ describe('v2.MetricsServiceV2Client', () => { // Mock request const request: protosTypes.google.logging.v2.IDeleteLogMetricRequest = {}; request.metricName = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteLogMetric = mockSimpleGrpcMethod( request, diff --git a/baselines/monitoring/test/gapic-alert_policy_service-v3.ts.baseline b/baselines/monitoring/test/gapic-alert_policy_service-v3.ts.baseline index bd8eed414..cd1e5d7f1 100644 --- a/baselines/monitoring/test/gapic-alert_policy_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-alert_policy_service-v3.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const alertpolicyserviceModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -130,8 +133,6 @@ describe('v3.AlertPolicyServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IGetAlertPolicyRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getAlertPolicy = mockSimpleGrpcMethod( request, @@ -182,8 +183,6 @@ describe('v3.AlertPolicyServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.ICreateAlertPolicyRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createAlertPolicy = mockSimpleGrpcMethod( request, @@ -234,8 +233,6 @@ describe('v3.AlertPolicyServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IDeleteAlertPolicyRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteAlertPolicy = mockSimpleGrpcMethod( request, @@ -288,8 +285,6 @@ describe('v3.AlertPolicyServiceClient', () => { const request: protosTypes.google.monitoring.v3.IUpdateAlertPolicyRequest = {}; request.alertPolicy = {}; request.alertPolicy.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateAlertPolicy = mockSimpleGrpcMethod( request, diff --git a/baselines/monitoring/test/gapic-group_service-v3.ts.baseline b/baselines/monitoring/test/gapic-group_service-v3.ts.baseline index d32909cca..2ba00231e 100644 --- a/baselines/monitoring/test/gapic-group_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-group_service-v3.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const groupserviceModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -130,8 +133,6 @@ describe('v3.GroupServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IGetGroupRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getGroup = mockSimpleGrpcMethod( request, @@ -182,8 +183,6 @@ describe('v3.GroupServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.ICreateGroupRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createGroup = mockSimpleGrpcMethod( request, @@ -236,8 +235,6 @@ describe('v3.GroupServiceClient', () => { const request: protosTypes.google.monitoring.v3.IUpdateGroupRequest = {}; request.group = {}; request.group.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateGroup = mockSimpleGrpcMethod( request, @@ -288,8 +285,6 @@ describe('v3.GroupServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IDeleteGroupRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteGroup = mockSimpleGrpcMethod( request, diff --git a/baselines/monitoring/test/gapic-metric_service-v3.ts.baseline b/baselines/monitoring/test/gapic-metric_service-v3.ts.baseline index 7fa2ba9a9..4a23fb50a 100644 --- a/baselines/monitoring/test/gapic-metric_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-metric_service-v3.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const metricserviceModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -130,8 +133,6 @@ describe('v3.MetricServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IGetMonitoredResourceDescriptorRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getMonitoredResourceDescriptor = mockSimpleGrpcMethod( request, @@ -182,8 +183,6 @@ describe('v3.MetricServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IGetMetricDescriptorRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getMetricDescriptor = mockSimpleGrpcMethod( request, @@ -234,8 +233,6 @@ describe('v3.MetricServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.ICreateMetricDescriptorRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createMetricDescriptor = mockSimpleGrpcMethod( request, @@ -286,8 +283,6 @@ describe('v3.MetricServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IDeleteMetricDescriptorRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteMetricDescriptor = mockSimpleGrpcMethod( request, @@ -338,8 +333,6 @@ describe('v3.MetricServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.ICreateTimeSeriesRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createTimeSeries = mockSimpleGrpcMethod( request, diff --git a/baselines/monitoring/test/gapic-notification_channel_service-v3.ts.baseline b/baselines/monitoring/test/gapic-notification_channel_service-v3.ts.baseline index 150651dc9..b54e2c95d 100644 --- a/baselines/monitoring/test/gapic-notification_channel_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-notification_channel_service-v3.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const notificationchannelserviceModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -130,8 +133,6 @@ describe('v3.NotificationChannelServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IGetNotificationChannelDescriptorRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getNotificationChannelDescriptor = mockSimpleGrpcMethod( request, @@ -182,8 +183,6 @@ describe('v3.NotificationChannelServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IGetNotificationChannelRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getNotificationChannel = mockSimpleGrpcMethod( request, @@ -234,8 +233,6 @@ describe('v3.NotificationChannelServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.ICreateNotificationChannelRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createNotificationChannel = mockSimpleGrpcMethod( request, @@ -288,8 +285,6 @@ describe('v3.NotificationChannelServiceClient', () => { const request: protosTypes.google.monitoring.v3.IUpdateNotificationChannelRequest = {}; request.notificationChannel = {}; request.notificationChannel.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateNotificationChannel = mockSimpleGrpcMethod( request, @@ -340,8 +335,6 @@ describe('v3.NotificationChannelServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IDeleteNotificationChannelRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteNotificationChannel = mockSimpleGrpcMethod( request, @@ -392,8 +385,6 @@ describe('v3.NotificationChannelServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.ISendNotificationChannelVerificationCodeRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.sendNotificationChannelVerificationCode = mockSimpleGrpcMethod( request, @@ -444,8 +435,6 @@ describe('v3.NotificationChannelServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IGetNotificationChannelVerificationCodeRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getNotificationChannelVerificationCode = mockSimpleGrpcMethod( request, @@ -496,8 +485,6 @@ describe('v3.NotificationChannelServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IVerifyNotificationChannelRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.verifyNotificationChannel = mockSimpleGrpcMethod( request, diff --git a/baselines/monitoring/test/gapic-service_monitoring_service-v3.ts.baseline b/baselines/monitoring/test/gapic-service_monitoring_service-v3.ts.baseline index 8c168342d..3254a6491 100644 --- a/baselines/monitoring/test/gapic-service_monitoring_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-service_monitoring_service-v3.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const servicemonitoringserviceModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -130,8 +133,6 @@ describe('v3.ServiceMonitoringServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.ICreateServiceRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createService = mockSimpleGrpcMethod( request, @@ -182,8 +183,6 @@ describe('v3.ServiceMonitoringServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IGetServiceRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getService = mockSimpleGrpcMethod( request, @@ -236,8 +235,6 @@ describe('v3.ServiceMonitoringServiceClient', () => { const request: protosTypes.google.monitoring.v3.IUpdateServiceRequest = {}; request.service = {}; request.service.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateService = mockSimpleGrpcMethod( request, @@ -288,8 +285,6 @@ describe('v3.ServiceMonitoringServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IDeleteServiceRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteService = mockSimpleGrpcMethod( request, @@ -340,8 +335,6 @@ describe('v3.ServiceMonitoringServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.ICreateServiceLevelObjectiveRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createServiceLevelObjective = mockSimpleGrpcMethod( request, @@ -392,8 +385,6 @@ describe('v3.ServiceMonitoringServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IGetServiceLevelObjectiveRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getServiceLevelObjective = mockSimpleGrpcMethod( request, @@ -446,8 +437,6 @@ describe('v3.ServiceMonitoringServiceClient', () => { const request: protosTypes.google.monitoring.v3.IUpdateServiceLevelObjectiveRequest = {}; request.serviceLevelObjective = {}; request.serviceLevelObjective.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateServiceLevelObjective = mockSimpleGrpcMethod( request, @@ -498,8 +487,6 @@ describe('v3.ServiceMonitoringServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IDeleteServiceLevelObjectiveRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteServiceLevelObjective = mockSimpleGrpcMethod( request, diff --git a/baselines/monitoring/test/gapic-uptime_check_service-v3.ts.baseline b/baselines/monitoring/test/gapic-uptime_check_service-v3.ts.baseline index 9fc4b91f3..15bcaaa0b 100644 --- a/baselines/monitoring/test/gapic-uptime_check_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-uptime_check_service-v3.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const uptimecheckserviceModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -130,8 +133,6 @@ describe('v3.UptimeCheckServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IGetUptimeCheckConfigRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getUptimeCheckConfig = mockSimpleGrpcMethod( request, @@ -182,8 +183,6 @@ describe('v3.UptimeCheckServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.ICreateUptimeCheckConfigRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createUptimeCheckConfig = mockSimpleGrpcMethod( request, @@ -236,8 +235,6 @@ describe('v3.UptimeCheckServiceClient', () => { const request: protosTypes.google.monitoring.v3.IUpdateUptimeCheckConfigRequest = {}; request.uptimeCheckConfig = {}; request.uptimeCheckConfig.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateUptimeCheckConfig = mockSimpleGrpcMethod( request, @@ -288,8 +285,6 @@ describe('v3.UptimeCheckServiceClient', () => { // Mock request const request: protosTypes.google.monitoring.v3.IDeleteUptimeCheckConfigRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteUptimeCheckConfig = mockSimpleGrpcMethod( request, diff --git a/baselines/redis/test/gapic-cloud_redis-v1beta1.ts.baseline b/baselines/redis/test/gapic-cloud_redis-v1beta1.ts.baseline index 905ce4fc1..31efacd36 100644 --- a/baselines/redis/test/gapic-cloud_redis-v1beta1.ts.baseline +++ b/baselines/redis/test/gapic-cloud_redis-v1beta1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const cloudredisModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -148,8 +151,6 @@ describe('v1beta1.CloudRedisClient', () => { // Mock request const request: protosTypes.google.cloud.redis.v1beta1.IGetInstanceRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getInstance = mockSimpleGrpcMethod( request, @@ -203,8 +204,6 @@ describe('v1beta1.CloudRedisClient', () => { // Mock request const request: protosTypes.google.cloud.redis.v1beta1.ICreateInstanceRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createInstance = mockLongRunningGrpcMethod( request, @@ -264,8 +263,6 @@ describe('v1beta1.CloudRedisClient', () => { const request: protosTypes.google.cloud.redis.v1beta1.IUpdateInstanceRequest = {}; request.instance = {}; request.instance.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateInstance = mockLongRunningGrpcMethod( request, @@ -323,8 +320,6 @@ describe('v1beta1.CloudRedisClient', () => { // Mock request const request: protosTypes.google.cloud.redis.v1beta1.IImportInstanceRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.importInstance = mockLongRunningGrpcMethod( request, @@ -382,8 +377,6 @@ describe('v1beta1.CloudRedisClient', () => { // Mock request const request: protosTypes.google.cloud.redis.v1beta1.IExportInstanceRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.exportInstance = mockLongRunningGrpcMethod( request, @@ -441,8 +434,6 @@ describe('v1beta1.CloudRedisClient', () => { // Mock request const request: protosTypes.google.cloud.redis.v1beta1.IFailoverInstanceRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.failoverInstance = mockLongRunningGrpcMethod( request, @@ -500,8 +491,6 @@ describe('v1beta1.CloudRedisClient', () => { // Mock request const request: protosTypes.google.cloud.redis.v1beta1.IDeleteInstanceRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteInstance = mockLongRunningGrpcMethod( request, diff --git a/baselines/showcase/test/gapic-echo-v1beta1.ts.baseline b/baselines/showcase/test/gapic-echo-v1beta1.ts.baseline index ce3fc5401..76f0041c0 100644 --- a/baselines/showcase/test/gapic-echo-v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic-echo-v1beta1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const echoModule = require('../src'); import {PassThrough} from 'stream'; @@ -41,7 +42,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -182,8 +185,6 @@ describe('v1beta1.EchoClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IEchoRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.echo = mockSimpleGrpcMethod( request, @@ -232,8 +233,6 @@ describe('v1beta1.EchoClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IBlockRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.block = mockSimpleGrpcMethod( request, @@ -285,8 +284,6 @@ describe('v1beta1.EchoClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IWaitRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.wait = mockLongRunningGrpcMethod( request, @@ -338,8 +335,6 @@ describe('v1beta1.EchoClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IExpandRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.expand = mockServerStreamingGrpcMethod(request, null, error); const stream = client.expand(request); @@ -385,8 +380,6 @@ describe('v1beta1.EchoClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IEchoRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.chat = mockBidiStreamingGrpcMethod(request, null, error); const stream = client.chat().on('data', () =>{ diff --git a/baselines/showcase/test/gapic-identity-v1beta1.ts.baseline b/baselines/showcase/test/gapic-identity-v1beta1.ts.baseline index ba67b1936..a6df6a2dd 100644 --- a/baselines/showcase/test/gapic-identity-v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic-identity-v1beta1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const identityModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -128,8 +131,6 @@ describe('v1beta1.IdentityClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.ICreateUserRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createUser = mockSimpleGrpcMethod( request, @@ -180,8 +181,6 @@ describe('v1beta1.IdentityClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IGetUserRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getUser = mockSimpleGrpcMethod( request, @@ -234,8 +233,6 @@ describe('v1beta1.IdentityClient', () => { const request: protosTypes.google.showcase.v1beta1.IUpdateUserRequest = {}; request.user = {}; request.user.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateUser = mockSimpleGrpcMethod( request, @@ -286,8 +283,6 @@ describe('v1beta1.IdentityClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IDeleteUserRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteUser = mockSimpleGrpcMethod( request, diff --git a/baselines/showcase/test/gapic-messaging-v1beta1.ts.baseline b/baselines/showcase/test/gapic-messaging-v1beta1.ts.baseline index ddaf67fce..dacb2ddaf 100644 --- a/baselines/showcase/test/gapic-messaging-v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic-messaging-v1beta1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const messagingModule = require('../src'); import {PassThrough} from 'stream'; @@ -41,7 +42,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -182,8 +185,6 @@ describe('v1beta1.MessagingClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.ICreateRoomRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createRoom = mockSimpleGrpcMethod( request, @@ -234,8 +235,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IGetRoomRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getRoom = mockSimpleGrpcMethod( request, @@ -288,8 +287,6 @@ describe('v1beta1.MessagingClient', () => { const request: protosTypes.google.showcase.v1beta1.IUpdateRoomRequest = {}; request.room = {}; request.room.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateRoom = mockSimpleGrpcMethod( request, @@ -340,8 +337,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IDeleteRoomRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteRoom = mockSimpleGrpcMethod( request, @@ -392,8 +387,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.ICreateBlurbRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createBlurb = mockSimpleGrpcMethod( request, @@ -444,8 +437,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IGetBlurbRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getBlurb = mockSimpleGrpcMethod( request, @@ -498,8 +489,6 @@ describe('v1beta1.MessagingClient', () => { const request: protosTypes.google.showcase.v1beta1.IUpdateBlurbRequest = {}; request.blurb = {}; request.blurb.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.updateBlurb = mockSimpleGrpcMethod( request, @@ -550,8 +539,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IDeleteBlurbRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteBlurb = mockSimpleGrpcMethod( request, @@ -605,8 +592,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.ISearchBlurbsRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.searchBlurbs = mockLongRunningGrpcMethod( request, @@ -660,8 +645,6 @@ describe('v1beta1.MessagingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IStreamBlurbsRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.streamBlurbs = mockServerStreamingGrpcMethod(request, null, error); const stream = client.streamBlurbs(request); @@ -707,8 +690,6 @@ describe('v1beta1.MessagingClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.IConnectRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.connect = mockBidiStreamingGrpcMethod(request, null, error); const stream = client.connect().on('data', () =>{ diff --git a/baselines/showcase/test/gapic-testing-v1beta1.ts.baseline b/baselines/showcase/test/gapic-testing-v1beta1.ts.baseline index 93ef93e30..816b708e0 100644 --- a/baselines/showcase/test/gapic-testing-v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic-testing-v1beta1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const testingModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -128,8 +131,6 @@ describe('v1beta1.TestingClient', () => { client.initialize(); // Mock request const request: protosTypes.google.showcase.v1beta1.ICreateSessionRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createSession = mockSimpleGrpcMethod( request, @@ -180,8 +181,6 @@ describe('v1beta1.TestingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IGetSessionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getSession = mockSimpleGrpcMethod( request, @@ -232,8 +231,6 @@ describe('v1beta1.TestingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IDeleteSessionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteSession = mockSimpleGrpcMethod( request, @@ -284,8 +281,6 @@ describe('v1beta1.TestingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IReportSessionRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.reportSession = mockSimpleGrpcMethod( request, @@ -336,8 +331,6 @@ describe('v1beta1.TestingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IDeleteTestRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteTest = mockSimpleGrpcMethod( request, @@ -388,8 +381,6 @@ describe('v1beta1.TestingClient', () => { // Mock request const request: protosTypes.google.showcase.v1beta1.IVerifyTestRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.verifyTest = mockSimpleGrpcMethod( request, diff --git a/baselines/texttospeech/test/gapic-text_to_speech-v1.ts.baseline b/baselines/texttospeech/test/gapic-text_to_speech-v1.ts.baseline index 981bb20be..b460d1ac4 100644 --- a/baselines/texttospeech/test/gapic-text_to_speech-v1.ts.baseline +++ b/baselines/texttospeech/test/gapic-text_to_speech-v1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const texttospeechModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -128,8 +131,6 @@ describe('v1.TextToSpeechClient', () => { client.initialize(); // Mock request const request: protosTypes.google.cloud.texttospeech.v1.IListVoicesRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.listVoices = mockSimpleGrpcMethod( request, @@ -178,8 +179,6 @@ describe('v1.TextToSpeechClient', () => { client.initialize(); // Mock request const request: protosTypes.google.cloud.texttospeech.v1.ISynthesizeSpeechRequest = {}; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.synthesizeSpeech = mockSimpleGrpcMethod( request, diff --git a/baselines/translate/test/gapic-translation_service-v3beta1.ts.baseline b/baselines/translate/test/gapic-translation_service-v3beta1.ts.baseline index a2c7a8b58..df40bda67 100644 --- a/baselines/translate/test/gapic-translation_service-v3beta1.ts.baseline +++ b/baselines/translate/test/gapic-translation_service-v3beta1.ts.baseline @@ -19,6 +19,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const translationserviceModule = require('../src'); @@ -39,7 +40,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { @@ -148,8 +151,6 @@ describe('v3beta1.TranslationServiceClient', () => { // Mock request const request: protosTypes.google.cloud.translation.v3beta1.ITranslateTextRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.translateText = mockSimpleGrpcMethod( request, @@ -200,8 +201,6 @@ describe('v3beta1.TranslationServiceClient', () => { // Mock request const request: protosTypes.google.cloud.translation.v3beta1.IDetectLanguageRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.detectLanguage = mockSimpleGrpcMethod( request, @@ -252,8 +251,6 @@ describe('v3beta1.TranslationServiceClient', () => { // Mock request const request: protosTypes.google.cloud.translation.v3beta1.IGetSupportedLanguagesRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getSupportedLanguages = mockSimpleGrpcMethod( request, @@ -304,8 +301,6 @@ describe('v3beta1.TranslationServiceClient', () => { // Mock request const request: protosTypes.google.cloud.translation.v3beta1.IGetGlossaryRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.getGlossary = mockSimpleGrpcMethod( request, @@ -359,8 +354,6 @@ describe('v3beta1.TranslationServiceClient', () => { // Mock request const request: protosTypes.google.cloud.translation.v3beta1.IBatchTranslateTextRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.batchTranslateText = mockLongRunningGrpcMethod( request, @@ -418,8 +411,6 @@ describe('v3beta1.TranslationServiceClient', () => { // Mock request const request: protosTypes.google.cloud.translation.v3beta1.ICreateGlossaryRequest = {}; request.parent = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.createGlossary = mockLongRunningGrpcMethod( request, @@ -477,8 +468,6 @@ describe('v3beta1.TranslationServiceClient', () => { // Mock request const request: protosTypes.google.cloud.translation.v3beta1.IDeleteGlossaryRequest = {}; request.name = ''; - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.deleteGlossary = mockLongRunningGrpcMethod( request, diff --git a/templates/typescript_gapic/test/gapic-$service-$version.ts.njk b/templates/typescript_gapic/test/gapic-$service-$version.ts.njk index 1005c9439..2de5790ea 100644 --- a/templates/typescript_gapic/test/gapic-$service-$version.ts.njk +++ b/templates/typescript_gapic/test/gapic-$service-$version.ts.njk @@ -21,6 +21,7 @@ limitations under the License. import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; import { describe, it } from 'mocha'; +/* eslint-disable @typescript-eslint/no-var-requires */ const {{ service.name.toLowerCase() }}Module = require('../src'); {% if (service.streaming.length > 0) %} import {PassThrough} from 'stream'; @@ -43,7 +44,9 @@ export interface Callback { } export class Operation{ + /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; + /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } @@ -194,8 +197,6 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { client.initialize(); // Mock request {{ util.initRequestWithHeaderParam(method) }} - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.{{ method.name.toCamelCase() }} = mockSimpleGrpcMethod( request, @@ -249,8 +250,6 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { client.initialize(); // Mock request {{ util.initRequestWithHeaderParam(method) }} - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.{{ method.name.toCamelCase() }} = mockLongRunningGrpcMethod( request, @@ -304,8 +303,6 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { client.initialize(); // Mock request {{ util.initRequestWithHeaderParam(method) }} - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.{{ method.name.toCamelCase() }} = mockServerStreamingGrpcMethod(request, null, error); const stream = client.{{ method.name.toCamelCase() }}(request); @@ -353,8 +350,6 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { client.initialize(); // Mock request {{ util.initRequestWithHeaderParam(method) }} - // Mock response - const expectedResponse = {}; // Mock gRPC layer client._innerApiCalls.{{ method.name.toCamelCase() }} = mockBidiStreamingGrpcMethod(request, null, error); const stream = client.{{ method.name.toCamelCase() }}().on('data', () =>{ From 4b3b311f0efcc54bc5433487d3ebf5099a96b65e Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Mon, 23 Mar 2020 23:17:16 -0700 Subject: [PATCH 09/25] remove tslint no-any --- .../bigquery-storage/.prettierignore.baseline | 5 ----- .../bigquery-storage/.prettierrc.js.baseline | 17 ----------------- baselines/bigquery-storage/package.json | 4 ---- .../big_query_storage_client.ts.baseline | 1 - .../.prettierignore.baseline | 5 ----- .../.prettierrc.js.baseline | 17 ----------------- baselines/disable-packing-test/package.json | 4 ---- .../src/v1beta1/echo_client.ts.baseline | 1 - .../src/v1beta1/identity_client.ts.baseline | 1 - .../src/v1beta1/messaging_client.ts.baseline | 1 - .../src/v1beta1/testing_client.ts.baseline | 1 - baselines/dlp/.prettierignore.baseline | 5 ----- baselines/dlp/.prettierrc.js.baseline | 17 ----------------- baselines/dlp/package.json | 4 ---- .../dlp/src/v2/dlp_service_client.ts.baseline | 1 - baselines/kms/.prettierignore.baseline | 5 ----- baselines/kms/.prettierrc.js.baseline | 17 ----------------- baselines/kms/package.json | 4 ---- .../key_management_service_client.ts.baseline | 1 - baselines/logging/.prettierignore.baseline | 5 ----- baselines/logging/.prettierrc.js.baseline | 17 ----------------- baselines/logging/package.json | 4 ---- .../src/v2/config_service_v2_client.ts.baseline | 1 - .../v2/logging_service_v2_client.ts.baseline | 1 - .../v2/metrics_service_v2_client.ts.baseline | 1 - baselines/monitoring/.prettierignore.baseline | 5 ----- baselines/monitoring/.prettierrc.js.baseline | 17 ----------------- baselines/monitoring/package.json | 4 ---- .../v3/alert_policy_service_client.ts.baseline | 1 - .../src/v3/group_service_client.ts.baseline | 1 - .../src/v3/metric_service_client.ts.baseline | 1 - ...ification_channel_service_client.ts.baseline | 1 - ...ervice_monitoring_service_client.ts.baseline | 1 - .../v3/uptime_check_service_client.ts.baseline | 1 - baselines/redis/.prettierignore.baseline | 5 ----- baselines/redis/.prettierrc.js.baseline | 17 ----------------- baselines/redis/package.json | 4 ---- .../src/v1beta1/cloud_redis_client.ts.baseline | 1 - baselines/showcase/.prettierignore.baseline | 5 ----- baselines/showcase/.prettierrc.js.baseline | 17 ----------------- baselines/showcase/package.json | 4 ---- .../src/v1beta1/echo_client.ts.baseline | 1 - .../src/v1beta1/identity_client.ts.baseline | 1 - .../src/v1beta1/messaging_client.ts.baseline | 1 - .../src/v1beta1/testing_client.ts.baseline | 1 - baselines/texttospeech/.prettierignore.baseline | 5 ----- baselines/texttospeech/.prettierrc.js.baseline | 17 ----------------- baselines/texttospeech/package.json | 4 ---- .../src/v1/text_to_speech_client.ts.baseline | 1 - baselines/translate/.prettierignore.baseline | 5 ----- baselines/translate/.prettierrc.js.baseline | 17 ----------------- baselines/translate/package.json | 4 ---- .../translation_service_client.ts.baseline | 1 - templates/typescript_gapic/.prettierignore.njk | 5 ----- templates/typescript_gapic/.prettierrc.js.njk | 17 ----------------- templates/typescript_gapic/package.json | 4 ---- .../src/$version/$service_client.ts.njk | 1 - 57 files changed, 310 deletions(-) delete mode 100644 baselines/bigquery-storage/.prettierignore.baseline delete mode 100644 baselines/bigquery-storage/.prettierrc.js.baseline delete mode 100644 baselines/disable-packing-test/.prettierignore.baseline delete mode 100644 baselines/disable-packing-test/.prettierrc.js.baseline delete mode 100644 baselines/dlp/.prettierignore.baseline delete mode 100644 baselines/dlp/.prettierrc.js.baseline delete mode 100644 baselines/kms/.prettierignore.baseline delete mode 100644 baselines/kms/.prettierrc.js.baseline delete mode 100644 baselines/logging/.prettierignore.baseline delete mode 100644 baselines/logging/.prettierrc.js.baseline delete mode 100644 baselines/monitoring/.prettierignore.baseline delete mode 100644 baselines/monitoring/.prettierrc.js.baseline delete mode 100644 baselines/redis/.prettierignore.baseline delete mode 100644 baselines/redis/.prettierrc.js.baseline delete mode 100644 baselines/showcase/.prettierignore.baseline delete mode 100644 baselines/showcase/.prettierrc.js.baseline delete mode 100644 baselines/texttospeech/.prettierignore.baseline delete mode 100644 baselines/texttospeech/.prettierrc.js.baseline delete mode 100644 baselines/translate/.prettierignore.baseline delete mode 100644 baselines/translate/.prettierrc.js.baseline delete mode 100644 templates/typescript_gapic/.prettierignore.njk delete mode 100644 templates/typescript_gapic/.prettierrc.js.njk diff --git a/baselines/bigquery-storage/.prettierignore.baseline b/baselines/bigquery-storage/.prettierignore.baseline deleted file mode 100644 index a4ac7b375..000000000 --- a/baselines/bigquery-storage/.prettierignore.baseline +++ /dev/null @@ -1,5 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ diff --git a/baselines/bigquery-storage/.prettierrc.js.baseline b/baselines/bigquery-storage/.prettierrc.js.baseline deleted file mode 100644 index 21df10709..000000000 --- a/baselines/bigquery-storage/.prettierrc.js.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index 7180162c1..19ba1a7db 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -31,10 +31,6 @@ "@types/node": "^12.12.30", "c8": "^7.1.0", "gts": "next", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline index 4d77c66a6..9e41c4081 100644 --- a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline @@ -185,7 +185,6 @@ export class BigQueryStorageClient { this.bigQueryStorageStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.cloud.bigquery.storage.v1beta1.BigQueryStorage') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.cloud.bigquery.storage.v1beta1.BigQueryStorage, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/disable-packing-test/.prettierignore.baseline b/baselines/disable-packing-test/.prettierignore.baseline deleted file mode 100644 index a4ac7b375..000000000 --- a/baselines/disable-packing-test/.prettierignore.baseline +++ /dev/null @@ -1,5 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ diff --git a/baselines/disable-packing-test/.prettierrc.js.baseline b/baselines/disable-packing-test/.prettierrc.js.baseline deleted file mode 100644 index 21df10709..000000000 --- a/baselines/disable-packing-test/.prettierrc.js.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 2f4aa43be..4d3afcd3d 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -31,10 +31,6 @@ "@types/node": "^12.12.30", "c8": "^7.1.0", "gts": "next", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline index 827f85288..24b113a4b 100644 --- a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline @@ -238,7 +238,6 @@ export class EchoClient { this.echoStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Echo') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Echo, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline index f34a806ee..6a252f164 100644 --- a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline @@ -201,7 +201,6 @@ export class IdentityClient { this.identityStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Identity') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Identity, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline index ab97cb064..4c2c9b641 100644 --- a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline @@ -239,7 +239,6 @@ export class MessagingClient { this.messagingStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Messaging') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Messaging, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline index fcf062cb3..709dc3346 100644 --- a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline @@ -204,7 +204,6 @@ export class TestingClient { this.testingStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Testing') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Testing, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/dlp/.prettierignore.baseline b/baselines/dlp/.prettierignore.baseline deleted file mode 100644 index a4ac7b375..000000000 --- a/baselines/dlp/.prettierignore.baseline +++ /dev/null @@ -1,5 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ diff --git a/baselines/dlp/.prettierrc.js.baseline b/baselines/dlp/.prettierrc.js.baseline deleted file mode 100644 index 21df10709..000000000 --- a/baselines/dlp/.prettierrc.js.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index 8e6d1b85c..a393529dc 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -31,10 +31,6 @@ "@types/node": "^12.12.30", "c8": "^7.1.0", "gts": "next", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/dlp/src/v2/dlp_service_client.ts.baseline b/baselines/dlp/src/v2/dlp_service_client.ts.baseline index 666274e2a..00c684bfd 100644 --- a/baselines/dlp/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp/src/v2/dlp_service_client.ts.baseline @@ -226,7 +226,6 @@ export class DlpServiceClient { this.dlpServiceStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.privacy.dlp.v2.DlpService') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.privacy.dlp.v2.DlpService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/kms/.prettierignore.baseline b/baselines/kms/.prettierignore.baseline deleted file mode 100644 index a4ac7b375..000000000 --- a/baselines/kms/.prettierignore.baseline +++ /dev/null @@ -1,5 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ diff --git a/baselines/kms/.prettierrc.js.baseline b/baselines/kms/.prettierrc.js.baseline deleted file mode 100644 index 21df10709..000000000 --- a/baselines/kms/.prettierrc.js.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/baselines/kms/package.json b/baselines/kms/package.json index f69ffefb6..ca6ef9db1 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -31,10 +31,6 @@ "@types/node": "^12.12.30", "c8": "^7.1.0", "gts": "next", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/kms/src/v1/key_management_service_client.ts.baseline b/baselines/kms/src/v1/key_management_service_client.ts.baseline index 7afe04f0e..48fc2c0b5 100644 --- a/baselines/kms/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms/src/v1/key_management_service_client.ts.baseline @@ -189,7 +189,6 @@ export class KeyManagementServiceClient { this.keyManagementServiceStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.cloud.kms.v1.KeyManagementService') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.cloud.kms.v1.KeyManagementService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/logging/.prettierignore.baseline b/baselines/logging/.prettierignore.baseline deleted file mode 100644 index a4ac7b375..000000000 --- a/baselines/logging/.prettierignore.baseline +++ /dev/null @@ -1,5 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ diff --git a/baselines/logging/.prettierrc.js.baseline b/baselines/logging/.prettierrc.js.baseline deleted file mode 100644 index 21df10709..000000000 --- a/baselines/logging/.prettierrc.js.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 6a60765f6..b89b0e326 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -31,10 +31,6 @@ "@types/node": "^12.12.30", "c8": "^7.1.0", "gts": "next", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/logging/src/v2/config_service_v2_client.ts.baseline b/baselines/logging/src/v2/config_service_v2_client.ts.baseline index 49b4a5c77..91757ca41 100644 --- a/baselines/logging/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/config_service_v2_client.ts.baseline @@ -253,7 +253,6 @@ export class ConfigServiceV2Client { this.configServiceV2Stub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.logging.v2.ConfigServiceV2') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.logging.v2.ConfigServiceV2, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline index 8f5b03301..431a5a0d2 100644 --- a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline @@ -273,7 +273,6 @@ export class LoggingServiceV2Client { this.loggingServiceV2Stub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.logging.v2.LoggingServiceV2') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.logging.v2.LoggingServiceV2, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline index 6abdbba80..f60f8c421 100644 --- a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline @@ -246,7 +246,6 @@ export class MetricsServiceV2Client { this.metricsServiceV2Stub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.logging.v2.MetricsServiceV2') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.logging.v2.MetricsServiceV2, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/.prettierignore.baseline b/baselines/monitoring/.prettierignore.baseline deleted file mode 100644 index a4ac7b375..000000000 --- a/baselines/monitoring/.prettierignore.baseline +++ /dev/null @@ -1,5 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ diff --git a/baselines/monitoring/.prettierrc.js.baseline b/baselines/monitoring/.prettierrc.js.baseline deleted file mode 100644 index 21df10709..000000000 --- a/baselines/monitoring/.prettierrc.js.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index ff470f825..05c6d99ef 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -31,10 +31,6 @@ "@types/node": "^12.12.30", "c8": "^7.1.0", "gts": "next", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline index 75fda55d4..ac560db12 100644 --- a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline @@ -260,7 +260,6 @@ export class AlertPolicyServiceClient { this.alertPolicyServiceStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.AlertPolicyService') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.AlertPolicyService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/src/v3/group_service_client.ts.baseline b/baselines/monitoring/src/v3/group_service_client.ts.baseline index 6ad0a0035..d45245dde 100644 --- a/baselines/monitoring/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/group_service_client.ts.baseline @@ -265,7 +265,6 @@ export class GroupServiceClient { this.groupServiceStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.GroupService') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.GroupService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/src/v3/metric_service_client.ts.baseline b/baselines/monitoring/src/v3/metric_service_client.ts.baseline index 4bf8c47e3..258f13ef9 100644 --- a/baselines/monitoring/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/metric_service_client.ts.baseline @@ -275,7 +275,6 @@ export class MetricServiceClient { this.metricServiceStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.MetricService') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.MetricService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline index 87b4da8fe..2f9c3b925 100644 --- a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline @@ -255,7 +255,6 @@ export class NotificationChannelServiceClient { this.notificationChannelServiceStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.NotificationChannelService') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.NotificationChannelService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline index b138e064f..8229c8136 100644 --- a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline @@ -257,7 +257,6 @@ export class ServiceMonitoringServiceClient { this.serviceMonitoringServiceStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.ServiceMonitoringService') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.ServiceMonitoringService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline index 6d906a11f..13e48aa26 100644 --- a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline @@ -261,7 +261,6 @@ export class UptimeCheckServiceClient { this.uptimeCheckServiceStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.monitoring.v3.UptimeCheckService') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.monitoring.v3.UptimeCheckService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/redis/.prettierignore.baseline b/baselines/redis/.prettierignore.baseline deleted file mode 100644 index a4ac7b375..000000000 --- a/baselines/redis/.prettierignore.baseline +++ /dev/null @@ -1,5 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ diff --git a/baselines/redis/.prettierrc.js.baseline b/baselines/redis/.prettierrc.js.baseline deleted file mode 100644 index 21df10709..000000000 --- a/baselines/redis/.prettierrc.js.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/baselines/redis/package.json b/baselines/redis/package.json index c4fc4aee9..43957dd47 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -31,10 +31,6 @@ "@types/node": "^12.12.30", "c8": "^7.1.0", "gts": "next", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline index 8e036646a..035aaeb09 100644 --- a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline @@ -265,7 +265,6 @@ export class CloudRedisClient { this.cloudRedisStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.cloud.redis.v1beta1.CloudRedis') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.cloud.redis.v1beta1.CloudRedis, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/showcase/.prettierignore.baseline b/baselines/showcase/.prettierignore.baseline deleted file mode 100644 index a4ac7b375..000000000 --- a/baselines/showcase/.prettierignore.baseline +++ /dev/null @@ -1,5 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ diff --git a/baselines/showcase/.prettierrc.js.baseline b/baselines/showcase/.prettierrc.js.baseline deleted file mode 100644 index 21df10709..000000000 --- a/baselines/showcase/.prettierrc.js.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 2f4aa43be..4d3afcd3d 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -31,10 +31,6 @@ "@types/node": "^12.12.30", "c8": "^7.1.0", "gts": "next", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/showcase/src/v1beta1/echo_client.ts.baseline b/baselines/showcase/src/v1beta1/echo_client.ts.baseline index 827f85288..24b113a4b 100644 --- a/baselines/showcase/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/echo_client.ts.baseline @@ -238,7 +238,6 @@ export class EchoClient { this.echoStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Echo') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Echo, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/showcase/src/v1beta1/identity_client.ts.baseline b/baselines/showcase/src/v1beta1/identity_client.ts.baseline index f34a806ee..6a252f164 100644 --- a/baselines/showcase/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/identity_client.ts.baseline @@ -201,7 +201,6 @@ export class IdentityClient { this.identityStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Identity') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Identity, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline index ab97cb064..4c2c9b641 100644 --- a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline @@ -239,7 +239,6 @@ export class MessagingClient { this.messagingStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Messaging') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Messaging, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/showcase/src/v1beta1/testing_client.ts.baseline b/baselines/showcase/src/v1beta1/testing_client.ts.baseline index fcf062cb3..709dc3346 100644 --- a/baselines/showcase/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/testing_client.ts.baseline @@ -204,7 +204,6 @@ export class TestingClient { this.testingStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.showcase.v1beta1.Testing') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.showcase.v1beta1.Testing, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/texttospeech/.prettierignore.baseline b/baselines/texttospeech/.prettierignore.baseline deleted file mode 100644 index a4ac7b375..000000000 --- a/baselines/texttospeech/.prettierignore.baseline +++ /dev/null @@ -1,5 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ diff --git a/baselines/texttospeech/.prettierrc.js.baseline b/baselines/texttospeech/.prettierrc.js.baseline deleted file mode 100644 index 21df10709..000000000 --- a/baselines/texttospeech/.prettierrc.js.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index 04c2b35de..92c38f274 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -31,10 +31,6 @@ "@types/node": "^12.12.30", "c8": "^7.1.0", "gts": "next", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline index e3870c61d..d22eb3f10 100644 --- a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline +++ b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline @@ -164,7 +164,6 @@ export class TextToSpeechClient { this.textToSpeechStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.cloud.texttospeech.v1.TextToSpeech') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.cloud.texttospeech.v1.TextToSpeech, this._opts) as Promise<{[method: string]: Function}>; diff --git a/baselines/translate/.prettierignore.baseline b/baselines/translate/.prettierignore.baseline deleted file mode 100644 index a4ac7b375..000000000 --- a/baselines/translate/.prettierignore.baseline +++ /dev/null @@ -1,5 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ diff --git a/baselines/translate/.prettierrc.js.baseline b/baselines/translate/.prettierrc.js.baseline deleted file mode 100644 index 21df10709..000000000 --- a/baselines/translate/.prettierrc.js.baseline +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/baselines/translate/package.json b/baselines/translate/package.json index e4b890ba5..e3366ffa2 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -31,10 +31,6 @@ "@types/node": "^12.12.30", "c8": "^7.1.0", "gts": "next", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline index 9be473ccc..1e236d92d 100644 --- a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline @@ -227,7 +227,6 @@ export class TranslationServiceClient { this.translationServiceStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('google.cloud.translation.v3beta1.TranslationService') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).google.cloud.translation.v3beta1.TranslationService, this._opts) as Promise<{[method: string]: Function}>; diff --git a/templates/typescript_gapic/.prettierignore.njk b/templates/typescript_gapic/.prettierignore.njk deleted file mode 100644 index a4ac7b375..000000000 --- a/templates/typescript_gapic/.prettierignore.njk +++ /dev/null @@ -1,5 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ diff --git a/templates/typescript_gapic/.prettierrc.js.njk b/templates/typescript_gapic/.prettierrc.js.njk deleted file mode 100644 index 21df10709..000000000 --- a/templates/typescript_gapic/.prettierrc.js.njk +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/templates/typescript_gapic/package.json b/templates/typescript_gapic/package.json index 2f8aaf4d8..991b6095c 100644 --- a/templates/typescript_gapic/package.json +++ b/templates/typescript_gapic/package.json @@ -31,10 +31,6 @@ "@types/node": "^12.12.30", "c8": "^7.1.0", "gts": "next", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/templates/typescript_gapic/src/$version/$service_client.ts.njk b/templates/typescript_gapic/src/$version/$service_client.ts.njk index 03fd06fc2..f5f78c9c0 100644 --- a/templates/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/typescript_gapic/src/$version/$service_client.ts.njk @@ -281,7 +281,6 @@ export class {{ service.name }}Client { this.{{ service.name.toCamelCase() }}Stub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService('{{api.naming.protoPackage}}.{{ service.name }}') : - // tslint:disable-next-line no-any /* eslint-disable @typescript-eslint/no-explicit-any */ (this._protos as any).{{api.naming.protoPackage}}.{{ service.name }}, this._opts) as Promise<{[method: string]: Function}>; From 4ec7a3c77b0361d0b857d58abd2bce5e641a7560 Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Tue, 24 Mar 2020 15:28:22 -0700 Subject: [PATCH 10/25] test --- typescript/test/test-application/test-ts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/test/test-application/test-ts.ts b/typescript/test/test-application/test-ts.ts index 0fdfa8070..eaf1e8500 100644 --- a/typescript/test/test-application/test-ts.ts +++ b/typescript/test/test-application/test-ts.ts @@ -51,7 +51,7 @@ const TS_TEST_APPLICATION = path.join( 'test-application-ts' ); describe('Test application for TypeScript users', () => { - it('npm install showcase', async function () { + it('npm install showcase', async function() { this.timeout(120000); // copy protos to generated client library and copy test application to local. if (!fs.existsSync(path.join(SHOWCASE_LIB, 'protos'))) { From ad38cd881ee5fe8a3acee38998f25e625e38c6ea Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Tue, 24 Mar 2020 17:23:07 -0700 Subject: [PATCH 11/25] use paginationCallback & response, remove empty-function check --- ...apic-big_query_storage-v1beta1.ts.baseline | 2 - .../src/v1beta1/echo_client.ts.baseline | 18 ++-- .../src/v1beta1/identity_client.ts.baseline | 18 ++-- .../src/v1beta1/messaging_client.ts.baseline | 34 ++++---- .../src/v1beta1/testing_client.ts.baseline | 34 ++++---- .../test/gapic-echo-v1beta1.ts.baseline | 2 - .../test/gapic-identity-v1beta1.ts.baseline | 2 - .../test/gapic-messaging-v1beta1.ts.baseline | 2 - .../test/gapic-testing-v1beta1.ts.baseline | 2 - .../dlp/src/v2/dlp_service_client.ts.baseline | 82 +++++++++---------- .../dlp/test/gapic-dlp_service-v2.ts.baseline | 2 - .../key_management_service_client.ts.baseline | 66 +++++++-------- ...apic-key_management_service-v1.ts.baseline | 2 - .../v2/config_service_v2_client.ts.baseline | 50 +++++------ .../v2/logging_service_v2_client.ts.baseline | 50 +++++------ .../v2/metrics_service_v2_client.ts.baseline | 18 ++-- .../gapic-config_service_v2-v2.ts.baseline | 2 - .../gapic-logging_service_v2-v2.ts.baseline | 2 - .../gapic-metrics_service_v2-v2.ts.baseline | 2 - .../alert_policy_service_client.ts.baseline | 18 ++-- .../src/v3/group_service_client.ts.baseline | 34 ++++---- .../src/v3/metric_service_client.ts.baseline | 50 +++++------ ...ication_channel_service_client.ts.baseline | 34 ++++---- ...vice_monitoring_service_client.ts.baseline | 34 ++++---- .../uptime_check_service_client.ts.baseline | 34 ++++---- .../gapic-alert_policy_service-v3.ts.baseline | 2 - .../test/gapic-group_service-v3.ts.baseline | 2 - .../test/gapic-metric_service-v3.ts.baseline | 2 - ...otification_channel_service-v3.ts.baseline | 2 - ...-service_monitoring_service-v3.ts.baseline | 2 - .../gapic-uptime_check_service-v3.ts.baseline | 2 - .../v1beta1/cloud_redis_client.ts.baseline | 18 ++-- .../gapic-cloud_redis-v1beta1.ts.baseline | 2 - .../src/v1beta1/echo_client.ts.baseline | 18 ++-- .../src/v1beta1/identity_client.ts.baseline | 18 ++-- .../src/v1beta1/messaging_client.ts.baseline | 34 ++++---- .../src/v1beta1/testing_client.ts.baseline | 34 ++++---- .../test/gapic-echo-v1beta1.ts.baseline | 2 - .../test/gapic-identity-v1beta1.ts.baseline | 2 - .../test/gapic-messaging-v1beta1.ts.baseline | 2 - .../test/gapic-testing-v1beta1.ts.baseline | 2 - .../test/gapic-text_to_speech-v1.ts.baseline | 2 - .../translation_service_client.ts.baseline | 18 ++-- ...ic-translation_service-v3beta1.ts.baseline | 2 - package.json | 2 +- .../src/$version/$service_client.ts.njk | 17 ++-- .../test/gapic-$service-$version.ts.njk | 2 - typescript/test/test-application/test-ts.ts | 2 +- 48 files changed, 368 insertions(+), 415 deletions(-) diff --git a/baselines/bigquery-storage/test/gapic-big_query_storage-v1beta1.ts.baseline b/baselines/bigquery-storage/test/gapic-big_query_storage-v1beta1.ts.baseline index 657a12d1b..85edf96bd 100644 --- a/baselines/bigquery-storage/test/gapic-big_query_storage-v1beta1.ts.baseline +++ b/baselines/bigquery-storage/test/gapic-big_query_storage-v1beta1.ts.baseline @@ -42,9 +42,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline index 24b113a4b..6b23cb5d8 100644 --- a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -589,15 +589,15 @@ export class EchoClient { pagedExpand( request: protosTypes.google.showcase.v1beta1.IPagedExpandRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; pagedExpand( request: protosTypes.google.showcase.v1beta1.IPagedExpandRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.IEchoResponse[], protosTypes.google.showcase.v1beta1.IPagedExpandRequest|null, protosTypes.google.showcase.v1beta1.IPagedExpandResponse>): void; @@ -633,19 +633,19 @@ export class EchoClient { */ pagedExpand( request: protosTypes.google.showcase.v1beta1.IPagedExpandRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.IEchoResponse[], protosTypes.google.showcase.v1beta1.IPagedExpandRequest|null, protosTypes.google.showcase.v1beta1.IPagedExpandResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.IEchoResponse[], protosTypes.google.showcase.v1beta1.IPagedExpandRequest|null, protosTypes.google.showcase.v1beta1.IPagedExpandResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IPagedExpandResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline index 6a252f164..cf2f0beb8 100644 --- a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -532,15 +532,15 @@ export class IdentityClient { listUsers( request: protosTypes.google.showcase.v1beta1.IListUsersRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listUsers( request: protosTypes.google.showcase.v1beta1.IListUsersRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.IUser[], protosTypes.google.showcase.v1beta1.IListUsersRequest|null, protosTypes.google.showcase.v1beta1.IListUsersResponse>): void; @@ -576,19 +576,19 @@ export class IdentityClient { */ listUsers( request: protosTypes.google.showcase.v1beta1.IListUsersRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.IUser[], protosTypes.google.showcase.v1beta1.IListUsersRequest|null, protosTypes.google.showcase.v1beta1.IListUsersResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.IUser[], protosTypes.google.showcase.v1beta1.IListUsersRequest|null, protosTypes.google.showcase.v1beta1.IListUsersResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IListUsersResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline index 4c2c9b641..925e403e7 100644 --- a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -982,15 +982,15 @@ export class MessagingClient { listRooms( request: protosTypes.google.showcase.v1beta1.IListRoomsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listRooms( request: protosTypes.google.showcase.v1beta1.IListRoomsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.IRoom[], protosTypes.google.showcase.v1beta1.IListRoomsRequest|null, protosTypes.google.showcase.v1beta1.IListRoomsResponse>): void; @@ -1026,19 +1026,19 @@ export class MessagingClient { */ listRooms( request: protosTypes.google.showcase.v1beta1.IListRoomsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.IRoom[], protosTypes.google.showcase.v1beta1.IListRoomsRequest|null, protosTypes.google.showcase.v1beta1.IListRoomsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.IRoom[], protosTypes.google.showcase.v1beta1.IListRoomsRequest|null, protosTypes.google.showcase.v1beta1.IListRoomsResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IListRoomsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1097,15 +1097,15 @@ export class MessagingClient { listBlurbs( request: protosTypes.google.showcase.v1beta1.IListBlurbsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listBlurbs( request: protosTypes.google.showcase.v1beta1.IListBlurbsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.IBlurb[], protosTypes.google.showcase.v1beta1.IListBlurbsRequest|null, protosTypes.google.showcase.v1beta1.IListBlurbsResponse>): void; @@ -1145,19 +1145,19 @@ export class MessagingClient { */ listBlurbs( request: protosTypes.google.showcase.v1beta1.IListBlurbsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.IBlurb[], protosTypes.google.showcase.v1beta1.IListBlurbsRequest|null, protosTypes.google.showcase.v1beta1.IListBlurbsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.IBlurb[], protosTypes.google.showcase.v1beta1.IListBlurbsRequest|null, protosTypes.google.showcase.v1beta1.IListBlurbsResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IListBlurbsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline index 709dc3346..2d7630bb0 100644 --- a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -668,15 +668,15 @@ export class TestingClient { listSessions( request: protosTypes.google.showcase.v1beta1.IListSessionsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listSessions( request: protosTypes.google.showcase.v1beta1.IListSessionsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.ISession[], protosTypes.google.showcase.v1beta1.IListSessionsRequest|null, protosTypes.google.showcase.v1beta1.IListSessionsResponse>): void; @@ -709,19 +709,19 @@ export class TestingClient { */ listSessions( request: protosTypes.google.showcase.v1beta1.IListSessionsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.ISession[], protosTypes.google.showcase.v1beta1.IListSessionsRequest|null, protosTypes.google.showcase.v1beta1.IListSessionsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.ISession[], protosTypes.google.showcase.v1beta1.IListSessionsRequest|null, protosTypes.google.showcase.v1beta1.IListSessionsResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IListSessionsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -777,15 +777,15 @@ export class TestingClient { listTests( request: protosTypes.google.showcase.v1beta1.IListTestsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listTests( request: protosTypes.google.showcase.v1beta1.IListTestsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.ITest[], protosTypes.google.showcase.v1beta1.IListTestsRequest|null, protosTypes.google.showcase.v1beta1.IListTestsResponse>): void; @@ -820,19 +820,19 @@ export class TestingClient { */ listTests( request: protosTypes.google.showcase.v1beta1.IListTestsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.ITest[], protosTypes.google.showcase.v1beta1.IListTestsRequest|null, protosTypes.google.showcase.v1beta1.IListTestsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.ITest[], protosTypes.google.showcase.v1beta1.IListTestsRequest|null, protosTypes.google.showcase.v1beta1.IListTestsResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IListTestsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/disable-packing-test/test/gapic-echo-v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic-echo-v1beta1.ts.baseline index 76f0041c0..a5e2fdded 100644 --- a/baselines/disable-packing-test/test/gapic-echo-v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic-echo-v1beta1.ts.baseline @@ -42,9 +42,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/disable-packing-test/test/gapic-identity-v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic-identity-v1beta1.ts.baseline index a6df6a2dd..5e47d5d4b 100644 --- a/baselines/disable-packing-test/test/gapic-identity-v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic-identity-v1beta1.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/disable-packing-test/test/gapic-messaging-v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic-messaging-v1beta1.ts.baseline index dacb2ddaf..bc944636c 100644 --- a/baselines/disable-packing-test/test/gapic-messaging-v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic-messaging-v1beta1.ts.baseline @@ -42,9 +42,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/disable-packing-test/test/gapic-testing-v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic-testing-v1beta1.ts.baseline index 816b708e0..1822f6f75 100644 --- a/baselines/disable-packing-test/test/gapic-testing-v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic-testing-v1beta1.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/dlp/src/v2/dlp_service_client.ts.baseline b/baselines/dlp/src/v2/dlp_service_client.ts.baseline index 00c684bfd..4eeb176d7 100644 --- a/baselines/dlp/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp/src/v2/dlp_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -2133,15 +2133,15 @@ export class DlpServiceClient { listInspectTemplates( request: protosTypes.google.privacy.dlp.v2.IListInspectTemplatesRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listInspectTemplates( request: protosTypes.google.privacy.dlp.v2.IListInspectTemplatesRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.privacy.dlp.v2.IInspectTemplate[], protosTypes.google.privacy.dlp.v2.IListInspectTemplatesRequest|null, protosTypes.google.privacy.dlp.v2.IListInspectTemplatesResponse>): void; @@ -2197,19 +2197,19 @@ export class DlpServiceClient { */ listInspectTemplates( request: protosTypes.google.privacy.dlp.v2.IListInspectTemplatesRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.privacy.dlp.v2.IInspectTemplate[], protosTypes.google.privacy.dlp.v2.IListInspectTemplatesRequest|null, protosTypes.google.privacy.dlp.v2.IListInspectTemplatesResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.privacy.dlp.v2.IInspectTemplate[], protosTypes.google.privacy.dlp.v2.IListInspectTemplatesRequest|null, protosTypes.google.privacy.dlp.v2.IListInspectTemplatesResponse>): - Promise<[ + Promise|void { + protosTypes.google.privacy.dlp.v2.IListInspectTemplatesResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -2301,15 +2301,15 @@ export class DlpServiceClient { listDeidentifyTemplates( request: protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listDeidentifyTemplates( request: protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.privacy.dlp.v2.IDeidentifyTemplate[], protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest|null, protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesResponse>): void; @@ -2366,19 +2366,19 @@ export class DlpServiceClient { */ listDeidentifyTemplates( request: protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.privacy.dlp.v2.IDeidentifyTemplate[], protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest|null, protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.privacy.dlp.v2.IDeidentifyTemplate[], protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest|null, protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesResponse>): - Promise<[ + Promise|void { + protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -2470,15 +2470,15 @@ export class DlpServiceClient { listJobTriggers( request: protosTypes.google.privacy.dlp.v2.IListJobTriggersRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listJobTriggers( request: protosTypes.google.privacy.dlp.v2.IListJobTriggersRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.privacy.dlp.v2.IJobTrigger[], protosTypes.google.privacy.dlp.v2.IListJobTriggersRequest|null, protosTypes.google.privacy.dlp.v2.IListJobTriggersResponse>): void; @@ -2560,19 +2560,19 @@ export class DlpServiceClient { */ listJobTriggers( request: protosTypes.google.privacy.dlp.v2.IListJobTriggersRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.privacy.dlp.v2.IJobTrigger[], protosTypes.google.privacy.dlp.v2.IListJobTriggersRequest|null, protosTypes.google.privacy.dlp.v2.IListJobTriggersResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.privacy.dlp.v2.IJobTrigger[], protosTypes.google.privacy.dlp.v2.IListJobTriggersRequest|null, protosTypes.google.privacy.dlp.v2.IListJobTriggersResponse>): - Promise<[ + Promise|void { + protosTypes.google.privacy.dlp.v2.IListJobTriggersResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -2690,15 +2690,15 @@ export class DlpServiceClient { listDlpJobs( request: protosTypes.google.privacy.dlp.v2.IListDlpJobsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listDlpJobs( request: protosTypes.google.privacy.dlp.v2.IListDlpJobsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.privacy.dlp.v2.IDlpJob[], protosTypes.google.privacy.dlp.v2.IListDlpJobsRequest|null, protosTypes.google.privacy.dlp.v2.IListDlpJobsResponse>): void; @@ -2783,19 +2783,19 @@ export class DlpServiceClient { */ listDlpJobs( request: protosTypes.google.privacy.dlp.v2.IListDlpJobsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.privacy.dlp.v2.IDlpJob[], protosTypes.google.privacy.dlp.v2.IListDlpJobsRequest|null, protosTypes.google.privacy.dlp.v2.IListDlpJobsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.privacy.dlp.v2.IDlpJob[], protosTypes.google.privacy.dlp.v2.IListDlpJobsRequest|null, protosTypes.google.privacy.dlp.v2.IListDlpJobsResponse>): - Promise<[ + Promise|void { + protosTypes.google.privacy.dlp.v2.IListDlpJobsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -2915,15 +2915,15 @@ export class DlpServiceClient { listStoredInfoTypes( request: protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listStoredInfoTypes( request: protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.privacy.dlp.v2.IStoredInfoType[], protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesRequest|null, protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesResponse>): void; @@ -2981,19 +2981,19 @@ export class DlpServiceClient { */ listStoredInfoTypes( request: protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.privacy.dlp.v2.IStoredInfoType[], protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesRequest|null, protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.privacy.dlp.v2.IStoredInfoType[], protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesRequest|null, protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesResponse>): - Promise<[ + Promise|void { + protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/dlp/test/gapic-dlp_service-v2.ts.baseline b/baselines/dlp/test/gapic-dlp_service-v2.ts.baseline index 23816122f..2e4be89e7 100644 --- a/baselines/dlp/test/gapic-dlp_service-v2.ts.baseline +++ b/baselines/dlp/test/gapic-dlp_service-v2.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/kms/src/v1/key_management_service_client.ts.baseline b/baselines/kms/src/v1/key_management_service_client.ts.baseline index 48fc2c0b5..d7d0a7278 100644 --- a/baselines/kms/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms/src/v1/key_management_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -1577,15 +1577,15 @@ export class KeyManagementServiceClient { listKeyRings( request: protosTypes.google.cloud.kms.v1.IListKeyRingsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listKeyRings( request: protosTypes.google.cloud.kms.v1.IListKeyRingsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.cloud.kms.v1.IKeyRing[], protosTypes.google.cloud.kms.v1.IListKeyRingsRequest|null, protosTypes.google.cloud.kms.v1.IListKeyRingsResponse>): void; @@ -1630,19 +1630,19 @@ export class KeyManagementServiceClient { */ listKeyRings( request: protosTypes.google.cloud.kms.v1.IListKeyRingsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.cloud.kms.v1.IKeyRing[], protosTypes.google.cloud.kms.v1.IListKeyRingsRequest|null, protosTypes.google.cloud.kms.v1.IListKeyRingsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.cloud.kms.v1.IKeyRing[], protosTypes.google.cloud.kms.v1.IListKeyRingsRequest|null, protosTypes.google.cloud.kms.v1.IListKeyRingsResponse>): - Promise<[ + Promise|void { + protosTypes.google.cloud.kms.v1.IListKeyRingsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1724,15 +1724,15 @@ export class KeyManagementServiceClient { listCryptoKeys( request: protosTypes.google.cloud.kms.v1.IListCryptoKeysRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listCryptoKeys( request: protosTypes.google.cloud.kms.v1.IListCryptoKeysRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.cloud.kms.v1.ICryptoKey[], protosTypes.google.cloud.kms.v1.IListCryptoKeysRequest|null, protosTypes.google.cloud.kms.v1.IListCryptoKeysResponse>): void; @@ -1779,19 +1779,19 @@ export class KeyManagementServiceClient { */ listCryptoKeys( request: protosTypes.google.cloud.kms.v1.IListCryptoKeysRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.cloud.kms.v1.ICryptoKey[], protosTypes.google.cloud.kms.v1.IListCryptoKeysRequest|null, protosTypes.google.cloud.kms.v1.IListCryptoKeysResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.cloud.kms.v1.ICryptoKey[], protosTypes.google.cloud.kms.v1.IListCryptoKeysRequest|null, protosTypes.google.cloud.kms.v1.IListCryptoKeysResponse>): - Promise<[ + Promise|void { + protosTypes.google.cloud.kms.v1.IListCryptoKeysResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1875,15 +1875,15 @@ export class KeyManagementServiceClient { listCryptoKeyVersions( request: protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listCryptoKeyVersions( request: protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.cloud.kms.v1.ICryptoKeyVersion[], protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsRequest|null, protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsResponse>): void; @@ -1931,19 +1931,19 @@ export class KeyManagementServiceClient { */ listCryptoKeyVersions( request: protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.cloud.kms.v1.ICryptoKeyVersion[], protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsRequest|null, protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.cloud.kms.v1.ICryptoKeyVersion[], protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsRequest|null, protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsResponse>): - Promise<[ + Promise|void { + protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -2028,15 +2028,15 @@ export class KeyManagementServiceClient { listImportJobs( request: protosTypes.google.cloud.kms.v1.IListImportJobsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listImportJobs( request: protosTypes.google.cloud.kms.v1.IListImportJobsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.cloud.kms.v1.IImportJob[], protosTypes.google.cloud.kms.v1.IListImportJobsRequest|null, protosTypes.google.cloud.kms.v1.IListImportJobsResponse>): void; @@ -2081,19 +2081,19 @@ export class KeyManagementServiceClient { */ listImportJobs( request: protosTypes.google.cloud.kms.v1.IListImportJobsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.cloud.kms.v1.IImportJob[], protosTypes.google.cloud.kms.v1.IListImportJobsRequest|null, protosTypes.google.cloud.kms.v1.IListImportJobsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.cloud.kms.v1.IImportJob[], protosTypes.google.cloud.kms.v1.IListImportJobsRequest|null, protosTypes.google.cloud.kms.v1.IListImportJobsResponse>): - Promise<[ + Promise|void { + protosTypes.google.cloud.kms.v1.IListImportJobsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/kms/test/gapic-key_management_service-v1.ts.baseline b/baselines/kms/test/gapic-key_management_service-v1.ts.baseline index 462647366..431bddcdc 100644 --- a/baselines/kms/test/gapic-key_management_service-v1.ts.baseline +++ b/baselines/kms/test/gapic-key_management_service-v1.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/logging/src/v2/config_service_v2_client.ts.baseline b/baselines/logging/src/v2/config_service_v2_client.ts.baseline index 91757ca41..c6f0e6234 100644 --- a/baselines/logging/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/config_service_v2_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -1294,15 +1294,15 @@ export class ConfigServiceV2Client { listBuckets( request: protosTypes.google.logging.v2.IListBucketsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listBuckets( request: protosTypes.google.logging.v2.IListBucketsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.logging.v2.ILogBucket[], protosTypes.google.logging.v2.IListBucketsRequest|null, protosTypes.google.logging.v2.IListBucketsResponse>): void; @@ -1351,19 +1351,19 @@ export class ConfigServiceV2Client { */ listBuckets( request: protosTypes.google.logging.v2.IListBucketsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.logging.v2.ILogBucket[], protosTypes.google.logging.v2.IListBucketsRequest|null, protosTypes.google.logging.v2.IListBucketsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.logging.v2.ILogBucket[], protosTypes.google.logging.v2.IListBucketsRequest|null, protosTypes.google.logging.v2.IListBucketsResponse>): - Promise<[ + Promise|void { + protosTypes.google.logging.v2.IListBucketsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1449,15 +1449,15 @@ export class ConfigServiceV2Client { listSinks( request: protosTypes.google.logging.v2.IListSinksRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listSinks( request: protosTypes.google.logging.v2.IListSinksRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.logging.v2.ILogSink[], protosTypes.google.logging.v2.IListSinksRequest|null, protosTypes.google.logging.v2.IListSinksResponse>): void; @@ -1502,19 +1502,19 @@ export class ConfigServiceV2Client { */ listSinks( request: protosTypes.google.logging.v2.IListSinksRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.logging.v2.ILogSink[], protosTypes.google.logging.v2.IListSinksRequest|null, protosTypes.google.logging.v2.IListSinksResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.logging.v2.ILogSink[], protosTypes.google.logging.v2.IListSinksRequest|null, protosTypes.google.logging.v2.IListSinksResponse>): - Promise<[ + Promise|void { + protosTypes.google.logging.v2.IListSinksResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1596,15 +1596,15 @@ export class ConfigServiceV2Client { listExclusions( request: protosTypes.google.logging.v2.IListExclusionsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listExclusions( request: protosTypes.google.logging.v2.IListExclusionsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.logging.v2.ILogExclusion[], protosTypes.google.logging.v2.IListExclusionsRequest|null, protosTypes.google.logging.v2.IListExclusionsResponse>): void; @@ -1649,19 +1649,19 @@ export class ConfigServiceV2Client { */ listExclusions( request: protosTypes.google.logging.v2.IListExclusionsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.logging.v2.ILogExclusion[], protosTypes.google.logging.v2.IListExclusionsRequest|null, protosTypes.google.logging.v2.IListExclusionsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.logging.v2.ILogExclusion[], protosTypes.google.logging.v2.IListExclusionsRequest|null, protosTypes.google.logging.v2.IListExclusionsResponse>): - Promise<[ + Promise|void { + protosTypes.google.logging.v2.IListExclusionsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline index 431a5a0d2..2f755a31f 100644 --- a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -571,15 +571,15 @@ export class LoggingServiceV2Client { listLogEntries( request: protosTypes.google.logging.v2.IListLogEntriesRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listLogEntries( request: protosTypes.google.logging.v2.IListLogEntriesRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.logging.v2.ILogEntry[], protosTypes.google.logging.v2.IListLogEntriesRequest|null, protosTypes.google.logging.v2.IListLogEntriesResponse>): void; @@ -645,19 +645,19 @@ export class LoggingServiceV2Client { */ listLogEntries( request: protosTypes.google.logging.v2.IListLogEntriesRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.logging.v2.ILogEntry[], protosTypes.google.logging.v2.IListLogEntriesRequest|null, protosTypes.google.logging.v2.IListLogEntriesResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.logging.v2.ILogEntry[], protosTypes.google.logging.v2.IListLogEntriesRequest|null, protosTypes.google.logging.v2.IListLogEntriesResponse>): - Promise<[ + Promise|void { + protosTypes.google.logging.v2.IListLogEntriesResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -744,15 +744,15 @@ export class LoggingServiceV2Client { listMonitoredResourceDescriptors( request: protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listMonitoredResourceDescriptors( request: protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.api.IMonitoredResourceDescriptor[], protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsRequest|null, protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsResponse>): void; @@ -790,19 +790,19 @@ export class LoggingServiceV2Client { */ listMonitoredResourceDescriptors( request: protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.api.IMonitoredResourceDescriptor[], protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsRequest|null, protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.api.IMonitoredResourceDescriptor[], protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsRequest|null, protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsResponse>): - Promise<[ + Promise|void { + protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -863,15 +863,15 @@ export class LoggingServiceV2Client { listLogs( request: protosTypes.google.logging.v2.IListLogsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listLogs( request: protosTypes.google.logging.v2.IListLogsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< string[], protosTypes.google.logging.v2.IListLogsRequest|null, protosTypes.google.logging.v2.IListLogsResponse>): void; @@ -917,19 +917,19 @@ export class LoggingServiceV2Client { */ listLogs( request: protosTypes.google.logging.v2.IListLogsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< string[], protosTypes.google.logging.v2.IListLogsRequest|null, protosTypes.google.logging.v2.IListLogsResponse>, - callback?: Callback< + callback?: PaginationCallback< string[], protosTypes.google.logging.v2.IListLogsRequest|null, protosTypes.google.logging.v2.IListLogsResponse>): - Promise<[ + Promise|void { + protosTypes.google.logging.v2.IListLogsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline index f60f8c421..572462e5c 100644 --- a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -606,15 +606,15 @@ export class MetricsServiceV2Client { listLogMetrics( request: protosTypes.google.logging.v2.IListLogMetricsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listLogMetrics( request: protosTypes.google.logging.v2.IListLogMetricsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.logging.v2.ILogMetric[], protosTypes.google.logging.v2.IListLogMetricsRequest|null, protosTypes.google.logging.v2.IListLogMetricsResponse>): void; @@ -656,19 +656,19 @@ export class MetricsServiceV2Client { */ listLogMetrics( request: protosTypes.google.logging.v2.IListLogMetricsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.logging.v2.ILogMetric[], protosTypes.google.logging.v2.IListLogMetricsRequest|null, protosTypes.google.logging.v2.IListLogMetricsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.logging.v2.ILogMetric[], protosTypes.google.logging.v2.IListLogMetricsRequest|null, protosTypes.google.logging.v2.IListLogMetricsResponse>): - Promise<[ + Promise|void { + protosTypes.google.logging.v2.IListLogMetricsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/logging/test/gapic-config_service_v2-v2.ts.baseline b/baselines/logging/test/gapic-config_service_v2-v2.ts.baseline index 940aa94ac..f36f74bc1 100644 --- a/baselines/logging/test/gapic-config_service_v2-v2.ts.baseline +++ b/baselines/logging/test/gapic-config_service_v2-v2.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/logging/test/gapic-logging_service_v2-v2.ts.baseline b/baselines/logging/test/gapic-logging_service_v2-v2.ts.baseline index 7f0721646..f89c68c50 100644 --- a/baselines/logging/test/gapic-logging_service_v2-v2.ts.baseline +++ b/baselines/logging/test/gapic-logging_service_v2-v2.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/logging/test/gapic-metrics_service_v2-v2.ts.baseline b/baselines/logging/test/gapic-metrics_service_v2-v2.ts.baseline index 37f4bb849..57d7da271 100644 --- a/baselines/logging/test/gapic-metrics_service_v2-v2.ts.baseline +++ b/baselines/logging/test/gapic-metrics_service_v2-v2.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline index ac560db12..a9e8bcb9d 100644 --- a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -644,15 +644,15 @@ export class AlertPolicyServiceClient { listAlertPolicies( request: protosTypes.google.monitoring.v3.IListAlertPoliciesRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listAlertPolicies( request: protosTypes.google.monitoring.v3.IListAlertPoliciesRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.monitoring.v3.IAlertPolicy[], protosTypes.google.monitoring.v3.IListAlertPoliciesRequest|null, protosTypes.google.monitoring.v3.IListAlertPoliciesResponse>): void; @@ -710,19 +710,19 @@ export class AlertPolicyServiceClient { */ listAlertPolicies( request: protosTypes.google.monitoring.v3.IListAlertPoliciesRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.monitoring.v3.IAlertPolicy[], protosTypes.google.monitoring.v3.IListAlertPoliciesRequest|null, protosTypes.google.monitoring.v3.IListAlertPoliciesResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.monitoring.v3.IAlertPolicy[], protosTypes.google.monitoring.v3.IListAlertPoliciesRequest|null, protosTypes.google.monitoring.v3.IListAlertPoliciesResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListAlertPoliciesResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/src/v3/group_service_client.ts.baseline b/baselines/monitoring/src/v3/group_service_client.ts.baseline index d45245dde..e14a105dc 100644 --- a/baselines/monitoring/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/group_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -620,15 +620,15 @@ export class GroupServiceClient { listGroups( request: protosTypes.google.monitoring.v3.IListGroupsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listGroups( request: protosTypes.google.monitoring.v3.IListGroupsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.monitoring.v3.IGroup[], protosTypes.google.monitoring.v3.IListGroupsRequest|null, protosTypes.google.monitoring.v3.IListGroupsResponse>): void; @@ -681,19 +681,19 @@ export class GroupServiceClient { */ listGroups( request: protosTypes.google.monitoring.v3.IListGroupsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.monitoring.v3.IGroup[], protosTypes.google.monitoring.v3.IListGroupsRequest|null, protosTypes.google.monitoring.v3.IListGroupsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.monitoring.v3.IGroup[], protosTypes.google.monitoring.v3.IListGroupsRequest|null, protosTypes.google.monitoring.v3.IListGroupsResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListGroupsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -783,15 +783,15 @@ export class GroupServiceClient { listGroupMembers( request: protosTypes.google.monitoring.v3.IListGroupMembersRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listGroupMembers( request: protosTypes.google.monitoring.v3.IListGroupMembersRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.api.IMonitoredResource[], protosTypes.google.monitoring.v3.IListGroupMembersRequest|null, protosTypes.google.monitoring.v3.IListGroupMembersResponse>): void; @@ -842,19 +842,19 @@ export class GroupServiceClient { */ listGroupMembers( request: protosTypes.google.monitoring.v3.IListGroupMembersRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.api.IMonitoredResource[], protosTypes.google.monitoring.v3.IListGroupMembersRequest|null, protosTypes.google.monitoring.v3.IListGroupMembersResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.api.IMonitoredResource[], protosTypes.google.monitoring.v3.IListGroupMembersRequest|null, protosTypes.google.monitoring.v3.IListGroupMembersResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListGroupMembersResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/src/v3/metric_service_client.ts.baseline b/baselines/monitoring/src/v3/metric_service_client.ts.baseline index 258f13ef9..142f594ab 100644 --- a/baselines/monitoring/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/metric_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -703,15 +703,15 @@ export class MetricServiceClient { listMonitoredResourceDescriptors( request: protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listMonitoredResourceDescriptors( request: protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.api.IMonitoredResourceDescriptor[], protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse>): void; @@ -757,19 +757,19 @@ export class MetricServiceClient { */ listMonitoredResourceDescriptors( request: protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.api.IMonitoredResourceDescriptor[], protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.api.IMonitoredResourceDescriptor[], protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -852,15 +852,15 @@ export class MetricServiceClient { listMetricDescriptors( request: protosTypes.google.monitoring.v3.IListMetricDescriptorsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listMetricDescriptors( request: protosTypes.google.monitoring.v3.IListMetricDescriptorsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.api.IMetricDescriptor[], protosTypes.google.monitoring.v3.IListMetricDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListMetricDescriptorsResponse>): void; @@ -907,19 +907,19 @@ export class MetricServiceClient { */ listMetricDescriptors( request: protosTypes.google.monitoring.v3.IListMetricDescriptorsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.api.IMetricDescriptor[], protosTypes.google.monitoring.v3.IListMetricDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListMetricDescriptorsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.api.IMetricDescriptor[], protosTypes.google.monitoring.v3.IListMetricDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListMetricDescriptorsResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListMetricDescriptorsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1003,15 +1003,15 @@ export class MetricServiceClient { listTimeSeries( request: protosTypes.google.monitoring.v3.IListTimeSeriesRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listTimeSeries( request: protosTypes.google.monitoring.v3.IListTimeSeriesRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.monitoring.v3.ITimeSeries[], protosTypes.google.monitoring.v3.IListTimeSeriesRequest|null, protosTypes.google.monitoring.v3.IListTimeSeriesResponse>): void; @@ -1076,19 +1076,19 @@ export class MetricServiceClient { */ listTimeSeries( request: protosTypes.google.monitoring.v3.IListTimeSeriesRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.monitoring.v3.ITimeSeries[], protosTypes.google.monitoring.v3.IListTimeSeriesRequest|null, protosTypes.google.monitoring.v3.IListTimeSeriesResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.monitoring.v3.ITimeSeries[], protosTypes.google.monitoring.v3.IListTimeSeriesRequest|null, protosTypes.google.monitoring.v3.IListTimeSeriesResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListTimeSeriesResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline index 2f9c3b925..9bb9a13c8 100644 --- a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -906,15 +906,15 @@ export class NotificationChannelServiceClient { listNotificationChannelDescriptors( request: protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listNotificationChannelDescriptors( request: protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.monitoring.v3.INotificationChannelDescriptor[], protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsResponse>): void; @@ -962,19 +962,19 @@ export class NotificationChannelServiceClient { */ listNotificationChannelDescriptors( request: protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.monitoring.v3.INotificationChannelDescriptor[], protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.monitoring.v3.INotificationChannelDescriptor[], protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1058,15 +1058,15 @@ export class NotificationChannelServiceClient { listNotificationChannels( request: protosTypes.google.monitoring.v3.IListNotificationChannelsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listNotificationChannels( request: protosTypes.google.monitoring.v3.IListNotificationChannelsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.monitoring.v3.INotificationChannel[], protosTypes.google.monitoring.v3.IListNotificationChannelsRequest|null, protosTypes.google.monitoring.v3.IListNotificationChannelsResponse>): void; @@ -1124,19 +1124,19 @@ export class NotificationChannelServiceClient { */ listNotificationChannels( request: protosTypes.google.monitoring.v3.IListNotificationChannelsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.monitoring.v3.INotificationChannel[], protosTypes.google.monitoring.v3.IListNotificationChannelsRequest|null, protosTypes.google.monitoring.v3.IListNotificationChannelsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.monitoring.v3.INotificationChannel[], protosTypes.google.monitoring.v3.IListNotificationChannelsRequest|null, protosTypes.google.monitoring.v3.IListNotificationChannelsResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListNotificationChannelsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline index 8229c8136..656d9415a 100644 --- a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -868,15 +868,15 @@ export class ServiceMonitoringServiceClient { listServices( request: protosTypes.google.monitoring.v3.IListServicesRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listServices( request: protosTypes.google.monitoring.v3.IListServicesRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.monitoring.v3.IService[], protosTypes.google.monitoring.v3.IListServicesRequest|null, protosTypes.google.monitoring.v3.IListServicesResponse>): void; @@ -931,19 +931,19 @@ export class ServiceMonitoringServiceClient { */ listServices( request: protosTypes.google.monitoring.v3.IListServicesRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.monitoring.v3.IService[], protosTypes.google.monitoring.v3.IListServicesRequest|null, protosTypes.google.monitoring.v3.IListServicesResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.monitoring.v3.IService[], protosTypes.google.monitoring.v3.IListServicesRequest|null, protosTypes.google.monitoring.v3.IListServicesResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListServicesResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1035,15 +1035,15 @@ export class ServiceMonitoringServiceClient { listServiceLevelObjectives( request: protosTypes.google.monitoring.v3.IListServiceLevelObjectivesRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listServiceLevelObjectives( request: protosTypes.google.monitoring.v3.IListServiceLevelObjectivesRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.monitoring.v3.IServiceLevelObjective[], protosTypes.google.monitoring.v3.IListServiceLevelObjectivesRequest|null, protosTypes.google.monitoring.v3.IListServiceLevelObjectivesResponse>): void; @@ -1089,19 +1089,19 @@ export class ServiceMonitoringServiceClient { */ listServiceLevelObjectives( request: protosTypes.google.monitoring.v3.IListServiceLevelObjectivesRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.monitoring.v3.IServiceLevelObjective[], protosTypes.google.monitoring.v3.IListServiceLevelObjectivesRequest|null, protosTypes.google.monitoring.v3.IListServiceLevelObjectivesResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.monitoring.v3.IServiceLevelObjective[], protosTypes.google.monitoring.v3.IListServiceLevelObjectivesRequest|null, protosTypes.google.monitoring.v3.IListServiceLevelObjectivesResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListServiceLevelObjectivesResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline index 13e48aa26..c714bd8f4 100644 --- a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -625,15 +625,15 @@ export class UptimeCheckServiceClient { listUptimeCheckConfigs( request: protosTypes.google.monitoring.v3.IListUptimeCheckConfigsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listUptimeCheckConfigs( request: protosTypes.google.monitoring.v3.IListUptimeCheckConfigsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.monitoring.v3.IUptimeCheckConfig[], protosTypes.google.monitoring.v3.IListUptimeCheckConfigsRequest|null, protosTypes.google.monitoring.v3.IListUptimeCheckConfigsResponse>): void; @@ -675,19 +675,19 @@ export class UptimeCheckServiceClient { */ listUptimeCheckConfigs( request: protosTypes.google.monitoring.v3.IListUptimeCheckConfigsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.monitoring.v3.IUptimeCheckConfig[], protosTypes.google.monitoring.v3.IListUptimeCheckConfigsRequest|null, protosTypes.google.monitoring.v3.IListUptimeCheckConfigsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.monitoring.v3.IUptimeCheckConfig[], protosTypes.google.monitoring.v3.IListUptimeCheckConfigsRequest|null, protosTypes.google.monitoring.v3.IListUptimeCheckConfigsResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListUptimeCheckConfigsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -765,15 +765,15 @@ export class UptimeCheckServiceClient { listUptimeCheckIps( request: protosTypes.google.monitoring.v3.IListUptimeCheckIpsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listUptimeCheckIps( request: protosTypes.google.monitoring.v3.IListUptimeCheckIpsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.monitoring.v3.IUptimeCheckIp[], protosTypes.google.monitoring.v3.IListUptimeCheckIpsRequest|null, protosTypes.google.monitoring.v3.IListUptimeCheckIpsResponse>): void; @@ -813,19 +813,19 @@ export class UptimeCheckServiceClient { */ listUptimeCheckIps( request: protosTypes.google.monitoring.v3.IListUptimeCheckIpsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.monitoring.v3.IUptimeCheckIp[], protosTypes.google.monitoring.v3.IListUptimeCheckIpsRequest|null, protosTypes.google.monitoring.v3.IListUptimeCheckIpsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.monitoring.v3.IUptimeCheckIp[], protosTypes.google.monitoring.v3.IListUptimeCheckIpsRequest|null, protosTypes.google.monitoring.v3.IListUptimeCheckIpsResponse>): - Promise<[ + Promise|void { + protosTypes.google.monitoring.v3.IListUptimeCheckIpsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/test/gapic-alert_policy_service-v3.ts.baseline b/baselines/monitoring/test/gapic-alert_policy_service-v3.ts.baseline index cd1e5d7f1..79bfffa36 100644 --- a/baselines/monitoring/test/gapic-alert_policy_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-alert_policy_service-v3.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/monitoring/test/gapic-group_service-v3.ts.baseline b/baselines/monitoring/test/gapic-group_service-v3.ts.baseline index 2ba00231e..46aa02bdc 100644 --- a/baselines/monitoring/test/gapic-group_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-group_service-v3.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/monitoring/test/gapic-metric_service-v3.ts.baseline b/baselines/monitoring/test/gapic-metric_service-v3.ts.baseline index 4a23fb50a..967fb41b7 100644 --- a/baselines/monitoring/test/gapic-metric_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-metric_service-v3.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/monitoring/test/gapic-notification_channel_service-v3.ts.baseline b/baselines/monitoring/test/gapic-notification_channel_service-v3.ts.baseline index b54e2c95d..2c991cef4 100644 --- a/baselines/monitoring/test/gapic-notification_channel_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-notification_channel_service-v3.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/monitoring/test/gapic-service_monitoring_service-v3.ts.baseline b/baselines/monitoring/test/gapic-service_monitoring_service-v3.ts.baseline index 3254a6491..d5b7e949c 100644 --- a/baselines/monitoring/test/gapic-service_monitoring_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-service_monitoring_service-v3.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/monitoring/test/gapic-uptime_check_service-v3.ts.baseline b/baselines/monitoring/test/gapic-uptime_check_service-v3.ts.baseline index 15bcaaa0b..aa44eb334 100644 --- a/baselines/monitoring/test/gapic-uptime_check_service-v3.ts.baseline +++ b/baselines/monitoring/test/gapic-uptime_check_service-v3.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline index 035aaeb09..817cdb057 100644 --- a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -851,15 +851,15 @@ export class CloudRedisClient { listInstances( request: protosTypes.google.cloud.redis.v1beta1.IListInstancesRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listInstances( request: protosTypes.google.cloud.redis.v1beta1.IListInstancesRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.cloud.redis.v1beta1.IInstance[], protosTypes.google.cloud.redis.v1beta1.IListInstancesRequest|null, protosTypes.google.cloud.redis.v1beta1.IListInstancesResponse>): void; @@ -910,19 +910,19 @@ export class CloudRedisClient { */ listInstances( request: protosTypes.google.cloud.redis.v1beta1.IListInstancesRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.cloud.redis.v1beta1.IInstance[], protosTypes.google.cloud.redis.v1beta1.IListInstancesRequest|null, protosTypes.google.cloud.redis.v1beta1.IListInstancesResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.cloud.redis.v1beta1.IInstance[], protosTypes.google.cloud.redis.v1beta1.IListInstancesRequest|null, protosTypes.google.cloud.redis.v1beta1.IListInstancesResponse>): - Promise<[ + Promise|void { + protosTypes.google.cloud.redis.v1beta1.IListInstancesResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/redis/test/gapic-cloud_redis-v1beta1.ts.baseline b/baselines/redis/test/gapic-cloud_redis-v1beta1.ts.baseline index 31efacd36..647e586ae 100644 --- a/baselines/redis/test/gapic-cloud_redis-v1beta1.ts.baseline +++ b/baselines/redis/test/gapic-cloud_redis-v1beta1.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/showcase/src/v1beta1/echo_client.ts.baseline b/baselines/showcase/src/v1beta1/echo_client.ts.baseline index 24b113a4b..6b23cb5d8 100644 --- a/baselines/showcase/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/echo_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -589,15 +589,15 @@ export class EchoClient { pagedExpand( request: protosTypes.google.showcase.v1beta1.IPagedExpandRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; pagedExpand( request: protosTypes.google.showcase.v1beta1.IPagedExpandRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.IEchoResponse[], protosTypes.google.showcase.v1beta1.IPagedExpandRequest|null, protosTypes.google.showcase.v1beta1.IPagedExpandResponse>): void; @@ -633,19 +633,19 @@ export class EchoClient { */ pagedExpand( request: protosTypes.google.showcase.v1beta1.IPagedExpandRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.IEchoResponse[], protosTypes.google.showcase.v1beta1.IPagedExpandRequest|null, protosTypes.google.showcase.v1beta1.IPagedExpandResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.IEchoResponse[], protosTypes.google.showcase.v1beta1.IPagedExpandRequest|null, protosTypes.google.showcase.v1beta1.IPagedExpandResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IPagedExpandResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/showcase/src/v1beta1/identity_client.ts.baseline b/baselines/showcase/src/v1beta1/identity_client.ts.baseline index 6a252f164..cf2f0beb8 100644 --- a/baselines/showcase/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/identity_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -532,15 +532,15 @@ export class IdentityClient { listUsers( request: protosTypes.google.showcase.v1beta1.IListUsersRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listUsers( request: protosTypes.google.showcase.v1beta1.IListUsersRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.IUser[], protosTypes.google.showcase.v1beta1.IListUsersRequest|null, protosTypes.google.showcase.v1beta1.IListUsersResponse>): void; @@ -576,19 +576,19 @@ export class IdentityClient { */ listUsers( request: protosTypes.google.showcase.v1beta1.IListUsersRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.IUser[], protosTypes.google.showcase.v1beta1.IListUsersRequest|null, protosTypes.google.showcase.v1beta1.IListUsersResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.IUser[], protosTypes.google.showcase.v1beta1.IListUsersRequest|null, protosTypes.google.showcase.v1beta1.IListUsersResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IListUsersResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline index 4c2c9b641..925e403e7 100644 --- a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -982,15 +982,15 @@ export class MessagingClient { listRooms( request: protosTypes.google.showcase.v1beta1.IListRoomsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listRooms( request: protosTypes.google.showcase.v1beta1.IListRoomsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.IRoom[], protosTypes.google.showcase.v1beta1.IListRoomsRequest|null, protosTypes.google.showcase.v1beta1.IListRoomsResponse>): void; @@ -1026,19 +1026,19 @@ export class MessagingClient { */ listRooms( request: protosTypes.google.showcase.v1beta1.IListRoomsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.IRoom[], protosTypes.google.showcase.v1beta1.IListRoomsRequest|null, protosTypes.google.showcase.v1beta1.IListRoomsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.IRoom[], protosTypes.google.showcase.v1beta1.IListRoomsRequest|null, protosTypes.google.showcase.v1beta1.IListRoomsResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IListRoomsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1097,15 +1097,15 @@ export class MessagingClient { listBlurbs( request: protosTypes.google.showcase.v1beta1.IListBlurbsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listBlurbs( request: protosTypes.google.showcase.v1beta1.IListBlurbsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.IBlurb[], protosTypes.google.showcase.v1beta1.IListBlurbsRequest|null, protosTypes.google.showcase.v1beta1.IListBlurbsResponse>): void; @@ -1145,19 +1145,19 @@ export class MessagingClient { */ listBlurbs( request: protosTypes.google.showcase.v1beta1.IListBlurbsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.IBlurb[], protosTypes.google.showcase.v1beta1.IListBlurbsRequest|null, protosTypes.google.showcase.v1beta1.IListBlurbsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.IBlurb[], protosTypes.google.showcase.v1beta1.IListBlurbsRequest|null, protosTypes.google.showcase.v1beta1.IListBlurbsResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IListBlurbsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/showcase/src/v1beta1/testing_client.ts.baseline b/baselines/showcase/src/v1beta1/testing_client.ts.baseline index 709dc3346..2d7630bb0 100644 --- a/baselines/showcase/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/testing_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -668,15 +668,15 @@ export class TestingClient { listSessions( request: protosTypes.google.showcase.v1beta1.IListSessionsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listSessions( request: protosTypes.google.showcase.v1beta1.IListSessionsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.ISession[], protosTypes.google.showcase.v1beta1.IListSessionsRequest|null, protosTypes.google.showcase.v1beta1.IListSessionsResponse>): void; @@ -709,19 +709,19 @@ export class TestingClient { */ listSessions( request: protosTypes.google.showcase.v1beta1.IListSessionsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.ISession[], protosTypes.google.showcase.v1beta1.IListSessionsRequest|null, protosTypes.google.showcase.v1beta1.IListSessionsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.ISession[], protosTypes.google.showcase.v1beta1.IListSessionsRequest|null, protosTypes.google.showcase.v1beta1.IListSessionsResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IListSessionsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -777,15 +777,15 @@ export class TestingClient { listTests( request: protosTypes.google.showcase.v1beta1.IListTestsRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listTests( request: protosTypes.google.showcase.v1beta1.IListTestsRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.showcase.v1beta1.ITest[], protosTypes.google.showcase.v1beta1.IListTestsRequest|null, protosTypes.google.showcase.v1beta1.IListTestsResponse>): void; @@ -820,19 +820,19 @@ export class TestingClient { */ listTests( request: protosTypes.google.showcase.v1beta1.IListTestsRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.showcase.v1beta1.ITest[], protosTypes.google.showcase.v1beta1.IListTestsRequest|null, protosTypes.google.showcase.v1beta1.IListTestsResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.showcase.v1beta1.ITest[], protosTypes.google.showcase.v1beta1.IListTestsRequest|null, protosTypes.google.showcase.v1beta1.IListTestsResponse>): - Promise<[ + Promise|void { + protosTypes.google.showcase.v1beta1.IListTestsResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/showcase/test/gapic-echo-v1beta1.ts.baseline b/baselines/showcase/test/gapic-echo-v1beta1.ts.baseline index 76f0041c0..a5e2fdded 100644 --- a/baselines/showcase/test/gapic-echo-v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic-echo-v1beta1.ts.baseline @@ -42,9 +42,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/showcase/test/gapic-identity-v1beta1.ts.baseline b/baselines/showcase/test/gapic-identity-v1beta1.ts.baseline index a6df6a2dd..5e47d5d4b 100644 --- a/baselines/showcase/test/gapic-identity-v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic-identity-v1beta1.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/showcase/test/gapic-messaging-v1beta1.ts.baseline b/baselines/showcase/test/gapic-messaging-v1beta1.ts.baseline index dacb2ddaf..bc944636c 100644 --- a/baselines/showcase/test/gapic-messaging-v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic-messaging-v1beta1.ts.baseline @@ -42,9 +42,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/showcase/test/gapic-testing-v1beta1.ts.baseline b/baselines/showcase/test/gapic-testing-v1beta1.ts.baseline index 816b708e0..1822f6f75 100644 --- a/baselines/showcase/test/gapic-testing-v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic-testing-v1beta1.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/texttospeech/test/gapic-text_to_speech-v1.ts.baseline b/baselines/texttospeech/test/gapic-text_to_speech-v1.ts.baseline index b460d1ac4..61f017aa2 100644 --- a/baselines/texttospeech/test/gapic-text_to_speech-v1.ts.baseline +++ b/baselines/texttospeech/test/gapic-text_to_speech-v1.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline index 1e236d92d..057f79848 100644 --- a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -932,15 +932,15 @@ export class TranslationServiceClient { listGlossaries( request: protosTypes.google.cloud.translation.v3beta1.IListGlossariesRequest, options?: gax.CallOptions): - Promise<[ + Promise; + >>; listGlossaries( request: protosTypes.google.cloud.translation.v3beta1.IListGlossariesRequest, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< protosTypes.google.cloud.translation.v3beta1.IGlossary[], protosTypes.google.cloud.translation.v3beta1.IListGlossariesRequest|null, protosTypes.google.cloud.translation.v3beta1.IListGlossariesResponse>): void; @@ -984,19 +984,19 @@ export class TranslationServiceClient { */ listGlossaries( request: protosTypes.google.cloud.translation.v3beta1.IListGlossariesRequest, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< protosTypes.google.cloud.translation.v3beta1.IGlossary[], protosTypes.google.cloud.translation.v3beta1.IListGlossariesRequest|null, protosTypes.google.cloud.translation.v3beta1.IListGlossariesResponse>, - callback?: Callback< + callback?: PaginationCallback< protosTypes.google.cloud.translation.v3beta1.IGlossary[], protosTypes.google.cloud.translation.v3beta1.IListGlossariesRequest|null, protosTypes.google.cloud.translation.v3beta1.IListGlossariesResponse>): - Promise<[ + Promise|void { + protosTypes.google.cloud.translation.v3beta1.IListGlossariesResponse> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/translate/test/gapic-translation_service-v3beta1.ts.baseline b/baselines/translate/test/gapic-translation_service-v3beta1.ts.baseline index df40bda67..e3b7cc429 100644 --- a/baselines/translate/test/gapic-translation_service-v3beta1.ts.baseline +++ b/baselines/translate/test/gapic-translation_service-v3beta1.ts.baseline @@ -40,9 +40,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } function mockSimpleGrpcMethod(expectedRequest: {}, response: {} | null, error: FakeError | null) { diff --git a/package.json b/package.json index 8fc2c0044..8ca4471ea 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "c8": "^7.1.0", "codecov": "^3.6.5", "espower-typescript": "^9.0.2", - "gts": "next", + "gts": "^2.0.0-alpha.5", "mocha": "^7.1.1", "ncp": "^2.0.0", "rimraf": "^3.0.2", diff --git a/templates/typescript_gapic/src/$version/$service_client.ts.njk b/templates/typescript_gapic/src/$version/$service_client.ts.njk index f5f78c9c0..8dc2b0c25 100644 --- a/templates/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/typescript_gapic/src/$version/$service_client.ts.njk @@ -22,6 +22,7 @@ limitations under the License. import * as gax from 'google-gax'; import {APICallback, Callback, CallOptions, Descriptors, ClientOptions {%- if service.longRunning.length > 0 %}, LROperation{%- endif -%} +{%- if service.paging.length > 0 %}, PaginationCallback, PaginationResponse{%- endif -%} } from 'google-gax'; import * as path from 'path'; {% if (service.paging.length > 0) %} @@ -540,15 +541,15 @@ export class {{ service.name }}Client { {{ method.name.toCamelCase() }}( request: {{ util.toInterface(method.inputInterface) }}, options?: gax.CallOptions): - Promise<[ + Promise; + >>; {{ method.name.toCamelCase() }}( request: {{ util.toInterface(method.inputInterface) }}, options: gax.CallOptions, - callback: Callback< + callback: PaginationCallback< {{ util.toInterface(method.pagingResponseType) }}[], {{ util.toInterface(method.inputInterface) }}|null, {{ util.toInterface(method.outputInterface) }}>): void; @@ -557,19 +558,19 @@ export class {{ service.name }}Client { */ {{ method.name.toCamelCase() }}( request: {{ util.toInterface(method.inputInterface) }}, - optionsOrCallback?: gax.CallOptions|Callback< + optionsOrCallback?: gax.CallOptions|PaginationCallback< {{ util.toInterface(method.pagingResponseType) }}[], {{ util.toInterface(method.inputInterface) }}|null, {{ util.toInterface(method.outputInterface) }}>, - callback?: Callback< + callback?: PaginationCallback< {{ util.toInterface(method.pagingResponseType) }}[], {{ util.toInterface(method.inputInterface) }}|null, {{ util.toInterface(method.outputInterface) }}>): - Promise<[ + Promise|void { + {{ util.toInterface(method.outputInterface) }}> + >|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/templates/typescript_gapic/test/gapic-$service-$version.ts.njk b/templates/typescript_gapic/test/gapic-$service-$version.ts.njk index 2de5790ea..f634ba596 100644 --- a/templates/typescript_gapic/test/gapic-$service-$version.ts.njk +++ b/templates/typescript_gapic/test/gapic-$service-$version.ts.njk @@ -44,9 +44,7 @@ export interface Callback { } export class Operation{ - /* eslint-disable @typescript-eslint/no-empty-function */ constructor(){}; - /* eslint-disable @typescript-eslint/no-empty-function */ promise() {}; } diff --git a/typescript/test/test-application/test-ts.ts b/typescript/test/test-application/test-ts.ts index eaf1e8500..0fdfa8070 100644 --- a/typescript/test/test-application/test-ts.ts +++ b/typescript/test/test-application/test-ts.ts @@ -51,7 +51,7 @@ const TS_TEST_APPLICATION = path.join( 'test-application-ts' ); describe('Test application for TypeScript users', () => { - it('npm install showcase', async function() { + it('npm install showcase', async function () { this.timeout(120000); // copy protos to generated client library and copy test application to local. if (!fs.existsSync(path.join(SHOWCASE_LIB, 'protos'))) { From 92a27bcb421fb13602f714c0554de160305c99c6 Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 10:42:58 -0700 Subject: [PATCH 12/25] update gts to latest --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8ca4471ea..de335aac4 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "c8": "^7.1.0", "codecov": "^3.6.5", "espower-typescript": "^9.0.2", - "gts": "^2.0.0-alpha.5", + "gts": "^2.0.0-alpha.6", "mocha": "^7.1.1", "ncp": "^2.0.0", "rimraf": "^3.0.2", From d0f9727adcaf1486991af334620d74ad186211b5 Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 11:10:37 -0700 Subject: [PATCH 13/25] test --- .circleci/config.yml | 3 +++ baselines/bigquery-storage/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate/package.json | 2 +- package.json | 4 ++-- templates/typescript_gapic/package.json | 2 +- 13 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 31076e984..67ebf4053 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -70,6 +70,9 @@ jobs: command: &alltests | npm install npm test + pwd + cd .node_modules + cd .. npm run fix npm run compile npm run system-test diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index 1dc47250e..23216ae6b 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "next", + "gts": "2.0.0-alpha.6", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 346bbd5b6..bbe080e64 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "next", + "gts": "2.0.0-alpha.6", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index 07c64cc68..0b16ec22a 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "next", + "gts": "2.0.0-alpha.6", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index ea5e44370..8c7641202 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "next", + "gts": "2.0.0-alpha.6", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 8741933ce..30980ea8c 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "next", + "gts": "2.0.0-alpha.6", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index 81eafc5a8..d3170adf5 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "next", + "gts": "2.0.0-alpha.6", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 2582d0022..149309854 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "next", + "gts": "2.0.0-alpha.6", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 346bbd5b6..bbe080e64 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "next", + "gts": "2.0.0-alpha.6", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index e082ee347..d18af20d3 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "next", + "gts": "2.0.0-alpha.6", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 23e3b256b..e722e578f 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "next", + "gts": "2.0.0-alpha.6", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", diff --git a/package.json b/package.json index de335aac4..9032d4e31 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "ts-test-application": "mocha build/test/test-application/test-ts --timeout 600000" }, "dependencies": { - "@types/js-yaml": "^3.12.2", + "@types/js-yaml": "^3.12.3", "file-system": "^2.2.2", "fs-extra": "^9.0.0", "get-stdin": "^7.0.0", @@ -55,7 +55,7 @@ "@types/get-stdin": "^7.0.0", "@types/mocha": "^7.0.2", "@types/ncp": "^2.0.3", - "@types/node": "^13.9.3", + "@types/node": "^13.9.4", "@types/nunjucks": "^3.1.3", "@types/object-hash": "^1.3.1", "@types/rimraf": "^3.0.0", diff --git a/templates/typescript_gapic/package.json b/templates/typescript_gapic/package.json index b04605feb..3bb68c51c 100644 --- a/templates/typescript_gapic/package.json +++ b/templates/typescript_gapic/package.json @@ -30,7 +30,7 @@ "@types/mocha": "^5.2.7", "@types/node": "^12.12.30", "c8": "^7.1.0", - "gts": "next", + "gts": "2.0.0-alpha.6", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", From 8a3f17e52243bda52da6cf036eeb695a115d4616 Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 11:14:19 -0700 Subject: [PATCH 14/25] test --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 67ebf4053..c5507a126 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -71,7 +71,8 @@ jobs: npm install npm test pwd - cd .node_modules + cd node_modules + ls cd .. npm run fix npm run compile From f18194a25193425124ec2f24727713a0fdf7d599 Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 11:26:03 -0700 Subject: [PATCH 15/25] test --- .circleci/config.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c5507a126..cac31876f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -69,11 +69,8 @@ jobs: working_directory: /home/circleci/project/workspace/gapic-generator-typescript/.test-out-showcase command: &alltests | npm install + npm link npm test - pwd - cd node_modules - ls - cd .. npm run fix npm run compile npm run system-test From f75d0ad30e48c6a6617e75927c2f6983ede4989f Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 13:49:47 -0700 Subject: [PATCH 16/25] change back --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cac31876f..31076e984 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -69,7 +69,6 @@ jobs: working_directory: /home/circleci/project/workspace/gapic-generator-typescript/.test-out-showcase command: &alltests | npm install - npm link npm test npm run fix npm run compile From 69aad409bfce762368fc913d587440164ba3022a Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 14:01:14 -0700 Subject: [PATCH 17/25] test --- .circleci/config.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 31076e984..4d76aa4c3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,11 +29,12 @@ jobs: command: | npm run lint - run: - name: copy protos to generated client library + name: copy protos to generated client library & move .test-out-* to project/out/ command: | for dir in .test-out-* ; do cp -r test-fixtures/protos $dir done + mkdir /home/circleci/project/out && mv .test-out-* /home/circleci/project/out - persist_to_workspace: root: /home/circleci/project paths: @@ -66,7 +67,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Showcase library - working_directory: /home/circleci/project/workspace/gapic-generator-typescript/.test-out-showcase + working_directory: /home/circleci/project/workspace/out/.test-out-showcase command: &alltests | npm install npm test @@ -83,7 +84,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated KMS library - working_directory: /home/circleci/project/workspace/gapic-generator-typescript/.test-out-kms + working_directory: /home/circleci/project/workspace/out/.test-out-kms command: *alltests translateLibTest: docker: @@ -94,7 +95,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Translate library - working_directory: /home/circleci/project/workspace/gapic-generator-typescript/.test-out-translate + working_directory: /home/circleci/project/workspace/out/.test-out-translate command: *alltests monitoringLibTest: docker: @@ -105,7 +106,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Monitoring library - working_directory: /home/circleci/project/workspace/gapic-generator-typescript/.test-out-monitoring + working_directory: /home/circleci/project/workspace/out/.test-out-monitoring command: *alltests dlpLibTest: docker: @@ -116,7 +117,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated DLP library - working_directory: /home/circleci/project/workspace/gapic-generator-typescript/.test-out-dlp + working_directory: /home/circleci/project/workspace/out/.test-out-dlp command: *alltests ttsLibTest: docker: @@ -127,7 +128,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Text-to-Speech library - working_directory: /home/circleci/project/workspace/gapic-generator-typescript/.test-out-texttospeech + working_directory: /home/circleci/project/workspace/out/.test-out-texttospeech command: *alltests workflows: version: 2 From 05ae7ff72d73988aa4a68150c87f803a1879cbfa Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 14:18:19 -0700 Subject: [PATCH 18/25] test --- .circleci/config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4d76aa4c3..39e1844b1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -67,7 +67,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Showcase library - working_directory: /home/circleci/project/workspace/out/.test-out-showcase + working_directory: /home/circleci/project/out/.test-out-showcase command: &alltests | npm install npm test @@ -84,7 +84,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated KMS library - working_directory: /home/circleci/project/workspace/out/.test-out-kms + working_directory: /home/circleci/project/out/.test-out-kms command: *alltests translateLibTest: docker: @@ -95,7 +95,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Translate library - working_directory: /home/circleci/project/workspace/out/.test-out-translate + working_directory: /home/circleci/project/out/.test-out-translate command: *alltests monitoringLibTest: docker: @@ -106,7 +106,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Monitoring library - working_directory: /home/circleci/project/workspace/out/.test-out-monitoring + working_directory: /home/circleci/project/out/.test-out-monitoring command: *alltests dlpLibTest: docker: @@ -117,7 +117,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated DLP library - working_directory: /home/circleci/project/workspace/out/.test-out-dlp + working_directory: /home/circleci/project/out/.test-out-dlp command: *alltests ttsLibTest: docker: @@ -128,7 +128,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Text-to-Speech library - working_directory: /home/circleci/project/workspace/out/.test-out-texttospeech + working_directory: /home/circleci/project/out/.test-out-texttospeech command: *alltests workflows: version: 2 From a8265e2ac0e8cd9cb1e9ca349a92ec565a13b2ac Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 14:24:54 -0700 Subject: [PATCH 19/25] test --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 39e1844b1..cb928ae71 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -39,6 +39,7 @@ jobs: root: /home/circleci/project paths: - gapic-generator-typescript + - out showcaseTestApplications: docker: - image: circleci/node:10-browsers From 008006b4ed34685e50a8b625b6e5f7f3c6bdb753 Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 14:28:33 -0700 Subject: [PATCH 20/25] test --- .circleci/config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cb928ae71..036d56d7b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -68,7 +68,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Showcase library - working_directory: /home/circleci/project/out/.test-out-showcase + working_directory: /home/circleci/project/workspace/out/.test-out-showcase command: &alltests | npm install npm test @@ -85,7 +85,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated KMS library - working_directory: /home/circleci/project/out/.test-out-kms + working_directory: /home/circleci/project/workspace/out/.test-out-kms command: *alltests translateLibTest: docker: @@ -96,7 +96,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Translate library - working_directory: /home/circleci/project/out/.test-out-translate + working_directory: /home/circleci/project/workspace/out/.test-out-translate command: *alltests monitoringLibTest: docker: @@ -107,7 +107,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Monitoring library - working_directory: /home/circleci/project/out/.test-out-monitoring + working_directory: /home/circleci/project/workspace/out/.test-out-monitoring command: *alltests dlpLibTest: docker: @@ -118,7 +118,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated DLP library - working_directory: /home/circleci/project/out/.test-out-dlp + working_directory: /home/circleci/project/workspace/out/.test-out-dlp command: *alltests ttsLibTest: docker: @@ -129,7 +129,7 @@ jobs: at: workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Text-to-Speech library - working_directory: /home/circleci/project/out/.test-out-texttospeech + working_directory: /home/circleci/project/workspace/out/.test-out-texttospeech command: *alltests workflows: version: 2 From 6f8bf6df4a008831b817e67e2029a6cea1431721 Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 14:34:30 -0700 Subject: [PATCH 21/25] test --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 036d56d7b..58b6b2c0b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -34,7 +34,14 @@ jobs: for dir in .test-out-* ; do cp -r test-fixtures/protos $dir done + -run: + name: move testout folders to out/ + command: | mkdir /home/circleci/project/out && mv .test-out-* /home/circleci/project/out + pwd + cd /home/circleci/project/out + pwd + ls - persist_to_workspace: root: /home/circleci/project paths: @@ -70,6 +77,7 @@ jobs: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Showcase library working_directory: /home/circleci/project/workspace/out/.test-out-showcase command: &alltests | + pwd npm install npm test npm run fix From b1b5f6acda6706a1c1cc7d75e2f569832fa38f3e Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 14:36:07 -0700 Subject: [PATCH 22/25] test --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 58b6b2c0b..10d1f078c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -34,7 +34,7 @@ jobs: for dir in .test-out-* ; do cp -r test-fixtures/protos $dir done - -run: + - run: name: move testout folders to out/ command: | mkdir /home/circleci/project/out && mv .test-out-* /home/circleci/project/out From 5ffdd76e875d8111dd142c74a8af9e5eb9aa8657 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 25 Mar 2020 14:58:02 -0700 Subject: [PATCH 23/25] try this --- .circleci/config.yml | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 10d1f078c..178e29a24 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,34 +35,35 @@ jobs: cp -r test-fixtures/protos $dir done - run: - name: move testout folders to out/ + name: move test out folders to a separate folder command: | - mkdir /home/circleci/project/out && mv .test-out-* /home/circleci/project/out + mkdir /home/circleci/project/baselines + mv .test-out-* /home/circleci/project/baselines pwd - cd /home/circleci/project/out + cd /home/circleci/project/baselines pwd ls - persist_to_workspace: root: /home/circleci/project paths: - gapic-generator-typescript - - out + - baselines showcaseTestApplications: docker: - image: circleci/node:10-browsers steps: - checkout - attach_workspace: - at: workspace + at: /home/circleci/workspace - run: name: Run showcase test for Typescript users - working_directory: /home/circleci/project/workspace/gapic-generator-typescript + working_directory: /home/circleci/workspace/gapic-generator-typescript command: npm run ts-test-application environment: NPM_CONFIG_PREFIX: /tmp/.npm-global - run: name: Run showcase test for JavaScript users - working_directory: /home/circleci/project/workspace/gapic-generator-typescript + working_directory: /home/circleci/workspace/gapic-generator-typescript command: npm run js-test-application environment: NPM_CONFIG_PREFIX: /tmp/.npm-global @@ -72,10 +73,10 @@ jobs: steps: - checkout - attach_workspace: - at: workspace + at: /home/circleci/workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Showcase library - working_directory: /home/circleci/project/workspace/out/.test-out-showcase + working_directory: /home/circleci/workspace/baselines/.test-out-showcase command: &alltests | pwd npm install @@ -90,10 +91,10 @@ jobs: steps: - checkout - attach_workspace: - at: workspace + at: /home/circleci/workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated KMS library - working_directory: /home/circleci/project/workspace/out/.test-out-kms + working_directory: /home/circleci/workspace/baselines/.test-out-kms command: *alltests translateLibTest: docker: @@ -101,10 +102,10 @@ jobs: steps: - checkout - attach_workspace: - at: workspace + at: /home/circleci/workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Translate library - working_directory: /home/circleci/project/workspace/out/.test-out-translate + working_directory: /home/circleci/workspace/baselines/.test-out-translate command: *alltests monitoringLibTest: docker: @@ -112,10 +113,10 @@ jobs: steps: - checkout - attach_workspace: - at: workspace + at: /home/circleci/workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Monitoring library - working_directory: /home/circleci/project/workspace/out/.test-out-monitoring + working_directory: /home/circleci/workspace/baselines/.test-out-monitoring command: *alltests dlpLibTest: docker: @@ -123,10 +124,10 @@ jobs: steps: - checkout - attach_workspace: - at: workspace + at: /home/circleci/workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated DLP library - working_directory: /home/circleci/project/workspace/out/.test-out-dlp + working_directory: /home/circleci/workspace/baselines/.test-out-dlp command: *alltests ttsLibTest: docker: @@ -134,10 +135,10 @@ jobs: steps: - checkout - attach_workspace: - at: workspace + at: /home/circleci/workspace - run: name: Run unit tests, system tests, jsdoc generation, and gts fix of the generated Text-to-Speech library - working_directory: /home/circleci/project/workspace/out/.test-out-texttospeech + working_directory: /home/circleci/workspace/baselines/.test-out-texttospeech command: *alltests workflows: version: 2 From f7ba3d72ec5f48d67ae70bd569eff66abff79adb Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 25 Mar 2020 15:08:21 -0700 Subject: [PATCH 24/25] and finally --- .circleci/config.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 178e29a24..0c502c42e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -38,11 +38,7 @@ jobs: name: move test out folders to a separate folder command: | mkdir /home/circleci/project/baselines - mv .test-out-* /home/circleci/project/baselines - pwd - cd /home/circleci/project/baselines - pwd - ls + cp -r .test-out-* /home/circleci/project/baselines - persist_to_workspace: root: /home/circleci/project paths: From 688d87789aea2790370557665c34c3ae45aa2905 Mon Sep 17 00:00:00 2001 From: xiaozhenliugg Date: Wed, 25 Mar 2020 17:33:49 -0700 Subject: [PATCH 25/25] work! --- .../src/v1beta1/echo_client.ts.baseline | 12 ++--- .../src/v1beta1/identity_client.ts.baseline | 12 ++--- .../src/v1beta1/messaging_client.ts.baseline | 22 ++++---- .../src/v1beta1/testing_client.ts.baseline | 22 ++++---- .../dlp/src/v2/dlp_service_client.ts.baseline | 52 +++++++++---------- .../key_management_service_client.ts.baseline | 42 +++++++-------- .../v2/config_service_v2_client.ts.baseline | 32 ++++++------ .../v2/logging_service_v2_client.ts.baseline | 32 ++++++------ .../v2/metrics_service_v2_client.ts.baseline | 12 ++--- .../alert_policy_service_client.ts.baseline | 12 ++--- .../src/v3/group_service_client.ts.baseline | 22 ++++---- .../src/v3/metric_service_client.ts.baseline | 32 ++++++------ ...ication_channel_service_client.ts.baseline | 22 ++++---- ...vice_monitoring_service_client.ts.baseline | 22 ++++---- .../uptime_check_service_client.ts.baseline | 22 ++++---- .../v1beta1/cloud_redis_client.ts.baseline | 12 ++--- .../src/v1beta1/echo_client.ts.baseline | 12 ++--- .../src/v1beta1/identity_client.ts.baseline | 12 ++--- .../src/v1beta1/messaging_client.ts.baseline | 22 ++++---- .../src/v1beta1/testing_client.ts.baseline | 22 ++++---- .../translation_service_client.ts.baseline | 12 ++--- .../src/$version/$service_client.ts.njk | 12 ++--- 22 files changed, 237 insertions(+), 237 deletions(-) diff --git a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline index 6b23cb5d8..8dd192029 100644 --- a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -589,11 +589,11 @@ export class EchoClient { pagedExpand( request: protosTypes.google.showcase.v1beta1.IPagedExpandRequest, options?: gax.CallOptions): - Promise>; + ]>; pagedExpand( request: protosTypes.google.showcase.v1beta1.IPagedExpandRequest, options: gax.CallOptions, @@ -641,11 +641,11 @@ export class EchoClient { protosTypes.google.showcase.v1beta1.IEchoResponse[], protosTypes.google.showcase.v1beta1.IPagedExpandRequest|null, protosTypes.google.showcase.v1beta1.IPagedExpandResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IPagedExpandResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline index cf2f0beb8..cc926e5f9 100644 --- a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -532,11 +532,11 @@ export class IdentityClient { listUsers( request: protosTypes.google.showcase.v1beta1.IListUsersRequest, options?: gax.CallOptions): - Promise>; + ]>; listUsers( request: protosTypes.google.showcase.v1beta1.IListUsersRequest, options: gax.CallOptions, @@ -584,11 +584,11 @@ export class IdentityClient { protosTypes.google.showcase.v1beta1.IUser[], protosTypes.google.showcase.v1beta1.IListUsersRequest|null, protosTypes.google.showcase.v1beta1.IListUsersResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IListUsersResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline index 925e403e7..5ecd2027e 100644 --- a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -982,11 +982,11 @@ export class MessagingClient { listRooms( request: protosTypes.google.showcase.v1beta1.IListRoomsRequest, options?: gax.CallOptions): - Promise>; + ]>; listRooms( request: protosTypes.google.showcase.v1beta1.IListRoomsRequest, options: gax.CallOptions, @@ -1034,11 +1034,11 @@ export class MessagingClient { protosTypes.google.showcase.v1beta1.IRoom[], protosTypes.google.showcase.v1beta1.IListRoomsRequest|null, protosTypes.google.showcase.v1beta1.IListRoomsResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IListRoomsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1097,11 +1097,11 @@ export class MessagingClient { listBlurbs( request: protosTypes.google.showcase.v1beta1.IListBlurbsRequest, options?: gax.CallOptions): - Promise>; + ]>; listBlurbs( request: protosTypes.google.showcase.v1beta1.IListBlurbsRequest, options: gax.CallOptions, @@ -1153,11 +1153,11 @@ export class MessagingClient { protosTypes.google.showcase.v1beta1.IBlurb[], protosTypes.google.showcase.v1beta1.IListBlurbsRequest|null, protosTypes.google.showcase.v1beta1.IListBlurbsResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IListBlurbsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline index 2d7630bb0..f30fd322f 100644 --- a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -668,11 +668,11 @@ export class TestingClient { listSessions( request: protosTypes.google.showcase.v1beta1.IListSessionsRequest, options?: gax.CallOptions): - Promise>; + ]>; listSessions( request: protosTypes.google.showcase.v1beta1.IListSessionsRequest, options: gax.CallOptions, @@ -717,11 +717,11 @@ export class TestingClient { protosTypes.google.showcase.v1beta1.ISession[], protosTypes.google.showcase.v1beta1.IListSessionsRequest|null, protosTypes.google.showcase.v1beta1.IListSessionsResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IListSessionsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -777,11 +777,11 @@ export class TestingClient { listTests( request: protosTypes.google.showcase.v1beta1.IListTestsRequest, options?: gax.CallOptions): - Promise>; + ]>; listTests( request: protosTypes.google.showcase.v1beta1.IListTestsRequest, options: gax.CallOptions, @@ -828,11 +828,11 @@ export class TestingClient { protosTypes.google.showcase.v1beta1.ITest[], protosTypes.google.showcase.v1beta1.IListTestsRequest|null, protosTypes.google.showcase.v1beta1.IListTestsResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IListTestsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/dlp/src/v2/dlp_service_client.ts.baseline b/baselines/dlp/src/v2/dlp_service_client.ts.baseline index 4eeb176d7..e4a0802ff 100644 --- a/baselines/dlp/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp/src/v2/dlp_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -2133,11 +2133,11 @@ export class DlpServiceClient { listInspectTemplates( request: protosTypes.google.privacy.dlp.v2.IListInspectTemplatesRequest, options?: gax.CallOptions): - Promise>; + ]>; listInspectTemplates( request: protosTypes.google.privacy.dlp.v2.IListInspectTemplatesRequest, options: gax.CallOptions, @@ -2205,11 +2205,11 @@ export class DlpServiceClient { protosTypes.google.privacy.dlp.v2.IInspectTemplate[], protosTypes.google.privacy.dlp.v2.IListInspectTemplatesRequest|null, protosTypes.google.privacy.dlp.v2.IListInspectTemplatesResponse>): - Promise - >|void { + protosTypes.google.privacy.dlp.v2.IListInspectTemplatesResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -2301,11 +2301,11 @@ export class DlpServiceClient { listDeidentifyTemplates( request: protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, options?: gax.CallOptions): - Promise>; + ]>; listDeidentifyTemplates( request: protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, options: gax.CallOptions, @@ -2374,11 +2374,11 @@ export class DlpServiceClient { protosTypes.google.privacy.dlp.v2.IDeidentifyTemplate[], protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest|null, protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesResponse>): - Promise - >|void { + protosTypes.google.privacy.dlp.v2.IListDeidentifyTemplatesResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -2470,11 +2470,11 @@ export class DlpServiceClient { listJobTriggers( request: protosTypes.google.privacy.dlp.v2.IListJobTriggersRequest, options?: gax.CallOptions): - Promise>; + ]>; listJobTriggers( request: protosTypes.google.privacy.dlp.v2.IListJobTriggersRequest, options: gax.CallOptions, @@ -2568,11 +2568,11 @@ export class DlpServiceClient { protosTypes.google.privacy.dlp.v2.IJobTrigger[], protosTypes.google.privacy.dlp.v2.IListJobTriggersRequest|null, protosTypes.google.privacy.dlp.v2.IListJobTriggersResponse>): - Promise - >|void { + protosTypes.google.privacy.dlp.v2.IListJobTriggersResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -2690,11 +2690,11 @@ export class DlpServiceClient { listDlpJobs( request: protosTypes.google.privacy.dlp.v2.IListDlpJobsRequest, options?: gax.CallOptions): - Promise>; + ]>; listDlpJobs( request: protosTypes.google.privacy.dlp.v2.IListDlpJobsRequest, options: gax.CallOptions, @@ -2791,11 +2791,11 @@ export class DlpServiceClient { protosTypes.google.privacy.dlp.v2.IDlpJob[], protosTypes.google.privacy.dlp.v2.IListDlpJobsRequest|null, protosTypes.google.privacy.dlp.v2.IListDlpJobsResponse>): - Promise - >|void { + protosTypes.google.privacy.dlp.v2.IListDlpJobsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -2915,11 +2915,11 @@ export class DlpServiceClient { listStoredInfoTypes( request: protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options?: gax.CallOptions): - Promise>; + ]>; listStoredInfoTypes( request: protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options: gax.CallOptions, @@ -2989,11 +2989,11 @@ export class DlpServiceClient { protosTypes.google.privacy.dlp.v2.IStoredInfoType[], protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesRequest|null, protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesResponse>): - Promise - >|void { + protosTypes.google.privacy.dlp.v2.IListStoredInfoTypesResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/kms/src/v1/key_management_service_client.ts.baseline b/baselines/kms/src/v1/key_management_service_client.ts.baseline index d7d0a7278..57da22b71 100644 --- a/baselines/kms/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms/src/v1/key_management_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -1577,11 +1577,11 @@ export class KeyManagementServiceClient { listKeyRings( request: protosTypes.google.cloud.kms.v1.IListKeyRingsRequest, options?: gax.CallOptions): - Promise>; + ]>; listKeyRings( request: protosTypes.google.cloud.kms.v1.IListKeyRingsRequest, options: gax.CallOptions, @@ -1638,11 +1638,11 @@ export class KeyManagementServiceClient { protosTypes.google.cloud.kms.v1.IKeyRing[], protosTypes.google.cloud.kms.v1.IListKeyRingsRequest|null, protosTypes.google.cloud.kms.v1.IListKeyRingsResponse>): - Promise - >|void { + protosTypes.google.cloud.kms.v1.IListKeyRingsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1724,11 +1724,11 @@ export class KeyManagementServiceClient { listCryptoKeys( request: protosTypes.google.cloud.kms.v1.IListCryptoKeysRequest, options?: gax.CallOptions): - Promise>; + ]>; listCryptoKeys( request: protosTypes.google.cloud.kms.v1.IListCryptoKeysRequest, options: gax.CallOptions, @@ -1787,11 +1787,11 @@ export class KeyManagementServiceClient { protosTypes.google.cloud.kms.v1.ICryptoKey[], protosTypes.google.cloud.kms.v1.IListCryptoKeysRequest|null, protosTypes.google.cloud.kms.v1.IListCryptoKeysResponse>): - Promise - >|void { + protosTypes.google.cloud.kms.v1.IListCryptoKeysResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1875,11 +1875,11 @@ export class KeyManagementServiceClient { listCryptoKeyVersions( request: protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, options?: gax.CallOptions): - Promise>; + ]>; listCryptoKeyVersions( request: protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, options: gax.CallOptions, @@ -1939,11 +1939,11 @@ export class KeyManagementServiceClient { protosTypes.google.cloud.kms.v1.ICryptoKeyVersion[], protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsRequest|null, protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsResponse>): - Promise - >|void { + protosTypes.google.cloud.kms.v1.IListCryptoKeyVersionsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -2028,11 +2028,11 @@ export class KeyManagementServiceClient { listImportJobs( request: protosTypes.google.cloud.kms.v1.IListImportJobsRequest, options?: gax.CallOptions): - Promise>; + ]>; listImportJobs( request: protosTypes.google.cloud.kms.v1.IListImportJobsRequest, options: gax.CallOptions, @@ -2089,11 +2089,11 @@ export class KeyManagementServiceClient { protosTypes.google.cloud.kms.v1.IImportJob[], protosTypes.google.cloud.kms.v1.IListImportJobsRequest|null, protosTypes.google.cloud.kms.v1.IListImportJobsResponse>): - Promise - >|void { + protosTypes.google.cloud.kms.v1.IListImportJobsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/logging/src/v2/config_service_v2_client.ts.baseline b/baselines/logging/src/v2/config_service_v2_client.ts.baseline index c6f0e6234..86bc582cd 100644 --- a/baselines/logging/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/config_service_v2_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -1294,11 +1294,11 @@ export class ConfigServiceV2Client { listBuckets( request: protosTypes.google.logging.v2.IListBucketsRequest, options?: gax.CallOptions): - Promise>; + ]>; listBuckets( request: protosTypes.google.logging.v2.IListBucketsRequest, options: gax.CallOptions, @@ -1359,11 +1359,11 @@ export class ConfigServiceV2Client { protosTypes.google.logging.v2.ILogBucket[], protosTypes.google.logging.v2.IListBucketsRequest|null, protosTypes.google.logging.v2.IListBucketsResponse>): - Promise - >|void { + protosTypes.google.logging.v2.IListBucketsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1449,11 +1449,11 @@ export class ConfigServiceV2Client { listSinks( request: protosTypes.google.logging.v2.IListSinksRequest, options?: gax.CallOptions): - Promise>; + ]>; listSinks( request: protosTypes.google.logging.v2.IListSinksRequest, options: gax.CallOptions, @@ -1510,11 +1510,11 @@ export class ConfigServiceV2Client { protosTypes.google.logging.v2.ILogSink[], protosTypes.google.logging.v2.IListSinksRequest|null, protosTypes.google.logging.v2.IListSinksResponse>): - Promise - >|void { + protosTypes.google.logging.v2.IListSinksResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1596,11 +1596,11 @@ export class ConfigServiceV2Client { listExclusions( request: protosTypes.google.logging.v2.IListExclusionsRequest, options?: gax.CallOptions): - Promise>; + ]>; listExclusions( request: protosTypes.google.logging.v2.IListExclusionsRequest, options: gax.CallOptions, @@ -1657,11 +1657,11 @@ export class ConfigServiceV2Client { protosTypes.google.logging.v2.ILogExclusion[], protosTypes.google.logging.v2.IListExclusionsRequest|null, protosTypes.google.logging.v2.IListExclusionsResponse>): - Promise - >|void { + protosTypes.google.logging.v2.IListExclusionsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline index 2f755a31f..0a98cfd25 100644 --- a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -571,11 +571,11 @@ export class LoggingServiceV2Client { listLogEntries( request: protosTypes.google.logging.v2.IListLogEntriesRequest, options?: gax.CallOptions): - Promise>; + ]>; listLogEntries( request: protosTypes.google.logging.v2.IListLogEntriesRequest, options: gax.CallOptions, @@ -653,11 +653,11 @@ export class LoggingServiceV2Client { protosTypes.google.logging.v2.ILogEntry[], protosTypes.google.logging.v2.IListLogEntriesRequest|null, protosTypes.google.logging.v2.IListLogEntriesResponse>): - Promise - >|void { + protosTypes.google.logging.v2.IListLogEntriesResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -744,11 +744,11 @@ export class LoggingServiceV2Client { listMonitoredResourceDescriptors( request: protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsRequest, options?: gax.CallOptions): - Promise>; + ]>; listMonitoredResourceDescriptors( request: protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsRequest, options: gax.CallOptions, @@ -798,11 +798,11 @@ export class LoggingServiceV2Client { protosTypes.google.api.IMonitoredResourceDescriptor[], protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsRequest|null, protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsResponse>): - Promise - >|void { + protosTypes.google.logging.v2.IListMonitoredResourceDescriptorsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -863,11 +863,11 @@ export class LoggingServiceV2Client { listLogs( request: protosTypes.google.logging.v2.IListLogsRequest, options?: gax.CallOptions): - Promise>; + ]>; listLogs( request: protosTypes.google.logging.v2.IListLogsRequest, options: gax.CallOptions, @@ -925,11 +925,11 @@ export class LoggingServiceV2Client { string[], protosTypes.google.logging.v2.IListLogsRequest|null, protosTypes.google.logging.v2.IListLogsResponse>): - Promise - >|void { + protosTypes.google.logging.v2.IListLogsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline index 572462e5c..aa0aecfbd 100644 --- a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -606,11 +606,11 @@ export class MetricsServiceV2Client { listLogMetrics( request: protosTypes.google.logging.v2.IListLogMetricsRequest, options?: gax.CallOptions): - Promise>; + ]>; listLogMetrics( request: protosTypes.google.logging.v2.IListLogMetricsRequest, options: gax.CallOptions, @@ -664,11 +664,11 @@ export class MetricsServiceV2Client { protosTypes.google.logging.v2.ILogMetric[], protosTypes.google.logging.v2.IListLogMetricsRequest|null, protosTypes.google.logging.v2.IListLogMetricsResponse>): - Promise - >|void { + protosTypes.google.logging.v2.IListLogMetricsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline index a9e8bcb9d..a8e009604 100644 --- a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -644,11 +644,11 @@ export class AlertPolicyServiceClient { listAlertPolicies( request: protosTypes.google.monitoring.v3.IListAlertPoliciesRequest, options?: gax.CallOptions): - Promise>; + ]>; listAlertPolicies( request: protosTypes.google.monitoring.v3.IListAlertPoliciesRequest, options: gax.CallOptions, @@ -718,11 +718,11 @@ export class AlertPolicyServiceClient { protosTypes.google.monitoring.v3.IAlertPolicy[], protosTypes.google.monitoring.v3.IListAlertPoliciesRequest|null, protosTypes.google.monitoring.v3.IListAlertPoliciesResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListAlertPoliciesResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/src/v3/group_service_client.ts.baseline b/baselines/monitoring/src/v3/group_service_client.ts.baseline index e14a105dc..5f7f519e0 100644 --- a/baselines/monitoring/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/group_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -620,11 +620,11 @@ export class GroupServiceClient { listGroups( request: protosTypes.google.monitoring.v3.IListGroupsRequest, options?: gax.CallOptions): - Promise>; + ]>; listGroups( request: protosTypes.google.monitoring.v3.IListGroupsRequest, options: gax.CallOptions, @@ -689,11 +689,11 @@ export class GroupServiceClient { protosTypes.google.monitoring.v3.IGroup[], protosTypes.google.monitoring.v3.IListGroupsRequest|null, protosTypes.google.monitoring.v3.IListGroupsResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListGroupsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -783,11 +783,11 @@ export class GroupServiceClient { listGroupMembers( request: protosTypes.google.monitoring.v3.IListGroupMembersRequest, options?: gax.CallOptions): - Promise>; + ]>; listGroupMembers( request: protosTypes.google.monitoring.v3.IListGroupMembersRequest, options: gax.CallOptions, @@ -850,11 +850,11 @@ export class GroupServiceClient { protosTypes.google.api.IMonitoredResource[], protosTypes.google.monitoring.v3.IListGroupMembersRequest|null, protosTypes.google.monitoring.v3.IListGroupMembersResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListGroupMembersResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/src/v3/metric_service_client.ts.baseline b/baselines/monitoring/src/v3/metric_service_client.ts.baseline index 142f594ab..fb3ab04ad 100644 --- a/baselines/monitoring/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/metric_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -703,11 +703,11 @@ export class MetricServiceClient { listMonitoredResourceDescriptors( request: protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, options?: gax.CallOptions): - Promise>; + ]>; listMonitoredResourceDescriptors( request: protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, options: gax.CallOptions, @@ -765,11 +765,11 @@ export class MetricServiceClient { protosTypes.google.api.IMonitoredResourceDescriptor[], protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListMonitoredResourceDescriptorsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -852,11 +852,11 @@ export class MetricServiceClient { listMetricDescriptors( request: protosTypes.google.monitoring.v3.IListMetricDescriptorsRequest, options?: gax.CallOptions): - Promise>; + ]>; listMetricDescriptors( request: protosTypes.google.monitoring.v3.IListMetricDescriptorsRequest, options: gax.CallOptions, @@ -915,11 +915,11 @@ export class MetricServiceClient { protosTypes.google.api.IMetricDescriptor[], protosTypes.google.monitoring.v3.IListMetricDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListMetricDescriptorsResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListMetricDescriptorsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1003,11 +1003,11 @@ export class MetricServiceClient { listTimeSeries( request: protosTypes.google.monitoring.v3.IListTimeSeriesRequest, options?: gax.CallOptions): - Promise>; + ]>; listTimeSeries( request: protosTypes.google.monitoring.v3.IListTimeSeriesRequest, options: gax.CallOptions, @@ -1084,11 +1084,11 @@ export class MetricServiceClient { protosTypes.google.monitoring.v3.ITimeSeries[], protosTypes.google.monitoring.v3.IListTimeSeriesRequest|null, protosTypes.google.monitoring.v3.IListTimeSeriesResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListTimeSeriesResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline index 9bb9a13c8..ca3529a66 100644 --- a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -906,11 +906,11 @@ export class NotificationChannelServiceClient { listNotificationChannelDescriptors( request: protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsRequest, options?: gax.CallOptions): - Promise>; + ]>; listNotificationChannelDescriptors( request: protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsRequest, options: gax.CallOptions, @@ -970,11 +970,11 @@ export class NotificationChannelServiceClient { protosTypes.google.monitoring.v3.INotificationChannelDescriptor[], protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsRequest|null, protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListNotificationChannelDescriptorsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1058,11 +1058,11 @@ export class NotificationChannelServiceClient { listNotificationChannels( request: protosTypes.google.monitoring.v3.IListNotificationChannelsRequest, options?: gax.CallOptions): - Promise>; + ]>; listNotificationChannels( request: protosTypes.google.monitoring.v3.IListNotificationChannelsRequest, options: gax.CallOptions, @@ -1132,11 +1132,11 @@ export class NotificationChannelServiceClient { protosTypes.google.monitoring.v3.INotificationChannel[], protosTypes.google.monitoring.v3.IListNotificationChannelsRequest|null, protosTypes.google.monitoring.v3.IListNotificationChannelsResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListNotificationChannelsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline index 656d9415a..bf647f62a 100644 --- a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -868,11 +868,11 @@ export class ServiceMonitoringServiceClient { listServices( request: protosTypes.google.monitoring.v3.IListServicesRequest, options?: gax.CallOptions): - Promise>; + ]>; listServices( request: protosTypes.google.monitoring.v3.IListServicesRequest, options: gax.CallOptions, @@ -939,11 +939,11 @@ export class ServiceMonitoringServiceClient { protosTypes.google.monitoring.v3.IService[], protosTypes.google.monitoring.v3.IListServicesRequest|null, protosTypes.google.monitoring.v3.IListServicesResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListServicesResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1035,11 +1035,11 @@ export class ServiceMonitoringServiceClient { listServiceLevelObjectives( request: protosTypes.google.monitoring.v3.IListServiceLevelObjectivesRequest, options?: gax.CallOptions): - Promise>; + ]>; listServiceLevelObjectives( request: protosTypes.google.monitoring.v3.IListServiceLevelObjectivesRequest, options: gax.CallOptions, @@ -1097,11 +1097,11 @@ export class ServiceMonitoringServiceClient { protosTypes.google.monitoring.v3.IServiceLevelObjective[], protosTypes.google.monitoring.v3.IListServiceLevelObjectivesRequest|null, protosTypes.google.monitoring.v3.IListServiceLevelObjectivesResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListServiceLevelObjectivesResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline index c714bd8f4..33f2a047a 100644 --- a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -625,11 +625,11 @@ export class UptimeCheckServiceClient { listUptimeCheckConfigs( request: protosTypes.google.monitoring.v3.IListUptimeCheckConfigsRequest, options?: gax.CallOptions): - Promise>; + ]>; listUptimeCheckConfigs( request: protosTypes.google.monitoring.v3.IListUptimeCheckConfigsRequest, options: gax.CallOptions, @@ -683,11 +683,11 @@ export class UptimeCheckServiceClient { protosTypes.google.monitoring.v3.IUptimeCheckConfig[], protosTypes.google.monitoring.v3.IListUptimeCheckConfigsRequest|null, protosTypes.google.monitoring.v3.IListUptimeCheckConfigsResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListUptimeCheckConfigsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -765,11 +765,11 @@ export class UptimeCheckServiceClient { listUptimeCheckIps( request: protosTypes.google.monitoring.v3.IListUptimeCheckIpsRequest, options?: gax.CallOptions): - Promise>; + ]>; listUptimeCheckIps( request: protosTypes.google.monitoring.v3.IListUptimeCheckIpsRequest, options: gax.CallOptions, @@ -821,11 +821,11 @@ export class UptimeCheckServiceClient { protosTypes.google.monitoring.v3.IUptimeCheckIp[], protosTypes.google.monitoring.v3.IListUptimeCheckIpsRequest|null, protosTypes.google.monitoring.v3.IListUptimeCheckIpsResponse>): - Promise - >|void { + protosTypes.google.monitoring.v3.IListUptimeCheckIpsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline index 817cdb057..2b075b24c 100644 --- a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -851,11 +851,11 @@ export class CloudRedisClient { listInstances( request: protosTypes.google.cloud.redis.v1beta1.IListInstancesRequest, options?: gax.CallOptions): - Promise>; + ]>; listInstances( request: protosTypes.google.cloud.redis.v1beta1.IListInstancesRequest, options: gax.CallOptions, @@ -918,11 +918,11 @@ export class CloudRedisClient { protosTypes.google.cloud.redis.v1beta1.IInstance[], protosTypes.google.cloud.redis.v1beta1.IListInstancesRequest|null, protosTypes.google.cloud.redis.v1beta1.IListInstancesResponse>): - Promise - >|void { + protosTypes.google.cloud.redis.v1beta1.IListInstancesResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/showcase/src/v1beta1/echo_client.ts.baseline b/baselines/showcase/src/v1beta1/echo_client.ts.baseline index 6b23cb5d8..8dd192029 100644 --- a/baselines/showcase/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/echo_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -589,11 +589,11 @@ export class EchoClient { pagedExpand( request: protosTypes.google.showcase.v1beta1.IPagedExpandRequest, options?: gax.CallOptions): - Promise>; + ]>; pagedExpand( request: protosTypes.google.showcase.v1beta1.IPagedExpandRequest, options: gax.CallOptions, @@ -641,11 +641,11 @@ export class EchoClient { protosTypes.google.showcase.v1beta1.IEchoResponse[], protosTypes.google.showcase.v1beta1.IPagedExpandRequest|null, protosTypes.google.showcase.v1beta1.IPagedExpandResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IPagedExpandResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/showcase/src/v1beta1/identity_client.ts.baseline b/baselines/showcase/src/v1beta1/identity_client.ts.baseline index cf2f0beb8..cc926e5f9 100644 --- a/baselines/showcase/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/identity_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -532,11 +532,11 @@ export class IdentityClient { listUsers( request: protosTypes.google.showcase.v1beta1.IListUsersRequest, options?: gax.CallOptions): - Promise>; + ]>; listUsers( request: protosTypes.google.showcase.v1beta1.IListUsersRequest, options: gax.CallOptions, @@ -584,11 +584,11 @@ export class IdentityClient { protosTypes.google.showcase.v1beta1.IUser[], protosTypes.google.showcase.v1beta1.IListUsersRequest|null, protosTypes.google.showcase.v1beta1.IListUsersResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IListUsersResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline index 925e403e7..5ecd2027e 100644 --- a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -982,11 +982,11 @@ export class MessagingClient { listRooms( request: protosTypes.google.showcase.v1beta1.IListRoomsRequest, options?: gax.CallOptions): - Promise>; + ]>; listRooms( request: protosTypes.google.showcase.v1beta1.IListRoomsRequest, options: gax.CallOptions, @@ -1034,11 +1034,11 @@ export class MessagingClient { protosTypes.google.showcase.v1beta1.IRoom[], protosTypes.google.showcase.v1beta1.IListRoomsRequest|null, protosTypes.google.showcase.v1beta1.IListRoomsResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IListRoomsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -1097,11 +1097,11 @@ export class MessagingClient { listBlurbs( request: protosTypes.google.showcase.v1beta1.IListBlurbsRequest, options?: gax.CallOptions): - Promise>; + ]>; listBlurbs( request: protosTypes.google.showcase.v1beta1.IListBlurbsRequest, options: gax.CallOptions, @@ -1153,11 +1153,11 @@ export class MessagingClient { protosTypes.google.showcase.v1beta1.IBlurb[], protosTypes.google.showcase.v1beta1.IListBlurbsRequest|null, protosTypes.google.showcase.v1beta1.IListBlurbsResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IListBlurbsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/showcase/src/v1beta1/testing_client.ts.baseline b/baselines/showcase/src/v1beta1/testing_client.ts.baseline index 2d7630bb0..f30fd322f 100644 --- a/baselines/showcase/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/testing_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -668,11 +668,11 @@ export class TestingClient { listSessions( request: protosTypes.google.showcase.v1beta1.IListSessionsRequest, options?: gax.CallOptions): - Promise>; + ]>; listSessions( request: protosTypes.google.showcase.v1beta1.IListSessionsRequest, options: gax.CallOptions, @@ -717,11 +717,11 @@ export class TestingClient { protosTypes.google.showcase.v1beta1.ISession[], protosTypes.google.showcase.v1beta1.IListSessionsRequest|null, protosTypes.google.showcase.v1beta1.IListSessionsResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IListSessionsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { @@ -777,11 +777,11 @@ export class TestingClient { listTests( request: protosTypes.google.showcase.v1beta1.IListTestsRequest, options?: gax.CallOptions): - Promise>; + ]>; listTests( request: protosTypes.google.showcase.v1beta1.IListTestsRequest, options: gax.CallOptions, @@ -828,11 +828,11 @@ export class TestingClient { protosTypes.google.showcase.v1beta1.ITest[], protosTypes.google.showcase.v1beta1.IListTestsRequest|null, protosTypes.google.showcase.v1beta1.IListTestsResponse>): - Promise - >|void { + protosTypes.google.showcase.v1beta1.IListTestsResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline index 057f79848..86aede699 100644 --- a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline @@ -17,7 +17,7 @@ // ** All changes to this file may be overwritten. ** import * as gax from 'google-gax'; -import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, PaginationResponse} from 'google-gax'; +import {APICallback, Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback} from 'google-gax'; import * as path from 'path'; import { Transform } from 'stream'; @@ -932,11 +932,11 @@ export class TranslationServiceClient { listGlossaries( request: protosTypes.google.cloud.translation.v3beta1.IListGlossariesRequest, options?: gax.CallOptions): - Promise>; + ]>; listGlossaries( request: protosTypes.google.cloud.translation.v3beta1.IListGlossariesRequest, options: gax.CallOptions, @@ -992,11 +992,11 @@ export class TranslationServiceClient { protosTypes.google.cloud.translation.v3beta1.IGlossary[], protosTypes.google.cloud.translation.v3beta1.IListGlossariesRequest|null, protosTypes.google.cloud.translation.v3beta1.IListGlossariesResponse>): - Promise - >|void { + protosTypes.google.cloud.translation.v3beta1.IListGlossariesResponse + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { diff --git a/templates/typescript_gapic/src/$version/$service_client.ts.njk b/templates/typescript_gapic/src/$version/$service_client.ts.njk index 8dc2b0c25..4e9465217 100644 --- a/templates/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/typescript_gapic/src/$version/$service_client.ts.njk @@ -22,7 +22,7 @@ limitations under the License. import * as gax from 'google-gax'; import {APICallback, Callback, CallOptions, Descriptors, ClientOptions {%- if service.longRunning.length > 0 %}, LROperation{%- endif -%} -{%- if service.paging.length > 0 %}, PaginationCallback, PaginationResponse{%- endif -%} +{%- if service.paging.length > 0 %}, PaginationCallback{%- endif -%} } from 'google-gax'; import * as path from 'path'; {% if (service.paging.length > 0) %} @@ -541,11 +541,11 @@ export class {{ service.name }}Client { {{ method.name.toCamelCase() }}( request: {{ util.toInterface(method.inputInterface) }}, options?: gax.CallOptions): - Promise>; + ]>; {{ method.name.toCamelCase() }}( request: {{ util.toInterface(method.inputInterface) }}, options: gax.CallOptions, @@ -566,11 +566,11 @@ export class {{ service.name }}Client { {{ util.toInterface(method.pagingResponseType) }}[], {{ util.toInterface(method.inputInterface) }}|null, {{ util.toInterface(method.outputInterface) }}>): - Promise - >|void { + {{ util.toInterface(method.outputInterface) }} + ]>|void { request = request || {}; let options: gax.CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) {