Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate code from googleapis/nodejs-service-usage #3610

Merged
merged 71 commits into from
Nov 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
ad4a376
chore: add initial files for launch
bcoe May 20, 2021
6f71ce1
feat: initial generation of library
bcoe May 24, 2021
ce407f8
feat(samples): add example of listing service usage (#2)
bcoe May 25, 2021
e08e067
chore(deps): update dependency sinon to v11 (#5)
renovate-bot May 25, 2021
5253b1a
feat!: bump to GA release level (#6)
bcoe May 25, 2021
8b1b299
build(nodejs): use hyphen in package name (#7)
gcf-owl-bot[bot] May 25, 2021
7dcfe29
chore: release 1.0.0 (#1)
release-please[bot] May 25, 2021
3d3556f
build: drop synth.metadata (#8)
bcoe May 25, 2021
48ae0bd
fix: GoogleAdsError missing using generator version after 1.3.0 (#9)
gcf-owl-bot[bot] May 29, 2021
b35efd7
feat: update serviceusage v1beta1 API (#10)
gcf-owl-bot[bot] May 29, 2021
97c2fe0
chore: make generate_index_ts() deterministic (#11)
gcf-owl-bot[bot] May 29, 2021
cdc68e3
chore: release 1.1.0 (#13)
release-please[bot] Jun 2, 2021
9dd7054
fix: make request optional in all cases (#19)
gcf-owl-bot[bot] Jun 23, 2021
6308270
fix(deps): google-gax v2.17.0 with mTLS (#27)
bcoe Jun 30, 2021
539c9dc
chore: release 1.1.1 (#20)
release-please[bot] Jun 30, 2021
0ef9ec7
fix(deps): google-gax v2.17.1 (#29)
bcoe Jul 12, 2021
bef495e
chore: release 1.1.2 (#30)
release-please[bot] Jul 12, 2021
b041f65
fix: failing tests for LRO check methods (#35)
gcf-owl-bot[bot] Jul 30, 2021
3f5fbc5
chore: release 1.1.3 (#36)
release-please[bot] Aug 6, 2021
9fb6256
fix(deps): google-gax v2.24.1 (#38)
bcoe Aug 17, 2021
0fce88c
chore: release 1.1.4 (#39)
release-please[bot] Aug 17, 2021
a0de207
feat: turns on self-signed JWT feature flag (#40)
gcf-owl-bot[bot] Aug 23, 2021
1471c76
chore: release 1.2.0 (#41)
release-please[bot] Aug 23, 2021
4fb866f
chore: disable renovate dependency dashboard (#1194) (#42)
gcf-owl-bot[bot] Aug 25, 2021
99fff66
fix(build): set default branch to main (#43)
bcoe Sep 10, 2021
d7e4218
chore: release 1.2.1 (#44)
release-please[bot] Sep 10, 2021
df1af04
build(node): update deps used during postprocessing (#1243) (#51)
gcf-owl-bot[bot] Oct 14, 2021
a1ce282
docs: Remove erroneous space in a docstring (#52)
gcf-owl-bot[bot] Oct 15, 2021
ef19fc2
chore(cloud-rad): delete api-extractor config (#53)
fhinkel Oct 21, 2021
5eff6b7
chore: fix the wrong post processor image (#55)
Oct 27, 2021
1556944
chore(deps): update dependency @types/node to v16 (#54)
renovate-bot Oct 27, 2021
9230ddb
chore(deps): update dependency sinon to v12 (#56)
renovate-bot Nov 4, 2021
398b960
docs(samples): add example tags to generated samples (#57)
gcf-owl-bot[bot] Nov 10, 2021
5c0d8f9
build: add generated samples to .eslintignore (#58)
gcf-owl-bot[bot] Dec 10, 2021
39b5196
docs(node): support "stable"/"preview" release level (#1312) (#61)
gcf-owl-bot[bot] Dec 29, 2021
8ce453b
chore: add api_shortname and library_type to repo metadata (#60)
parthea Dec 30, 2021
399f263
docs(badges): tweak badge to use new preview/stable language (#1314) …
gcf-owl-bot[bot] Dec 30, 2021
eccd583
test(nodejs): remove 15 add 16 (#1322) (#65)
gcf-owl-bot[bot] Jan 11, 2022
802f14d
build: update copyright year to 2022 (#68)
gcf-owl-bot[bot] Jan 20, 2022
3cb7ce4
chore(deps): update dependency sinon to v13 (#72)
renovate-bot Jan 31, 2022
11cc318
docs(nodejs): version support policy edits (#1346) (#74)
gcf-owl-bot[bot] Feb 7, 2022
4203638
docs(samples): include metadata file, add exclusions for samples to h…
gcf-owl-bot[bot] Feb 18, 2022
8996818
chore: update v2.14.2 gapic-generator-typescript (#79)
gcf-owl-bot[bot] Mar 16, 2022
82f582e
chore: fix api_shortname in repo-metadata (#80)
chingor13 Mar 25, 2022
3069f44
build(node): update client library version in samples metadata (#1356…
gcf-owl-bot[bot] Apr 20, 2022
d20d97f
chore(deps): update dependency @types/mocha to v9 (#88)
renovate-bot May 3, 2022
b831446
chore(deps): update dependency sinon to v14 (#91)
renovate-bot May 9, 2022
a33ab0d
build!: update library to use Node 12 (#92)
sofisl May 20, 2022
6b2ae43
chore(main): release 2.0.0 (#94)
release-please[bot] Jun 7, 2022
8a6190d
chore(deps): update dependency jsdoc-region-tag to v2 (#97)
renovate-bot Jun 9, 2022
d64c867
chore(deps): update dependency jsdoc-fresh to v2 (#96)
renovate-bot Jun 9, 2022
c8fd111
feat: support regapic LRO (#98)
gcf-owl-bot[bot] Jun 30, 2022
07b4adf
chore(main): release 2.1.0 (#99)
release-please[bot] Jun 30, 2022
5324468
chore(deps): update dependency linkinator to v4 (#103)
renovate-bot Jul 13, 2022
9209264
chore: remove unused proto imports (#104)
gcf-owl-bot[bot] Aug 19, 2022
649fb04
fix: better support for fallback mode (#105)
gcf-owl-bot[bot] Aug 23, 2022
06a11ae
fix: change import long to require (#106)
gcf-owl-bot[bot] Aug 23, 2022
86e7a29
chore(main): release 2.1.1 (#107)
release-please[bot] Aug 26, 2022
5b95a56
fix: do not import the whole google-gax from proto JS (#1553) (#109)
gcf-owl-bot[bot] Aug 27, 2022
eda55d3
fix: allow passing gax instance to client constructor (#110)
gcf-owl-bot[bot] Sep 1, 2022
d0ef234
fix: preserve default values in x-goog-request-params header (#112)
gcf-owl-bot[bot] Sep 14, 2022
768a427
test: use fully qualified request type name in tests (#114)
gcf-owl-bot[bot] Sep 23, 2022
abbe41f
fix(deps): use google-gax v3.5.2 (#118)
alexander-fenster Nov 4, 2022
31f90c9
chore(deps): update dependency @types/node to v18 (#116)
renovate-bot Nov 10, 2022
9e78cf6
chore(deps): update dependency jsdoc to v4 (#120)
renovate-bot Nov 10, 2022
a5e20b6
fix: regenerated protos JS and TS definitions (#121)
gcf-owl-bot[bot] Nov 11, 2022
3c017d6
chore(main): release 2.1.2 (#111)
release-please[bot] Nov 11, 2022
a864d8b
Merge remote-tracking branch 'migration/main' into nodejs-service-usa…
sofisl Nov 11, 2022
8865852
build: add release-please config, fix owlbot-config
sofisl Nov 11, 2022
f7e6d52
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 11, 2022
96d2224
Merge branch 'main' into nodejs-service-usage-migration
sofisl Nov 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"packages/gapic-node-templating": "0.0.0",
"packages/google-api-apikeys": "0.1.3",
"packages/google-api-serviceusage": "2.1.2",
"packages/google-api-servicecontrol": "2.0.3",
"packages/google-appengine": "2.1.2",
"packages/google-cloud-accessapproval": "2.1.2",
Expand Down
21 changes: 21 additions & 0 deletions packages/google-api-serviceusage/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2021 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.

deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/api/serviceusage/(.*)/.*-nodejs
dest: /owl-bot-staging/google-api-serviceusage/$1

7 changes: 7 additions & 0 deletions packages/google-api-serviceusage/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/node_modules
**/coverage
test/fixtures
build/
docs/
protos/
samples/generated/
3 changes: 3 additions & 0 deletions packages/google-api-serviceusage/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./node_modules/gts"
}
4 changes: 4 additions & 0 deletions packages/google-api-serviceusage/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.ts text eol=lf
*.js text eol=lf
protos/* linguist-generated
**/api-extractor.json linguist-language=JSON-with-Comments
14 changes: 14 additions & 0 deletions packages/google-api-serviceusage/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**/*.log
**/node_modules
.coverage
coverage
.nyc_output
docs/
out/
build/
system-test/secrets.js
system-test/*key.json
*.lock
.DS_Store
package-lock.json
__pycache__
55 changes: 55 additions & 0 deletions packages/google-api-serviceusage/.jsdoc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Copyright 2022 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
//
// https://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.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

'use strict';

module.exports = {
opts: {
readme: './README.md',
package: './package.json',
template: './node_modules/jsdoc-fresh',
recurse: true,
verbose: true,
destination: './docs/'
},
plugins: [
'plugins/markdown',
'jsdoc-region-tag'
],
source: {
excludePattern: '(^|\\/|\\\\)[._]',
include: [
'build/src',
'protos'
],
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2022 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/service-usage',
theme: 'lumen',
default: {
outputSourceFiles: false
}
},
markdown: {
idInHeadings: true
}
};
29 changes: 29 additions & 0 deletions packages/google-api-serviceusage/.mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2022 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.
const config = {
"enable-source-maps": true,
"throw-deprecation": true,
"timeout": 10000,
"recursive": true
}
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
delete config['throw-deprecation'];
}
if (process.env.MOCHA_REPORTER) {
config.reporter = process.env.MOCHA_REPORTER;
}
if (process.env.MOCHA_REPORTER_OUTPUT) {
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
}
module.exports = config
24 changes: 24 additions & 0 deletions packages/google-api-serviceusage/.nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"report-dir": "./.coverage",
"reporter": ["text", "lcov"],
"exclude": [
"**/*-test",
"**/.coverage",
"**/apis",
"**/benchmark",
"**/conformance",
"**/docs",
"**/samples",
"**/scripts",
"**/protos",
"**/test",
"**/*.d.ts",
".jsdoc.js",
"**/.jsdoc.js",
"karma.conf.js",
"webpack-tests.config.js",
"webpack.config.js"
],
"exclude-after-remap": false,
"all": true
}
6 changes: 6 additions & 0 deletions packages/google-api-serviceusage/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/node_modules
**/coverage
test/fixtures
build/
docs/
protos/
17 changes: 17 additions & 0 deletions packages/google-api-serviceusage/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2022 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
//
// https://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')
}
16 changes: 16 additions & 0 deletions packages/google-api-serviceusage/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "service-usage",
"name_pretty": "Service Usage",
"product_documentation": "https://cloud.google.com/service-usage/",
"client_documentation": "https://cloud.google.com/service-usage/docs/overview",
"issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
"release_level": "stable",
"language": "nodejs",
"repo": "googleapis/google-cloud-node",
"distribution_name": "@google-cloud/service-usage",
"api_id": "serviceusage.googleapis.com",
"requires_billing": true,
"default_version": "v1",
"api_shortname": "serviceusage",
"library_type": "GAPIC_AUTO"
}
108 changes: 108 additions & 0 deletions packages/google-api-serviceusage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Changelog

## [2.1.2](https://github.com/googleapis/nodejs-service-usage/compare/v2.1.1...v2.1.2) (2022-11-11)


### Bug Fixes

* Allow passing gax instance to client constructor ([#110](https://github.com/googleapis/nodejs-service-usage/issues/110)) ([8120d5a](https://github.com/googleapis/nodejs-service-usage/commit/8120d5aa9d7bad7c712ee5abe2629a77820ccceb))
* **deps:** Use google-gax v3.5.2 ([#118](https://github.com/googleapis/nodejs-service-usage/issues/118)) ([605da4a](https://github.com/googleapis/nodejs-service-usage/commit/605da4a084da827dd69ce280a2e77866179c4938))
* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-service-usage/issues/1553)) ([#109](https://github.com/googleapis/nodejs-service-usage/issues/109)) ([700fd54](https://github.com/googleapis/nodejs-service-usage/commit/700fd54fde70143cb2dc10f8d9f810dafa3ac808))
* Preserve default values in x-goog-request-params header ([#112](https://github.com/googleapis/nodejs-service-usage/issues/112)) ([9d8d4c4](https://github.com/googleapis/nodejs-service-usage/commit/9d8d4c4fb2daace3210ec333e18a3f70f5f53c5a))
* Regenerated protos JS and TS definitions ([#121](https://github.com/googleapis/nodejs-service-usage/issues/121)) ([977373e](https://github.com/googleapis/nodejs-service-usage/commit/977373ecaadaaf8da2d22330ca2558fd052146b3))
* use google-gax v3.3.0 ([700fd54](https://github.com/googleapis/nodejs-service-usage/commit/700fd54fde70143cb2dc10f8d9f810dafa3ac808))

## [2.1.1](https://github.com/googleapis/nodejs-service-usage/compare/v2.1.0...v2.1.1) (2022-08-23)


### Bug Fixes

* better support for fallback mode ([#105](https://github.com/googleapis/nodejs-service-usage/issues/105)) ([9cf34e1](https://github.com/googleapis/nodejs-service-usage/commit/9cf34e15b2b7c2d259b5cc42052b913328e0071e))
* change import long to require ([#106](https://github.com/googleapis/nodejs-service-usage/issues/106)) ([4f574a0](https://github.com/googleapis/nodejs-service-usage/commit/4f574a04a9017fe5797afa28fda5f6b47e512bc0))
* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-service-usage/issues/1546)) ([#108](https://github.com/googleapis/nodejs-service-usage/issues/108)) ([c49f10a](https://github.com/googleapis/nodejs-service-usage/commit/c49f10a089baef23b9cac55bed1dc8b8f94f9406))

## [2.1.0](https://github.com/googleapis/nodejs-service-usage/compare/v2.0.0...v2.1.0) (2022-06-30)


### Features

* support regapic LRO ([#98](https://github.com/googleapis/nodejs-service-usage/issues/98)) ([b433238](https://github.com/googleapis/nodejs-service-usage/commit/b433238b176cd86469c4951a0b43c5bdb00d4540))

## [2.0.0](https://github.com/googleapis/nodejs-service-usage/compare/v1.2.1...v2.0.0) (2022-05-20)


### ⚠ BREAKING CHANGES

* update library to use Node 12 (#92)

### Build System

* update library to use Node 12 ([#92](https://github.com/googleapis/nodejs-service-usage/issues/92)) ([9320ff9](https://github.com/googleapis/nodejs-service-usage/commit/9320ff9fa52529a0cb75992f446493fa36165484))

### [1.2.1](https://www.github.com/googleapis/nodejs-service-usage/compare/v1.2.0...v1.2.1) (2021-09-10)


### Bug Fixes

* **build:** set default branch to main ([#43](https://www.github.com/googleapis/nodejs-service-usage/issues/43)) ([1fb6128](https://www.github.com/googleapis/nodejs-service-usage/commit/1fb61286aa4822531057675439c8e702f10f2559))

## [1.2.0](https://www.github.com/googleapis/nodejs-service-usage/compare/v1.1.4...v1.2.0) (2021-08-23)


### Features

* turns on self-signed JWT feature flag ([#40](https://www.github.com/googleapis/nodejs-service-usage/issues/40)) ([1474878](https://www.github.com/googleapis/nodejs-service-usage/commit/14748784647a02f42df8cc1fd53ed3ddf9dfe589))

### [1.1.4](https://www.github.com/googleapis/nodejs-service-usage/compare/v1.1.3...v1.1.4) (2021-08-17)


### Bug Fixes

* **deps:** google-gax v2.24.1 ([#38](https://www.github.com/googleapis/nodejs-service-usage/issues/38)) ([021b0eb](https://www.github.com/googleapis/nodejs-service-usage/commit/021b0eb4c69c1ed485aac388c2a5583547dbb3ad))

### [1.1.3](https://www.github.com/googleapis/nodejs-service-usage/compare/v1.1.2...v1.1.3) (2021-07-30)


### Bug Fixes

* failing tests for LRO check methods ([#35](https://www.github.com/googleapis/nodejs-service-usage/issues/35)) ([f961511](https://www.github.com/googleapis/nodejs-service-usage/commit/f961511fe88658592857cca70dce14b92568b725))

### [1.1.2](https://www.github.com/googleapis/nodejs-service-usage/compare/v1.1.1...v1.1.2) (2021-07-12)


### Bug Fixes

* **deps:** google-gax v2.17.1 ([#29](https://www.github.com/googleapis/nodejs-service-usage/issues/29)) ([6c754c1](https://www.github.com/googleapis/nodejs-service-usage/commit/6c754c101a426386f2e9ce4462f3863f13c2b52e))

### [1.1.1](https://www.github.com/googleapis/nodejs-service-usage/compare/v1.1.0...v1.1.1) (2021-06-30)


### Bug Fixes

* **deps:** google-gax v2.17.0 with mTLS ([#27](https://www.github.com/googleapis/nodejs-service-usage/issues/27)) ([c1738e8](https://www.github.com/googleapis/nodejs-service-usage/commit/c1738e82d175c921178a3d52b75197fbd791df02))
* make request optional in all cases ([#19](https://www.github.com/googleapis/nodejs-service-usage/issues/19)) ([fcdb1a5](https://www.github.com/googleapis/nodejs-service-usage/commit/fcdb1a5900b7bac5ae1b8b0e211d024b2b7e9579))

## [1.1.0](https://www.github.com/googleapis/nodejs-service-usage/compare/v1.0.0...v1.1.0) (2021-05-29)


### Features

* update serviceusage v1beta1 API ([#10](https://www.github.com/googleapis/nodejs-service-usage/issues/10)) ([8a98520](https://www.github.com/googleapis/nodejs-service-usage/commit/8a9852049e79a71a0a25f14e6eff806a4893642d))


### Bug Fixes

* GoogleAdsError missing using generator version after 1.3.0 ([#9](https://www.github.com/googleapis/nodejs-service-usage/issues/9)) ([2fa7011](https://www.github.com/googleapis/nodejs-service-usage/commit/2fa7011abb318a15cd248b7abeb921540c60d34f))

## 1.0.0 (2021-05-25)


### ⚠ BREAKING CHANGES

* bump to GA release level (#6)

### Features

* bump to GA release level ([#6](https://www.github.com/googleapis/nodejs-service-usage/issues/6)) ([ed9fe6d](https://www.github.com/googleapis/nodejs-service-usage/commit/ed9fe6dc1a486d5dd2591c01d49ca05fca908b12))
* initial generation of library ([4e78126](https://www.github.com/googleapis/nodejs-service-usage/commit/4e781266eb45ac52c2465f88fb7b7d68a3ee1f47))
* **samples:** add example of listing service usage ([#2](https://www.github.com/googleapis/nodejs-service-usage/issues/2)) ([048c44f](https://www.github.com/googleapis/nodejs-service-usage/commit/048c44f8f36483b0016b1573b9439d1a1a6643d4))
Loading