Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit 63c1477

Browse files
chore: Update gapic-generator-python to v1.8.5 (#50)
* chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: googleapis/googleapis@a45d9c0 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 <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 9121277 commit 63c1477

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

google/cloud/api_keys_v2/services/api_keys/transports/rest.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import dataclasses
1818
import json # type: ignore
1919
import re
20-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
20+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
2121
import warnings
2222

2323
from google.api_core import (
@@ -312,7 +312,7 @@ def pre_get_operation(
312312
self,
313313
request: operations_pb2.GetOperationRequest,
314314
metadata: Sequence[Tuple[str, str]],
315-
) -> operations_pb2.Operation:
315+
) -> Tuple[operations_pb2.GetOperationRequest, Sequence[Tuple[str, str]]]:
316316
"""Pre-rpc interceptor for get_operation
317317
318318
Override in a subclass to manipulate the request or metadata
@@ -321,7 +321,7 @@ def pre_get_operation(
321321
return request, metadata
322322

323323
def post_get_operation(
324-
self, response: operations_pb2.GetOperationRequest
324+
self, response: operations_pb2.Operation
325325
) -> operations_pb2.Operation:
326326
"""Post-rpc interceptor for get_operation
327327
@@ -467,7 +467,7 @@ class _CreateKey(ApiKeysRestStub):
467467
def __hash__(self):
468468
return hash("CreateKey")
469469

470-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
470+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
471471

472472
@classmethod
473473
def _get_unset_required_fields(cls, message_dict):
@@ -563,7 +563,7 @@ class _DeleteKey(ApiKeysRestStub):
563563
def __hash__(self):
564564
return hash("DeleteKey")
565565

566-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
566+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
567567

568568
@classmethod
569569
def _get_unset_required_fields(cls, message_dict):
@@ -650,7 +650,7 @@ class _GetKey(ApiKeysRestStub):
650650
def __hash__(self):
651651
return hash("GetKey")
652652

653-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
653+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
654654

655655
@classmethod
656656
def _get_unset_required_fields(cls, message_dict):
@@ -738,7 +738,7 @@ class _GetKeyString(ApiKeysRestStub):
738738
def __hash__(self):
739739
return hash("GetKeyString")
740740

741-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
741+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
742742

743743
@classmethod
744744
def _get_unset_required_fields(cls, message_dict):
@@ -824,7 +824,7 @@ class _ListKeys(ApiKeysRestStub):
824824
def __hash__(self):
825825
return hash("ListKeys")
826826

827-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
827+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
828828

829829
@classmethod
830830
def _get_unset_required_fields(cls, message_dict):
@@ -910,7 +910,7 @@ class _LookupKey(ApiKeysRestStub):
910910
def __hash__(self):
911911
return hash("LookupKey")
912912

913-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
913+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
914914
"keyString": "",
915915
}
916916

@@ -998,7 +998,7 @@ class _UndeleteKey(ApiKeysRestStub):
998998
def __hash__(self):
999999
return hash("UndeleteKey")
10001000

1001-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1001+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
10021002

10031003
@classmethod
10041004
def _get_unset_required_fields(cls, message_dict):
@@ -1094,7 +1094,7 @@ class _UpdateKey(ApiKeysRestStub):
10941094
def __hash__(self):
10951095
return hash("UpdateKey")
10961096

1097-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1097+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
10981098

10991099
@classmethod
11001100
def _get_unset_required_fields(cls, message_dict):

google/cloud/api_keys_v2/types/apikeys.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import field_mask_pb2 # type: ignore

google/cloud/api_keys_v2/types/resources.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import timestamp_pb2 # type: ignore

0 commit comments

Comments
 (0)