diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml new file mode 100644 index 0000000..a7f1dde --- /dev/null +++ b/.github/.OwlBot.lock.yaml @@ -0,0 +1,4 @@ +docker: + digest: sha256:b317576c0e66d348ab6c1ae50dc43405df37f957b58433c988c1e9ca257ba3d4 + image: gcr.io/repo-automation-bots/owlbot-nodejs:latest + diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml new file mode 100644 index 0000000..dc454cc --- /dev/null +++ b/.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/binaryauthorization/(.*)/.*-nodejs/(.*) + dest: /owl-bot-staging/$1/$2 + diff --git a/.repo-metadata.json b/.repo-metadata.json index 38e2560..1881f32 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,14 +1,14 @@ { - "name": "binaryauthorization", - "name_pretty": "Binary Authorization", - "product_documentation": "https://cloud.google.com/binary-authorization/", "client_documentation": "https://googleapis.dev/nodejs/binaryauthorization/latest/", - "issue_tracker": "https://github.com/googleapis/nodejs-binary-authorization/issues", + "api_id": "binaryauthorization.googleapis.com", + "distribution_name": "@google-cloud/binary-authorization", "release_level": "beta", + "default_version": "v1beta1", "language": "nodejs", + "name_pretty": "Binary Authorization", "repo": "googleapis/nodejs-binary-authorization", - "distribution_name": "@google-cloud/binary-authorization", - "api_id": "binaryauthorization.googleapis.com", - "requires_billing": true + "product_documentation": "https://cloud.google.com/binary-authorization/", + "requires_billing": true, + "name": "binaryauthorization", + "issue_tracker": "https://github.com/googleapis/nodejs-binary-authorization/issues" } - diff --git a/synth.metadata b/synth.metadata deleted file mode 100644 index 611da8e..0000000 --- a/synth.metadata +++ /dev/null @@ -1,37 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/nodejs-binary-authorization.git", - "sha": "90ade48c8088e3b2b41b6059e57ee57fd12f17de" - } - }, - { - "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": "8c5628b86cfa8386de7b8fc1675e6b528b552d57" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "binaryauthorization", - "apiVersion": "v1beta1", - "language": "nodejs", - "generator": "bazel" - } - } - ] -} \ No newline at end of file diff --git a/synth.py b/synth.py deleted file mode 100644 index 269734e..0000000 --- a/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 = ["v1beta1"] -name = 'binaryauthorization' -for version in versions: - library = gapic.node_library( - name, - version, - proto_path = f'google/cloud/binaryauthorization/{version}') - s.copy(library, excludes=["README.md", "package.json"]) - -# Copy common templates -common_templates = gcp.CommonTemplates() -templates = common_templates.node_library( - source_location='build/src', versions=["v1beta1"], default_version="v1beta1") -s.copy(templates, excludes=[]) - -node.postprocess_gapic_library()