Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.7.1 (#14)
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 96f3eef commit e1e76a9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,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 DataPolicyServiceRestInterceptor:
"""Interceptor for DataPolicyService.
Expand All @@ -71,65 +67,73 @@ class DataPolicyServiceRestInterceptor:
.. code-block:: python
class MyCustomDataPolicyServiceInterceptor(DataPolicyServiceRestInterceptor):
def pre_create_data_policy(request, metadata):
def pre_create_data_policy(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_create_data_policy(response):
def post_create_data_policy(self, response):
logging.log(f"Received response: {response}")
return response
def pre_delete_data_policy(request, metadata):
def pre_delete_data_policy(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def pre_get_data_policy(request, metadata):
def pre_get_data_policy(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_get_data_policy(response):
def post_get_data_policy(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_list_data_policies(request, metadata):
def pre_list_data_policies(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_list_data_policies(response):
def post_list_data_policies(self, response):
logging.log(f"Received response: {response}")
return response
def pre_rename_data_policy(request, metadata):
def pre_rename_data_policy(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_rename_data_policy(response):
def post_rename_data_policy(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_data_policy(request, metadata):
def pre_update_data_policy(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata
def post_update_data_policy(response):
def post_update_data_policy(self, response):
logging.log(f"Received response: {response}")
return response
transport = DataPolicyServiceRestTransport(interceptor=MyCustomDataPolicyServiceInterceptor())
client = DataPolicyServiceClient(transport=transport)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-bigquery-datapolicies",
"version": "0.2.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-bigquery-datapolicies",
"version": "0.2.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit e1e76a9

Please sign in to comment.