From e1e76a9d6260a6ffbf3eee744b23a4fa9d01c375 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 14 Dec 2022 09:55:25 -0500 Subject: [PATCH] chore: Update gapic-generator-python to v1.7.1 (#14) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update gapic-generator-python to v1.7.1 PiperOrigin-RevId: 495049888 Source-Link: https://github.com/googleapis/googleapis/commit/bf4359caacb6583399306cd1c13c2e00b2a832f9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5ab9576eafbd4de436896f01c278757d87a24e27 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 --- .../data_policy_service/transports/rest.py | 46 ++++++++++--------- ...google.cloud.bigquery.datapolicies.v1.json | 2 +- ...e.cloud.bigquery.datapolicies.v1beta1.json | 2 +- 3 files changed, 27 insertions(+), 23 deletions(-) diff --git a/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/services/data_policy_service/transports/rest.py b/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/services/data_policy_service/transports/rest.py index d19492339f95..3614c5ac1e21 100644 --- a/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/services/data_policy_service/transports/rest.py +++ b/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/services/data_policy_service/transports/rest.py @@ -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. @@ -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) diff --git a/packages/google-cloud-bigquery-datapolicies/samples/generated_samples/snippet_metadata_google.cloud.bigquery.datapolicies.v1.json b/packages/google-cloud-bigquery-datapolicies/samples/generated_samples/snippet_metadata_google.cloud.bigquery.datapolicies.v1.json index 2e37f0a58d98..137ad417ee16 100644 --- a/packages/google-cloud-bigquery-datapolicies/samples/generated_samples/snippet_metadata_google.cloud.bigquery.datapolicies.v1.json +++ b/packages/google-cloud-bigquery-datapolicies/samples/generated_samples/snippet_metadata_google.cloud.bigquery.datapolicies.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-bigquery-datapolicies", - "version": "0.2.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-bigquery-datapolicies/samples/generated_samples/snippet_metadata_google.cloud.bigquery.datapolicies.v1beta1.json b/packages/google-cloud-bigquery-datapolicies/samples/generated_samples/snippet_metadata_google.cloud.bigquery.datapolicies.v1beta1.json index 83bcde8488db..007618ce5a7f 100644 --- a/packages/google-cloud-bigquery-datapolicies/samples/generated_samples/snippet_metadata_google.cloud.bigquery.datapolicies.v1beta1.json +++ b/packages/google-cloud-bigquery-datapolicies/samples/generated_samples/snippet_metadata_google.cloud.bigquery.datapolicies.v1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-bigquery-datapolicies", - "version": "0.2.0" + "version": "0.1.0" }, "snippets": [ {