Skip to content

Commit a911b72

Browse files
committed
Merge remote-tracking branch 'migration/main' into nodejs-org-policy-migration
2 parents 6f50f66 + 7444cbb commit a911b72

Some content is hidden

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

47 files changed

+30781
-0
lines changed
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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
docker:
15+
image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
16+
17+
deep-remove-regex:
18+
- /owl-bot-staging
19+
20+
deep-copy-regex:
21+
- source: /google/cloud/orgpolicy/(.*)/.*-nodejs/(.*)
22+
dest: /owl-bot-staging/$1/$2
23+
24+
begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b
25+
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/org-policy',
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 2020 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 2020 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+
"language": "nodejs",
3+
"requires_billing": true,
4+
"product_documentation": "https://cloud.google.com/resource-manager/docs/organization-policy/overview",
5+
"repo": "googleapis/nodejs-org-policy",
6+
"default_version": "v2",
7+
"name_pretty": "Organization Policy",
8+
"release_level": "stable",
9+
"distribution_name": "@google-cloud/org-policy",
10+
"name": "org-policy",
11+
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/org-policy/latest",
12+
"api_id": "orgpolicy.googleapis.com",
13+
"issue_tracker": "https://github.com/googleapis/nodejs-org-policy/issues",
14+
"api_shortname": "orgpolicy",
15+
"library_type": "GAPIC_AUTO"
16+
}
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# Changelog
2+
3+
## [2.0.3](https://github.com/googleapis/nodejs-org-policy/compare/v2.0.2...v2.0.3) (2022-11-11)
4+
5+
6+
### Bug Fixes
7+
8+
* Allow passing gax instance to client constructor ([#126](https://github.com/googleapis/nodejs-org-policy/issues/126)) ([c7147d4](https://github.com/googleapis/nodejs-org-policy/commit/c7147d40a9ed114ec42997d49c2f5dfcff948aad))
9+
* **deps:** Use google-gax v3.5.2 ([#134](https://github.com/googleapis/nodejs-org-policy/issues/134)) ([0f1bfb0](https://github.com/googleapis/nodejs-org-policy/commit/0f1bfb0007ade736c2ec91f32ff187c80b2d6761))
10+
* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-org-policy/issues/1553)) ([#125](https://github.com/googleapis/nodejs-org-policy/issues/125)) ([068b0a5](https://github.com/googleapis/nodejs-org-policy/commit/068b0a55fe805cedab9e66f62071c8be56f465ed))
11+
* Preserve default values in x-goog-request-params header ([#128](https://github.com/googleapis/nodejs-org-policy/issues/128)) ([3f80014](https://github.com/googleapis/nodejs-org-policy/commit/3f80014a3c75311555df6cfde8470ae1f72a686f))
12+
* Regenerated protos JS and TS definitions ([#137](https://github.com/googleapis/nodejs-org-policy/issues/137)) ([1606459](https://github.com/googleapis/nodejs-org-policy/commit/1606459c847f2ed945dccc8e43d57d273fac7ea9))
13+
* use google-gax v3.3.0 ([068b0a5](https://github.com/googleapis/nodejs-org-policy/commit/068b0a55fe805cedab9e66f62071c8be56f465ed))
14+
15+
## [2.0.2](https://github.com/googleapis/nodejs-org-policy/compare/v2.0.1...v2.0.2) (2022-08-23)
16+
17+
18+
### Bug Fixes
19+
20+
* better support for fallback mode ([#121](https://github.com/googleapis/nodejs-org-policy/issues/121)) ([16843cd](https://github.com/googleapis/nodejs-org-policy/commit/16843cde09ec1a5c8d106995da2300216f593ea9))
21+
* change import long to require ([#122](https://github.com/googleapis/nodejs-org-policy/issues/122)) ([6ecde2c](https://github.com/googleapis/nodejs-org-policy/commit/6ecde2c561576546b6b214dfcb3a4bd8e31814d8))
22+
* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-org-policy/issues/1546)) ([#124](https://github.com/googleapis/nodejs-org-policy/issues/124)) ([e894016](https://github.com/googleapis/nodejs-org-policy/commit/e894016082069fe0b87403977ac830df588b1ac8))
23+
24+
## [2.0.1](https://github.com/googleapis/nodejs-org-policy/compare/v2.0.0...v2.0.1) (2022-06-30)
25+
26+
27+
### Bug Fixes
28+
29+
* **docs:** describe fallback rest option ([#115](https://github.com/googleapis/nodejs-org-policy/issues/115)) ([c54a19b](https://github.com/googleapis/nodejs-org-policy/commit/c54a19be2c28a298906ee5b451cc2180951ce1f4))
30+
31+
## [2.0.0](https://github.com/googleapis/nodejs-org-policy/compare/v1.1.2...v2.0.0) (2022-05-20)
32+
33+
34+
### ⚠ BREAKING CHANGES
35+
36+
* Update library to use Node 12
37+
* update library to use Node 12 (#108)
38+
39+
### Build System
40+
41+
* update library to use Node 12 ([#108](https://github.com/googleapis/nodejs-org-policy/issues/108)) ([310e83f](https://github.com/googleapis/nodejs-org-policy/commit/310e83ffe6f8c09ead2d4b82c01ec29aa09a6b6b))
42+
43+
44+
### *build
45+
46+
* Update library to use Node 12 ([310e83f](https://github.com/googleapis/nodejs-org-policy/commit/310e83ffe6f8c09ead2d4b82c01ec29aa09a6b6b))
47+
48+
### [1.1.2](https://github.com/googleapis/nodejs-org-policy/compare/v1.1.1...v1.1.2) (2022-02-16)
49+
50+
51+
### Bug Fixes
52+
53+
* deprecate AlternativePolicySpec ([#90](https://github.com/googleapis/nodejs-org-policy/issues/90)) ([f25e613](https://github.com/googleapis/nodejs-org-policy/commit/f25e61305d09c3b5215e203bb36753568bb53d0a))
54+
55+
### [1.1.1](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.1.0...v1.1.1) (2021-09-09)
56+
57+
58+
### Bug Fixes
59+
60+
* **build:** switch primary branch to main ([#60](https://www.github.com/googleapis/nodejs-org-policy/issues/60)) ([b15a6d6](https://www.github.com/googleapis/nodejs-org-policy/commit/b15a6d675382145f2a270d24ee456f8400dd2a99))
61+
62+
## [1.1.0](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.7...v1.1.0) (2021-08-23)
63+
64+
65+
### Features
66+
67+
* turns on self-signed JWT feature flag ([#56](https://www.github.com/googleapis/nodejs-org-policy/issues/56)) ([79c838f](https://www.github.com/googleapis/nodejs-org-policy/commit/79c838f5666f033942c4c2d4b65fac32e074a871))
68+
69+
### [1.0.7](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.6...v1.0.7) (2021-08-17)
70+
71+
72+
### Bug Fixes
73+
74+
* **deps:** google-gax v2.24.1 ([#54](https://www.github.com/googleapis/nodejs-org-policy/issues/54)) ([a833560](https://www.github.com/googleapis/nodejs-org-policy/commit/a83356087f9ac4e51a031eeb13f536d9f30e2946))
75+
76+
### [1.0.6](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.5...v1.0.6) (2021-07-16)
77+
78+
79+
### Bug Fixes
80+
81+
* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#46](https://www.github.com/googleapis/nodejs-org-policy/issues/46)) ([d63afc5](https://www.github.com/googleapis/nodejs-org-policy/commit/d63afc5cf696d28498e272e94f63f1706d2f7f00))
82+
83+
### [1.0.5](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.4...v1.0.5) (2021-07-12)
84+
85+
86+
### Bug Fixes
87+
88+
* **deps:** google-gax v2.17.1 ([#44](https://www.github.com/googleapis/nodejs-org-policy/issues/44)) ([3e76c8d](https://www.github.com/googleapis/nodejs-org-policy/commit/3e76c8d8e3255b2fef3d17c7ab79b25da599d0c7))
89+
90+
### [1.0.4](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.3...v1.0.4) (2021-06-30)
91+
92+
93+
### Bug Fixes
94+
95+
* **deps:** google-gax v2.17.0 with mTLS ([#41](https://www.github.com/googleapis/nodejs-org-policy/issues/41)) ([e5b7d66](https://www.github.com/googleapis/nodejs-org-policy/commit/e5b7d66e9284bb2f7ac14bb1196fc05f7c7f1bc4))
96+
97+
### [1.0.3](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.2...v1.0.3) (2021-06-25)
98+
99+
100+
### Bug Fixes
101+
102+
* make request optional in all cases ([#37](https://www.github.com/googleapis/nodejs-org-policy/issues/37)) ([4129413](https://www.github.com/googleapis/nodejs-org-policy/commit/4129413f5cb8a6efd6bc205a337d0a69549920d0))
103+
104+
### [1.0.2](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.1...v1.0.2) (2021-05-25)
105+
106+
107+
### Bug Fixes
108+
109+
* GoogleAdsError missing using generator version after 1.3.0 ([#30](https://www.github.com/googleapis/nodejs-org-policy/issues/30)) ([8df94f7](https://www.github.com/googleapis/nodejs-org-policy/commit/8df94f7fb7ef3b47924048c878ea9827b3db1236))
110+
111+
### [1.0.1](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.0...v1.0.1) (2021-05-12)
112+
113+
114+
### Bug Fixes
115+
116+
* **deps:** require google-gax v2.12.0 ([#22](https://www.github.com/googleapis/nodejs-org-policy/issues/22)) ([6cedadc](https://www.github.com/googleapis/nodejs-org-policy/commit/6cedadc06a04f7ab6fe0f9c0610ad4caef9be2d6))
117+
* use require() to load JSON protos ([#25](https://www.github.com/googleapis/nodejs-org-policy/issues/25)) ([56ff04c](https://www.github.com/googleapis/nodejs-org-policy/commit/56ff04c79de8be8a6d7554732b5e92d37a08440c))
118+
119+
## 1.0.0 (2021-02-24)
120+
121+
122+
### ⚠ BREAKING CHANGES
123+
124+
* initial stub of library
125+
126+
### Features
127+
128+
* add tests and samples to library ([9815c45](https://www.github.com/googleapis/nodejs-org-policy/commit/9815c4580cd4cac10a54d44823463955a96cd1dc))
129+
* initial stub of library ([e4747f7](https://www.github.com/googleapis/nodejs-org-policy/commit/e4747f7250d3ef8ea50c9d7422e7c8f2788435b2))
130+
131+
132+
### Bug Fixes
133+
134+
* name ([6e75f44](https://www.github.com/googleapis/nodejs-org-policy/commit/6e75f441b9edc089c98694f1a44c68aec97c1674))
135+
* naming ([73587b3](https://www.github.com/googleapis/nodejs-org-policy/commit/73587b3be98fae59645ec4c71de25322a2002f40))

0 commit comments

Comments
 (0)