Skip to content

Commit b12c36b

Browse files
authored
Merge pull request #3596 from googleapis/nodejs-eventarc-publishing-migration
migrate code from googleapis/nodejs-eventarc-publishing
2 parents 6f9d2d1 + f1c37c2 commit b12c36b

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

+20032
-0
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"packages/google-cloud-dialogflow-cx": "3.1.2",
3838
"packages/google-cloud-dialogflow": "5.3.0",
3939
"packages/google-cloud-discoveryengine": "0.2.0",
40+
"packages/google-cloud-eventarc-publishing": "2.3.0",
4041
"packages/google-cloud-essentialcontacts": "2.0.2",
4142
"packages/google-cloud-eventarc": "2.2.0",
4243
"packages/google-cloud-domains": "2.1.2",
Lines changed: 20 additions & 0 deletions
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/eventarc/publishing/(.*)/.*-nodejs
20+
dest: /owl-bot-staging/google-cloud-eventarc-publishing/$1
Lines changed: 7 additions & 0 deletions
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/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}
Lines changed: 4 additions & 0 deletions
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
Lines changed: 14 additions & 0 deletions
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__
Lines changed: 55 additions & 0 deletions
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/eventarc-publishing',
47+
theme: 'lumen',
48+
default: {
49+
outputSourceFiles: false
50+
}
51+
},
52+
markdown: {
53+
idInHeadings: true
54+
}
55+
};
Lines changed: 29 additions & 0 deletions
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
Lines changed: 24 additions & 0 deletions
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+
}
Lines changed: 6 additions & 0 deletions
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/
Lines changed: 17 additions & 0 deletions
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+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "publishing",
3+
"api_shortname": "eventarcpublishing",
4+
"name_pretty": "Eventarc Publishing API",
5+
"product_documentation": "https://cloud.google.com/eventarc",
6+
"client_documentation": "https://googleapis.dev/nodejs/publishing/latest/",
7+
"issue_tracker": "https://issuetracker.google.com/savedsearches/5972217",
8+
"release_level": "stable",
9+
"language": "nodejs",
10+
"repo": "googleapis/google-cloud-node",
11+
"distribution_name": "@google-cloud/eventarc-publishing",
12+
"api_id": "eventarcpublishing.googleapis.com",
13+
"default_version": "v1",
14+
"requires_billing": true,
15+
"library_type": "GAPIC_AUTO"
16+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Changelog
2+
3+
## [2.3.0](https://github.com/googleapis/nodejs-eventarc-publishing/compare/v2.2.1...v2.3.0) (2022-11-11)
4+
5+
6+
### Features
7+
8+
* Introduce the event publishing using JSON representation of CloudEvents ([#58](https://github.com/googleapis/nodejs-eventarc-publishing/issues/58)) ([96e5ee2](https://github.com/googleapis/nodejs-eventarc-publishing/commit/96e5ee250747581f1532425991eeab882b84c783))
9+
10+
11+
### Bug Fixes
12+
13+
* Allow passing gax instance to client constructor ([#47](https://github.com/googleapis/nodejs-eventarc-publishing/issues/47)) ([207d122](https://github.com/googleapis/nodejs-eventarc-publishing/commit/207d12295f50ccf51f649cad9d602f48c31df08a))
14+
* Better support for fallback mode ([#42](https://github.com/googleapis/nodejs-eventarc-publishing/issues/42)) ([b2ba6da](https://github.com/googleapis/nodejs-eventarc-publishing/commit/b2ba6daea6f0fa347a95cb4f8b4cd887262c61a4))
15+
* Change import long to require ([#43](https://github.com/googleapis/nodejs-eventarc-publishing/issues/43)) ([0100737](https://github.com/googleapis/nodejs-eventarc-publishing/commit/01007371743c50830d42746c39f60971bde607f1))
16+
* **deps:** Use google-gax v3.5.2 ([#54](https://github.com/googleapis/nodejs-eventarc-publishing/issues/54)) ([f5c5220](https://github.com/googleapis/nodejs-eventarc-publishing/commit/f5c522061cd3f9dc4718328c132cac3c16357a7e))
17+
* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-eventarc-publishing/issues/1553)) ([#46](https://github.com/googleapis/nodejs-eventarc-publishing/issues/46)) ([3d134e1](https://github.com/googleapis/nodejs-eventarc-publishing/commit/3d134e18e9b6c929d468779cae5bd8b721be1bd2))
18+
* Preserve default values in x-goog-request-params header ([#48](https://github.com/googleapis/nodejs-eventarc-publishing/issues/48)) ([b65542e](https://github.com/googleapis/nodejs-eventarc-publishing/commit/b65542e3650b1a948e04ab18ada4b9ba8edf3918))
19+
* Regenerated protos JS and TS definitions ([#57](https://github.com/googleapis/nodejs-eventarc-publishing/issues/57)) ([459a592](https://github.com/googleapis/nodejs-eventarc-publishing/commit/459a592dc6148eeb6717926c8ee045497dd3d6af))
20+
* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-eventarc-publishing/issues/1546)) ([#45](https://github.com/googleapis/nodejs-eventarc-publishing/issues/45)) ([4ea321a](https://github.com/googleapis/nodejs-eventarc-publishing/commit/4ea321aa582df03ed1a4057cbfe7096d185d5978))
21+
* use google-gax v3.3.0 ([3d134e1](https://github.com/googleapis/nodejs-eventarc-publishing/commit/3d134e18e9b6c929d468779cae5bd8b721be1bd2))
22+
23+
## [2.2.1](https://github.com/googleapis/nodejs-eventarc-publishing/compare/v2.2.0...v2.2.1) (2022-07-12)
24+
25+
26+
### Bug Fixes
27+
28+
* **deps:** update dependency protobufjs to v7 ([#40](https://github.com/googleapis/nodejs-eventarc-publishing/issues/40)) ([7d6adab](https://github.com/googleapis/nodejs-eventarc-publishing/commit/7d6adab86352feccfd4df24739f2b72fd318100e))
29+
30+
## [2.2.0](https://github.com/googleapis/nodejs-eventarc-publishing/compare/v2.1.0...v2.2.0) (2022-07-05)
31+
32+
33+
### Features
34+
35+
* support regapic LRO ([2780681](https://github.com/googleapis/nodejs-eventarc-publishing/commit/27806816e26517795d4d43d87254e1b15351e428))
36+
37+
## [2.1.0](https://github.com/googleapis/nodejs-eventarc-publishing/compare/v2.0.0...v2.1.0) (2022-06-16)
38+
39+
40+
### Features
41+
42+
* Add publishing methods for channel resources ([#24](https://github.com/googleapis/nodejs-eventarc-publishing/issues/24)) ([df59107](https://github.com/googleapis/nodejs-eventarc-publishing/commit/df591071fd7c3d89089b65df9a00c39bec748f5b))
43+
44+
## [2.0.0](https://github.com/googleapis/nodejs-eventarc-publishing/compare/v1.1.0...v2.0.0) (2022-05-20)
45+
46+
47+
### ⚠ BREAKING CHANGES
48+
49+
* update library to use Node 12 (#31)
50+
51+
### Build System
52+
53+
* update library to use Node 12 ([#31](https://github.com/googleapis/nodejs-eventarc-publishing/issues/31)) ([117695a](https://github.com/googleapis/nodejs-eventarc-publishing/commit/117695a76a1c58c42a76672dcb5ee3c3baa8a661))
54+
55+
## [1.1.0](https://github.com/googleapis/nodejs-eventarc-publishing/compare/v1.0.0...v1.1.0) (2022-03-25)
56+
57+
58+
### Features
59+
60+
* promote to stable ([#13](https://github.com/googleapis/nodejs-eventarc-publishing/issues/13)) ([466cca6](https://github.com/googleapis/nodejs-eventarc-publishing/commit/466cca61a4c645cc11cfee236ffbcf85b97a645e)), closes [#6](https://github.com/googleapis/nodejs-eventarc-publishing/issues/6)
61+
62+
## 1.0.0 (2022-03-22)
63+
64+
65+
### Features
66+
67+
* add samples and tests to library ([8f10dfd](https://github.com/googleapis/nodejs-eventarc-publishing/commit/8f10dfd133b737922752d4260f9e38fdf0ffc791))
68+
* add templated files from docker image ([4a07289](https://github.com/googleapis/nodejs-eventarc-publishing/commit/4a07289e3ee2b2ba10b46a64531e000e81205802))
69+
* initial stub of library ([8945366](https://github.com/googleapis/nodejs-eventarc-publishing/commit/89453664665a870559a4349c77e50a3e673efe85))
70+
71+
72+
### Bug Fixes
73+
74+
* linkinator ([81adbb3](https://github.com/googleapis/nodejs-eventarc-publishing/commit/81adbb3934cdce6987944581a20edb1cdd87327c))
Lines changed: 94 additions & 0 deletions
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)