diff --git a/packages/grafeas/.github/.OwlBot.yaml b/packages/grafeas/.github/.OwlBot.yaml new file mode 100644 index 00000000000..fe6971e14e1 --- /dev/null +++ b/packages/grafeas/.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: /grafeas/(.*)/.*-nodejs/(.*) + dest: /owl-bot-staging/$1/$2 + diff --git a/packages/grafeas/.repo-metadata.json b/packages/grafeas/.repo-metadata.json index 7ec4976f061..e6b34889b9d 100644 --- a/packages/grafeas/.repo-metadata.json +++ b/packages/grafeas/.repo-metadata.json @@ -1,13 +1,14 @@ { - "name": "grafeas", - "name_pretty": "Grafeas", - "product_documentation": "https://cloud.google.com/container-registry/docs/container-analysis", "client_documentation": "https://googleapis.dev/nodejs/grafeas/latest", - "issue_tracker": "https://github.com/grafeas/grafeas/issues", + "api_id": "containeranalysis.googleapis.com", + "distribution_name": "@google-cloud/grafeas", "release_level": "ga", + "default_version": "v1", "language": "nodejs", + "name_pretty": "Grafeas", "repo": "googleapis/nodejs-grafeas", - "distribution_name": "@google-cloud/grafeas", - "api_id": "containeranalysis.googleapis.com", - "requires_billing": false + "product_documentation": "https://cloud.google.com/container-registry/docs/container-analysis", + "requires_billing": false, + "name": "grafeas", + "issue_tracker": "https://github.com/grafeas/grafeas/issues" } diff --git a/packages/grafeas/synth.metadata b/packages/grafeas/synth.metadata deleted file mode 100644 index 7f280e6515e..00000000000 --- a/packages/grafeas/synth.metadata +++ /dev/null @@ -1,37 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/nodejs-grafeas.git", - "sha": "188c95458e29ad8922f443bbf27692d5f86c1d19" - } - }, - { - "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": "57c23fa5705499a4181095ced81f0ee0933b64f6" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "grafeas", - "apiVersion": "v1", - "language": "nodejs", - "generator": "bazel" - } - } - ] -} \ No newline at end of file diff --git a/packages/grafeas/synth.py b/packages/grafeas/synth.py deleted file mode 100644 index 2e0ff9b04b7..00000000000 --- a/packages/grafeas/synth.py +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 2019 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 logging - -logging.basicConfig(level=logging.DEBUG) - -AUTOSYNTH_MULTIPLE_COMMITS = True - - -# run the gapic generator -gapic = gcp.GAPICBazel() -versions = ['v1'] -for version in versions: - library = gapic.node_library('grafeas', version, bazel_target=f'//grafeas/{version}:grafeas-{version}-nodejs') - 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=versions, default_version='v1') -s.copy(templates) - -node.postprocess_gapic_library()