diff --git a/packages/google-privacy-dlp/.github/.OwlBot.yaml b/packages/google-privacy-dlp/.github/.OwlBot.yaml new file mode 100644 index 00000000000..f169296083f --- /dev/null +++ b/packages/google-privacy-dlp/.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/privacy/dlp/(.*)/.*-nodejs/(.*) + dest: /owl-bot-staging/$1/$2 + diff --git a/packages/google-privacy-dlp/.repo-metadata.json b/packages/google-privacy-dlp/.repo-metadata.json index f09492df264..f3b7e84f55e 100644 --- a/packages/google-privacy-dlp/.repo-metadata.json +++ b/packages/google-privacy-dlp/.repo-metadata.json @@ -1,13 +1,14 @@ { - "name": "dlp", - "name_pretty": "Cloud Data Loss Prevention", - "product_documentation": "https://cloud.google.com/dlp/docs/", "client_documentation": "https://googleapis.dev/nodejs/dlp/latest", - "issue_tracker": "https://issuetracker.google.com/savedsearches/5548083", + "api_id": "dlp.googleapis.com", + "distribution_name": "@google-cloud/dlp", "release_level": "ga", + "default_version": "v2", "language": "nodejs", + "name_pretty": "Cloud Data Loss Prevention", "repo": "googleapis/nodejs-dlp", - "distribution_name": "@google-cloud/dlp", - "api_id": "dlp.googleapis.com", - "requires_billing": true -} \ No newline at end of file + "product_documentation": "https://cloud.google.com/dlp/docs/", + "requires_billing": true, + "name": "dlp", + "issue_tracker": "https://issuetracker.google.com/savedsearches/5548083" +} diff --git a/packages/google-privacy-dlp/synth.metadata b/packages/google-privacy-dlp/synth.metadata deleted file mode 100644 index 9f52b15b522..00000000000 --- a/packages/google-privacy-dlp/synth.metadata +++ /dev/null @@ -1,37 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/nodejs-dlp.git", - "sha": "c0b3730d0cc00c8364a73cc40653bfb640e0262c" - } - }, - { - "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": "privacy-dlp", - "apiVersion": "v2", - "language": "nodejs", - "generator": "bazel" - } - } - ] -} \ No newline at end of file diff --git a/packages/google-privacy-dlp/synth.py b/packages/google-privacy-dlp/synth.py deleted file mode 100644 index e9a71114ce6..00000000000 --- a/packages/google-privacy-dlp/synth.py +++ /dev/null @@ -1,33 +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 - -# Run the gapic generator -gapic = gcp.GAPICBazel() -version = 'v2' -library = gapic.node_library('privacy-dlp', version, proto_path=f'google/privacy/dlp/{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=['v2'], default_version='v2') -s.copy(templates) - -node.postprocess_gapic_library()