Skip to content

Commit

Permalink
Merge pull request #3614 from googleapis/nodejs-org-policy-migration
Browse files Browse the repository at this point in the history
migrate code from googleapis/nodejs-org-policy
  • Loading branch information
sofisl authored Nov 12, 2022
2 parents 45c1a0f + 1f56fa3 commit 90b8f91
Show file tree
Hide file tree
Showing 49 changed files with 30,938 additions and 0 deletions.
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"packages/google-cloud-memcache": "2.1.4",
"packages/google-cloud-metastore": "3.1.2",
"packages/google-cloud-monitoring": "3.0.3",
"packages/google-cloud-orgpolicy": "2.0.3",
"packages/google-cloud-optimization": "2.1.1",
"packages/google-cloud-networksecurity": "1.0.2",
"packages/google-cloud-networkmanagement": "2.3.1",
Expand Down
23 changes: 23 additions & 0 deletions packages/google-cloud-orgpolicy/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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/cloud/orgpolicy/(.*)/.*-nodejs
dest: /owl-bot-staging/google-cloud-orgpolicy/$1

begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b

7 changes: 7 additions & 0 deletions packages/google-cloud-orgpolicy/.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-cloud-orgpolicy/.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-cloud-orgpolicy/.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-cloud-orgpolicy/.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-cloud-orgpolicy/.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/org-policy',
theme: 'lumen',
default: {
outputSourceFiles: false
}
},
markdown: {
idInHeadings: true
}
};
29 changes: 29 additions & 0 deletions packages/google-cloud-orgpolicy/.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-cloud-orgpolicy/.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-cloud-orgpolicy/.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-cloud-orgpolicy/.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-cloud-orgpolicy/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"language": "nodejs",
"requires_billing": true,
"product_documentation": "https://cloud.google.com/resource-manager/docs/organization-policy/overview",
"repo": "googleapis/google-cloud-node",
"default_version": "v2",
"name_pretty": "Organization Policy",
"release_level": "stable",
"distribution_name": "@google-cloud/org-policy",
"name": "org-policy",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/org-policy/latest",
"api_id": "orgpolicy.googleapis.com",
"issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
"api_shortname": "orgpolicy",
"library_type": "GAPIC_AUTO"
}
135 changes: 135 additions & 0 deletions packages/google-cloud-orgpolicy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# Changelog

## [2.0.3](https://github.com/googleapis/nodejs-org-policy/compare/v2.0.2...v2.0.3) (2022-11-11)


### Bug Fixes

* 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))
* **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))
* 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))
* 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))
* 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))
* use google-gax v3.3.0 ([068b0a5](https://github.com/googleapis/nodejs-org-policy/commit/068b0a55fe805cedab9e66f62071c8be56f465ed))

## [2.0.2](https://github.com/googleapis/nodejs-org-policy/compare/v2.0.1...v2.0.2) (2022-08-23)


### Bug Fixes

* 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))
* 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))
* 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))

## [2.0.1](https://github.com/googleapis/nodejs-org-policy/compare/v2.0.0...v2.0.1) (2022-06-30)


### Bug Fixes

* **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))

## [2.0.0](https://github.com/googleapis/nodejs-org-policy/compare/v1.1.2...v2.0.0) (2022-05-20)


### ⚠ BREAKING CHANGES

* Update library to use Node 12
* update library to use Node 12 (#108)

### Build System

* 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))


### *build

* Update library to use Node 12 ([310e83f](https://github.com/googleapis/nodejs-org-policy/commit/310e83ffe6f8c09ead2d4b82c01ec29aa09a6b6b))

### [1.1.2](https://github.com/googleapis/nodejs-org-policy/compare/v1.1.1...v1.1.2) (2022-02-16)


### Bug Fixes

* deprecate AlternativePolicySpec ([#90](https://github.com/googleapis/nodejs-org-policy/issues/90)) ([f25e613](https://github.com/googleapis/nodejs-org-policy/commit/f25e61305d09c3b5215e203bb36753568bb53d0a))

### [1.1.1](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.1.0...v1.1.1) (2021-09-09)


### Bug Fixes

* **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))

## [1.1.0](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.7...v1.1.0) (2021-08-23)


### Features

* 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))

### [1.0.7](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.6...v1.0.7) (2021-08-17)


### Bug Fixes

* **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))

### [1.0.6](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.5...v1.0.6) (2021-07-16)


### Bug Fixes

* 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))

### [1.0.5](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.4...v1.0.5) (2021-07-12)


### Bug Fixes

* **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))

### [1.0.4](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.3...v1.0.4) (2021-06-30)


### Bug Fixes

* **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))

### [1.0.3](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.2...v1.0.3) (2021-06-25)


### Bug Fixes

* 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))

### [1.0.2](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.1...v1.0.2) (2021-05-25)


### Bug Fixes

* 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))

### [1.0.1](https://www.github.com/googleapis/nodejs-org-policy/compare/v1.0.0...v1.0.1) (2021-05-12)


### Bug Fixes

* **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))
* 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))

## 1.0.0 (2021-02-24)


### ⚠ BREAKING CHANGES

* initial stub of library

### Features

* add tests and samples to library ([9815c45](https://www.github.com/googleapis/nodejs-org-policy/commit/9815c4580cd4cac10a54d44823463955a96cd1dc))
* initial stub of library ([e4747f7](https://www.github.com/googleapis/nodejs-org-policy/commit/e4747f7250d3ef8ea50c9d7422e7c8f2788435b2))


### Bug Fixes

* name ([6e75f44](https://www.github.com/googleapis/nodejs-org-policy/commit/6e75f441b9edc089c98694f1a44c68aec97c1674))
* naming ([73587b3](https://www.github.com/googleapis/nodejs-org-policy/commit/73587b3be98fae59645ec4c71de25322a2002f40))
Loading

0 comments on commit 90b8f91

Please sign in to comment.