Skip to content

Commit 90b46e7

Browse files
authored
Merge pull request #3578 from googleapis/nodejs-iam-credentials-migration
migrate code from googleapis/nodejs-iam-credentials
2 parents 6ba37f8 + e1cc7ba commit 90b46e7

Some content is hidden

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

46 files changed

+24265
-0
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"packages/google-devtools-artifactregistry": "2.0.2",
6363
"packages/google-devtools-cloudbuild": "3.2.0",
6464
"packages/google-iam": "0.2.2",
65+
"packages/google-iam-credentials": "2.0.2",
6566
"packages/google-maps-addressvalidation": "0.1.0",
6667
"packages/google-maps-routing": "0.2.1",
6768
"packages/google-monitoring-dashboard": "2.8.0",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
deep-remove-regex:
16+
- /owl-bot-staging
17+
18+
deep-copy-regex:
19+
- source: /google/iam/credentials/(.*)/.*-nodejs
20+
dest: /owl-bot-staging/google-iam-credentials/$1
21+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/node_modules
2+
**/coverage
3+
test/fixtures
4+
build/
5+
docs/
6+
protos/
7+
samples/generated/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.ts text eol=lf
2+
*.js text eol=lf
3+
protos/* linguist-generated
4+
**/api-extractor.json linguist-language=JSON-with-Comments
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
**/*.log
2+
**/node_modules
3+
.coverage
4+
coverage
5+
.nyc_output
6+
docs/
7+
out/
8+
build/
9+
system-test/secrets.js
10+
system-test/*key.json
11+
*.lock
12+
.DS_Store
13+
package-lock.json
14+
__pycache__
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
19+
'use strict';
20+
21+
module.exports = {
22+
opts: {
23+
readme: './README.md',
24+
package: './package.json',
25+
template: './node_modules/jsdoc-fresh',
26+
recurse: true,
27+
verbose: true,
28+
destination: './docs/'
29+
},
30+
plugins: [
31+
'plugins/markdown',
32+
'jsdoc-region-tag'
33+
],
34+
source: {
35+
excludePattern: '(^|\\/|\\\\)[._]',
36+
include: [
37+
'build/src',
38+
'protos'
39+
],
40+
includePattern: '\\.js$'
41+
},
42+
templates: {
43+
copyright: 'Copyright 2022 Google LLC',
44+
includeDate: false,
45+
sourceFiles: false,
46+
systemName: '@google-cloud/iam-credentials',
47+
theme: 'lumen',
48+
default: {
49+
outputSourceFiles: false
50+
}
51+
},
52+
markdown: {
53+
idInHeadings: true
54+
}
55+
};
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
const config = {
15+
"enable-source-maps": true,
16+
"throw-deprecation": true,
17+
"timeout": 10000,
18+
"recursive": true
19+
}
20+
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
21+
delete config['throw-deprecation'];
22+
}
23+
if (process.env.MOCHA_REPORTER) {
24+
config.reporter = process.env.MOCHA_REPORTER;
25+
}
26+
if (process.env.MOCHA_REPORTER_OUTPUT) {
27+
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
28+
}
29+
module.exports = config
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"report-dir": "./.coverage",
3+
"reporter": ["text", "lcov"],
4+
"exclude": [
5+
"**/*-test",
6+
"**/.coverage",
7+
"**/apis",
8+
"**/benchmark",
9+
"**/conformance",
10+
"**/docs",
11+
"**/samples",
12+
"**/scripts",
13+
"**/protos",
14+
"**/test",
15+
"**/*.d.ts",
16+
".jsdoc.js",
17+
"**/.jsdoc.js",
18+
"karma.conf.js",
19+
"webpack-tests.config.js",
20+
"webpack.config.js"
21+
],
22+
"exclude-after-remap": false,
23+
"all": true
24+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/node_modules
2+
**/coverage
3+
test/fixtures
4+
build/
5+
docs/
6+
protos/
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
module.exports = {
16+
...require('gts/.prettierrc.json')
17+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/iam-credentials/latest",
3+
"api_id": "iamcredentials.googleapis.com",
4+
"distribution_name": "@google-cloud/iam-credentials",
5+
"release_level": "stable",
6+
"default_version": "v1",
7+
"language": "nodejs",
8+
"name_pretty": "IAM Service Account Credentials API",
9+
"repo": "googleapis/google-cloud-node",
10+
"product_documentation": "",
11+
"requires_billing": true,
12+
"name": "iamcredentials",
13+
"issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
14+
"api_shortname": "iamcredentials",
15+
"library_type": "GAPIC_AUTO"
16+
}
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# Changelog
2+
3+
## [2.0.2](https://github.com/googleapis/nodejs-iam-credentials/compare/v2.0.1...v2.0.2) (2022-11-10)
4+
5+
6+
### Bug Fixes
7+
8+
* Allow passing gax instance to client constructor ([#145](https://github.com/googleapis/nodejs-iam-credentials/issues/145)) ([e3cfeba](https://github.com/googleapis/nodejs-iam-credentials/commit/e3cfebad3d72c4e844d95758d8571f8969c94ab4))
9+
* better support for fallback mode ([e3cfeba](https://github.com/googleapis/nodejs-iam-credentials/commit/e3cfebad3d72c4e844d95758d8571f8969c94ab4))
10+
* Change import long to require ([#146](https://github.com/googleapis/nodejs-iam-credentials/issues/146)) ([cbd8f76](https://github.com/googleapis/nodejs-iam-credentials/commit/cbd8f76476b6ab2f37f47f1597375af2937f96e2))
11+
* **deps:** Use google-gax v3.5.2 ([#156](https://github.com/googleapis/nodejs-iam-credentials/issues/156)) ([4bd9f8b](https://github.com/googleapis/nodejs-iam-credentials/commit/4bd9f8b60e50ee6e6a3da08ef6d07999d81b39d7))
12+
* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-iam-credentials/issues/1553)) ([#149](https://github.com/googleapis/nodejs-iam-credentials/issues/149)) ([ecd43bd](https://github.com/googleapis/nodejs-iam-credentials/commit/ecd43bdd58621e4d967d52d185fcda846b65e657))
13+
* Preserve default values in x-goog-request-params header ([#150](https://github.com/googleapis/nodejs-iam-credentials/issues/150)) ([0cb6540](https://github.com/googleapis/nodejs-iam-credentials/commit/0cb6540ed6efcc905547845d71dd923ba5743d0e))
14+
* Regenerated protos JS and TS definitions ([#159](https://github.com/googleapis/nodejs-iam-credentials/issues/159)) ([cece8c7](https://github.com/googleapis/nodejs-iam-credentials/commit/cece8c758df280204a4a1f4fd60b00c3161c1424))
15+
* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-iam-credentials/issues/1546)) ([#148](https://github.com/googleapis/nodejs-iam-credentials/issues/148)) ([bc7ddbf](https://github.com/googleapis/nodejs-iam-credentials/commit/bc7ddbfbfb8151a6cdc6422bb345c6e993867539))
16+
* use google-gax v3.3.0 ([ecd43bd](https://github.com/googleapis/nodejs-iam-credentials/commit/ecd43bdd58621e4d967d52d185fcda846b65e657))
17+
18+
## [2.0.1](https://github.com/googleapis/nodejs-iam-credentials/compare/v2.0.0...v2.0.1) (2022-06-30)
19+
20+
21+
### Bug Fixes
22+
23+
* **docs:** document fallback rest option ([#141](https://github.com/googleapis/nodejs-iam-credentials/issues/141)) ([8f19e16](https://github.com/googleapis/nodejs-iam-credentials/commit/8f19e164586ea78e24657575c4d8670e31bf9d8d))
24+
25+
## [2.0.0](https://github.com/googleapis/nodejs-iam-credentials/compare/v1.2.0...v2.0.0) (2022-05-20)
26+
27+
28+
### ⚠ BREAKING CHANGES
29+
30+
* update library to use Node 12 (#134)
31+
32+
### Build System
33+
34+
* update library to use Node 12 ([#134](https://github.com/googleapis/nodejs-iam-credentials/issues/134)) ([ea06272](https://github.com/googleapis/nodejs-iam-credentials/commit/ea06272c7f2b42ef4a8140a088f4f177bb97284c))
35+
36+
## [1.2.0](https://github.com/googleapis/nodejs-iam-credentials/compare/v1.1.1...v1.2.0) (2022-03-23)
37+
38+
39+
### Features
40+
41+
* promote to stable ([#121](https://github.com/googleapis/nodejs-iam-credentials/issues/121)) ([7988a83](https://github.com/googleapis/nodejs-iam-credentials/commit/7988a83a3082c2d20995dcfc8e901d4f0c41e451))
42+
43+
### [1.1.1](https://www.github.com/googleapis/nodejs-iam-credentials/compare/v1.1.0...v1.1.1) (2021-09-03)
44+
45+
46+
### Bug Fixes
47+
48+
* **build:** migrate to main branch ([#83](https://www.github.com/googleapis/nodejs-iam-credentials/issues/83)) ([621aeec](https://www.github.com/googleapis/nodejs-iam-credentials/commit/621aeecc0814e594bae1c67d837cad1d5e81d4d6))
49+
50+
## [1.1.0](https://www.github.com/googleapis/nodejs-iam-credentials/compare/v1.0.8...v1.1.0) (2021-08-23)
51+
52+
53+
### Features
54+
55+
* turns on self-signed JWT feature flag ([#79](https://www.github.com/googleapis/nodejs-iam-credentials/issues/79)) ([50d6879](https://www.github.com/googleapis/nodejs-iam-credentials/commit/50d6879a32d36defa5a98fd5d0256c2aa377f3c6))
56+
57+
### [1.0.8](https://www.github.com/googleapis/nodejs-iam-credentials/compare/v1.0.7...v1.0.8) (2021-08-17)
58+
59+
60+
### Bug Fixes
61+
62+
* **deps:** google-gax v2.24.1 ([#77](https://www.github.com/googleapis/nodejs-iam-credentials/issues/77)) ([e8bf535](https://www.github.com/googleapis/nodejs-iam-credentials/commit/e8bf535a0602b1b9e311a0d3a5a636a6d0132e52))
63+
64+
### [1.0.7](https://www.github.com/googleapis/nodejs-iam-credentials/compare/v1.0.6...v1.0.7) (2021-07-16)
65+
66+
67+
### Bug Fixes
68+
69+
* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#69](https://www.github.com/googleapis/nodejs-iam-credentials/issues/69)) ([061adde](https://www.github.com/googleapis/nodejs-iam-credentials/commit/061addeaade74ed3260d00bc6214aecd03f226ba))
70+
71+
### [1.0.6](https://www.github.com/googleapis/nodejs-iam-credentials/compare/v1.0.5...v1.0.6) (2021-07-12)
72+
73+
74+
### Bug Fixes
75+
76+
* **deps:** google-gax v2.17.1 ([#67](https://www.github.com/googleapis/nodejs-iam-credentials/issues/67)) ([734a959](https://www.github.com/googleapis/nodejs-iam-credentials/commit/734a9599eac8ddfe24463cf580c29c5b28236667))
77+
78+
### [1.0.5](https://www.github.com/googleapis/nodejs-iam-credentials/compare/v1.0.4...v1.0.5) (2021-06-29)
79+
80+
81+
### Bug Fixes
82+
83+
* **deps:** google-gax v2.17.0 with mTLS ([#64](https://www.github.com/googleapis/nodejs-iam-credentials/issues/64)) ([25b6664](https://www.github.com/googleapis/nodejs-iam-credentials/commit/25b66647296c00cf25884245caec519305bd4588))
84+
85+
### [1.0.4](https://www.github.com/googleapis/nodejs-iam-credentials/compare/v1.0.3...v1.0.4) (2021-06-22)
86+
87+
88+
### Bug Fixes
89+
90+
* make request optional in all cases ([#60](https://www.github.com/googleapis/nodejs-iam-credentials/issues/60)) ([cc63b2a](https://www.github.com/googleapis/nodejs-iam-credentials/commit/cc63b2aaaafd9303e98bc45e4f3ba5fd335421ea))
91+
92+
### [1.0.3](https://www.github.com/googleapis/nodejs-iam-credentials/compare/v1.0.2...v1.0.3) (2021-05-25)
93+
94+
95+
### Bug Fixes
96+
97+
* GoogleAdsError missing using generator version after 1.3.0 ([#53](https://www.github.com/googleapis/nodejs-iam-credentials/issues/53)) ([d1371b0](https://www.github.com/googleapis/nodejs-iam-credentials/commit/d1371b02e45095c609807674dc5403fb27560acf))
98+
99+
### [1.0.2](https://www.github.com/googleapis/nodejs-iam-credentials/compare/v1.0.1...v1.0.2) (2021-05-12)
100+
101+
102+
### Bug Fixes
103+
104+
* **deps:** require google-gax v2.12.0 ([#45](https://www.github.com/googleapis/nodejs-iam-credentials/issues/45)) ([4ede28c](https://www.github.com/googleapis/nodejs-iam-credentials/commit/4ede28cc5c1621c5334487efcbfa0aec157c6ddc))
105+
* use require() to load JSON protos ([#48](https://www.github.com/googleapis/nodejs-iam-credentials/issues/48)) ([7e744c0](https://www.github.com/googleapis/nodejs-iam-credentials/commit/7e744c0ff6464177821909d76b0112a832648a7d))
106+
107+
### [1.0.1](https://www.github.com/googleapis/nodejs-iam-credentials/compare/v1.0.0...v1.0.1) (2021-02-04)
108+
109+
110+
### ⚠ BREAKING CHANGES
111+
112+
* write initial samples (#5)
113+
* initial stub of library
114+
115+
### Features
116+
117+
* initial stub of library ([c932c45](https://www.github.com/googleapis/nodejs-iam-credentials/commit/c932c45d344742352c5576f563bee5a0dcdbe514))
118+
* write initial samples ([#5](https://www.github.com/googleapis/nodejs-iam-credentials/issues/5)) ([33c90c8](https://www.github.com/googleapis/nodejs-iam-credentials/commit/33c90c89954799b402008ff333447e602a036653))
119+
120+
121+
### Bug Fixes
122+
123+
* **release:** release was pointing at wrong branch ([#17](https://www.github.com/googleapis/nodejs-iam-credentials/issues/17)) ([52fcfec](https://www.github.com/googleapis/nodejs-iam-credentials/commit/52fcfecfc667d23768fb96298172b34c21370c42))

0 commit comments

Comments
 (0)