From 33d94eb55f55fbf4c8c3196fe88ead6a42993afd Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Wed, 17 Mar 2021 13:47:33 -0700 Subject: [PATCH] chore: migrate to owl-bot (#457) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: migrate to owl-bot * feat: Support output transcript to GCS for LongRunningRecognize. PiperOrigin-RevId: 362294447 Source-Link: https://github.com/googleapis/googleapis/commit/b6ebac16c3aecb798d4f25443d96df2f42a965ca Source-Link: https://github.com/googleapis/googleapis-gen/commit/a20b5124fe5bae9b6bbebb8c84450282229f7456 * 🦉 Updates from OwlBot * don't preserve protos because the original synth.py didn't * retrigger checks * update docker image digest * 🦉 Updates from OwlBot Co-authored-by: Owl Bot --- .../google-cloud-asset/.github/.OwlBot.yaml | 25 +++++++ .../google-cloud-asset/.repo-metadata.json | 3 +- packages/google-cloud-asset/synth.metadata | 73 ------------------- packages/google-cloud-asset/synth.py | 44 ----------- 4 files changed, 27 insertions(+), 118 deletions(-) create mode 100644 packages/google-cloud-asset/.github/.OwlBot.yaml delete mode 100644 packages/google-cloud-asset/synth.metadata delete mode 100644 packages/google-cloud-asset/synth.py diff --git a/packages/google-cloud-asset/.github/.OwlBot.yaml b/packages/google-cloud-asset/.github/.OwlBot.yaml new file mode 100644 index 00000000000..8661997bd93 --- /dev/null +++ b/packages/google-cloud-asset/.github/.OwlBot.yaml @@ -0,0 +1,25 @@ +# 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-preserve-regex: + - /owl-bot-staging/v1p7beta1 + +deep-copy-regex: + - source: /google/cloud/asset/(.*)/.*-nodejs/(.*) + dest: /owl-bot-staging/$1/$2 \ No newline at end of file diff --git a/packages/google-cloud-asset/.repo-metadata.json b/packages/google-cloud-asset/.repo-metadata.json index a9c50b76169..139eb06e3ae 100644 --- a/packages/google-cloud-asset/.repo-metadata.json +++ b/packages/google-cloud-asset/.repo-metadata.json @@ -9,5 +9,6 @@ "repo": "googleapis/nodejs-asset", "distribution_name": "@google-cloud/asset", "api_id": "cloudasset.googleapis.com", - "requires_billing": true + "requires_billing": true, + "default_version": "v1" } diff --git a/packages/google-cloud-asset/synth.metadata b/packages/google-cloud-asset/synth.metadata deleted file mode 100644 index 883a45c1a09..00000000000 --- a/packages/google-cloud-asset/synth.metadata +++ /dev/null @@ -1,73 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/nodejs-asset.git", - "sha": "7136b0508adc3b0c419677447e2a9f71b42fc565" - } - }, - { - "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": "asset", - "apiVersion": "v1p1beta1", - "language": "nodejs", - "generator": "bazel" - } - }, - { - "client": { - "source": "googleapis", - "apiName": "asset", - "apiVersion": "v1p2beta1", - "language": "nodejs", - "generator": "bazel" - } - }, - { - "client": { - "source": "googleapis", - "apiName": "asset", - "apiVersion": "v1p4beta1", - "language": "nodejs", - "generator": "bazel" - } - }, - { - "client": { - "source": "googleapis", - "apiName": "asset", - "apiVersion": "v1p5beta1", - "language": "nodejs", - "generator": "bazel" - } - }, - { - "client": { - "source": "googleapis", - "apiName": "asset", - "apiVersion": "v1", - "language": "nodejs", - "generator": "bazel" - } - } - ] -} \ No newline at end of file diff --git a/packages/google-cloud-asset/synth.py b/packages/google-cloud-asset/synth.py deleted file mode 100644 index ef518e5e8e6..00000000000 --- a/packages/google-cloud-asset/synth.py +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 2018 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 json -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 - - -gapic = gcp.GAPICBazel() -versions = ['v1p1beta1', 'v1p2beta1', 'v1p4beta1', 'v1p5beta1', 'v1'] -name = 'asset' -for version in versions: - library = gapic.node_library(name, version) - # skip index, protos, package.json, and README.md - 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=versions, default_version='v1') -s.copy(templates) - -node.postprocess_gapic_library()