Skip to content

Commit 6f9d2d1

Browse files
authored
Merge pull request #3617 from googleapis/nodejs-ids-migration
migrate code from googleapis/nodejs-ids
2 parents e07bbb1 + 54c8a41 commit 6f9d2d1

Some content is hidden

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

45 files changed

+29882
-0
lines changed

.release-please-manifest.json

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"packages/google-cloud-gkeconnect-gateway": "2.0.5",
4747
"packages/google-cloud-gkehub": "3.2.2",
4848
"packages/google-cloud-gkemulticloud": "0.1.4",
49+
"packages/google-cloud-ids": "2.1.2",
4950
"packages/google-cloud-iap": "2.0.3",
5051
"packages/google-cloud-iot": "3.1.2",
5152
"packages/google-cloud-language": "5.1.2",
@@ -69,6 +70,7 @@
6970
"packages/google-cloud-security-privateca": "4.1.2",
7071
"packages/google-cloud-secretmanager": "4.1.4",
7172
"packages/google-cloud-scheduler": "3.0.5",
73+
"packages/google-cloud-secretmanager": "4.1.4",
7274
"packages/google-cloud-security-publicca": "0.1.3",
7375
"packages/google-cloud-servicedirectory": "4.0.4",
7476
"packages/google-cloud-shell": "2.0.4",
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
15+
deep-remove-regex:
16+
- /owl-bot-staging
17+
18+
deep-copy-regex:
19+
- source: /google/cloud/ids/(.*)/.*-nodejs
20+
dest: /owl-bot-staging/google-cloud-ids/$1
+7
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/
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}
+4
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

packages/google-cloud-ids/.gitignore

+14
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__

packages/google-cloud-ids/.jsdoc.js

+55
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/ids',
47+
theme: 'lumen',
48+
default: {
49+
outputSourceFiles: false
50+
}
51+
},
52+
markdown: {
53+
idInHeadings: true
54+
}
55+
};

packages/google-cloud-ids/.mocharc.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
// 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

packages/google-cloud-ids/.nycrc

+24
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+
}
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/
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
module.exports = {
16+
...require('gts/.prettierrc.json')
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "ids",
3+
"api_shortname": "ids",
4+
"name_pretty": "Cloud IDS",
5+
"product_documentation": "https://cloud.google.com/intrusion-detection-system/",
6+
"client_documentation": "https://cloud.google.com/intrusion-detection-system",
7+
"issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
8+
"release_level": "stable",
9+
"language": "nodejs",
10+
"repo": "googleapis/google-cloud-node",
11+
"distribution_name": "@google-cloud/ids",
12+
"api_id": "ids.googleapis.com",
13+
"default_version": "v1",
14+
"requires_billing": true,
15+
"library_type": "GAPIC_AUTO"
16+
}
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Changelog
2+
3+
## [2.1.2](https://github.com/googleapis/nodejs-ids/compare/v2.1.1...v2.1.2) (2022-11-11)
4+
5+
6+
### Bug Fixes
7+
8+
* **deps:** Use google-gax v3.5.2 ([#62](https://github.com/googleapis/nodejs-ids/issues/62)) ([a20c7ed](https://github.com/googleapis/nodejs-ids/commit/a20c7eda50cfcc1230760244a8cb433b1715fb60))
9+
* Preserve default values in x-goog-request-params header ([#55](https://github.com/googleapis/nodejs-ids/issues/55)) ([5077d92](https://github.com/googleapis/nodejs-ids/commit/5077d92010d2f94a889ee141fcce3c0cf5785e0f))
10+
* Regenerated protos JS and TS definitions ([#65](https://github.com/googleapis/nodejs-ids/issues/65)) ([8435d1d](https://github.com/googleapis/nodejs-ids/commit/8435d1d54111121b2dbbf5a9eaff92f67083680b))
11+
12+
## [2.1.1](https://github.com/googleapis/nodejs-ids/compare/v2.1.0...v2.1.1) (2022-09-01)
13+
14+
15+
### Bug Fixes
16+
17+
* Allow passing gax instance to client constructor ([#54](https://github.com/googleapis/nodejs-ids/issues/54)) ([f97b0d0](https://github.com/googleapis/nodejs-ids/commit/f97b0d035bac9f822353328346ee9b2a49b09431))
18+
* Better support for fallback mode ([#49](https://github.com/googleapis/nodejs-ids/issues/49)) ([681eb87](https://github.com/googleapis/nodejs-ids/commit/681eb8785d22aa934cd8be3ec5fe20f56a1b7d57))
19+
* Change import long to require ([#50](https://github.com/googleapis/nodejs-ids/issues/50)) ([0c1501e](https://github.com/googleapis/nodejs-ids/commit/0c1501e96d1b64bb1b9d4f26396b12cfb685a99b))
20+
* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-ids/issues/1553)) ([#53](https://github.com/googleapis/nodejs-ids/issues/53)) ([9056d31](https://github.com/googleapis/nodejs-ids/commit/9056d31088344ad061bef7e44818b163b526cf9e))
21+
* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-ids/issues/1546)) ([#52](https://github.com/googleapis/nodejs-ids/issues/52)) ([b25aa46](https://github.com/googleapis/nodejs-ids/commit/b25aa4678c64e77666a9a4b9af29e11e0c214719))
22+
23+
## [2.1.0](https://github.com/googleapis/nodejs-ids/compare/v2.0.0...v2.1.0) (2022-07-12)
24+
25+
26+
### Features
27+
28+
* support regapic LRO ([#44](https://github.com/googleapis/nodejs-ids/issues/44)) ([c2f9093](https://github.com/googleapis/nodejs-ids/commit/c2f909353ef73faeb3c272d0384490739b1134af))
29+
30+
## [2.0.0](https://github.com/googleapis/nodejs-ids/compare/v1.1.0...v2.0.0) (2022-05-19)
31+
32+
33+
### ⚠ BREAKING CHANGES
34+
35+
* update library to use Node 12 (#38)
36+
37+
### Build System
38+
39+
* update library to use Node 12 ([#38](https://github.com/googleapis/nodejs-ids/issues/38)) ([64e894b](https://github.com/googleapis/nodejs-ids/commit/64e894b0f0f77b5df7ce1a536ae56285b01821c6))
40+
41+
## [1.1.0](https://github.com/googleapis/nodejs-ids/compare/v1.0.0...v1.1.0) (2022-03-23)
42+
43+
44+
### Features
45+
46+
* promote to stable ([#22](https://github.com/googleapis/nodejs-ids/issues/22)) ([3ed2274](https://github.com/googleapis/nodejs-ids/commit/3ed22745929a394165bbf7f853c80305c9900ae3)), closes [#7](https://github.com/googleapis/nodejs-ids/issues/7)
47+
48+
## 1.0.0 (2022-01-10)
49+
50+
51+
### Features
52+
53+
* add templated files from docker image ([d401118](https://www.github.com/googleapis/nodejs-ids/commit/d4011189369a95da6da492fdd4612a260ccf4909))
54+
* add tests and samples to library ([#5](https://www.github.com/googleapis/nodejs-ids/issues/5)) ([99b8cbe](https://www.github.com/googleapis/nodejs-ids/commit/99b8cbe7440da0157031ef41eb220d12e98d256b))
55+
* initial stub of library ([1301c7c](https://www.github.com/googleapis/nodejs-ids/commit/1301c7cd33c3e83498069b7b21caa211014a6737))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<!-- # Generated by synthtool. DO NOT EDIT! !-->
2+
# Code of Conduct
3+
4+
## Our Pledge
5+
6+
In the interest of fostering an open and welcoming environment, we as
7+
contributors and maintainers pledge to making participation in our project and
8+
our community a harassment-free experience for everyone, regardless of age, body
9+
size, disability, ethnicity, gender identity and expression, level of
10+
experience, education, socio-economic status, nationality, personal appearance,
11+
race, religion, or sexual identity and orientation.
12+
13+
## Our Standards
14+
15+
Examples of behavior that contributes to creating a positive environment
16+
include:
17+
18+
* Using welcoming and inclusive language
19+
* Being respectful of differing viewpoints and experiences
20+
* Gracefully accepting constructive criticism
21+
* Focusing on what is best for the community
22+
* Showing empathy towards other community members
23+
24+
Examples of unacceptable behavior by participants include:
25+
26+
* The use of sexualized language or imagery and unwelcome sexual attention or
27+
advances
28+
* Trolling, insulting/derogatory comments, and personal or political attacks
29+
* Public or private harassment
30+
* Publishing others' private information, such as a physical or electronic
31+
address, without explicit permission
32+
* Other conduct which could reasonably be considered inappropriate in a
33+
professional setting
34+
35+
## Our Responsibilities
36+
37+
Project maintainers are responsible for clarifying the standards of acceptable
38+
behavior and are expected to take appropriate and fair corrective action in
39+
response to any instances of unacceptable behavior.
40+
41+
Project maintainers have the right and responsibility to remove, edit, or reject
42+
comments, commits, code, wiki edits, issues, and other contributions that are
43+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
44+
contributor for other behaviors that they deem inappropriate, threatening,
45+
offensive, or harmful.
46+
47+
## Scope
48+
49+
This Code of Conduct applies both within project spaces and in public spaces
50+
when an individual is representing the project or its community. Examples of
51+
representing a project or community include using an official project e-mail
52+
address, posting via an official social media account, or acting as an appointed
53+
representative at an online or offline event. Representation of a project may be
54+
further defined and clarified by project maintainers.
55+
56+
This Code of Conduct also applies outside the project spaces when the Project
57+
Steward has a reasonable belief that an individual's behavior may have a
58+
negative impact on the project or its community.
59+
60+
## Conflict Resolution
61+
62+
We do not believe that all conflict is bad; healthy debate and disagreement
63+
often yield positive results. However, it is never okay to be disrespectful or
64+
to engage in behavior that violates the project’s code of conduct.
65+
66+
If you see someone violating the code of conduct, you are encouraged to address
67+
the behavior directly with those involved. Many issues can be resolved quickly
68+
and easily, and this gives people more control over the outcome of their
69+
dispute. If you are unable to resolve the matter for any reason, or if the
70+
behavior is threatening or harassing, report it. We are dedicated to providing
71+
an environment where participants feel welcome and safe.
72+
73+
Reports should be directed to *[email protected]*, the
74+
Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to
75+
receive and address reported violations of the code of conduct. They will then
76+
work with a committee consisting of representatives from the Open Source
77+
Programs Office and the Google Open Source Strategy team. If for any reason you
78+
are uncomfortable reaching out to the Project Steward, please email
79+
80+
81+
We will investigate every complaint, but you may not receive a direct response.
82+
We will use our discretion in determining when and how to follow up on reported
83+
incidents, which may range from not taking action to permanent expulsion from
84+
the project and project-sponsored spaces. We will notify the accused of the
85+
report and provide them an opportunity to discuss it before any action is taken.
86+
The identity of the reporter will be omitted from the details of the report
87+
supplied to the accused. In potentially harmful situations, such as ongoing
88+
harassment or threats to anyone's safety, we may take action without notice.
89+
90+
## Attribution
91+
92+
This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
93+
available at
94+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

0 commit comments

Comments
 (0)