10000 chore: Update gapic-generator-python to v1.8.5 by gcf-owl-bot[bot] · Pull Request #50 · googleapis/python-api-keys · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions google/cloud/api_keys_v2/services/api_keys/transports/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -312,7 +312,7 @@ def pre_get_operation(
self,
request: operations_pb2.GetOperationRequest,
metadata: Sequence[Tuple[str, str]],
) -> operations_pb2.Operation:
) -> Tuple[operations_pb2.GetOperationRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for get_operation

Override in a subclass to manipulate the request or metadata
Expand All @@ -321,7 +321,7 @@ def pre_get_operation(
return request, metadata

def post_get_operation(
self, response: operations_pb2.GetOperationRequest
self, response: operations_pb2.Operation
) -> operations_pb2.Operation:
"""Post-rpc interceptor for get_operation

Expand Down Expand Up @@ -467,7 +467,7 @@ class _CreateKey(ApiKeysRestStub):
def __hash__(self):
return hash("CreateKey")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -563,7 +563,7 @@ class _DeleteKey(ApiKeysRestStub):
def __hash__(self):
return hash("DeleteKey")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -650,7 +650,7 @@ class _GetKey(ApiKeysRestStub):
def __hash__(self):
return hash("GetKey")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -738,7 +738,7 @@ class _GetKeyString(ApiKeysRestStub):
def __hash__(self):
return hash("GetKeyString")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -824,7 +824,7 @@ class _ListKeys(ApiKeysRestStub):
def __hash__(self):
return hash("ListKeys")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -910,7 +910,7 @@ class _LookupKey(ApiKeysRestStub):
def __hash__(self):
return hash("LookupKey")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
"keyString": "",
}

Expand Down Expand Up @@ -998,7 +998,7 @@ class _UndeleteKey(ApiKeysRestStub):
def __hash__(self):
return hash("UndeleteKey")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1094,7 +1094,7 @@ class _UpdateKey(ApiKeysRestStub):
def __hash__(self):
return hash("UpdateKey")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/api_keys_v2/types/apikeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/api_keys_v2/types/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
0