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/CHANGELOG.md b/CHANGELOG.md index 2132119..5708448 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [0.4.0](https://www.github.com/googleapis/python-gke-connect-gateway/compare/v0.3.0...v0.4.0) (2021-10-20) + + +### Features + +* add support for python 3.10 ([#43](https://www.github.com/googleapis/python-gke-connect-gateway/issues/43)) ([f210d2c](https://www.github.com/googleapis/python-gke-connect-gateway/commit/f210d2c6ae2cec7db5e7e7ae6efac357f2f1da93)) + + +### Documentation + +* fix docstring formatting ([#47](https://www.github.com/googleapis/python-gke-connect-gateway/issues/47)) ([9d51edc](https://www.github.com/googleapis/python-gke-connect-gateway/commit/9d51edc55dbb3576fe55db5bb7e526e0536fc0e4)) + ## [0.3.0](https://www.github.com/googleapis/python-gke-connect-gateway/compare/v0.2.3...v0.3.0) (2021-10-09) diff --git a/docs/index.rst b/docs/index.rst index 9b3f151..7b762d2 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,6 +2,7 @@ .. include:: multiprocessing.rst + API Reference ------------- .. toctree:: @@ -10,12 +11,13 @@ API Reference gateway_v1beta1/services gateway_v1beta1/types + Changelog --------- For a list of all ``google-cloud-gke-connect-gateway`` releases: .. toctree:: - :maxdepth: 2 + :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) - diff --git a/setup.py b/setup.py index 2ab73cf..65f19dc 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ name = "google-cloud-gke-connect-gateway" description = "GKE Connect Gateway API client library" -version = "0.3.0" +version = "0.4.0" release_status = "Development Status :: 4 - Beta" url = "https://github.com/googleapis/python-gke-connect-gateway" dependencies = [ @@ -69,6 +69,8 @@ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Operating System :: OS Independent", "Topic :: Internet", ],