Skip to content

Commit 174c07b

Browse files
authored
Merge pull request #3420 from googleapis/nodejs-bigquery-data-exchange-migration
migrate code from googleapis/nodejs-bigquery-data-exchange
2 parents 3d21f04 + f410cc9 commit 174c07b

File tree

57 files changed

+45429
-0
lines changed

Some content is hidden

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

57 files changed

+45429
-0
lines changed

.release-please-manifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"packages/google-cloud-beyondcorp-clientconnectorservices": "0.2.1",
99
"packages/google-cloud-beyondcorp-clientgateways": "0.2.1",
1010
"packages/google-cloud-bigquery-analyticshub": "0.1.0",
11+
"packages/google-cloud-bigquery-dataexchange": "0.3.0",
1112
"packages/google-cloud-bigquery-datapolicies": "0.1.0",
1213
"packages/google-cloud-bigquery-datatransfer": "3.1.3",
1314
"packages/google-cloud-gkemulticloud": "0.1.2",
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/bigquery/dataexchange/(.*)/.*-nodejs
20+
dest: /owl-bot-staging/google-cloud-bigquery-dataexchange/$1
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/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}
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
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__
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/bigquery-data-exchange',
47+
theme: 'lumen',
48+
default: {
49+
outputSourceFiles: false
50+
}
51+
},
52+
markdown: {
53+
idInHeadings: true
54+
}
55+
};
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
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/
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,15 @@
1+
{
2+
"name": "analyticshub",
3+
"name_pretty": "Analytics Hub API",
4+
"product_documentation": "https://cloud.google.com/analytics-hub",
5+
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/bigquery-data-exchange/latest",
6+
"issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
7+
"release_level": "beta",
8+
"language": "nodejs",
9+
"repo": "googleapis/google-cloud-node",
10+
"distribution_name": "@google-cloud/bigquery-data-exchange",
11+
"api_id": "analyticshub.googleapis.com",
12+
"default_version": "v1beta1",
13+
"requires_billing": true,
14+
"library_type": "GAPIC_AUTO"
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Changelog
2+
3+
## [0.3.0](https://github.com/googleapis/nodejs-bigquery-data-exchange/compare/v0.2.1...v0.3.0) (2022-09-26)
4+
5+
6+
### ⚠ BREAKING CHANGES
7+
8+
* refactor references to Category message
9+
* refresh current dataexchange/v1beta1/* directory to include recent change in protos. Removed
10+
11+
### Features
12+
13+
* update BigQuery Analytics Hub API v1beta1 client ([fe3d671](https://github.com/googleapis/nodejs-bigquery-data-exchange/commit/fe3d671d2cecbdb1285975dc273fc17cfebf6538))
14+
15+
16+
### Bug Fixes
17+
18+
* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-bigquery-data-exchange/issues/1553)) ([#23](https://github.com/googleapis/nodejs-bigquery-data-exchange/issues/23)) ([c2bd811](https://github.com/googleapis/nodejs-bigquery-data-exchange/commit/c2bd811802e7ae10d21eba8d901bcbbf528f003e))
19+
* refactor references to Category message ([fe3d671](https://github.com/googleapis/nodejs-bigquery-data-exchange/commit/fe3d671d2cecbdb1285975dc273fc17cfebf6538))
20+
* use google-gax v3.3.0 ([c2bd811](https://github.com/googleapis/nodejs-bigquery-data-exchange/commit/c2bd811802e7ae10d21eba8d901bcbbf528f003e))
21+
22+
## [0.2.1](https://github.com/googleapis/nodejs-bigquery-data-exchange/compare/v0.2.0...v0.2.1) (2022-08-23)
23+
24+
25+
### Bug Fixes
26+
27+
* better support for fallback mode ([#19](https://github.com/googleapis/nodejs-bigquery-data-exchange/issues/19)) ([de4f51f](https://github.com/googleapis/nodejs-bigquery-data-exchange/commit/de4f51ff6e053732c5e190b96f9e68e88603048c))
28+
* change import long to require ([#20](https://github.com/googleapis/nodejs-bigquery-data-exchange/issues/20)) ([7a9eb42](https://github.com/googleapis/nodejs-bigquery-data-exchange/commit/7a9eb42279f185d95003df7c713666e84ec94c65))
29+
* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-bigquery-data-exchange/issues/1546)) ([#22](https://github.com/googleapis/nodejs-bigquery-data-exchange/issues/22)) ([34013d3](https://github.com/googleapis/nodejs-bigquery-data-exchange/commit/34013d3984966bb6922475d98047e21e104f6547))
30+
31+
## [0.2.0](https://github.com/googleapis/nodejs-bigquery-data-exchange/compare/v0.1.0...v0.2.0) (2022-07-04)
32+
33+
34+
### Features
35+
36+
* support regapic LRO ([e4e9083](https://github.com/googleapis/nodejs-bigquery-data-exchange/commit/e4e90832a8d3b33284c176d89196511e9f3739d9))
37+
38+
## 0.1.0 (2022-05-30)
39+
40+
41+
### Features
42+
43+
* initial generation of library ([27f990f](https://github.com/googleapis/nodejs-bigquery-data-exchange/commit/27f990f0fe4b135c32b0f1406dfb3ec28fc4695c))
44+
* initial stub of library ([000fd64](https://github.com/googleapis/nodejs-bigquery-data-exchange/commit/000fd640e68fda5b2432d13c5d8a1f7de7247562))
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)