Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.7.1 (#217)
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 ee91371 commit cbca9ca
Showing 1 changed file with 32 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,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 TablesServiceRestInterceptor:
"""Interceptor for TablesService.
Expand All @@ -69,83 +65,93 @@ class TablesServiceRestInterceptor:
.. code-block:: python
class MyCustomTablesServiceInterceptor(TablesServiceRestInterceptor):
def pre_batch_create_rows(request, metadata):
def pre_batch_create_rows(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_batch_create_rows(response):
def post_batch_create_rows(self, response):
logging.log(f"Received response: {response}")
return response
def pre_batch_delete_rows(request, metadata):
def pre_batch_delete_rows(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def pre_batch_update_rows(request, metadata):
def pre_batch_update_rows(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_batch_update_rows(response):
def post_batch_update_rows(self, response):
logging.log(f"Received response: {response}")
return response
def pre_create_row(request, metadata):
def pre_create_row(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_create_row(response):
def post_create_row(self, response):
logging.log(f"Received response: {response}")
return response
def pre_delete_row(request, metadata):
def pre_delete_row(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def pre_get_row(request, metadata):
def pre_get_row(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_row(response):
def post_get_row(self, response):
logging.log(f"Received response: {response}")
return response
def pre_get_table(request, metadata):
def pre_get_table(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_table(response):
def post_get_table(self, response):
logging.log(f"Received response: {response}")
return response
def pre_get_workspace(request, metadata):
def pre_get_workspace(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_workspace(response):
def post_get_workspace(self, response):
logging.log(f"Received response: {response}")
return response
def pre_list_rows(request, metadata):
def pre_list_rows(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_list_rows(response):
def post_list_rows(self, response):
logging.log(f"Received response: {response}")
return response
def pre_list_tables(request, metadata):
def pre_list_tables(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_list_tables(response):
def post_list_tables(self, response):
logging.log(f"Received response: {response}")
return response
def pre_list_workspaces(request, metadata):
def pre_list_workspaces(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_list_workspaces(response):
def post_list_workspaces(self, response):
logging.log(f"Received response: {response}")
return response
def pre_update_row(request, metadata):
def pre_update_row(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_update_row(response):
def post_update_row(self, response):
logging.log(f"Received response: {response}")
return response
transport = TablesServiceRestTransport(interceptor=MyCustomTablesServiceInterceptor())
client = TablesServiceClient(transport=transport)
Expand Down

0 comments on commit cbca9ca

Please sign in to comment.