From d378a4651d848326fb8fe100c5fa56593a0dd521 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Sat, 16 Oct 2021 15:46:56 +0000 Subject: [PATCH 1/3] chore: delete owlbot.py --- .github/.OwlBot.lock.yaml | 2 +- docs/index.rst | 9 +-- .../services/gateway_service/async_client.py | 45 +++++++------ .../services/gateway_service/client.py | 45 +++++++------ owlbot.py | 65 ------------------- 5 files changed, 52 insertions(+), 114 deletions(-) delete mode 100644 owlbot.py diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 7d98291..1ca6ab4 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:58f73ba196b5414782605236dd0712a73541b44ff2ff4d3a36ec41092dd6fa5b + digest: sha256:17723e4df0cdd8d4508547ee517df2287af52c9d3f26a91e897bc618f73ec293 diff --git a/docs/index.rst b/docs/index.rst index 9b3f151..195a199 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,13 +2,6 @@ .. include:: multiprocessing.rst -API Reference -------------- -.. toctree:: - :maxdepth: 2 - - gateway_v1beta1/services - gateway_v1beta1/types Changelog --------- @@ -18,4 +11,4 @@ For a list of all ``google-cloud-gke-connect-gateway`` releases: .. toctree:: :maxdepth: 2 - changelog \ No newline at end of file + changelog diff --git a/google/cloud/gkeconnect/gateway_v1beta1/services/gateway_service/async_client.py b/google/cloud/gkeconnect/gateway_v1beta1/services/gateway_service/async_client.py index d6f9834..26b15b6 100644 --- a/google/cloud/gkeconnect/gateway_v1beta1/services/gateway_service/async_client.py +++ b/google/cloud/gkeconnect/gateway_v1beta1/services/gateway_service/async_client.py @@ -255,10 +255,11 @@ async def get_resource( } service ResourceService { - rpc GetResource(GetResourceRequest) returns - (google.api.HttpBody); rpc - UpdateResource(google.api.HttpBody) returns - (google.protobuf.Empty); + rpc GetResource(GetResourceRequest) + returns (google.api.HttpBody); + + rpc UpdateResource(google.api.HttpBody) + returns (google.protobuf.Empty); } @@ -388,10 +389,11 @@ async def post_resource( } service ResourceService { - rpc GetResource(GetResourceRequest) returns - (google.api.HttpBody); rpc - UpdateResource(google.api.HttpBody) returns - (google.protobuf.Empty); + rpc GetResource(GetResourceRequest) + returns (google.api.HttpBody); + + rpc UpdateResource(google.api.HttpBody) + returns (google.protobuf.Empty); } @@ -521,10 +523,11 @@ async def delete_resource( } service ResourceService { - rpc GetResource(GetResourceRequest) returns - (google.api.HttpBody); rpc - UpdateResource(google.api.HttpBody) returns - (google.protobuf.Empty); + rpc GetResource(GetResourceRequest) + returns (google.api.HttpBody); + + rpc UpdateResource(google.api.HttpBody) + returns (google.protobuf.Empty); } @@ -654,10 +657,11 @@ async def put_resource( } service ResourceService { - rpc GetResource(GetResourceRequest) returns - (google.api.HttpBody); rpc - UpdateResource(google.api.HttpBody) returns - (google.protobuf.Empty); + rpc GetResource(GetResourceRequest) + returns (google.api.HttpBody); + + rpc UpdateResource(google.api.HttpBody) + returns (google.protobuf.Empty); } @@ -787,10 +791,11 @@ async def patch_resource( } service ResourceService { - rpc GetResource(GetResourceRequest) returns - (google.api.HttpBody); rpc - UpdateResource(google.api.HttpBody) returns - (google.protobuf.Empty); + rpc GetResource(GetResourceRequest) + returns (google.api.HttpBody); + + rpc UpdateResource(google.api.HttpBody) + returns (google.protobuf.Empty); } diff --git a/google/cloud/gkeconnect/gateway_v1beta1/services/gateway_service/client.py b/google/cloud/gkeconnect/gateway_v1beta1/services/gateway_service/client.py index b85bd52..556b224 100644 --- a/google/cloud/gkeconnect/gateway_v1beta1/services/gateway_service/client.py +++ b/google/cloud/gkeconnect/gateway_v1beta1/services/gateway_service/client.py @@ -427,10 +427,11 @@ def get_resource( } service ResourceService { - rpc GetResource(GetResourceRequest) returns - (google.api.HttpBody); rpc - UpdateResource(google.api.HttpBody) returns - (google.protobuf.Empty); + rpc GetResource(GetResourceRequest) + returns (google.api.HttpBody); + + rpc UpdateResource(google.api.HttpBody) + returns (google.protobuf.Empty); } @@ -559,10 +560,11 @@ def post_resource( } service ResourceService { - rpc GetResource(GetResourceRequest) returns - (google.api.HttpBody); rpc - UpdateResource(google.api.HttpBody) returns - (google.protobuf.Empty); + rpc GetResource(GetResourceRequest) + returns (google.api.HttpBody); + + rpc UpdateResource(google.api.HttpBody) + returns (google.protobuf.Empty); } @@ -691,10 +693,11 @@ def delete_resource( } service ResourceService { - rpc GetResource(GetResourceRequest) returns - (google.api.HttpBody); rpc - UpdateResource(google.api.HttpBody) returns - (google.protobuf.Empty); + rpc GetResource(GetResourceRequest) + returns (google.api.HttpBody); + + rpc UpdateResource(google.api.HttpBody) + returns (google.protobuf.Empty); } @@ -823,10 +826,11 @@ def put_resource( } service ResourceService { - rpc GetResource(GetResourceRequest) returns - (google.api.HttpBody); rpc - UpdateResource(google.api.HttpBody) returns - (google.protobuf.Empty); + rpc GetResource(GetResourceRequest) + returns (google.api.HttpBody); + + rpc UpdateResource(google.api.HttpBody) + returns (google.protobuf.Empty); } @@ -955,10 +959,11 @@ def patch_resource( } service ResourceService { - rpc GetResource(GetResourceRequest) returns - (google.api.HttpBody); rpc - UpdateResource(google.api.HttpBody) returns - (google.protobuf.Empty); + rpc GetResource(GetResourceRequest) + returns (google.api.HttpBody); + + rpc UpdateResource(google.api.HttpBody) + returns (google.protobuf.Empty); } diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index 29d4a53..0000000 --- a/owlbot.py +++ /dev/null @@ -1,65 +0,0 @@ -# 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. - -import synthtool as s -import synthtool.gcp as gcp -from synthtool.languages import python - -# ---------------------------------------------------------------------------- -# Copy the generated client from the owl-bot staging directory -# ---------------------------------------------------------------------------- - -default_version = "v1beta1" - -for library in s.get_staging_dirs(default_version): - # work around gapic generator bug - # https://github.com/googleapis/gapic-generator-python/issues/924 - s.replace(library / f"google/cloud/gkeconnect/gateway_{library.name}/services/gateway_service/*client.py", - """; - }""", - """;\n - }""" - ) - - # work around gapic generator bug - # https://github.com/googleapis/gapic-generator-python/issues/924 - s.replace(library / f"google/cloud/gkeconnect/gateway_{library.name}/services/gateway_service/*client.py", - """rpc GetResource\(GetResourceRequest\) returns - \(google.api.HttpBody\); rpc - UpdateResource\(google.api.HttpBody\) returns - \(google.protobuf.Empty\);""", - """rpc GetResource(GetResourceRequest) - returns (google.api.HttpBody); - rpc UpdateResource(google.api.HttpBody) - returns (google.protobuf.Empty);""" - ) - - s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst"]) - -s.remove_staging_dirs() - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- - -templated_files = gcp.CommonTemplates().py_library(microgenerator=True) -python.py_samples(skip_readmes=True) -s.move(templated_files, excludes=[".coveragerc"]) # the microgenerator has a good coveragerc file - -# ---------------------------------------------------------------------------- -# Run blacken session -# ---------------------------------------------------------------------------- - -s.shell.run(["nox", "-s", "blacken"], hide_output=False) - From 80c3d6ef8f9979bddf7de1811468b81210e25f61 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 20 Oct 2021 02:04:34 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- docs/index.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 195a199..7b762d2 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -3,12 +3,21 @@ .. include:: multiprocessing.rst +API Reference +------------- +.. toctree:: + :maxdepth: 2 + + gateway_v1beta1/services + gateway_v1beta1/types + + Changelog --------- For a list of all ``google-cloud-gke-connect-gateway`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog From b26ed4554734aa909a429da4c8b302775418011c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 20 Oct 2021 02:04:43 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- docs/index.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 195a199..7b762d2 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -3,12 +3,21 @@ .. include:: multiprocessing.rst +API Reference +------------- +.. toctree:: + :maxdepth: 2 + + gateway_v1beta1/services + gateway_v1beta1/types + + Changelog --------- For a list of all ``google-cloud-gke-connect-gateway`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog