diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c38b0a70276..ffae69fa1d5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -18,6 +18,7 @@ "packages/google-cloud-dataproc": "4.1.1", "packages/google-cloud-deploy": "2.2.2", "packages/google-cloud-discoveryengine": "0.2.0", + "packages/google-cloud-eventarc-publishing": "2.3.0", "packages/google-cloud-gkeconnect-gateway": "2.0.5", "packages/google-cloud-gkemulticloud": "0.1.4", "packages/google-cloud-language": "5.1.2", diff --git a/packages/google-cloud-eventarc-publishing/.github/.OwlBot.yaml b/packages/google-cloud-eventarc-publishing/.OwlBot.yaml similarity index 78% rename from packages/google-cloud-eventarc-publishing/.github/.OwlBot.yaml rename to packages/google-cloud-eventarc-publishing/.OwlBot.yaml index ab590218700..ca124dca8ab 100644 --- a/packages/google-cloud-eventarc-publishing/.github/.OwlBot.yaml +++ b/packages/google-cloud-eventarc-publishing/.OwlBot.yaml @@ -11,12 +11,10 @@ # 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. -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest deep-remove-regex: - /owl-bot-staging deep-copy-regex: - - source: /google/cloud/eventarc/publishing/(.*)/.*-nodejs/(.*) - dest: /owl-bot-staging/$1/$2 + - source: /google/cloud/eventarc/publishing/(.*)/.*-nodejs + dest: /owl-bot-staging/google-cloud-eventarc-publishing/$1 diff --git a/packages/google-cloud-eventarc-publishing/.mocharc.js b/packages/google-cloud-eventarc-publishing/.mocharc.js index 0b600509bed..cdb7b752160 100644 --- a/packages/google-cloud-eventarc-publishing/.mocharc.js +++ b/packages/google-cloud-eventarc-publishing/.mocharc.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. diff --git a/packages/google-cloud-eventarc-publishing/.prettierrc.js b/packages/google-cloud-eventarc-publishing/.prettierrc.js index d1b95106f4c..d546a4ad546 100644 --- a/packages/google-cloud-eventarc-publishing/.prettierrc.js +++ b/packages/google-cloud-eventarc-publishing/.prettierrc.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. diff --git a/packages/google-cloud-eventarc-publishing/.repo-metadata.json b/packages/google-cloud-eventarc-publishing/.repo-metadata.json index f5a77dea4da..734274b1fcb 100644 --- a/packages/google-cloud-eventarc-publishing/.repo-metadata.json +++ b/packages/google-cloud-eventarc-publishing/.repo-metadata.json @@ -7,7 +7,7 @@ "issue_tracker": "https://issuetracker.google.com/savedsearches/5972217", "release_level": "stable", "language": "nodejs", - "repo": "googleapis/nodejs-eventarc-publishing", + "repo": "googleapis/google-cloud-node", "distribution_name": "@google-cloud/eventarc-publishing", "api_id": "eventarcpublishing.googleapis.com", "default_version": "v1", diff --git a/packages/google-cloud-eventarc-publishing/CONTRIBUTING.md b/packages/google-cloud-eventarc-publishing/CONTRIBUTING.md index 073cbe447b1..896ab7ea398 100644 --- a/packages/google-cloud-eventarc-publishing/CONTRIBUTING.md +++ b/packages/google-cloud-eventarc-publishing/CONTRIBUTING.md @@ -72,5 +72,5 @@ accept your pull requests. [setup]: https://cloud.google.com/nodejs/docs/setup [projects]: https://console.cloud.google.com/project [billing]: https://support.google.com/cloud/answer/6293499#enable-billing -[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=publishing.googleapis.com +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=eventarcpublishing.googleapis.com [auth]: https://cloud.google.com/docs/authentication/getting-started \ No newline at end of file diff --git a/packages/google-cloud-eventarc-publishing/README.md b/packages/google-cloud-eventarc-publishing/README.md index d180d0dc2a9..68390c8e8e1 100644 --- a/packages/google-cloud-eventarc-publishing/README.md +++ b/packages/google-cloud-eventarc-publishing/README.md @@ -2,7 +2,7 @@ [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [Eventarc Publishing API: Node.js Client](https://github.com/googleapis/nodejs-eventarc-publishing) +# [Eventarc Publishing API: Node.js Client](https://github.com/googleapis/google-cloud-node) [![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/eventarc-publishing.svg)](https://www.npmjs.org/package/@google-cloud/eventarc-publishing) @@ -14,11 +14,11 @@ publishing client for Node.js A comprehensive list of changes in each version may be found in -[the CHANGELOG](https://github.com/googleapis/nodejs-eventarc-publishing/blob/main/CHANGELOG.md). +[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-eventarc-publishing/CHANGELOG.md). * [Eventarc Publishing API Node.js Client API Reference][client-docs] * [Eventarc Publishing API Documentation][product-docs] -* [github.com/googleapis/nodejs-eventarc-publishing](https://github.com/googleapis/nodejs-eventarc-publishing) +* [github.com/googleapis/google-cloud-node/packages/google-cloud-eventarc-publishing](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-eventarc-publishing) Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in [Client Libraries Explained][explained]. @@ -32,7 +32,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. * [Before you begin](#before-you-begin) * [Installing the client library](#installing-the-client-library) - +* [Samples](#samples) * [Versioning](#versioning) * [Contributing](#contributing) * [License](#license) @@ -56,6 +56,18 @@ npm install @google-cloud/eventarc-publishing +## Samples + +Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. + +| Sample | Source Code | Try it | +| --------------------------- | --------------------------------- | ------ | +| Publisher.publish_channel_connection_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/publisher.publish_channel_connection_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/publisher.publish_channel_connection_events.js,samples/README.md) | +| Publisher.publish_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/publisher.publish_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/publisher.publish_events.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/test/quickstart.js,samples/README.md) | + + The [Eventarc Publishing API Node.js Client API Reference][client-docs] documentation also contains samples. @@ -103,7 +115,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages] ## Contributing -Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-eventarc-publishing/blob/main/CONTRIBUTING.md). +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/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`) @@ -115,12 +127,12 @@ to its templates in Apache Version 2.0 -See [LICENSE](https://github.com/googleapis/nodejs-eventarc-publishing/blob/main/LICENSE) +See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [client-docs]: https://googleapis.dev/nodejs/publishing/latest/ [product-docs]: https://cloud.google.com/eventarc [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png [projects]: https://console.cloud.google.com/project [billing]: https://support.google.com/cloud/answer/6293499#enable-billing -[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=publishing.googleapis.com +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=eventarcpublishing.googleapis.com [auth]: https://cloud.google.com/docs/authentication/getting-started diff --git a/packages/google-cloud-eventarc-publishing/package.json b/packages/google-cloud-eventarc-publishing/package.json index 4b288d453bc..1a1847aa01b 100644 --- a/packages/google-cloud-eventarc-publishing/package.json +++ b/packages/google-cloud-eventarc-publishing/package.json @@ -2,7 +2,11 @@ "name": "@google-cloud/eventarc-publishing", "version": "2.3.0", "description": "publishing client for Node.js", - "repository": "googleapis/nodejs-eventarc-publishing", + "repository": { + "type": "git", + "directory": "packages/google-cloud-eventarc-publishing", + "url": "https://github.com/googleapis/google-cloud-node.git" + }, "license": "Apache-2.0", "author": "Google LLC", "main": "build/src/index.js", @@ -33,9 +37,9 @@ "fix": "gts fix", "lint": "gts check", "prepare": "npm run compile-protos && npm run compile", - "system-test": "c8 mocha build/system-test", + "system-test": "npm run compile && c8 mocha build/system-test", "test": "c8 mocha build/test", - "samples-test": "cd samples/ && npm link ../ && npm test", + "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test", "prelint": "cd samples; npm link ../; npm i" }, "dependencies": { @@ -62,5 +66,6 @@ }, "engines": { "node": ">=12.0.0" - } + }, + "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-eventarc-publishing" } diff --git a/packages/google-cloud-eventarc-publishing/samples/README.md b/packages/google-cloud-eventarc-publishing/samples/README.md new file mode 100644 index 00000000000..c0802f34fdc --- /dev/null +++ b/packages/google-cloud-eventarc-publishing/samples/README.md @@ -0,0 +1,104 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo + +# [Eventarc Publishing API: Node.js Samples](https://github.com/googleapis/google-cloud-node) + +[![Open in Cloud Shell][shell_img]][shell_link] + + + +## Table of Contents + +* [Before you begin](#before-you-begin) +* [Samples](#samples) + * [Publisher.publish_channel_connection_events](#publisher.publish_channel_connection_events) + * [Publisher.publish_events](#publisher.publish_events) + * [Quickstart](#quickstart) + * [Quickstart](#quickstart) + +## Before you begin + +Before running the samples, make sure you've followed the steps outlined in +[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library). + +`cd samples` + +`npm install` + +`cd ..` + +## Samples + + + +### Publisher.publish_channel_connection_events + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/publisher.publish_channel_connection_events.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/publisher.publish_channel_connection_events.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/publisher.publish_channel_connection_events.js` + + +----- + + + + +### Publisher.publish_events + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/publisher.publish_events.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/publisher.publish_events.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/publisher.publish_events.js` + + +----- + + + + +### Quickstart + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/quickstart.js` + + +----- + + + + +### Quickstart + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/test/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/test/quickstart.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/test/quickstart.js` + + + + + + +[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/google-cloud-node&page=editor&open_in_editor=samples/README.md +[product-docs]: https://cloud.google.com/eventarc diff --git a/packages/google-cloud-eventarc-publishing/src/index.ts b/packages/google-cloud-eventarc-publishing/src/index.ts index 5c714407487..613f37de3b7 100644 --- a/packages/google-cloud-eventarc-publishing/src/index.ts +++ b/packages/google-cloud-eventarc-publishing/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. diff --git a/release-please-config.json b/release-please-config.json index ca8fb90627b..3a3533bb0e8 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -19,6 +19,7 @@ "packages/google-cloud-dataproc": {}, "packages/google-cloud-deploy": {}, "packages/google-cloud-discoveryengine": {}, + "packages/google-cloud-eventarc-publishing": {}, "packages/google-cloud-gkeconnect-gateway": {}, "packages/google-cloud-gkemulticloud": {}, "packages/google-cloud-language": {}, @@ -49,4 +50,4 @@ } ], "release-type": "node" -} \ No newline at end of file +}