From f2ab73df31e16079b216449a9f75e8d4a4c000fc Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Mon, 24 May 2021 21:18:51 +0000 Subject: [PATCH] feat: initial code generation --- .github/.OwlBot.yaml | 29 +++++++++++++++++++++++++++++ .repo-metadata.json | 15 +++++++++++++++ owlbot.py | 24 ++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 .github/.OwlBot.yaml create mode 100644 .repo-metadata.json create mode 100644 owlbot.py diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml new file mode 100644 index 00000000..0e556521 --- /dev/null +++ b/.github/.OwlBot.yaml @@ -0,0 +1,29 @@ +# 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-java:latest" + +deep-remove-regex: +- "/grpc-google-.*/src" +- "/proto-google-.*/src" +- "/google-.*/src" + +deep-copy-regex: +- source: "//google/cloud/pubsublite-flink/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/$1/proto-google-cloud-pubsublite-flink-$1/src" +- source: "//google/cloud/pubsublite-flink/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/$1/grpc-google-cloud-pubsublite-flink-$1/src" +- source: "//google/cloud/pubsublite-flink/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/$1/google-cloud-pubsublite-flink/src" \ No newline at end of file diff --git a/.repo-metadata.json b/.repo-metadata.json new file mode 100644 index 00000000..9cfd3bd8 --- /dev/null +++ b/.repo-metadata.json @@ -0,0 +1,15 @@ +{ + "name": "pubsublite-flink", + "name_pretty": "Pub/Sub Lite Flink Connector", + "product_documentation": "https://cloud.google.com/pubsub/lite/docs", + "api_description": "Pub/Sub Lite is a zonal, real-time messaging service that lets you send and receive messages between independent applications. You can manually configure the throughput and storage capacity for Pub/Sub Lite systems.", + "client_documentation": "https://googleapis.dev/java/google-cloud-pubsublite-flink/latest/index.html", + "release_level": "alpha", + "transport": "grpc", + "language": "java", + "repo": "googleapis/java-pubsublite-flink", + "repo_short": "java-pubsublite-flink", + "distribution_name": "com.google.cloud:google-cloud-pubsublite-flink", + "api_id": "pubsublite-flink.googleapis.com", + "requires_billing": true +} \ No newline at end of file diff --git a/owlbot.py b/owlbot.py new file mode 100644 index 00000000..dca9d867 --- /dev/null +++ b/owlbot.py @@ -0,0 +1,24 @@ +# 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 +# +# https://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. + +import synthtool as s +from synthtool.languages import java + + +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) + +s.remove_staging_dirs() +java.common_templates()