Skip to content

Commit

Permalink
Merge pull request #3609 from googleapis/nodejs-service-control-migra…
Browse files Browse the repository at this point in the history
…tion

migrate code from googleapis/nodejs-service-control
  • Loading branch information
sofisl authored Nov 12, 2022
2 parents 937dddd + 146eb15 commit 76a098d
Show file tree
Hide file tree
Showing 67 changed files with 45,492 additions and 0 deletions.
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-servicecontrol": "2.0.3",
"packages/google-appengine": "2.1.2",
"packages/google-cloud-accessapproval": "2.1.2",
"packages/google-cloud-apigeeconnect": "2.1.3",
Expand Down
23 changes: 23 additions & 0 deletions packages/google-api-servicecontrol/.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/api/servicecontrol/(.*)/.*-nodejs
dest: /owl-bot-staging/google-api-servicecontrol/$1

begin-after-commit-hash: ef7685951dedbb18bce99dcbc0dfd8bdac0fec86

7 changes: 7 additions & 0 deletions packages/google-api-servicecontrol/.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-servicecontrol/.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-servicecontrol/.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-servicecontrol/.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-servicecontrol/.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-control',
theme: 'lumen',
default: {
outputSourceFiles: false
}
},
markdown: {
idInHeadings: true
}
};
29 changes: 29 additions & 0 deletions packages/google-api-servicecontrol/.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-servicecontrol/.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-servicecontrol/.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-servicecontrol/.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-servicecontrol/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/service-control/latest",
"requires_billing": true,
"distribution_name": "@google-cloud/service-control",
"release_level": "stable",
"api_id": "servicecontrol.googleapis.com",
"name": "service-control",
"language": "nodejs",
"product_documentation": "https://cloud.google.com/service-infrastructure/docs/overview/",
"default_version": "v1",
"issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
"name_pretty": "Service Control API",
"repo": "googleapis/google-cloud-node",
"api_shortname": "servicecontrol",
"library_type": "GAPIC_AUTO"
}
133 changes: 133 additions & 0 deletions packages/google-api-servicecontrol/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# Changelog

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


### Bug Fixes

* **deps:** Use google-gax v3.5.2 ([#163](https://github.com/googleapis/nodejs-service-control/issues/163)) ([f883825](https://github.com/googleapis/nodejs-service-control/commit/f88382517737c02ea2f0f9fa4e6c624c7a67c6b8))
* Preserve default values in x-goog-request-params header ([#156](https://github.com/googleapis/nodejs-service-control/issues/156)) ([0548559](https://github.com/googleapis/nodejs-service-control/commit/0548559a942b3f9830d49f9fa54aa75f259d355d))
* Regenerated protos JS and TS definitions ([#166](https://github.com/googleapis/nodejs-service-control/issues/166)) ([f9348ff](https://github.com/googleapis/nodejs-service-control/commit/f9348ff6913fe16f8dcf30dc81c96748d445c328))

## [2.0.2](https://github.com/googleapis/nodejs-service-control/compare/v2.0.1...v2.0.2) (2022-09-01)


### Bug Fixes

* Allow passing gax instance to client constructor ([#155](https://github.com/googleapis/nodejs-service-control/issues/155)) ([9c751ed](https://github.com/googleapis/nodejs-service-control/commit/9c751ed0914d63a02f34f965a921bb8c752cac6d))
* Better support for fallback mode ([#150](https://github.com/googleapis/nodejs-service-control/issues/150)) ([a46190d](https://github.com/googleapis/nodejs-service-control/commit/a46190dfbd4f6336f68f2daa12f2e3aa8ff536de))
* Change import long to require ([#151](https://github.com/googleapis/nodejs-service-control/issues/151)) ([8d0550f](https://github.com/googleapis/nodejs-service-control/commit/8d0550f24a2f1348aed0af1db01d91170478dbd8))
* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-service-control/issues/1553)) ([#154](https://github.com/googleapis/nodejs-service-control/issues/154)) ([d039b24](https://github.com/googleapis/nodejs-service-control/commit/d039b2489bd1c74b8a402de4e0c4c3d264e3655a))
* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-service-control/issues/1546)) ([#153](https://github.com/googleapis/nodejs-service-control/issues/153)) ([ee9cb23](https://github.com/googleapis/nodejs-service-control/commit/ee9cb231ea40cbcd01bd9a3b7748a0bf88bcf6d7))

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


### Bug Fixes

* **docs:** describe fallback rest option ([#143](https://github.com/googleapis/nodejs-service-control/issues/143)) ([0368172](https://github.com/googleapis/nodejs-service-control/commit/03681724fd6bfb1a4ed49b43b5e47c319b8b3be0))

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


### ⚠ BREAKING CHANGES

* update library to use Node 12 (#135)

### Build System

* update library to use Node 12 ([#135](https://github.com/googleapis/nodejs-service-control/issues/135)) ([f2177eb](https://github.com/googleapis/nodejs-service-control/commit/f2177eb862ddf2842b71a46e20524e4f0d7bcbf6))

## [1.4.0](https://github.com/googleapis/nodejs-service-control/compare/v1.3.0...v1.4.0) (2022-03-23)


### Features

* promote to stable ([#122](https://github.com/googleapis/nodejs-service-control/issues/122)) ([d4a1030](https://github.com/googleapis/nodejs-service-control/commit/d4a10308bb2ec3a5bfc7758a0b42eda6d73bc3a6)), closes [#8](https://github.com/googleapis/nodejs-service-control/issues/8) [#98](https://github.com/googleapis/nodejs-service-control/issues/98)

## [1.3.0](https://github.com/googleapis/nodejs-service-control/compare/v1.2.1...v1.3.0) (2022-02-23)


### Features

* add KMS configuration in settings ([#107](https://github.com/googleapis/nodejs-service-control/issues/107)) ([c2cc91a](https://github.com/googleapis/nodejs-service-control/commit/c2cc91a4a03e4f5752e72357526010807ba9e834))

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


### Bug Fixes

* **build:** set default branch to main ([#75](https://www.github.com/googleapis/nodejs-service-control/issues/75)) ([96864af](https://www.github.com/googleapis/nodejs-service-control/commit/96864af35c2ba7a08c5aacbdf73024ab15f722c3))

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


### Features

* turns on self-signed JWT feature flag ([#69](https://www.github.com/googleapis/nodejs-service-control/issues/69)) ([511f88b](https://www.github.com/googleapis/nodejs-service-control/commit/511f88b92881633b55a3528715f4453b23ce1765))

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


### Bug Fixes

* **deps:** google-gax v2.24.1 ([#67](https://www.github.com/googleapis/nodejs-service-control/issues/67)) ([361c16d](https://www.github.com/googleapis/nodejs-service-control/commit/361c16d3ab1b3c48b38eaf444ee184ce196c2a1d))

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


### Bug Fixes

* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#59](https://www.github.com/googleapis/nodejs-service-control/issues/59)) ([23d1f95](https://www.github.com/googleapis/nodejs-service-control/commit/23d1f95107ad50c82cac555fbc476e00dc7bba08))

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


### Bug Fixes

* **deps:** google-gax v2.17.1 ([#57](https://www.github.com/googleapis/nodejs-service-control/issues/57)) ([a52e18e](https://www.github.com/googleapis/nodejs-service-control/commit/a52e18ebd99331065226f0bc7edf7807d84c8920))

### [1.1.1](https://www.github.com/googleapis/nodejs-service-control/compare/v1.1.0...v1.1.1) (2021-07-05)


### Bug Fixes

* **deps:** require google-gax v2.17.0 ([#54](https://www.github.com/googleapis/nodejs-service-control/issues/54)) ([05e8422](https://www.github.com/googleapis/nodejs-service-control/commit/05e84223d4a5950da7d365e81dc1aaa830956976))

## [1.1.0](https://www.github.com/googleapis/nodejs-service-control/compare/v1.0.0...v1.1.0) (2021-06-25)


### Features

* Added the gRPC service config for the Service Controller v1 API docs: Updated some comments. ([#50](https://www.github.com/googleapis/nodejs-service-control/issues/50)) ([edc4448](https://www.github.com/googleapis/nodejs-service-control/commit/edc444896e4b2dda721d3ca8b8591e61eb267e66))


### Bug Fixes

* add dependency log_severity.proto ([#48](https://www.github.com/googleapis/nodejs-service-control/issues/48)) ([d7c32ff](https://www.github.com/googleapis/nodejs-service-control/commit/d7c32ff39298b466d72827934dea46da783fcfbe))

## [1.0.0](https://www.github.com/googleapis/nodejs-service-control/compare/v0.2.0...v1.0.0) (2021-05-19)


### Features

* promote release level to GA ([#29](https://www.github.com/googleapis/nodejs-service-control/issues/29)) ([451616e](https://www.github.com/googleapis/nodejs-service-control/commit/451616e983be335363cf44bb5859915dd3cc274e))
* promote release level to GA ([#36](https://www.github.com/googleapis/nodejs-service-control/issues/36)) ([bb817ba](https://www.github.com/googleapis/nodejs-service-control/commit/bb817bae13691eb16c1560633a31405039b2eee0))


### Bug Fixes

* **deps:** require google-gax v2.12.0 ([#30](https://www.github.com/googleapis/nodejs-service-control/issues/30)) ([3981dd3](https://www.github.com/googleapis/nodejs-service-control/commit/3981dd39ed8a1b71c6de8dd26d5fdbd552167215))
* use require() to load JSON protos ([#32](https://www.github.com/googleapis/nodejs-service-control/issues/32)) ([d9ac47d](https://www.github.com/googleapis/nodejs-service-control/commit/d9ac47d4651d9ad84c0ebe79900adb795c3c9861))

## 0.2.0 (2021-03-30)


### ⚠ BREAKING CHANGES

* initial stub of library

### Features

* add initial samples and tests ([#2](https://www.github.com/googleapis/nodejs-service-control/issues/2)) ([84ac532](https://www.github.com/googleapis/nodejs-service-control/commit/84ac53269a3d60c57ee10e5a17ae00587f90e2a7))
* initial stub of library ([5d457dd](https://www.github.com/googleapis/nodejs-service-control/commit/5d457ddda7535e5c2aec002b1a0633372dfc9242))
Loading

0 comments on commit 76a098d

Please sign in to comment.