From 7909884f954fd5d09b238a02543d817edd0f4caa Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 27 Feb 2023 11:38:07 -0500 Subject: [PATCH] chore: Update gapic-generator-python to v1.8.5 (#25) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: https://github.com/googleapis/googleapis/commit/a45d9c09c1287ffdf938f4e8083e791046c0b23b Source-Link: https://github.com/googleapis/googleapis-gen/commit/1907294b1d8365ea24f8c5f2e059a64124c4ed3b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9 * 🦉 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 Co-authored-by: Anthonios Partheniou --- .../data_policy_service/transports/rest.py | 20 +++++++++---------- .../datapolicies_v1/types/datapolicy.py | 2 ++ .../datapolicies_v1beta1/types/datapolicy.py | 2 ++ 3 files changed, 14 insertions(+), 10 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 3614c5ac1e21..6151a5e3fb5c 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 @@ -17,7 +17,7 @@ import dataclasses import json # type: ignore import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming @@ -435,7 +435,7 @@ class _CreateDataPolicy(DataPolicyServiceRestStub): def __hash__(self): return hash("CreateDataPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -534,7 +534,7 @@ class _DeleteDataPolicy(DataPolicyServiceRestStub): def __hash__(self): return hash("DeleteDataPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -612,7 +612,7 @@ class _GetDataPolicy(DataPolicyServiceRestStub): def __hash__(self): return hash("GetDataPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -700,7 +700,7 @@ class _GetIamPolicy(DataPolicyServiceRestStub): def __hash__(self): return hash("GetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -869,7 +869,7 @@ class _ListDataPolicies(DataPolicyServiceRestStub): def __hash__(self): return hash("ListDataPolicies") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -961,7 +961,7 @@ class _RenameDataPolicy(DataPolicyServiceRestStub): def __hash__(self): return hash("RenameDataPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1060,7 +1060,7 @@ class _SetIamPolicy(DataPolicyServiceRestStub): def __hash__(self): return hash("SetIamPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1229,7 +1229,7 @@ class _TestIamPermissions(DataPolicyServiceRestStub): def __hash__(self): return hash("TestIamPermissions") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1326,7 +1326,7 @@ class _UpdateDataPolicy(DataPolicyServiceRestStub): def __hash__(self): return hash("UpdateDataPolicy") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/types/datapolicy.py b/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/types/datapolicy.py index cb8c4a474b51..815dac09bda5 100644 --- a/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/types/datapolicy.py +++ b/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1/types/datapolicy.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import field_mask_pb2 # type: ignore diff --git a/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1beta1/types/datapolicy.py b/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1beta1/types/datapolicy.py index 9365d4a15fd1..218bac63bd1d 100644 --- a/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1beta1/types/datapolicy.py +++ b/packages/google-cloud-bigquery-datapolicies/google/cloud/bigquery/datapolicies_v1beta1/types/datapolicy.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import field_mask_pb2 # type: ignore