From eb33cfca1725c3f6e5f0c149c050700db1f87e42 Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Mon, 24 May 2021 15:28:51 -0700 Subject: [PATCH] chore: migrate to owl bot (#39) * chore: migrate to owl bot * chore: copy files from googleapis-gen ea0f18027eafb4801813fa253f16ffeef904b4c6 * chore: run the post processor Co-authored-by: Sofia Leon --- .../.github/.OwlBot.yaml | 26 ++++++++++++ .../.repo-metadata.json | 18 ++++---- .../google-api-servicemanagement/synth.py | 41 ------------------- 3 files changed, 35 insertions(+), 50 deletions(-) create mode 100644 packages/google-api-servicemanagement/.github/.OwlBot.yaml delete mode 100644 packages/google-api-servicemanagement/synth.py diff --git a/packages/google-api-servicemanagement/.github/.OwlBot.yaml b/packages/google-api-servicemanagement/.github/.OwlBot.yaml new file mode 100644 index 00000000000..efafe9c13ea --- /dev/null +++ b/packages/google-api-servicemanagement/.github/.OwlBot.yaml @@ -0,0 +1,26 @@ +# 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/api/servicemanagement/(v.*)/.*-nodejs/(.*) + dest: /owl-bot-staging/$1/$2 + +begin-after-commit-hash: ea0f18027eafb4801813fa253f16ffeef904b4c6 + diff --git a/packages/google-api-servicemanagement/.repo-metadata.json b/packages/google-api-servicemanagement/.repo-metadata.json index 4e78ebd1f15..73cbbd0d371 100644 --- a/packages/google-api-servicemanagement/.repo-metadata.json +++ b/packages/google-api-servicemanagement/.repo-metadata.json @@ -1,14 +1,14 @@ { - "name": "service-management", - "name_pretty": "Service Management API", - "product_documentation": "https://cloud.google.com/service-infrastructure/docs/overview/", - "client_documentation": "https://cloud.google.com/service-infrastructure/docs/service-management/reference", "issue_tracker": "https://github.com/googleapis/nodejs-service-management/issues", - "release_level": "GA", - "language": "nodejs", - "repo": "googleapis/nodejs-service-management", "distribution_name": "@google-cloud/service-management", + "client_documentation": "https://cloud.google.com/service-infrastructure/docs/service-management/reference", + "product_documentation": "https://cloud.google.com/service-infrastructure/docs/overview/", + "name_pretty": "Service Management API", + "release_level": "GA", + "default_version": "v1", + "name": "service-management", "api_id": "servicemanagement.googleapis.com", - "requires_billing": true + "requires_billing": true, + "language": "nodejs", + "repo": "googleapis/nodejs-service-management" } - diff --git a/packages/google-api-servicemanagement/synth.py b/packages/google-api-servicemanagement/synth.py deleted file mode 100644 index 8e8ea37d8c4..00000000000 --- a/packages/google-api-servicemanagement/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 = 'servicemanagement' -for version in versions: - library = gapic.node_library( - name, - version, - bazel_target=f"//google/api/servicemanagement/{version}:api-servicemanagement-{version}-nodejs") - s.copy(library, excludes=["package.json","README.md"]) - -# 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()