Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#34)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.65.2

PiperOrigin-RevId: 444333013

Source-Link: googleapis/googleapis@f91b6cf

Source-Link: googleapis/googleapis-gen@16eb360
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZlYjM2MDk1YzI5NGU3MTJjNzRhMWJmMjM1NTA4MTdiNDIxNzRlNSJ9

* 🦉 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]>
  • Loading branch information
3 people authored Apr 28, 2022
1 parent c2cdfd2 commit f898898
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,17 +250,17 @@ async def optimize_tours(
from google.cloud import optimization_v1
def sample_optimize_tours():
async def sample_optimize_tours():
# Create a client
client = optimization_v1.FleetRoutingClient()
client = optimization_v1.FleetRoutingAsyncClient()
# Initialize request argument(s)
request = optimization_v1.OptimizeToursRequest(
parent="parent_value",
)
# Make the request
response = client.optimize_tours(request=request)
response = await client.optimize_tours(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -346,9 +346,9 @@ async def batch_optimize_tours(
from google.cloud import optimization_v1
def sample_batch_optimize_tours():
async def sample_batch_optimize_tours():
# Create a client
client = optimization_v1.FleetRoutingClient()
client = optimization_v1.FleetRoutingAsyncClient()
# Initialize request argument(s)
model_configs = optimization_v1.AsyncModelConfig()
Expand All @@ -365,7 +365,7 @@ def sample_batch_optimize_tours():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ def test_optimize_tours_field_headers():
# a field header. Set these to a non-empty value.
request = fleet_routing.OptimizeToursRequest()

request.parent = "parent/value"
request.parent = "parent_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.optimize_tours), "__call__") as call:
Expand All @@ -758,7 +758,7 @@ def test_optimize_tours_field_headers():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"parent=parent/value",
"parent=parent_value",
) in kw["metadata"]


Expand All @@ -772,7 +772,7 @@ async def test_optimize_tours_field_headers_async():
# a field header. Set these to a non-empty value.
request = fleet_routing.OptimizeToursRequest()

request.parent = "parent/value"
request.parent = "parent_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.optimize_tours), "__call__") as call:
Expand All @@ -790,7 +790,7 @@ async def test_optimize_tours_field_headers_async():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"parent=parent/value",
"parent=parent_value",
) in kw["metadata"]


Expand Down Expand Up @@ -893,7 +893,7 @@ def test_batch_optimize_tours_field_headers():
# a field header. Set these to a non-empty value.
request = fleet_routing.BatchOptimizeToursRequest()

request.parent = "parent/value"
request.parent = "parent_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
Expand All @@ -911,7 +911,7 @@ def test_batch_optimize_tours_field_headers():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"parent=parent/value",
"parent=parent_value",
) in kw["metadata"]


Expand All @@ -925,7 +925,7 @@ async def test_batch_optimize_tours_field_headers_async():
# a field header. Set these to a non-empty value.
request = fleet_routing.BatchOptimizeToursRequest()

request.parent = "parent/value"
request.parent = "parent_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
Expand All @@ -945,7 +945,7 @@ async def test_batch_optimize_tours_field_headers_async():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"parent=parent/value",
"parent=parent_value",
) in kw["metadata"]


Expand Down

0 comments on commit f898898

Please sign in to comment.