From eb094de8a514fbd58c9ed6926cbf9f32787e4a10 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 16:41:34 +0000 Subject: [PATCH] chore: Update gapic-generator-python to v1.8.5 (#205) 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 --- .../api_gateway_service/transports/rest.py | 32 +++++++++---------- .../cloud/apigateway_v1/types/apigateway.py | 2 ++ .../apigateway_v1/types/apigateway_service.py | 2 +- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/google/cloud/apigateway_v1/services/api_gateway_service/transports/rest.py b/google/cloud/apigateway_v1/services/api_gateway_service/transports/rest.py index f5408b9..5b378b1 100644 --- a/google/cloud/apigateway_v1/services/api_gateway_service/transports/rest.py +++ b/google/cloud/apigateway_v1/services/api_gateway_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 ( @@ -682,7 +682,7 @@ class _CreateApi(ApiGatewayServiceRestStub): def __hash__(self): return hash("CreateApi") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "apiId": "", } @@ -782,7 +782,7 @@ class _CreateApiConfig(ApiGatewayServiceRestStub): def __hash__(self): return hash("CreateApiConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "apiConfigId": "", } @@ -884,7 +884,7 @@ class _CreateGateway(ApiGatewayServiceRestStub): def __hash__(self): return hash("CreateGateway") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "gatewayId": "", } @@ -984,7 +984,7 @@ class _DeleteApi(ApiGatewayServiceRestStub): def __hash__(self): return hash("DeleteApi") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1073,7 +1073,7 @@ class _DeleteApiConfig(ApiGatewayServiceRestStub): def __hash__(self): return hash("DeleteApiConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1164,7 +1164,7 @@ class _DeleteGateway(ApiGatewayServiceRestStub): def __hash__(self): return hash("DeleteGateway") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1253,7 +1253,7 @@ class _GetApi(ApiGatewayServiceRestStub): def __hash__(self): return hash("GetApi") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1343,7 +1343,7 @@ class _GetApiConfig(ApiGatewayServiceRestStub): def __hash__(self): return hash("GetApiConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1434,7 +1434,7 @@ class _GetGateway(ApiGatewayServiceRestStub): def __hash__(self): return hash("GetGateway") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1528,7 +1528,7 @@ class _ListApiConfigs(ApiGatewayServiceRestStub): def __hash__(self): return hash("ListApiConfigs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1620,7 +1620,7 @@ class _ListApis(ApiGatewayServiceRestStub): def __hash__(self): return hash("ListApis") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1710,7 +1710,7 @@ class _ListGateways(ApiGatewayServiceRestStub): def __hash__(self): return hash("ListGateways") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1800,7 +1800,7 @@ class _UpdateApi(ApiGatewayServiceRestStub): def __hash__(self): return hash("UpdateApi") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1898,7 +1898,7 @@ class _UpdateApiConfig(ApiGatewayServiceRestStub): def __hash__(self): return hash("UpdateApiConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1998,7 +1998,7 @@ class _UpdateGateway(ApiGatewayServiceRestStub): def __hash__(self): return hash("UpdateGateway") - __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/google/cloud/apigateway_v1/types/apigateway.py b/google/cloud/apigateway_v1/types/apigateway.py index 44addc0..5e0409b 100644 --- a/google/cloud/apigateway_v1/types/apigateway.py +++ b/google/cloud/apigateway_v1/types/apigateway.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/google/cloud/apigateway_v1/types/apigateway_service.py b/google/cloud/apigateway_v1/types/apigateway_service.py index 626a495..7bf8fae 100644 --- a/google/cloud/apigateway_v1/types/apigateway_service.py +++ b/google/cloud/apigateway_v1/types/apigateway_service.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # - +import proto # type: ignore __protobuf__ = proto.module( package="google.cloud.apigateway.v1",