Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.7.1 (#41)
Browse files Browse the repository at this point in the history
* chore: Update gapic-generator-python to v1.7.1

PiperOrigin-RevId: 495049888

Source-Link: googleapis/googleapis@bf4359c

Source-Link: googleapis/googleapis-gen@5ab9576
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 <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Dec 13, 2022
1 parent d0d42fc commit fdfc349
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 AppGatewaysServiceRestInterceptor:
"""Interceptor for AppGatewaysService.
Expand All @@ -79,33 +75,37 @@ class AppGatewaysServiceRestInterceptor:
.. code-block:: python
class MyCustomAppGatewaysServiceInterceptor(AppGatewaysServiceRestInterceptor):
def pre_create_app_gateway(request, metadata):
def pre_create_app_gateway(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_create_app_gateway(response):
def post_create_app_gateway(self, response):
logging.log(f"Received response: {response}")
return response
def pre_delete_app_gateway(request, metadata):
def pre_delete_app_gateway(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_delete_app_gateway(response):
def post_delete_app_gateway(self, response):
logging.log(f"Received response: {response}")
return response
def pre_get_app_gateway(request, metadata):
def pre_get_app_gateway(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_app_gateway(response):
def post_get_app_gateway(self, response):
logging.log(f"Received response: {response}")
return response
def pre_list_app_gateways(request, metadata):
def pre_list_app_gateways(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_list_app_gateways(response):
def post_list_app_gateways(self, response):
logging.log(f"Received response: {response}")
return response
transport = AppGatewaysServiceRestTransport(interceptor=MyCustomAppGatewaysServiceInterceptor())
client = AppGatewaysServiceClient(transport=transport)
Expand Down

0 comments on commit fdfc349

Please sign in to comment.