Skip to content

Commit

Permalink
Merge pull request #3643 from googleapis/nodejs-network-connectivity-…
Browse files Browse the repository at this point in the history
…migration

migrate code from googleapis/nodejs-network-connectivity
  • Loading branch information
sofisl authored Nov 16, 2022
2 parents 8a8745d + b21a704 commit 02f8746
Show file tree
Hide file tree
Showing 80 changed files with 67,255 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
"packages/google-cloud-functions": "2.2.3",
"packages/google-cloud-gaming": "3.1.3",
"packages/google-cloud-gkebackup": "0.2.2",
"packages/google-cloud-gkeconnect-gateway": "2.0.5",
"packages/google-cloud-gkehub": "3.2.2",
"packages/google-cloud-gkemulticloud": "0.1.4",
"packages/google-cloud-documentai": "6.1.0",
"packages/google-cloud-filestore": "2.2.0",
"packages/google-cloud-gkeconnect-gateway": "2.0.5",
Expand All @@ -66,6 +69,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-networkconnectivity": "2.2.0",
"packages/google-cloud-networkmanagement": "2.3.1",
"packages/google-cloud-networksecurity": "1.0.2",
"packages/google-cloud-notebooks": "2.1.2",
Expand Down
21 changes: 21 additions & 0 deletions packages/google-cloud-networkconnectivity/.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/networkconnectivity/(.*)/.*-nodejs
dest: /owl-bot-staging/google-cloud-networkconnectivity/$1

7 changes: 7 additions & 0 deletions packages/google-cloud-networkconnectivity/.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-networkconnectivity/.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-networkconnectivity/.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-networkconnectivity/.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-networkconnectivity/.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/network-connectivity',
theme: 'lumen',
default: {
outputSourceFiles: false
}
},
markdown: {
idInHeadings: true
}
};
29 changes: 29 additions & 0 deletions packages/google-cloud-networkconnectivity/.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-networkconnectivity/.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-networkconnectivity/.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-networkconnectivity/.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-networkconnectivity/.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/network-connectivity/latest",
"api_id": "networkconnectivity.googleapis.com",
"distribution_name": "@google-cloud/network-connectivity",
"release_level": "stable",
"default_version": "v1",
"language": "nodejs",
"name_pretty": "Network Connectivity Center",
"repo": "googleapis/google-cloud-node",
"product_documentation": "https://cloud.google.com/network-connectivity/docs",
"requires_billing": true,
"name": "network-connectivity",
"issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
"api_shortname": "networkconnectivity",
"library_type": "GAPIC_AUTO"
}
168 changes: 168 additions & 0 deletions packages/google-cloud-networkconnectivity/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
# Changelog

## [2.2.0](https://github.com/googleapis/nodejs-network-connectivity/compare/v2.1.2...v2.2.0) (2022-11-15)


### Features

* Add policy based routing" will work ([#160](https://github.com/googleapis/nodejs-network-connectivity/issues/160)) ([d6b9ce3](https://github.com/googleapis/nodejs-network-connectivity/commit/d6b9ce3a71b644fe957ace9ce571c50bd89b0781))


### Bug Fixes

* **deps:** Use google-gax v3.5.2 ([#161](https://github.com/googleapis/nodejs-network-connectivity/issues/161)) ([fe9160f](https://github.com/googleapis/nodejs-network-connectivity/commit/fe9160f050ee1f05fcdc3d119df4af86872e73c6))
* Preserve default values in x-goog-request-params header ([#153](https://github.com/googleapis/nodejs-network-connectivity/issues/153)) ([67f13e1](https://github.com/googleapis/nodejs-network-connectivity/commit/67f13e161733f86ce61af222f91222cc481cc149))
* Regenerated protos JS and TS definitions ([#164](https://github.com/googleapis/nodejs-network-connectivity/issues/164)) ([dfbaab3](https://github.com/googleapis/nodejs-network-connectivity/commit/dfbaab3ded7b89bf7a79da8aca28637e73298b54))

## [2.1.2](https://github.com/googleapis/nodejs-network-connectivity/compare/v2.1.1...v2.1.2) (2022-09-01)


### Bug Fixes

* Allow passing gax instance to client constructor ([#151](https://github.com/googleapis/nodejs-network-connectivity/issues/151)) ([123398d](https://github.com/googleapis/nodejs-network-connectivity/commit/123398deb9a18c61099525315a4709672211cd49))
* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-network-connectivity/issues/1553)) ([#150](https://github.com/googleapis/nodejs-network-connectivity/issues/150)) ([e925e35](https://github.com/googleapis/nodejs-network-connectivity/commit/e925e358aee02125f9bfcf6f0bab54a41c848695))

## [2.1.1](https://github.com/googleapis/nodejs-network-connectivity/compare/v2.1.0...v2.1.1) (2022-08-23)


### Bug Fixes

* better support for fallback mode ([#146](https://github.com/googleapis/nodejs-network-connectivity/issues/146)) ([76610c8](https://github.com/googleapis/nodejs-network-connectivity/commit/76610c8df1cf6ff75f473c06beb615d9957ecb72))
* change import long to require ([#147](https://github.com/googleapis/nodejs-network-connectivity/issues/147)) ([c7a03e5](https://github.com/googleapis/nodejs-network-connectivity/commit/c7a03e515b22a9f00fc2bb3cbfc0b947e84513af))
* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-network-connectivity/issues/1546)) ([#149](https://github.com/googleapis/nodejs-network-connectivity/issues/149)) ([df4946c](https://github.com/googleapis/nodejs-network-connectivity/commit/df4946c655356a71a4e6e4468bf19cace01b3e12))

## [2.1.0](https://github.com/googleapis/nodejs-network-connectivity/compare/v2.0.0...v2.1.0) (2022-06-30)


### Features

* support regapic LRO ([#140](https://github.com/googleapis/nodejs-network-connectivity/issues/140)) ([1a369b4](https://github.com/googleapis/nodejs-network-connectivity/commit/1a369b4bec661a9c69f26ca7440b85c94c82b9ca))

## [2.0.0](https://github.com/googleapis/nodejs-network-connectivity/compare/v1.5.0...v2.0.0) (2022-05-19)


### ⚠ BREAKING CHANGES

* update library to use Node 12 (#135)
* make v1 default service (#121)

### Features

* make v1 default service ([#121](https://github.com/googleapis/nodejs-network-connectivity/issues/121)) ([7d98433](https://github.com/googleapis/nodejs-network-connectivity/commit/7d98433347dbc19014c0e9650c3955d9d956bfbf))


### Build System

* update library to use Node 12 ([#135](https://github.com/googleapis/nodejs-network-connectivity/issues/135)) ([07336d8](https://github.com/googleapis/nodejs-network-connectivity/commit/07336d8ec230f2f890648cbe3a5ec092381c1e5e))

## [1.5.0](https://github.com/googleapis/nodejs-network-connectivity/compare/v1.4.2...v1.5.0) (2022-02-08)


### Features

* Add LocationMetadata message feat: Add RoutingVPC.required_for_new_site_to_site_data_transfer_spokes field docs: Update comments to reflect that spokes can now be created with data transfer disabled ([#114](https://github.com/googleapis/nodejs-network-connectivity/issues/114)) ([4cbecd9](https://github.com/googleapis/nodejs-network-connectivity/commit/4cbecd92941e66f1ba7f72879a3b36e23b4b4de2))

### [1.4.2](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.4.1...v1.4.2) (2021-11-23)


### Bug Fixes

* Mark a couple networkconnectivity API fields as required, to match implemented behavior ([308e54f](https://www.github.com/googleapis/nodejs-network-connectivity/commit/308e54fbb9785ac4c77afd833f05c9f9683211ea))

### [1.4.1](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.4.0...v1.4.1) (2021-09-08)


### Bug Fixes

* **build:** update branch to main ([#81](https://www.github.com/googleapis/nodejs-network-connectivity/issues/81)) ([7c3a917](https://www.github.com/googleapis/nodejs-network-connectivity/commit/7c3a9179e1b2a770c6cdd16d8cf935c99b5cc9eb))

## [1.4.0](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.3.0...v1.4.0) (2021-08-25)


### Features

* Add hub.routing_vpcs field docs: Specify that site_to_site_data_transfer field must be set to true ([cfc63fa](https://www.github.com/googleapis/nodejs-network-connectivity/commit/cfc63fa4dcb74f99d0dae8df45530a1139ac7c36))
* Remove ActivateSpoke and DeactivateSpoke methods ([#78](https://www.github.com/googleapis/nodejs-network-connectivity/issues/78)) ([cfc63fa](https://www.github.com/googleapis/nodejs-network-connectivity/commit/cfc63fa4dcb74f99d0dae8df45530a1139ac7c36))

## [1.3.0](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.2.1...v1.3.0) (2021-08-23)


### Features

* turns on self-signed JWT feature flag ([#76](https://www.github.com/googleapis/nodejs-network-connectivity/issues/76)) ([9ef53f9](https://www.github.com/googleapis/nodejs-network-connectivity/commit/9ef53f9ecd0fc572824984b9f948a7919384ffe8))

### [1.2.1](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.2.0...v1.2.1) (2021-08-17)


### Bug Fixes

* **deps:** google-gax v2.24.1 ([#74](https://www.github.com/googleapis/nodejs-network-connectivity/issues/74)) ([e8c6f45](https://www.github.com/googleapis/nodejs-network-connectivity/commit/e8c6f45241e83e35dfddb22c708336b1d2e1c0a2))

## [1.2.0](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.1.6...v1.2.0) (2021-07-30)


### Features

* Add files for Network Connectivity v1 API. ([#68](https://www.github.com/googleapis/nodejs-network-connectivity/issues/68)) ([5028509](https://www.github.com/googleapis/nodejs-network-connectivity/commit/5028509d9a0ec649596b11a60906d23e68ff684d))

### [1.1.6](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.1.5...v1.1.6) (2021-07-16)


### Bug Fixes

* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#64](https://www.github.com/googleapis/nodejs-network-connectivity/issues/64)) ([dea7b0e](https://www.github.com/googleapis/nodejs-network-connectivity/commit/dea7b0e623a99483d05fec6a1b7ea422f686e86c))

### [1.1.5](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.1.4...v1.1.5) (2021-07-12)


### Bug Fixes

* **deps:** google-gax v2.17.1 ([#62](https://www.github.com/googleapis/nodejs-network-connectivity/issues/62)) ([7156523](https://www.github.com/googleapis/nodejs-network-connectivity/commit/7156523ebe8d49457d2d57b77db048ce3ab47d4f))

### [1.1.4](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.1.3...v1.1.4) (2021-06-30)


### Bug Fixes

* **deps:** google-gax v2.17.0 with mTLS ([#59](https://www.github.com/googleapis/nodejs-network-connectivity/issues/59)) ([3f81f41](https://www.github.com/googleapis/nodejs-network-connectivity/commit/3f81f4139e316a97a76b5482478d44d5a8cc173a))

### [1.1.3](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.1.2...v1.1.3) (2021-06-23)


### Bug Fixes

* make request optional in all cases ([#54](https://www.github.com/googleapis/nodejs-network-connectivity/issues/54)) ([598fb23](https://www.github.com/googleapis/nodejs-network-connectivity/commit/598fb232c03e46a169b898be134261eed6948c97))

### [1.1.2](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.1.1...v1.1.2) (2021-05-25)


### Bug Fixes

* GoogleAdsError missing using generator version after 1.3.0 ([#47](https://www.github.com/googleapis/nodejs-network-connectivity/issues/47)) ([bc0944e](https://www.github.com/googleapis/nodejs-network-connectivity/commit/bc0944e2320a10abc9e2a8bb36ff48bff904c9c3))

### [1.1.1](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.1.0...v1.1.1) (2021-05-12)


### Bug Fixes

* **deps:** require google-gax v2.12.0 ([#39](https://www.github.com/googleapis/nodejs-network-connectivity/issues/39)) ([2564f8e](https://www.github.com/googleapis/nodejs-network-connectivity/commit/2564f8e86d03e6c4b98f46c8b9ed2be35ad6550a))
* use require() to load JSON protos ([#42](https://www.github.com/googleapis/nodejs-network-connectivity/issues/42)) ([9632da3](https://www.github.com/googleapis/nodejs-network-connectivity/commit/9632da36d550a4775b34d4ab54300eae00960b41))

## [1.1.0](https://www.github.com/googleapis/nodejs-network-connectivity/compare/v1.0.0...v1.1.0) (2021-03-02)


### Features

* Add state field in resources docs: Minor changes ([#11](https://www.github.com/googleapis/nodejs-network-connectivity/issues/11)) ([22193b9](https://www.github.com/googleapis/nodejs-network-connectivity/commit/22193b9cb8e767f0b93a17c353f4cb1b38acf317))

## 1.0.0 (2021-02-16)


### ⚠ BREAKING CHANGES

* initial stub of library

### Features

* add initial samples and tests ([#2](https://www.github.com/googleapis/nodejs-network-connectivity/issues/2)) ([c94271a](https://www.github.com/googleapis/nodejs-network-connectivity/commit/c94271a424a855cb085aeb2874f7e8bf2edc84a1))
* initial stub of library ([c1d7ea0](https://www.github.com/googleapis/nodejs-network-connectivity/commit/c1d7ea0d5ae0b2f816c340d46b508a6eb33e7d83))
Loading

0 comments on commit 02f8746

Please sign in to comment.