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

Commit 72ec270

Browse files
chore: Update gapic-generator-python to v1.8.5 (#117)
* 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 52d72e1 commit 72ec270

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

google/cloud/optimization_v1/services/fleet_routing/transports/rest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from requests import __version__ as requests_version
3333
import dataclasses
3434
import re
35-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
35+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
3636
import warnings
3737

3838
try:
@@ -141,7 +141,7 @@ def pre_get_operation(
141141
self,
142142
request: operations_pb2.GetOperationRequest,
143143
metadata: Sequence[Tuple[str, str]],
144-
) -> operations_pb2.Operation:
144+
) -> Tuple[operations_pb2.GetOperationRequest, Sequence[Tuple[str, str]]]:
145145
"""Pre-rpc interceptor for get_operation
146146
147147
Override in a subclass to manipulate the request or metadata
@@ -150,7 +150,7 @@ def pre_get_operation(
150150
return request, metadata
151151

152152
def post_get_operation(
153-
self, response: operations_pb2.GetOperationRequest
153+
self, response: operations_pb2.Operation
154154
) -> operations_pb2.Operation:
155155
"""Post-rpc interceptor for get_operation
156156
@@ -322,7 +322,7 @@ class _BatchOptimizeTours(FleetRoutingRestStub):
322322
def __hash__(self):
323323
return hash("BatchOptimizeTours")
324324

325-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
325+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
326326

327327
@classmethod
328328
def _get_unset_required_fields(cls, message_dict):
@@ -432,7 +432,7 @@ class _OptimizeTours(FleetRoutingRestStub):
432432
def __hash__(self):
433433
return hash("OptimizeTours")
434434

435-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
435+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
436436

437437
@classmethod
438438
def _get_unset_required_fields(cls, message_dict):

google/cloud/optimization_v1/types/async_model.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
import proto # type: ignore

google/cloud/optimization_v1/types/fleet_routing.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
import proto # type: ignore

samples/generated_samples/snippet_metadata_google.cloud.optimization.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-optimization",
11-
"version": "1.4.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)