8000 chore: Update gapic-generator-python to v1.8.5 by gcf-owl-bot[bot] · Pull Request #443 · googleapis/python-bigquery-datatransfer · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 29, 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
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 gapic_v1, path_template, rest_helpers, rest_streaming
Expand Down Expand Up @@ -496,7 +496,7 @@ def pre_get_location(
self,
request: locations_pb2.GetLocationRequest,
metadata: Sequence[Tuple[str, str]],
) -> locations_pb2.Location:
) -> Tuple[locations_pb2.GetLocationRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for get_location

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

def post_get_location(
self, response: locations_pb2.GetLocationRequest
self, response: locations_pb2.Location
) -> locations_pb2.Location:
"""Post-rpc interceptor for get_location

Expand All @@ -519,7 +519,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 @@ -528,7 +528,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 Down Expand Up @@ -640,7 +640,7 @@ class _CheckValidCreds(DataTransferServiceRestStub):
def __hash__(self):
return hash("CheckValidCreds")

__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 @@ -755,7 +755,7 @@ class _CreateTransferConfig(DataTransferServiceRestStub):
def __hash__(self):
return hash("CreateTransferConfig")

__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 @@ -875,7 +875,7 @@ class _DeleteTransferConfig(DataTransferServiceRestStub):
def __hash__(self):
return hash("DeleteTransferConfig")

__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 @@ -959,7 +959,7 @@ class _DeleteTransferRun(DataTransferServiceRestStub):
def __hash__(self):
return hash("DeleteTransferRun")

__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 @@ -1122,7 +1122,7 @@ class _GetDataSource(DataTransferServiceRestStub):
def __hash__(self):
return hash("GetDataSource")

__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 @@ -1214,7 +1214,7 @@ class _GetTransferConfig(DataTransferServiceRestStub):
def __hash__(self):
return hash("GetTransferConfig")

__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 @@ -1315,7 +1315,7 @@ class _GetTransferRun(DataTransferServiceRestStub):
def __hash__(self):
return hash("GetTransferRun")

__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 @@ -1409,7 +1409,7 @@ class _ListDataSources(DataTransferServiceRestStub):
def __hash__(self):
return hash("ListDataSources")

__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 @@ -1506,7 +1506,7 @@ class _ListTransferConfigs(DataTransferServiceRestStub):
def __hash__(self):
return hash("ListTransferConfigs")

__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 @@ -1602,7 +1602,7 @@ class _ListTransferLogs(DataTransferServiceRestStub):
def __hash__(self):
return hash("ListTransferLogs")

__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 @@ -1699,7 +1699,7 @@ class _ListTransferRuns(DataTransferServiceRestStub):
def __hash__(self):
return hash("ListTransferRuns")

__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 @@ -1793,7 +1793,7 @@ class _ScheduleTransferRuns(DataTransferServiceRestStub):
def __hash__(self):
return hash("ScheduleTransferRuns")

__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 @@ -1995,7 +1995,7 @@ class _UpdateTransferConfig(DataTransferServiceRestStub):
def __hash__(self):
return hash("UpdateTransferConfig")

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

Expand Down
2 changes: 2 additions & 0 deletions google/cloud/bigquery_datatransfer_v1/types/datatransfer.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 duration_pb2 # type: ignore
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/bigquery_datatransfer_v1/types/transfer.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 struct_pb2 # type: ignore
Expand Down
0