diff --git a/packages/google-cloud-oslogin/.github/.OwlBot.yaml b/packages/google-cloud-oslogin/.github/.OwlBot.yaml new file mode 100644 index 00000000000..8d87859c394 --- /dev/null +++ b/packages/google-cloud-oslogin/.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/oslogin/(.*)/.*-nodejs/(.*) + dest: /owl-bot-staging/$1/$2 + diff --git a/packages/google-cloud-oslogin/.repo-metadata.json b/packages/google-cloud-oslogin/.repo-metadata.json index f5feff96ab5..56d276d58df 100644 --- a/packages/google-cloud-oslogin/.repo-metadata.json +++ b/packages/google-cloud-oslogin/.repo-metadata.json @@ -1,13 +1,14 @@ { - "name": "oslogin", - "name_pretty": "Google Cloud OS Login", - "product_documentation": "https://cloud.google.com/compute/docs/oslogin/", "client_documentation": "https://googleapis.dev/nodejs/oslogin/latest", - "issue_tracker": "https://issuetracker.google.com/savedsearches/559755", + "api_id": "oslogin.googleapis.com", + "distribution_name": "@google-cloud/os-login", "release_level": "ga", + "default_version": "v1", "language": "nodejs", + "name_pretty": "Google Cloud OS Login", "repo": "googleapis/nodejs-os-login", - "distribution_name": "@google-cloud/os-login", - "api_id": "oslogin.googleapis.com", - "requires_billing": true + "product_documentation": "https://cloud.google.com/compute/docs/oslogin/", + "requires_billing": true, + "name": "oslogin", + "issue_tracker": "https://issuetracker.google.com/savedsearches/559755" } diff --git a/packages/google-cloud-oslogin/synth.metadata b/packages/google-cloud-oslogin/synth.metadata deleted file mode 100644 index d39a92273ba..00000000000 --- a/packages/google-cloud-oslogin/synth.metadata +++ /dev/null @@ -1,46 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/nodejs-os-login.git", - "sha": "628aade56fb290fe0506e534c9e11e828a2d4804" - } - }, - { - "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": "oslogin", - "apiVersion": "v1", - "language": "nodejs", - "generator": "bazel" - } - }, - { - "client": { - "source": "googleapis", - "apiName": "oslogin", - "apiVersion": "v1beta", - "language": "nodejs", - "generator": "bazel" - } - } - ] -} \ No newline at end of file diff --git a/packages/google-cloud-oslogin/synth.py b/packages/google-cloud-oslogin/synth.py deleted file mode 100644 index 3816c2424d9..00000000000 --- a/packages/google-cloud-oslogin/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 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 = ['v1', 'v1beta'] -for version in versions: - library = gapic.node_library('oslogin', version, proto_path=f'google/cloud/oslogin/{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()