From 4af0c9b303b81f1e9b7f43f5666fa018289832d4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 14 Dec 2022 10:03:25 -0500 Subject: [PATCH] chore: Update gapic-generator-python to v1.7.1 (#46) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update gapic-generator-python to v1.7.1 PiperOrigin-RevId: 495049888 Source-Link: https://github.com/googleapis/googleapis/commit/bf4359caacb6583399306cd1c13c2e00b2a832f9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5ab9576eafbd4de436896f01c278757d87a24e27 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWFiOTU3NmVhZmJkNGRlNDM2ODk2ZjAxYzI3ODc1N2Q4N2EyNGUyNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../app_connectors_service/transports/rest.py | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/packages/google-cloud-beyondcorp-appconnectors/google/cloud/beyondcorp_appconnectors_v1/services/app_connectors_service/transports/rest.py b/packages/google-cloud-beyondcorp-appconnectors/google/cloud/beyondcorp_appconnectors_v1/services/app_connectors_service/transports/rest.py index b4cce76016f0..b829385f4d60 100644 --- a/packages/google-cloud-beyondcorp-appconnectors/google/cloud/beyondcorp_appconnectors_v1/services/app_connectors_service/transports/rest.py +++ b/packages/google-cloud-beyondcorp-appconnectors/google/cloud/beyondcorp_appconnectors_v1/services/app_connectors_service/transports/rest.py @@ -59,10 +59,6 @@ rest_version=requests_version, ) -# TODO (numeric enums): This file was generated with the option to -# request that the server respond with enums JSON-encoded as -# numbers. The code below does not implement that functionality yet. - class AppConnectorsServiceRestInterceptor: """Interceptor for AppConnectorsService. @@ -79,47 +75,53 @@ class AppConnectorsServiceRestInterceptor: .. code-block:: python class MyCustomAppConnectorsServiceInterceptor(AppConnectorsServiceRestInterceptor): - def pre_create_app_connector(request, metadata): + def pre_create_app_connector(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata - def post_create_app_connector(response): + def post_create_app_connector(self, response): logging.log(f"Received response: {response}") + return response - def pre_delete_app_connector(request, metadata): + def pre_delete_app_connector(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata - def post_delete_app_connector(response): + def post_delete_app_connector(self, response): logging.log(f"Received response: {response}") + return response - def pre_get_app_connector(request, metadata): + def pre_get_app_connector(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata - def post_get_app_connector(response): + def post_get_app_connector(self, response): logging.log(f"Received response: {response}") + return response - def pre_list_app_connectors(request, metadata): + def pre_list_app_connectors(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata - def post_list_app_connectors(response): + def post_list_app_connectors(self, response): logging.log(f"Received response: {response}") + return response - def pre_report_status(request, metadata): + def pre_report_status(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata - def post_report_status(response): + def post_report_status(self, response): logging.log(f"Received response: {response}") + return response - def pre_update_app_connector(request, metadata): + def pre_update_app_connector(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata - def post_update_app_connector(response): + def post_update_app_connector(self, response): logging.log(f"Received response: {response}") + return response transport = AppConnectorsServiceRestTransport(interceptor=MyCustomAppConnectorsServiceInterceptor()) client = AppConnectorsServiceClient(transport=transport)