Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.7.1 (#76)
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 2316059 commit d9cd7ba
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,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 ExecutionsRestInterceptor:
"""Interceptor for Executions.
Expand All @@ -77,26 +73,29 @@ class ExecutionsRestInterceptor:
.. code-block:: python
class MyCustomExecutionsInterceptor(ExecutionsRestInterceptor):
def pre_delete_execution(request, metadata):
def pre_delete_execution(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_delete_execution(response):
def post_delete_execution(self, response):
logging.log(f"Received response: {response}")
return response
def pre_get_execution(request, metadata):
def pre_get_execution(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_execution(response):
def post_get_execution(self, response):
logging.log(f"Received response: {response}")
return response
def pre_list_executions(request, metadata):
def pre_list_executions(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_list_executions(response):
def post_list_executions(self, response):
logging.log(f"Received response: {response}")
return response
transport = ExecutionsRestTransport(interceptor=MyCustomExecutionsInterceptor())
client = ExecutionsClient(transport=transport)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,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 JobsRestInterceptor:
"""Interceptor for Jobs.
Expand All @@ -80,68 +76,77 @@ class JobsRestInterceptor:
.. code-block:: python
class MyCustomJobsInterceptor(JobsRestInterceptor):
def pre_create_job(request, metadata):
def pre_create_job(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_create_job(response):
def post_create_job(self, response):
logging.log(f"Received response: {response}")
return response
def pre_delete_job(request, metadata):
def pre_delete_job(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_delete_job(response):
def post_delete_job(self, response):
logging.log(f"Received response: {response}")
return response
def pre_get_iam_policy(request, metadata):
def pre_get_iam_policy(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_iam_policy(response):
def post_get_iam_policy(self, response):
logging.log(f"Received response: {response}")
return response
def pre_get_job(request, metadata):
def pre_get_job(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_job(response):
def post_get_job(self, response):
logging.log(f"Received response: {response}")
return response
def pre_list_jobs(request, metadata):
def pre_list_jobs(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_list_jobs(response):
def post_list_jobs(self, response):
logging.log(f"Received response: {response}")
return response
def pre_run_job(request, metadata):
def pre_run_job(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_run_job(response):
def post_run_job(self, response):
logging.log(f"Received response: {response}")
return response
def pre_set_iam_policy(request, metadata):
def pre_set_iam_policy(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_set_iam_policy(response):
def post_set_iam_policy(self, response):
logging.log(f"Received response: {response}")
return response
def pre_test_iam_permissions(request, metadata):
def pre_test_iam_permissions(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_test_iam_permissions(response):
def post_test_iam_permissions(self, response):
logging.log(f"Received response: {response}")
return response
def pre_update_job(request, metadata):
def pre_update_job(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_update_job(response):
def post_update_job(self, response):
logging.log(f"Received response: {response}")
return response
transport = JobsRestTransport(interceptor=MyCustomJobsInterceptor())
client = JobsClient(transport=transport)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,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 RevisionsRestInterceptor:
"""Interceptor for Revisions.
Expand All @@ -77,26 +73,29 @@ class RevisionsRestInterceptor:
.. code-block:: python
class MyCustomRevisionsInterceptor(RevisionsRestInterceptor):
def pre_delete_revision(request, metadata):
def pre_delete_revision(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_delete_revision(response):
def post_delete_revision(self, response):
logging.log(f"Received response: {response}")
return response
def pre_get_revision(request, metadata):
def pre_get_revision(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_revision(response):
def post_get_revision(self, response):
logging.log(f"Received response: {response}")
return response
def pre_list_revisions(request, metadata):
def pre_list_revisions(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_list_revisions(response):
def post_list_revisions(self, response):
logging.log(f"Received response: {response}")
return response
transport = RevisionsRestTransport(interceptor=MyCustomRevisionsInterceptor())
client = RevisionsClient(transport=transport)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,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 ServicesRestInterceptor:
"""Interceptor for Services.
Expand All @@ -80,61 +76,69 @@ class ServicesRestInterceptor:
.. code-block:: python
class MyCustomServicesInterceptor(ServicesRestInterceptor):
def pre_create_service(request, metadata):
def pre_create_service(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_create_service(response):
def post_create_service(self, response):
logging.log(f"Received response: {response}")
return response
def pre_delete_service(request, metadata):
def pre_delete_service(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_delete_service(response):
def post_delete_service(self, response):
logging.log(f"Received response: {response}")
return response
def pre_get_iam_policy(request, metadata):
def pre_get_iam_policy(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_iam_policy(response):
def post_get_iam_policy(self, response):
logging.log(f"Received response: {response}")
return response
def pre_get_service(request, metadata):
def pre_get_service(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_service(response):
def post_get_service(self, response):
logging.log(f"Received response: {response}")
return response
def pre_list_services(request, metadata):
def pre_list_services(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_list_services(response):
def post_list_services(self, response):
logging.log(f"Received response: {response}")
return response
def pre_set_iam_policy(request, metadata):
def pre_set_iam_policy(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_set_iam_policy(response):
def post_set_iam_policy(self, response):
logging.log(f"Received response: {response}")
return response
def pre_test_iam_permissions(request, metadata):
def pre_test_iam_permissions(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_test_iam_permissions(response):
def post_test_iam_permissions(self, response):
logging.log(f"Received response: {response}")
return response
def pre_update_service(request, metadata):
def pre_update_service(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_update_service(response):
def post_update_service(self, response):
logging.log(f"Received response: {response}")
return response
transport = ServicesRestTransport(interceptor=MyCustomServicesInterceptor())
client = ServicesClient(transport=transport)
Expand Down
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 TasksRestInterceptor:
"""Interceptor for Tasks.
Expand All @@ -69,19 +65,21 @@ class TasksRestInterceptor:
.. code-block:: python
class MyCustomTasksInterceptor(TasksRestInterceptor):
def pre_get_task(request, metadata):
def pre_get_task(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_task(response):
def post_get_task(self, response):
logging.log(f"Received response: {response}")
return response
def pre_list_tasks(request, metadata):
def pre_list_tasks(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_list_tasks(response):
def post_list_tasks(self, response):
logging.log(f"Received response: {response}")
return response
transport = TasksRestTransport(interceptor=MyCustomTasksInterceptor())
client = TasksClient(transport=transport)
Expand Down

0 comments on commit d9cd7ba

Please sign in to comment.