Skip to content

Commit 5d8923e

Browse files
chore: Update gapic-generator-python to v1.8.5 (#443)
* 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 <[email protected]>
1 parent 2adcbda commit 5d8923e

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

packages/google-cloud-bigquery-datatransfer/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/rest.py

Lines changed: 18 additions & 18 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 gapic_v1, path_template, rest_helpers, rest_streaming
@@ -496,7 +496,7 @@ def pre_get_location(
496496
self,
497497
request: locations_pb2.GetLocationRequest,
498498
metadata: Sequence[Tuple[str, str]],
499-
) -> locations_pb2.Location:
499+
) -> Tuple[locations_pb2.GetLocationRequest, Sequence[Tuple[str, str]]]:
500500
"""Pre-rpc interceptor for get_location
501501
502502
Override in a subclass to manipulate the request or metadata
@@ -505,7 +505,7 @@ def pre_get_location(
505505
return request, metadata
506506

507507
def post_get_location(
508-
self, response: locations_pb2.GetLocationRequest
508+
self, response: locations_pb2.Location
509509
) -> locations_pb2.Location:
510510
"""Post-rpc interceptor for get_location
511511
@@ -519,7 +519,7 @@ def pre_list_locations(
519519
self,
520520
request: locations_pb2.ListLocationsRequest,
521521
metadata: Sequence[Tuple[str, str]],
522-
) -> locations_pb2.ListLocationsResponse:
522+
) -> Tuple[locations_pb2.ListLocationsRequest, Sequence[Tuple[str, str]]]:
523523
"""Pre-rpc interceptor for list_locations
524524
525525
Override in a subclass to manipulate the request or metadata
@@ -528,7 +528,7 @@ def pre_list_locations(
528528
return request, metadata
529529

530530
def post_list_locations(
531-
self, response: locations_pb2.ListLocationsRequest
531+
self, response: locations_pb2.ListLocationsResponse
532532
) -> locations_pb2.ListLocationsResponse:
533533
"""Post-rpc interceptor for list_locations
534534
@@ -640,7 +640,7 @@ class _CheckValidCreds(DataTransferServiceRestStub):
640640
def __hash__(self):
641641
return hash("CheckValidCreds")
642642

643-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
643+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
644644

645645
@classmethod
646646
def _get_unset_required_fields(cls, message_dict):
@@ -755,7 +755,7 @@ class _CreateTransferConfig(DataTransferServiceRestStub):
755755
def __hash__(self):
756756
return hash("CreateTransferConfig")
757757

758-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
758+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
759759

760760
@classmethod
761761
def _get_unset_required_fields(cls, message_dict):
@@ -875,7 +875,7 @@ class _DeleteTransferConfig(DataTransferServiceRestStub):
875875
def __hash__(self):
876876
return hash("DeleteTransferConfig")
877877

878-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
878+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
879879

880880
@classmethod
881881
def _get_unset_required_fields(cls, message_dict):
@@ -959,7 +959,7 @@ class _DeleteTransferRun(DataTransferServiceRestStub):
959959
def __hash__(self):
960960
return hash("DeleteTransferRun")
961961

962-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
962+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
963963

964964
@classmethod
965965
def _get_unset_required_fields(cls, message_dict):
@@ -1122,7 +1122,7 @@ class _GetDataSource(DataTransferServiceRestStub):
11221122
def __hash__(self):
11231123
return hash("GetDataSource")
11241124

1125-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1125+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
11261126

11271127
@classmethod
11281128
def _get_unset_required_fields(cls, message_dict):
@@ -1214,7 +1214,7 @@ class _GetTransferConfig(DataTransferServiceRestStub):
12141214
def __hash__(self):
12151215
return hash("GetTransferConfig")
12161216

1217-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1217+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
12181218

12191219
@classmethod
12201220
def _get_unset_required_fields(cls, message_dict):
@@ -1315,7 +1315,7 @@ class _GetTransferRun(DataTransferServiceRestStub):
13151315
def __hash__(self):
13161316
return hash("GetTransferRun")
13171317

1318-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1318+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
13191319

13201320
@classmethod
13211321
def _get_unset_required_fields(cls, message_dict):
@@ -1409,7 +1409,7 @@ class _ListDataSources(DataTransferServiceRestStub):
14091409
def __hash__(self):
14101410
return hash("ListDataSources")
14111411

1412-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1412+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
14131413

14141414
@classmethod
14151415
def _get_unset_required_fields(cls, message_dict):
@@ -1506,7 +1506,7 @@ class _ListTransferConfigs(DataTransferServiceRestStub):
15061506
def __hash__(self):
15071507
return hash("ListTransferConfigs")
15081508

1509-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1509+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
15101510

15111511
@classmethod
15121512
def _get_unset_required_fields(cls, message_dict):
@@ -1602,7 +1602,7 @@ class _ListTransferLogs(DataTransferServiceRestStub):
16021602
def __hash__(self):
16031603
return hash("ListTransferLogs")
16041604

1605-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1605+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
16061606

16071607
@classmethod
16081608
def _get_unset_required_fields(cls, message_dict):
@@ -1699,7 +1699,7 @@ class _ListTransferRuns(DataTransferServiceRestStub):
16991699
def __hash__(self):
17001700
return hash("ListTransferRuns")
17011701

1702-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1702+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
17031703

17041704
@classmethod
17051705
def _get_unset_required_fields(cls, message_dict):
@@ -1793,7 +1793,7 @@ class _ScheduleTransferRuns(DataTransferServiceRestStub):
17931793
def __hash__(self):
17941794
return hash("ScheduleTransferRuns")
17951795

1796-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1796+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
17971797

17981798
@classmethod
17991799
def _get_unset_required_fields(cls, message_dict):
@@ -1995,7 +1995,7 @@ class _UpdateTransferConfig(DataTransferServiceRestStub):
19951995
def __hash__(self):
19961996
return hash("UpdateTransferConfig")
19971997

1998-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
1998+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
19991999
"updateMask": {},
20002000
}
20012001

packages/google-cloud-bigquery-datatransfer/google/cloud/bigquery_datatransfer_v1/types/datatransfer.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 duration_pb2 # type: ignore

packages/google-cloud-bigquery-datatransfer/google/cloud/bigquery_datatransfer_v1/types/transfer.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 struct_pb2 # type: ignore

0 commit comments

Comments
 (0)