diff --git a/packages/google-cloud-policytroubleshooter/.github/.OwlBot.yaml b/packages/google-cloud-policytroubleshooter/.github/.OwlBot.yaml new file mode 100644 index 00000000000..7755d95cc48 --- /dev/null +++ b/packages/google-cloud-policytroubleshooter/.github/.OwlBot.yaml @@ -0,0 +1,23 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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/repo-automation-bots/owlbot-nodejs:latest + +deep-remove-regex: + - /owl-bot-staging + +deep-copy-regex: + - source: /google/cloud/policytroubleshooter/(.*)/.*-nodejs/(.*) + dest: /owl-bot-staging/$1/$2 + diff --git a/packages/google-cloud-policytroubleshooter/.repo-metadata.json b/packages/google-cloud-policytroubleshooter/.repo-metadata.json index e50bbc309e0..836d9d71bf2 100644 --- a/packages/google-cloud-policytroubleshooter/.repo-metadata.json +++ b/packages/google-cloud-policytroubleshooter/.repo-metadata.json @@ -1,14 +1,14 @@ { - "name": "policytroubleshooter", - "name_pretty": "IAM Policy Troubleshooter API", - "product_documentation": "https://cloud.google.com/iam/docs/troubleshooting-access#rest-api/", "client_documentation": "https://googleapis.dev/nodejs/policytroubleshooter/latest/", - "issue_tracker": "https://github.com/googleapis/nodejs-policy-troubleshooter/issues", + "api_id": "policytroubleshooter.googleapis.com", + "distribution_name": "@google-cloud/policy-troubleshooter", "release_level": "GA", + "default_version": "v1", "language": "nodejs", + "name_pretty": "IAM Policy Troubleshooter API", "repo": "googleapis/nodejs-policy-troubleshooter", - "distribution_name": "@google-cloud/policy-troubleshooter", - "api_id": "policytroubleshooter.googleapis.com", - "requires_billing": true + "product_documentation": "https://cloud.google.com/iam/docs/troubleshooting-access#rest-api/", + "requires_billing": true, + "name": "policytroubleshooter", + "issue_tracker": "https://github.com/googleapis/nodejs-policy-troubleshooter/issues" } - diff --git a/packages/google-cloud-policytroubleshooter/linkinator.config.json b/packages/google-cloud-policytroubleshooter/linkinator.config.json index fe98eb78cac..29a223b6db6 100644 --- a/packages/google-cloud-policytroubleshooter/linkinator.config.json +++ b/packages/google-cloud-policytroubleshooter/linkinator.config.json @@ -1 +1,10 @@ -{"recurse":true,"skip":["https://googleapis.dev/nodejs/policytroubleshooter/latest/","https://github.com/googleapis/nodejs-policy-troubleshooter/blob/master/CHANGELOG.md","https://github.com/googleapis/nodejs-policy-troubleshooter","https://github.com/googleapis/nodejs-policy-troubleshooter/blob/master/samples/quickstart.js","https://github.com/googleapis/nodejs-policy-troubleshooter/tree/master/samples","https://github.com/googleapis/nodejs-policy-troubleshooter/blob/master/LICENSE","https://github.com/googleapis/nodejs-policy-troubleshooter/blob/master/CONTRIBUTING.md","http://localhost:5244/","https://codecov.io/gh/googleapis/","www.googleapis.com","img.shields.io"],"silent":true,"concurrency":10} \ No newline at end of file +{ + "recurse": true, + "skip": [ + "https://codecov.io/gh/googleapis/", + "www.googleapis.com", + "img.shields.io" + ], + "silent": true, + "concurrency": 10 +} diff --git a/packages/google-cloud-policytroubleshooter/synth.metadata b/packages/google-cloud-policytroubleshooter/synth.metadata deleted file mode 100644 index 730dd5cb3e2..00000000000 --- a/packages/google-cloud-policytroubleshooter/synth.metadata +++ /dev/null @@ -1,37 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/nodejs-policy-troubleshooter.git", - "sha": "1fef346172bb0f2c997b0a301c11ffb6a4f4f8ea" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5477122b3e8037a1dc5bc920536158edbd151dc4", - "internalRef": "361273630" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b32c87d2c087fb2a841acc623ab540105de821af" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "policytroubleshooter", - "apiVersion": "v1", - "language": "nodejs", - "generator": "bazel" - } - } - ] -} \ No newline at end of file diff --git a/packages/google-cloud-policytroubleshooter/synth.py b/packages/google-cloud-policytroubleshooter/synth.py deleted file mode 100644 index 1f6063d3f2c..00000000000 --- a/packages/google-cloud-policytroubleshooter/synth.py +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. -"""This script is used to synthesize generated parts of this library.""" - -import synthtool as s -import synthtool.gcp as gcp -import synthtool.languages.node as node -import subprocess -import logging - -logging.basicConfig(level=logging.DEBUG) - -# run the gapic generator -gapic = gcp.GAPICBazel() -versions = ["v1"] -name = 'policytroubleshooter' -for version in versions: - library = gapic.node_library( - name, - version, - bazel_target=f"//google/cloud/policytroubleshooter/{version}:policytroubleshooter-{version}-nodejs") - s.copy(library, excludes=["package.json","linkinator.config.json", "system-test/fixtures/sample/src/index.js","system-test/fixtures/sample/src/index.ts"]) - -# Copy common templates -common_templates = gcp.CommonTemplates() -templates = common_templates.node_library( - source_location='build/src', versions=["v1"], default_version="v1") -s.copy(templates, excludes=[]) - -node.postprocess_gapic_library() diff --git a/packages/google-cloud-policytroubleshooter/system-test/fixtures/sample/src/index.js b/packages/google-cloud-policytroubleshooter/system-test/fixtures/sample/src/index.js index 33b4bb80eff..29fb5bf4d4c 100644 --- a/packages/google-cloud-policytroubleshooter/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-policytroubleshooter/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 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-policytroubleshooter/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-policytroubleshooter/system-test/fixtures/sample/src/index.ts index 8a3927bb7aa..210e6787a3f 100644 --- a/packages/google-cloud-policytroubleshooter/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-policytroubleshooter/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.