diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 93f0a60..dc0d075 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -12,7 +12,7 @@ Thanks for stopping by to let us know something could be better! This is the client library for . We will only be able to assist with issues that pertain to the behaviors of this library. If the issue you're experiencing is due to the behavior of the product itself, please visit the [ Support page]() to reach the most relevant engineers. 2) Did someone already solve this? - - Search the issues already opened: https://github.com/googleapis/googleapis/issues + - Search the issues already opened: https://github.com/googleapis/nodejs-gke-connect-gateway/issues - Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-node - Search or ask on StackOverflow (engineers monitor these tags): http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js @@ -26,7 +26,7 @@ If the support paths suggested above still do not result in a resolution, please - OS: - Node.js version: - npm version: - - `@google-cloud/connect-gateway` version: + - `@google-cloud/gke-connect-gateway` version: #### Steps to reproduce diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 96dfc8b..acedccf 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,5 +1,5 @@ Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: -- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/nodejs-connect-gateway/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea +- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/nodejs-gke-connect-gateway/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) diff --git a/.github/auto-approve.yml b/.github/auto-approve.yml index 9036979..a79ba66 100644 --- a/.github/auto-approve.yml +++ b/.github/auto-approve.yml @@ -4,4 +4,9 @@ rules: changedFiles: - "package\\.json$" - "CHANGELOG\\.md$" - maxFiles: 3 \ No newline at end of file + maxFiles: 3 +- author: "renovate-bot" + title: "^(fix\\(deps\\)|chore\\(deps\\)):" + changedFiles: + - "/package\\.json$" + maxFiles: 2 diff --git a/.kokoro/common.cfg b/.kokoro/common.cfg index 212302c..e5d48d0 100644 --- a/.kokoro/common.cfg +++ b/.kokoro/common.cfg @@ -11,7 +11,7 @@ action { gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" # Use the trampoline script to run in docker. -build_file: "googleapis/.kokoro/trampoline_v2.sh" +build_file: "nodejs-gke-connect-gateway/.kokoro/trampoline_v2.sh" # Configure the docker image for kokoro-trampoline. env_vars: { @@ -20,5 +20,5 @@ env_vars: { } env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/test.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/test.sh" } diff --git a/.kokoro/continuous/node10/common.cfg b/.kokoro/continuous/node10/common.cfg index fdeaf15..e8a4672 100644 --- a/.kokoro/continuous/node10/common.cfg +++ b/.kokoro/continuous/node10/common.cfg @@ -21,7 +21,7 @@ before_action { gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" # Use the trampoline script to run in docker. -build_file: "googleapis/.kokoro/trampoline_v2.sh" +build_file: "nodejs-gke-connect-gateway/.kokoro/trampoline_v2.sh" # Configure the docker image for kokoro-trampoline. env_vars: { @@ -30,5 +30,5 @@ env_vars: { } env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/test.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/test.sh" } diff --git a/.kokoro/continuous/node10/docs.cfg b/.kokoro/continuous/node10/docs.cfg index f0f5b57..3b342b7 100644 --- a/.kokoro/continuous/node10/docs.cfg +++ b/.kokoro/continuous/node10/docs.cfg @@ -1,4 +1,4 @@ env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/docs.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/docs.sh" } diff --git a/.kokoro/continuous/node12/common.cfg b/.kokoro/continuous/node12/common.cfg index 3799d0f..fc750b5 100644 --- a/.kokoro/continuous/node12/common.cfg +++ b/.kokoro/continuous/node12/common.cfg @@ -11,7 +11,7 @@ action { gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" # Use the trampoline script to run in docker. -build_file: "googleapis/.kokoro/trampoline_v2.sh" +build_file: "nodejs-gke-connect-gateway/.kokoro/trampoline_v2.sh" # Configure the docker image for kokoro-trampoline. env_vars: { @@ -20,5 +20,5 @@ env_vars: { } env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/test.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/test.sh" } diff --git a/.kokoro/continuous/node12/lint.cfg b/.kokoro/continuous/node12/lint.cfg index e20a4d6..b5f70a4 100644 --- a/.kokoro/continuous/node12/lint.cfg +++ b/.kokoro/continuous/node12/lint.cfg @@ -1,4 +1,4 @@ env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/lint.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/lint.sh" } diff --git a/.kokoro/continuous/node12/samples-test.cfg b/.kokoro/continuous/node12/samples-test.cfg index 59ad98b..d31aa3b 100644 --- a/.kokoro/continuous/node12/samples-test.cfg +++ b/.kokoro/continuous/node12/samples-test.cfg @@ -3,5 +3,5 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/samples-test.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/samples-test.sh" } diff --git a/.kokoro/continuous/node12/system-test.cfg b/.kokoro/continuous/node12/system-test.cfg index 91827e7..fe99c5d 100644 --- a/.kokoro/continuous/node12/system-test.cfg +++ b/.kokoro/continuous/node12/system-test.cfg @@ -3,5 +3,5 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/system-test.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/system-test.sh" } diff --git a/.kokoro/presubmit/node10/common.cfg b/.kokoro/presubmit/node10/common.cfg index fdeaf15..e8a4672 100644 --- a/.kokoro/presubmit/node10/common.cfg +++ b/.kokoro/presubmit/node10/common.cfg @@ -21,7 +21,7 @@ before_action { gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" # Use the trampoline script to run in docker. -build_file: "googleapis/.kokoro/trampoline_v2.sh" +build_file: "nodejs-gke-connect-gateway/.kokoro/trampoline_v2.sh" # Configure the docker image for kokoro-trampoline. env_vars: { @@ -30,5 +30,5 @@ env_vars: { } env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/test.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/test.sh" } diff --git a/.kokoro/presubmit/node12/common.cfg b/.kokoro/presubmit/node12/common.cfg index 3799d0f..fc750b5 100644 --- a/.kokoro/presubmit/node12/common.cfg +++ b/.kokoro/presubmit/node12/common.cfg @@ -11,7 +11,7 @@ action { gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" # Use the trampoline script to run in docker. -build_file: "googleapis/.kokoro/trampoline_v2.sh" +build_file: "nodejs-gke-connect-gateway/.kokoro/trampoline_v2.sh" # Configure the docker image for kokoro-trampoline. env_vars: { @@ -20,5 +20,5 @@ env_vars: { } env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/test.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/test.sh" } diff --git a/.kokoro/presubmit/node12/samples-test.cfg b/.kokoro/presubmit/node12/samples-test.cfg index 59ad98b..d31aa3b 100644 --- a/.kokoro/presubmit/node12/samples-test.cfg +++ b/.kokoro/presubmit/node12/samples-test.cfg @@ -3,5 +3,5 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/samples-test.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/samples-test.sh" } diff --git a/.kokoro/presubmit/node12/system-test.cfg b/.kokoro/presubmit/node12/system-test.cfg index 91827e7..fe99c5d 100644 --- a/.kokoro/presubmit/node12/system-test.cfg +++ b/.kokoro/presubmit/node12/system-test.cfg @@ -3,5 +3,5 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/system-test.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/system-test.sh" } diff --git a/.kokoro/release/docs-devsite.cfg b/.kokoro/release/docs-devsite.cfg index d4438b5..3371201 100644 --- a/.kokoro/release/docs-devsite.cfg +++ b/.kokoro/release/docs-devsite.cfg @@ -18,9 +18,9 @@ env_vars: { gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" # Use the trampoline script to run in docker. -build_file: "googleapis/.kokoro/trampoline_v2.sh" +build_file: "nodejs-gke-connect-gateway/.kokoro/trampoline_v2.sh" env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/release/docs-devsite.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/release/docs-devsite.sh" } diff --git a/.kokoro/release/docs.cfg b/.kokoro/release/docs.cfg index c95fdfd..9508ba5 100644 --- a/.kokoro/release/docs.cfg +++ b/.kokoro/release/docs.cfg @@ -18,9 +18,9 @@ env_vars: { gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" # Use the trampoline script to run in docker. -build_file: "googleapis/.kokoro/trampoline_v2.sh" +build_file: "nodejs-gke-connect-gateway/.kokoro/trampoline_v2.sh" env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/release/docs.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/release/docs.sh" } diff --git a/.kokoro/release/publish.cfg b/.kokoro/release/publish.cfg index c3df06b..be3d724 100644 --- a/.kokoro/release/publish.cfg +++ b/.kokoro/release/publish.cfg @@ -16,7 +16,7 @@ env_vars: { gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" # Use the trampoline script to run in docker. -build_file: "googleapis/.kokoro/trampoline_v2.sh" +build_file: "nodejs-gke-connect-gateway/.kokoro/trampoline_v2.sh" # Configure the docker image for kokoro-trampoline. env_vars: { @@ -26,5 +26,5 @@ env_vars: { env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/googleapis/.kokoro/publish.sh" + value: "github/nodejs-gke-connect-gateway/.kokoro/publish.sh" } diff --git a/.repo-metadata.json b/.repo-metadata.json index 443b8a7..cd4f180 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -6,8 +6,8 @@ "issue_tracker": "https://github.com/googleapis/nodejs-connect-gateway/issues", "release_level": "BETA", "language": "nodejs", - "repo": "googleapis/nodejs-connect-gateway", - "distribution_name": "@google-cloud/connect-gateway", + "repo": "googleapis/nodejs-gke-connect-gateway", + "distribution_name": "@google-cloud/gke-connect-gateway", "api_id": "gateway.googleapis.com", "default_version": "v1beta1", "requires_billing": true diff --git a/README.md b/README.md index 611ee1e..52a4d76 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [API Gateway: Node.js Client](https://github.com/googleapis/nodejs-connect-gateway) +# [API Gateway: Node.js Client](https://github.com/googleapis/nodejs-gke-connect-gateway) [![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages) -[![npm version](https://img.shields.io/npm/v/@google-cloud/connect-gateway.svg)](https://www.npmjs.org/package/@google-cloud/connect-gateway) -[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-connect-gateway/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-connect-gateway) +[![npm version](https://img.shields.io/npm/v/@google-cloud/gke-connect-gateway.svg)](https://www.npmjs.org/package/@google-cloud/gke-connect-gateway) +[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-gke-connect-gateway/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-gke-connect-gateway) @@ -15,11 +15,11 @@ apigateway client for Node.js A comprehensive list of changes in each version may be found in -[the CHANGELOG](https://github.com/googleapis/nodejs-connect-gateway/blob/master/CHANGELOG.md). +[the CHANGELOG](https://github.com/googleapis/nodejs-gke-connect-gateway/blob/master/CHANGELOG.md). * [API Gateway Node.js Client API Reference][client-docs] * [API Gateway Documentation][product-docs] -* [github.com/googleapis/nodejs-connect-gateway](https://github.com/googleapis/nodejs-connect-gateway) +* [github.com/googleapis/nodejs-gke-connect-gateway](https://github.com/googleapis/nodejs-gke-connect-gateway) Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in [Client Libraries Explained][explained]. @@ -51,29 +51,19 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. ### Installing the client library ```bash -npm install @google-cloud/connect-gateway +npm install @google-cloud/gke-connect-gateway ``` ### Using the client library ```javascript - // Imports the Google Cloud client library +// Imports the Google Cloud client library - const {GatewayServiceClient} = require('@google-cloud/connect-gateway'); +const {GatewayServiceClient} = require('@google-cloud/connect-gateway'); - // Creates a client - new GatewayServiceClient(); -} - -main(...process.argv.slice(2)).catch(err => { - console.error(err.message); - process.exitCode = 1; -}); -process.on('unhandledRejection', err => { - console.error(err.message); - process.exitCode = 1; -}); +// Creates a client +new GatewayServiceClient(); ``` @@ -81,11 +71,11 @@ process.on('unhandledRejection', err => { ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/nodejs-connect-gateway/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample. +Samples are in the [`samples/`](https://github.com/googleapis/nodejs-gke-connect-gateway/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Quickstart | [source code](https://github.com/googleapis/nodejs-connect-gateway/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-connect-gateway&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/nodejs-gke-connect-gateway/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-gke-connect-gateway&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | @@ -128,7 +118,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages] ## Contributing -Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-connect-gateway/blob/master/CONTRIBUTING.md). +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-gke-connect-gateway/blob/master/CONTRIBUTING.md). Please note that this `README.md`, the `samples/README.md`, and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) @@ -140,7 +130,7 @@ to its template in this Apache Version 2.0 -See [LICENSE](https://github.com/googleapis/nodejs-connect-gateway/blob/master/LICENSE) +See [LICENSE](https://github.com/googleapis/nodejs-gke-connect-gateway/blob/master/LICENSE) [client-docs]: https://cloud.google.com/anthos/multicluster-management/gateway/using [product-docs]: https://cloud.google.com/api-gateway/ diff --git a/linkinator.config.json b/linkinator.config.json index 6b21f18..29a223b 100644 --- a/linkinator.config.json +++ b/linkinator.config.json @@ -2,7 +2,6 @@ "recurse": true, "skip": [ "https://codecov.io/gh/googleapis/", - "https://github.com/googleapis/nodejs-connect-gateway/blob/master/CHANGELOG.md", "www.googleapis.com", "img.shields.io" ], diff --git a/package.json b/package.json index 5949f27..cbf5985 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "@google-cloud/connect-gateway", + "name": "@google-cloud/gke-connect-gateway", "version": "0.1.0", "description": "apigateway client for Node.js", - "repository": "googleapis/googleapis/nodejs-connect-gateway", + "repository": "googleapis/nodejs-gke-connect-gateway", "license": "Apache-2.0", "author": "Google LLC", "main": "build/src/index.js", diff --git a/protos/protos.js b/protos/protos.js index 259d52d..6a999ec 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -28,7 +28,7 @@ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; // Exported root namespace - var $root = $protobuf.roots._google_cloud_connect_gateway_protos || ($protobuf.roots._google_cloud_connect_gateway_protos = {}); + var $root = $protobuf.roots._google_cloud_gke_connect_gateway_protos || ($protobuf.roots._google_cloud_gke_connect_gateway_protos = {}); $root.google = (function() { diff --git a/samples/README.md b/samples/README.md index f4bed60..201efa1 100644 --- a/samples/README.md +++ b/samples/README.md @@ -2,7 +2,7 @@ [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [API Gateway: Node.js Samples](https://github.com/googleapis/nodejs-connect-gateway) +# [API Gateway: Node.js Samples](https://github.com/googleapis/nodejs-gke-connect-gateway) [![Open in Cloud Shell][shell_img]][shell_link] @@ -17,7 +17,7 @@ ## Before you begin Before running the samples, make sure you've followed the steps outlined in -[Using the client library](https://github.com/googleapis/nodejs-connect-gateway#using-the-client-library). +[Using the client library](https://github.com/googleapis/nodejs-gke-connect-gateway#using-the-client-library). `cd samples` @@ -31,9 +31,9 @@ Before running the samples, make sure you've followed the steps outlined in ### Quickstart -View the [source code](https://github.com/googleapis/nodejs-connect-gateway/blob/master/samples/quickstart.js). +View the [source code](https://github.com/googleapis/nodejs-gke-connect-gateway/blob/master/samples/quickstart.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-connect-gateway&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-gke-connect-gateway&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) __Usage:__ @@ -46,5 +46,5 @@ __Usage:__ [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png -[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-connect-gateway&page=editor&open_in_editor=samples/README.md +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-gke-connect-gateway&page=editor&open_in_editor=samples/README.md [product-docs]: https://cloud.google.com/api-gateway/