diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index c38b0a70276..efb289bb5a9 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -26,6 +26,7 @@
"packages/google-cloud-oslogin": "4.0.4",
"packages/google-cloud-phishingprotection": "3.0.6",
"packages/google-cloud-policytroubleshooter": "2.0.6",
+ "packages/google-cloud-privatecatalog": "2.0.4",
"packages/google-cloud-recommender": "5.0.4",
"packages/google-cloud-redis": "3.1.5",
"packages/google-cloud-resourcemanager": "4.1.3",
diff --git a/packages/google-cloud-privatecatalog/.github/.OwlBot.yaml b/packages/google-cloud-privatecatalog/.OwlBot.yaml
similarity index 78%
rename from packages/google-cloud-privatecatalog/.github/.OwlBot.yaml
rename to packages/google-cloud-privatecatalog/.OwlBot.yaml
index a00cc776f35..ad490176fe0 100644
--- a/packages/google-cloud-privatecatalog/.github/.OwlBot.yaml
+++ b/packages/google-cloud-privatecatalog/.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/privatecatalog/(.*)/.*-nodejs/(.*)
- dest: /owl-bot-staging/$1/$2
+ - source: /google/cloud/privatecatalog/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-privatecatalog/$1
diff --git a/packages/google-cloud-privatecatalog/.mocharc.js b/packages/google-cloud-privatecatalog/.mocharc.js
index 0b600509bed..cdb7b752160 100644
--- a/packages/google-cloud-privatecatalog/.mocharc.js
+++ b/packages/google-cloud-privatecatalog/.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-privatecatalog/.prettierrc.js b/packages/google-cloud-privatecatalog/.prettierrc.js
index d1b95106f4c..d546a4ad546 100644
--- a/packages/google-cloud-privatecatalog/.prettierrc.js
+++ b/packages/google-cloud-privatecatalog/.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-privatecatalog/.repo-metadata.json b/packages/google-cloud-privatecatalog/.repo-metadata.json
index 4716e993ab3..c5bbeb1c444 100644
--- a/packages/google-cloud-privatecatalog/.repo-metadata.json
+++ b/packages/google-cloud-privatecatalog/.repo-metadata.json
@@ -3,10 +3,10 @@
"name_pretty": "Private Catalog",
"product_documentation": "https://cloud.google.com/private-catalog/",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/private-catalog/latest",
- "issue_tracker": "https://github.com/googleapis/nodejs-private-catalog/issues",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
"release_level": "preview",
"language": "nodejs",
- "repo": "googleapis/nodejs-private-catalog",
+ "repo": "googleapis/google-cloud-node",
"distribution_name": "@google-cloud/private-catalog",
"api_id": "privatecatalog.googleapis.com",
"default_version": "v1beta1",
diff --git a/packages/google-cloud-privatecatalog/README.md b/packages/google-cloud-privatecatalog/README.md
index bd9cf819908..7e90c4dd697 100644
--- a/packages/google-cloud-privatecatalog/README.md
+++ b/packages/google-cloud-privatecatalog/README.md
@@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
-# [Private Catalog: Node.js Client](https://github.com/googleapis/nodejs-private-catalog)
+# [Private Catalog: Node.js Client](https://github.com/googleapis/google-cloud-node)
[](https://cloud.google.com/terms/launch-stages)
[](https://www.npmjs.org/package/@google-cloud/private-catalog)
@@ -14,11 +14,11 @@ cloudprivatecatalog client for Node.js
A comprehensive list of changes in each version may be found in
-[the CHANGELOG](https://github.com/googleapis/nodejs-private-catalog/blob/main/CHANGELOG.md).
+[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-privatecatalog/CHANGELOG.md).
* [Private Catalog Node.js Client API Reference][client-docs]
* [Private Catalog Documentation][product-docs]
-* [github.com/googleapis/nodejs-private-catalog](https://github.com/googleapis/nodejs-private-catalog)
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-privatecatalog](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-privatecatalog)
Read more about the client libraries for Cloud APIs, including the older
Google APIs Client Libraries, in [Client Libraries Explained][explained].
@@ -83,11 +83,15 @@ searchCatalogs();
## Samples
-Samples are in the [`samples/`](https://github.com/googleapis/nodejs-private-catalog/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+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 |
| --------------------------- | --------------------------------- | ------ |
-| Quickstart | [source code](https://github.com/googleapis/nodejs-private-catalog/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-private-catalog&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
+| Private_catalog.search_catalogs | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1beta1/private_catalog.search_catalogs.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/v1beta1/private_catalog.search_catalogs.js,samples/README.md) |
+| Private_catalog.search_products | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1beta1/private_catalog.search_products.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/v1beta1/private_catalog.search_products.js,samples/README.md) |
+| Private_catalog.search_versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1beta1/private_catalog.search_versions.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/v1beta1/private_catalog.search_versions.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) |
@@ -136,7 +140,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages]
## Contributing
-Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-private-catalog/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`)
@@ -148,7 +152,7 @@ to its templates in
Apache Version 2.0
-See [LICENSE](https://github.com/googleapis/nodejs-private-catalog/blob/main/LICENSE)
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
[client-docs]: https://cloud.google.com/nodejs/docs/reference/private-catalog/latest
[product-docs]: https://cloud.google.com/private-catalog/
diff --git a/packages/google-cloud-privatecatalog/package.json b/packages/google-cloud-privatecatalog/package.json
index 4e188b6f7f0..112ec46b543 100644
--- a/packages/google-cloud-privatecatalog/package.json
+++ b/packages/google-cloud-privatecatalog/package.json
@@ -2,7 +2,11 @@
"name": "@google-cloud/private-catalog",
"version": "2.0.4",
"description": "cloudprivatecatalog client for Node.js",
- "repository": "googleapis/nodejs-private-catalog",
+ "repository": {
+ "type": "git",
+ "directory": "packages/google-cloud-privatecatalog",
+ "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-privatecatalog"
}
diff --git a/packages/google-cloud-privatecatalog/samples/README.md b/packages/google-cloud-privatecatalog/samples/README.md
index 6b7c5bb03a9..86904278084 100644
--- a/packages/google-cloud-privatecatalog/samples/README.md
+++ b/packages/google-cloud-privatecatalog/samples/README.md
@@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
-# [Private Catalog: Node.js Samples](https://github.com/googleapis/nodejs-private-catalog)
+# [Private Catalog: Node.js Samples](https://github.com/googleapis/google-cloud-node)
[![Open in Cloud Shell][shell_img]][shell_link]
@@ -12,12 +12,16 @@
* [Before you begin](#before-you-begin)
* [Samples](#samples)
+ * [Private_catalog.search_catalogs](#private_catalog.search_catalogs)
+ * [Private_catalog.search_products](#private_catalog.search_products)
+ * [Private_catalog.search_versions](#private_catalog.search_versions)
+ * [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/nodejs-private-catalog#using-the-client-library).
+[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library).
`cd samples`
@@ -29,16 +33,84 @@ Before running the samples, make sure you've followed the steps outlined in
+### Private_catalog.search_catalogs
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1beta1/private_catalog.search_catalogs.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/v1beta1/private_catalog.search_catalogs.js,samples/README.md)
+
+__Usage:__
+
+
+`node /workspace/google-cloud-node/samples/generated/v1beta1/private_catalog.search_catalogs.js`
+
+
+-----
+
+
+
+
+### Private_catalog.search_products
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1beta1/private_catalog.search_products.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/v1beta1/private_catalog.search_products.js,samples/README.md)
+
+__Usage:__
+
+
+`node /workspace/google-cloud-node/samples/generated/v1beta1/private_catalog.search_products.js`
+
+
+-----
+
+
+
+
+### Private_catalog.search_versions
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1beta1/private_catalog.search_versions.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/v1beta1/private_catalog.search_versions.js,samples/README.md)
+
+__Usage:__
+
+
+`node /workspace/google-cloud-node/samples/generated/v1beta1/private_catalog.search_versions.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/nodejs-private-catalog/blob/main/samples/quickstart.js).
+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/nodejs-private-catalog&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/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/test/quickstart.js,samples/README.md)
__Usage:__
-`node samples/quickstart.js`
+`node /workspace/google-cloud-node/samples/test/quickstart.js`
@@ -46,5 +118,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-private-catalog&page=editor&open_in_editor=samples/README.md
+[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/private-catalog/
diff --git a/packages/google-cloud-privatecatalog/src/index.ts b/packages/google-cloud-privatecatalog/src/index.ts
index fb1e5d7d66a..6f74894cc3b 100644
--- a/packages/google-cloud-privatecatalog/src/index.ts
+++ b/packages/google-cloud-privatecatalog/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..3bff09c7174 100644
--- a/release-please-config.json
+++ b/release-please-config.json
@@ -27,6 +27,7 @@
"packages/google-cloud-oslogin": {},
"packages/google-cloud-phishingprotection": {},
"packages/google-cloud-policytroubleshooter": {},
+ "packages/google-cloud-privatecatalog": {},
"packages/google-cloud-recommender": {},
"packages/google-cloud-redis": {},
"packages/google-cloud-resourcemanager": {},
@@ -49,4 +50,4 @@
}
],
"release-type": "node"
-}
\ No newline at end of file
+}