Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.7.1 (#85)
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 395a678 commit c882c68
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,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 PublisherRestInterceptor:
"""Interceptor for Publisher.
Expand All @@ -67,19 +63,21 @@ class PublisherRestInterceptor:
.. code-block:: python
class MyCustomPublisherInterceptor(PublisherRestInterceptor):
def pre_publish_channel_connection_events(request, metadata):
def pre_publish_channel_connection_events(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_publish_channel_connection_events(response):
def post_publish_channel_connection_events(self, response):
logging.log(f"Received response: {response}")
return response
def pre_publish_events(request, metadata):
def pre_publish_events(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_publish_events(response):
def post_publish_events(self, response):
logging.log(f"Received response: {response}")
return response
transport = PublisherRestTransport(interceptor=MyCustomPublisherInterceptor())
client = PublisherClient(transport=transport)
Expand Down

0 comments on commit c882c68

Please sign in to comment.