From ec87853da5a501a7105305bda12a78eac922d700 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 13:12:52 -0500 Subject: [PATCH] chore: Update gapic-generator-python to v1.8.5 (#258) 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 --- .../services/web_risk_service/transports/rest.py | 10 +++++----- .../google/cloud/webrisk_v1/types/webrisk.py | 2 ++ .../web_risk_service_v1_beta1/transports/rest.py | 8 ++++---- .../google/cloud/webrisk_v1beta1/types/webrisk.py | 2 ++ 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/transports/rest.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/transports/rest.py index 35ef2973d4a0..f02038b1e685 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/transports/rest.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_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 @@ -291,7 +291,7 @@ class _ComputeThreatListDiff(WebRiskServiceRestStub): def __hash__(self): return hash("ComputeThreatListDiff") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "threatType": {}, "constraints": {}, } @@ -382,7 +382,7 @@ class _CreateSubmission(WebRiskServiceRestStub): def __hash__(self): return hash("CreateSubmission") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -483,7 +483,7 @@ class _SearchHashes(WebRiskServiceRestStub): def __hash__(self): return hash("SearchHashes") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "threatTypes": {}, } @@ -573,7 +573,7 @@ class _SearchUris(WebRiskServiceRestStub): def __hash__(self): return hash("SearchUris") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "uri": "", "threatTypes": {}, } diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/types/webrisk.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/types/webrisk.py index 95f011ec60f5..22719c50c2b0 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/types/webrisk.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/types/webrisk.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 timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/transports/rest.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/transports/rest.py index 6da0a2d16443..9e3d15253f48 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/transports/rest.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/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 @@ -260,7 +260,7 @@ class _ComputeThreatListDiff(WebRiskServiceV1Beta1RestStub): def __hash__(self): return hash("ComputeThreatListDiff") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "threatType": {}, "constraints": {}, } @@ -351,7 +351,7 @@ class _SearchHashes(WebRiskServiceV1Beta1RestStub): def __hash__(self): return hash("SearchHashes") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "threatTypes": {}, } @@ -441,7 +441,7 @@ class _SearchUris(WebRiskServiceV1Beta1RestStub): def __hash__(self): return hash("SearchUris") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "uri": "", "threatTypes": {}, } diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types/webrisk.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types/webrisk.py index c6fbf91a1faa..fbbc83901bd7 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types/webrisk.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types/webrisk.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 timestamp_pb2 # type: ignore