Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.8.5 (#167)
Browse files Browse the repository at this point in the history
* chore: Update gapic-generator-python to v1.8.5

PiperOrigin-RevId: 511892190

Source-Link: googleapis/googleapis@a45d9c0

Source-Link: googleapis/googleapis-gen@1907294
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>
  • Loading branch information
3 people authored Feb 27, 2023
1 parent 260ae8a commit 2fadbc7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
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 @@ -207,7 +207,7 @@ def pre_list_locations(
self,
request: locations_pb2.ListLocationsRequest,
metadata: Sequence[Tuple[str, str]],
) -> locations_pb2.ListLocationsResponse:
) -> Tuple[locations_pb2.ListLocationsRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for list_locations
Override in a subclass to manipulate the request or metadata
Expand All @@ -216,7 +216,7 @@ def pre_list_locations(
return request, metadata

def post_list_locations(
self, response: locations_pb2.ListLocationsRequest
self, response: locations_pb2.ListLocationsResponse
) -> locations_pb2.ListLocationsResponse:
"""Post-rpc interceptor for list_locations
Expand All @@ -230,7 +230,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 @@ -239,7 +239,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 All @@ -253,7 +253,7 @@ def pre_list_operations(
self,
request: operations_pb2.ListOperationsRequest,
metadata: Sequence[Tuple[str, str]],
) -> operations_pb2.ListOperationsResponse:
) -> Tuple[operations_pb2.ListOperationsRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for list_operations
Override in a subclass to manipulate the request or metadata
Expand All @@ -262,7 +262,7 @@ def pre_list_operations(
return request, metadata

def post_list_operations(
self, response: operations_pb2.ListOperationsRequest
self, response: operations_pb2.ListOperationsResponse
) -> operations_pb2.ListOperationsResponse:
"""Post-rpc interceptor for list_operations
Expand Down Expand Up @@ -416,7 +416,7 @@ class _CreateConnector(VpcAccessServiceRestStub):
def __hash__(self):
return hash("CreateConnector")

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

Expand Down Expand Up @@ -518,7 +518,7 @@ class _DeleteConnector(VpcAccessServiceRestStub):
def __hash__(self):
return hash("DeleteConnector")

__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 @@ -609,7 +609,7 @@ class _GetConnector(VpcAccessServiceRestStub):
def __hash__(self):
return hash("GetConnector")

__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 @@ -699,7 +699,7 @@ class _ListConnectors(VpcAccessServiceRestStub):
def __hash__(self):
return hash("ListConnectors")

__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
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 comments on commit 2fadbc7

Please sign in to comment.