Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.7.1 (#46)
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 14, 2022
1 parent 04848c8 commit 4af0c9b
Showing 1 changed file with 18 additions and 16 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 AppConnectorsServiceRestInterceptor:
"""Interceptor for AppConnectorsService.
Expand All @@ -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)
Expand Down

0 comments on commit 4af0c9b

Please sign in to comment.