Skip to content

Commit

Permalink
Merge pull request #3576 from googleapis/nodejs-binary-authorization-…
Browse files Browse the repository at this point in the history
…migration

migrate code from googleapis/nodejs-binary-authorization
  • Loading branch information
sofisl authored Nov 12, 2022
2 parents 6538b8a + 5a37a0b commit c0e7843
Show file tree
Hide file tree
Showing 100 changed files with 55,230 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 @@ -14,6 +14,7 @@
"packages/google-cloud-bigquery-datapolicies": "0.1.2",
"packages/google-cloud-bigquery-datatransfer": "3.1.5",
"packages/google-cloud-bigquery-reservation": "2.0.4",
"packages/google-cloud-binaryauthorization": "2.1.1",
"packages/google-cloud-billing": "3.1.3",
"packages/google-cloud-billing-budgets": "4.1.2",
"packages/google-cloud-certificatemanager": "0.6.2",
Expand Down
21 changes: 21 additions & 0 deletions packages/google-cloud-binaryauthorization/.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/cloud/binaryauthorization/(.*)/.*-nodejs
dest: /owl-bot-staging/google-cloud-binaryauthorization/$1

7 changes: 7 additions & 0 deletions packages/google-cloud-binaryauthorization/.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-binaryauthorization/.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-binaryauthorization/.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-binaryauthorization/.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-binaryauthorization/.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/binary-authorization',
theme: 'lumen',
default: {
outputSourceFiles: false
}
},
markdown: {
idInHeadings: true
}
};
29 changes: 29 additions & 0 deletions packages/google-cloud-binaryauthorization/.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-binaryauthorization/.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-binaryauthorization/.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-binaryauthorization/.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')
}
17 changes: 17 additions & 0 deletions packages/google-cloud-binaryauthorization/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/binary-authorization/latest",
"api_id": "binaryauthorization.googleapis.com",
"distribution_name": "@google-cloud/binary-authorization",
"release_level": "stable",
"default_version": "v1",
"language": "nodejs",
"name_pretty": "Binary Authorization",
"repo": "googleapis/google-cloud-node",
"product_documentation": "https://cloud.google.com/binary-authorization/",
"requires_billing": true,
"name": "binaryauthorization",
"issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
"codeowner_team": "@googleapis/aap-dpes",
"api_shortname": "binaryauthorization",
"library_type": "GAPIC_AUTO"
}
171 changes: 171 additions & 0 deletions packages/google-cloud-binaryauthorization/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
# Changelog

## [2.1.1](https://github.com/googleapis/nodejs-binary-authorization/compare/v2.1.0...v2.1.1) (2022-11-10)


### Bug Fixes

* **deps:** Use google-gax v3.5.2 ([#192](https://github.com/googleapis/nodejs-binary-authorization/issues/192)) ([09d6652](https://github.com/googleapis/nodejs-binary-authorization/commit/09d665200e6cc8fec5e026a2234990e48a3a94d4))
* Regenerated protos JS and TS definitions ([#196](https://github.com/googleapis/nodejs-binary-authorization/issues/196)) ([c03bdba](https://github.com/googleapis/nodejs-binary-authorization/commit/c03bdbadea89865d7975e797a6f8d2cb22765252))

## [2.1.0](https://github.com/googleapis/nodejs-binary-authorization/compare/v2.0.0...v2.1.0) (2022-10-06)


### Features

* Add new analysis status and cvss version fields ([#187](https://github.com/googleapis/nodejs-binary-authorization/issues/187)) ([d461de8](https://github.com/googleapis/nodejs-binary-authorization/commit/d461de86c3abc5db180ae32ea4e6063f3c00df25))


### Bug Fixes

* Allow passing gax instance to client constructor ([#177](https://github.com/googleapis/nodejs-binary-authorization/issues/177)) ([6ef4a52](https://github.com/googleapis/nodejs-binary-authorization/commit/6ef4a520c1bb49fca8159324dbf41af10931357e))
* Better support for fallback mode ([#170](https://github.com/googleapis/nodejs-binary-authorization/issues/170)) ([fa2e0b5](https://github.com/googleapis/nodejs-binary-authorization/commit/fa2e0b5991a80e912c65f896bdc0c2670b2a349d))
* Change import long to require ([#172](https://github.com/googleapis/nodejs-binary-authorization/issues/172)) ([6327374](https://github.com/googleapis/nodejs-binary-authorization/commit/6327374ea12b05cc4d752b059e4d9a098174f45b))
* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-binary-authorization/issues/1553)) ([#176](https://github.com/googleapis/nodejs-binary-authorization/issues/176)) ([1a53ab4](https://github.com/googleapis/nodejs-binary-authorization/commit/1a53ab4d1bb04f4759494973a3297c3dcf295833))
* Preserve default values in x-goog-request-params header ([#180](https://github.com/googleapis/nodejs-binary-authorization/issues/180)) ([80b0dcf](https://github.com/googleapis/nodejs-binary-authorization/commit/80b0dcf989b20f874e0912af641fdc12419887f2))
* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-binary-authorization/issues/1546)) ([#175](https://github.com/googleapis/nodejs-binary-authorization/issues/175)) ([f412b6e](https://github.com/googleapis/nodejs-binary-authorization/commit/f412b6e8349aab08d3d5d985cd38f91750c1f030))
* use google-gax v3.3.0 ([1a53ab4](https://github.com/googleapis/nodejs-binary-authorization/commit/1a53ab4d1bb04f4759494973a3297c3dcf295833))

## [2.0.0](https://github.com/googleapis/nodejs-binary-authorization/compare/v1.5.1...v2.0.0) (2022-06-30)


### ⚠ BREAKING CHANGES

* make v1 default service version (#139)
* update library to use Node 12 (#153)

### Features

* Adds a pod_namespace field to pod events created by Continuous Validation, to distinguish pods with the same name that run in different namespaces ([#159](https://github.com/googleapis/nodejs-binary-authorization/issues/159)) ([db983a2](https://github.com/googleapis/nodejs-binary-authorization/commit/db983a2911ae969da1ebf2096e48a33e78ea5ea1))
* Import of Grafeas from Github ([#156](https://github.com/googleapis/nodejs-binary-authorization/issues/156)) ([d0f06b7](https://github.com/googleapis/nodejs-binary-authorization/commit/d0f06b73b78137400461486d7b6020d370fd3efe))
* make v1 default service version ([#139](https://github.com/googleapis/nodejs-binary-authorization/issues/139)) ([308286e](https://github.com/googleapis/nodejs-binary-authorization/commit/308286e8d92d62ba8d1c0e6c7ec3d0a921e63294))


### Bug Fixes

* **docs:** describe fallback rest option ([#160](https://github.com/googleapis/nodejs-binary-authorization/issues/160)) ([dc48528](https://github.com/googleapis/nodejs-binary-authorization/commit/dc48528c213f6eb2557a647333879370494a00e7))


### Build System

* update library to use Node 12 ([#153](https://github.com/googleapis/nodejs-binary-authorization/issues/153)) ([cafc43b](https://github.com/googleapis/nodejs-binary-authorization/commit/cafc43b1d91f0aa23b8db9848a05fbd2cb65da10))

### [1.5.1](https://github.com/googleapis/nodejs-binary-authorization/compare/v1.5.0...v1.5.1) (2022-01-13)


### Bug Fixes

* Modify the bazel.BUILD file by hand to include the compliance protos which are not autogenerated ([#120](https://github.com/googleapis/nodejs-binary-authorization/issues/120)) ([4f30555](https://github.com/googleapis/nodejs-binary-authorization/commit/4f305551c6d9f97bd2e4ef8430fd7dc9cfc6f9c9))

## [1.5.0](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.4.0...v1.5.0) (2021-11-08)


### Features

* add new admission rule types to Policy feat: update SignatureAlgorithm enum to match algorithm names in KMS feat: add SystemPolicyV1Beta1 service ([#109](https://www.github.com/googleapis/nodejs-binary-authorization/issues/109)) ([c99878c](https://www.github.com/googleapis/nodejs-binary-authorization/commit/c99878c99a19b80301cdd9219390d00984e78c14))

## [1.4.0](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.3.0...v1.4.0) (2021-11-03)


### Features

* Updating the grafeas protos to include compliance and intoto attestation protos ([#106](https://www.github.com/googleapis/nodejs-binary-authorization/issues/106)) ([f1407cc](https://www.github.com/googleapis/nodejs-binary-authorization/commit/f1407ccc83b93a41aa2065fc2bd0ea91aa93e0e4))

## [1.3.0](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.2.0...v1.3.0) (2021-09-27)


### Features

* add v1 of the API, add generated samples ([#95](https://www.github.com/googleapis/nodejs-binary-authorization/issues/95)) ([baa9a6a](https://www.github.com/googleapis/nodejs-binary-authorization/commit/baa9a6aa096acc89a367a0ac4fcba5c899cb6f2a))

## [1.2.0](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.1.6...v1.2.0) (2021-08-23)


### Features

* turns on self-signed JWT feature flag ([#87](https://www.github.com/googleapis/nodejs-binary-authorization/issues/87)) ([e61630b](https://www.github.com/googleapis/nodejs-binary-authorization/commit/e61630b2e9b978798a5b01ea7c637bccad6b37e9))


### Bug Fixes

* **build:** migrate to using main branch ([#82](https://www.github.com/googleapis/nodejs-binary-authorization/issues/82)) ([3f11200](https://www.github.com/googleapis/nodejs-binary-authorization/commit/3f112009748af38f5f3939ceca28e49f527b583b))

### [1.1.6](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.1.5...v1.1.6) (2021-08-17)


### Bug Fixes

* **deps:** google-gax v2.24.1 ([#84](https://www.github.com/googleapis/nodejs-binary-authorization/issues/84)) ([4f6cadf](https://www.github.com/googleapis/nodejs-binary-authorization/commit/4f6cadf938a15a6d2e6332b3fd2697696c78106b))

### [1.1.5](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.1.4...v1.1.5) (2021-07-21)


### Bug Fixes

* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#74](https://www.github.com/googleapis/nodejs-binary-authorization/issues/74)) ([15b75a9](https://www.github.com/googleapis/nodejs-binary-authorization/commit/15b75a9136ecd8131b4fea24de8be69bfbfb989d))

### [1.1.4](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.1.3...v1.1.4) (2021-07-12)


### Bug Fixes

* **deps:** google-gax v2.17.1 ([#72](https://www.github.com/googleapis/nodejs-binary-authorization/issues/72)) ([ffb3861](https://www.github.com/googleapis/nodejs-binary-authorization/commit/ffb3861356b4a63ad32517e860efd265280ae831))

### [1.1.3](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.1.2...v1.1.3) (2021-06-29)


### Bug Fixes

* **deps:** google-gax v2.17.0 with mTLS ([#69](https://www.github.com/googleapis/nodejs-binary-authorization/issues/69)) ([3204b13](https://www.github.com/googleapis/nodejs-binary-authorization/commit/3204b13efb5ff3f75d8dec0a393c7b86200c8d28))

### [1.1.2](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.1.1...v1.1.2) (2021-06-22)


### Bug Fixes

* make request optional in all cases ([#63](https://www.github.com/googleapis/nodejs-binary-authorization/issues/63)) ([2a0380f](https://www.github.com/googleapis/nodejs-binary-authorization/commit/2a0380f6463b5ad0ee58b5a35ebe41d363390874))

### [1.1.1](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.1.0...v1.1.1) (2021-05-25)


### Bug Fixes

* GoogleAdsError missing using generator version after 1.3.0 ([#56](https://www.github.com/googleapis/nodejs-binary-authorization/issues/56)) ([32e1533](https://www.github.com/googleapis/nodejs-binary-authorization/commit/32e1533ae0d5ff336f3ec671fd7df34e88c49d12))

## [1.1.0](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.0.1...v1.1.0) (2021-05-12)


### Features

* Publish Binary Authorization ContinuousValidationEvent proto. ([#50](https://www.github.com/googleapis/nodejs-binary-authorization/issues/50)) ([f7b623d](https://www.github.com/googleapis/nodejs-binary-authorization/commit/f7b623d4427a7382b9e8643a8aeaa06516bd7350))


### Bug Fixes

* **deps:** require google-gax v2.12.0 ([#45](https://www.github.com/googleapis/nodejs-binary-authorization/issues/45)) ([c64f773](https://www.github.com/googleapis/nodejs-binary-authorization/commit/c64f77399f5f3586f18525559d1d13763a49555e))
* use require() to load JSON protos ([#48](https://www.github.com/googleapis/nodejs-binary-authorization/issues/48)) ([0783962](https://www.github.com/googleapis/nodejs-binary-authorization/commit/07839629bb8abc34bfceb5055d8b5c5304311109))

### [1.0.1](https://www.github.com/googleapis/nodejs-binary-authorization/compare/v1.0.0...v1.0.1) (2021-03-15)


### Bug Fixes

* **docs:** downgrade to beta to match release level ([#19](https://www.github.com/googleapis/nodejs-binary-authorization/issues/19)) ([90ade48](https://www.github.com/googleapis/nodejs-binary-authorization/commit/90ade48c8088e3b2b41b6059e57ee57fd12f17de))

## 1.0.0 (2020-12-12)


### ⚠ BREAKING CHANGES

* write initial samples (#5)
* initial stub of library

### Features

* initial stub of library ([43b695e](https://www.github.com/googleapis/nodejs-binary-authorization/commit/43b695e416eb52032a138502af170a3ce55969fa))
* write initial samples ([#5](https://www.github.com/googleapis/nodejs-binary-authorization/issues/5)) ([6828f7c](https://www.github.com/googleapis/nodejs-binary-authorization/commit/6828f7c01942aa90f6ccc390b38f711f3fdfba41))


### Bug Fixes

* header ([f263482](https://www.github.com/googleapis/nodejs-binary-authorization/commit/f263482d3d500a35fa522a4f19ee1be5897d0b8b))
Loading

0 comments on commit c0e7843

Please sign in to comment.