diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index aa4edc624b2..e13307420f5 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -29,6 +29,7 @@
"packages/google-cloud-language": "5.1.2",
"packages/google-cloud-memcache": "2.1.4",
"packages/google-cloud-monitoring": "3.0.3",
+ "packages/google-cloud-orgpolicy": "2.0.3",
"packages/google-cloud-osconfig": "2.1.2",
"packages/google-cloud-oslogin": "4.0.4",
"packages/google-cloud-phishingprotection": "3.0.6",
@@ -36,8 +37,8 @@
"packages/google-cloud-recommender": "5.0.4",
"packages/google-cloud-redis": "3.1.5",
"packages/google-cloud-resourcemanager": "4.1.3",
- "packages/google-cloud-secretmanager": "4.1.4",
"packages/google-cloud-scheduler": "3.0.5",
+ "packages/google-cloud-secretmanager": "4.1.4",
"packages/google-cloud-security-publicca": "0.1.3",
"packages/google-cloud-servicedirectory": "4.0.4",
"packages/google-cloud-shell": "2.0.4",
diff --git a/packages/google-cloud-orgpolicy/.github/.OwlBot.yaml b/packages/google-cloud-orgpolicy/.OwlBot.yaml
similarity index 81%
rename from packages/google-cloud-orgpolicy/.github/.OwlBot.yaml
rename to packages/google-cloud-orgpolicy/.OwlBot.yaml
index 22fd6f38c6a..4ae063cbd8d 100644
--- a/packages/google-cloud-orgpolicy/.github/.OwlBot.yaml
+++ b/packages/google-cloud-orgpolicy/.OwlBot.yaml
@@ -11,15 +11,13 @@
# 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/orgpolicy/(.*)/.*-nodejs/(.*)
- dest: /owl-bot-staging/$1/$2
+ - source: /google/cloud/orgpolicy/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-orgpolicy/$1
begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b
diff --git a/packages/google-cloud-orgpolicy/.mocharc.js b/packages/google-cloud-orgpolicy/.mocharc.js
index 0b600509bed..cdb7b752160 100644
--- a/packages/google-cloud-orgpolicy/.mocharc.js
+++ b/packages/google-cloud-orgpolicy/.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-orgpolicy/.prettierrc.js b/packages/google-cloud-orgpolicy/.prettierrc.js
index d1b95106f4c..d546a4ad546 100644
--- a/packages/google-cloud-orgpolicy/.prettierrc.js
+++ b/packages/google-cloud-orgpolicy/.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-orgpolicy/.repo-metadata.json b/packages/google-cloud-orgpolicy/.repo-metadata.json
index d3077b2705d..938f786fd75 100644
--- a/packages/google-cloud-orgpolicy/.repo-metadata.json
+++ b/packages/google-cloud-orgpolicy/.repo-metadata.json
@@ -2,7 +2,7 @@
"language": "nodejs",
"requires_billing": true,
"product_documentation": "https://cloud.google.com/resource-manager/docs/organization-policy/overview",
- "repo": "googleapis/nodejs-org-policy",
+ "repo": "googleapis/google-cloud-node",
"default_version": "v2",
"name_pretty": "Organization Policy",
"release_level": "stable",
@@ -10,7 +10,7 @@
"name": "org-policy",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/org-policy/latest",
"api_id": "orgpolicy.googleapis.com",
- "issue_tracker": "https://github.com/googleapis/nodejs-org-policy/issues",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
"api_shortname": "orgpolicy",
"library_type": "GAPIC_AUTO"
}
diff --git a/packages/google-cloud-orgpolicy/README.md b/packages/google-cloud-orgpolicy/README.md
index 892a0cbb0f0..411489e550f 100644
--- a/packages/google-cloud-orgpolicy/README.md
+++ b/packages/google-cloud-orgpolicy/README.md
@@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
-# [Organization Policy: Node.js Client](https://github.com/googleapis/nodejs-org-policy)
+# [Organization Policy: 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/org-policy.svg)](https://www.npmjs.org/package/@google-cloud/org-policy)
@@ -14,11 +14,11 @@ Org policy client for Node.js
A comprehensive list of changes in each version may be found in
-[the CHANGELOG](https://github.com/googleapis/nodejs-org-policy/blob/main/CHANGELOG.md).
+[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-orgpolicy/CHANGELOG.md).
* [Organization Policy Node.js Client API Reference][client-docs]
* [Organization Policy Documentation][product-docs]
-* [github.com/googleapis/nodejs-org-policy](https://github.com/googleapis/nodejs-org-policy)
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-orgpolicy](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-orgpolicy)
Read more about the client libraries for Cloud APIs, including the older
Google APIs Client Libraries, in [Client Libraries Explained][explained].
@@ -85,11 +85,19 @@ listConstraints();
## Samples
-Samples are in the [`samples/`](https://github.com/googleapis/nodejs-org-policy/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-org-policy/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-org-policy&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
+| Org_policy.create_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.create_policy.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/v2/org_policy.create_policy.js,samples/README.md) |
+| Org_policy.delete_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.delete_policy.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/v2/org_policy.delete_policy.js,samples/README.md) |
+| Org_policy.get_effective_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.get_effective_policy.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/v2/org_policy.get_effective_policy.js,samples/README.md) |
+| Org_policy.get_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.get_policy.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/v2/org_policy.get_policy.js,samples/README.md) |
+| Org_policy.list_constraints | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.list_constraints.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/v2/org_policy.list_constraints.js,samples/README.md) |
+| Org_policy.list_policies | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.list_policies.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/v2/org_policy.list_policies.js,samples/README.md) |
+| Org_policy.update_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.update_policy.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/v2/org_policy.update_policy.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) |
@@ -139,7 +147,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages]
## Contributing
-Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-org-policy/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`)
@@ -151,7 +159,7 @@ to its templates in
Apache Version 2.0
-See [LICENSE](https://github.com/googleapis/nodejs-org-policy/blob/main/LICENSE)
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
[client-docs]: https://cloud.google.com/nodejs/docs/reference/org-policy/latest
[product-docs]: https://cloud.google.com/resource-manager/docs/organization-policy/overview
diff --git a/packages/google-cloud-orgpolicy/package.json b/packages/google-cloud-orgpolicy/package.json
index 008df55c66e..6ea2807344d 100644
--- a/packages/google-cloud-orgpolicy/package.json
+++ b/packages/google-cloud-orgpolicy/package.json
@@ -2,7 +2,11 @@
"name": "@google-cloud/org-policy",
"version": "2.0.3",
"description": "Org policy client for Node.js",
- "repository": "googleapis/nodejs-org-policy",
+ "repository": {
+ "type": "git",
+ "directory": "packages/google-cloud-orgpolicy",
+ "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-orgpolicy"
}
diff --git a/packages/google-cloud-orgpolicy/samples/README.md b/packages/google-cloud-orgpolicy/samples/README.md
index 6654aaa2175..c52298e8663 100644
--- a/packages/google-cloud-orgpolicy/samples/README.md
+++ b/packages/google-cloud-orgpolicy/samples/README.md
@@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
-# [Organization Policy: Node.js Samples](https://github.com/googleapis/nodejs-org-policy)
+# [Organization Policy: Node.js Samples](https://github.com/googleapis/google-cloud-node)
[![Open in Cloud Shell][shell_img]][shell_link]
@@ -12,12 +12,20 @@
* [Before you begin](#before-you-begin)
* [Samples](#samples)
+ * [Org_policy.create_policy](#org_policy.create_policy)
+ * [Org_policy.delete_policy](#org_policy.delete_policy)
+ * [Org_policy.get_effective_policy](#org_policy.get_effective_policy)
+ * [Org_policy.get_policy](#org_policy.get_policy)
+ * [Org_policy.list_constraints](#org_policy.list_constraints)
+ * [Org_policy.list_policies](#org_policy.list_policies)
+ * [Org_policy.update_policy](#org_policy.update_policy)
+ * [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-org-policy#using-the-client-library).
+[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library).
`cd samples`
@@ -29,16 +37,152 @@ Before running the samples, make sure you've followed the steps outlined in
+### Org_policy.create_policy
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.create_policy.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/v2/org_policy.create_policy.js,samples/README.md)
+
+__Usage:__
+
+
+`node /workspace/google-cloud-node/samples/generated/v2/org_policy.create_policy.js`
+
+
+-----
+
+
+
+
+### Org_policy.delete_policy
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.delete_policy.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/v2/org_policy.delete_policy.js,samples/README.md)
+
+__Usage:__
+
+
+`node /workspace/google-cloud-node/samples/generated/v2/org_policy.delete_policy.js`
+
+
+-----
+
+
+
+
+### Org_policy.get_effective_policy
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.get_effective_policy.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/v2/org_policy.get_effective_policy.js,samples/README.md)
+
+__Usage:__
+
+
+`node /workspace/google-cloud-node/samples/generated/v2/org_policy.get_effective_policy.js`
+
+
+-----
+
+
+
+
+### Org_policy.get_policy
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.get_policy.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/v2/org_policy.get_policy.js,samples/README.md)
+
+__Usage:__
+
+
+`node /workspace/google-cloud-node/samples/generated/v2/org_policy.get_policy.js`
+
+
+-----
+
+
+
+
+### Org_policy.list_constraints
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.list_constraints.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/v2/org_policy.list_constraints.js,samples/README.md)
+
+__Usage:__
+
+
+`node /workspace/google-cloud-node/samples/generated/v2/org_policy.list_constraints.js`
+
+
+-----
+
+
+
+
+### Org_policy.list_policies
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.list_policies.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/v2/org_policy.list_policies.js,samples/README.md)
+
+__Usage:__
+
+
+`node /workspace/google-cloud-node/samples/generated/v2/org_policy.list_policies.js`
+
+
+-----
+
+
+
+
+### Org_policy.update_policy
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/org_policy.update_policy.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/v2/org_policy.update_policy.js,samples/README.md)
+
+__Usage:__
+
+
+`node /workspace/google-cloud-node/samples/generated/v2/org_policy.update_policy.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-org-policy/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-org-policy&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 +190,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-org-policy&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/resource-manager/docs/organization-policy/overview
diff --git a/packages/google-cloud-orgpolicy/src/index.ts b/packages/google-cloud-orgpolicy/src/index.ts
index 5e59ad69bb8..3a1451a306d 100644
--- a/packages/google-cloud-orgpolicy/src/index.ts
+++ b/packages/google-cloud-orgpolicy/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 8775758e665..701abde5b89 100644
--- a/release-please-config.json
+++ b/release-please-config.json
@@ -30,6 +30,7 @@
"packages/google-cloud-language": {},
"packages/google-cloud-memcache": {},
"packages/google-cloud-monitoring": {},
+ "packages/google-cloud-orgpolicy": {},
"packages/google-cloud-osconfig": {},
"packages/google-cloud-oslogin": {},
"packages/google-cloud-phishingprotection": {},
@@ -37,8 +38,8 @@
"packages/google-cloud-recommender": {},
"packages/google-cloud-redis": {},
"packages/google-cloud-resourcemanager": {},
- "packages/google-cloud-secretmanager": {},
"packages/google-cloud-scheduler": {},
+ "packages/google-cloud-secretmanager": {},
"packages/google-cloud-security-publicca": {},
"packages/google-cloud-servicedirectory": {},
"packages/google-cloud-shell": {},
@@ -61,4 +62,4 @@
}
],
"release-type": "node"
-}
\ No newline at end of file
+}