From 1fc871ae26d3d1988e0d12063300f1b95c87c1f3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 14:34:10 -0500 Subject: [PATCH] fix: Add context manager return types (#15) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Add documentation for enums fix: Add context manager return types chore: Update gapic-generator-python to v1.8.1 PiperOrigin-RevId: 503210727 Source-Link: https://github.com/googleapis/googleapis/commit/a391fd1dac18dfdfa00c18c8404f2c3a6ff8e98e Source-Link: https://github.com/googleapis/googleapis-gen/commit/0080f830dec37c3384157082bce279e37079ea58 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA4MGY4MzBkZWMzN2MzMzg0MTU3MDgyYmNlMjc5ZTM3MDc5ZWE1OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- google/cloud/gsuiteaddons_v1/services/g_suite_add_ons/client.py | 2 +- gsuiteaddons-v1-py.tar.gz | 0 .../snippet_metadata_google.cloud.gsuiteaddons.v1.json | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 gsuiteaddons-v1-py.tar.gz diff --git a/google/cloud/gsuiteaddons_v1/services/g_suite_add_ons/client.py b/google/cloud/gsuiteaddons_v1/services/g_suite_add_ons/client.py index 28cd5a7..fa6f8fd 100644 --- a/google/cloud/gsuiteaddons_v1/services/g_suite_add_ons/client.py +++ b/google/cloud/gsuiteaddons_v1/services/g_suite_add_ons/client.py @@ -1439,7 +1439,7 @@ def sample_get_install_status(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "GSuiteAddOnsClient": return self def __exit__(self, type, value, traceback): diff --git a/gsuiteaddons-v1-py.tar.gz b/gsuiteaddons-v1-py.tar.gz new file mode 100644 index 0000000..e69de29 diff --git a/samples/generated_samples/snippet_metadata_google.cloud.gsuiteaddons.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.gsuiteaddons.v1.json index f46b8bd..1a4e67e 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.gsuiteaddons.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.gsuiteaddons.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-gsuiteaddons", - "version": "0.2.0" + "version": "0.1.0" }, "snippets": [ {