Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#108)
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 28, 2022
1 parent ddfe655 commit fe132bc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ async def search_catalogs(
from google.cloud import privatecatalog_v1beta1
def sample_search_catalogs():
async def sample_search_catalogs():
# Create a client
client = privatecatalog_v1beta1.PrivateCatalogClient()
client = privatecatalog_v1beta1.PrivateCatalogAsyncClient()
# Initialize request argument(s)
request = privatecatalog_v1beta1.SearchCatalogsRequest(
Expand All @@ -258,7 +258,7 @@ def sample_search_catalogs():
page_result = client.search_catalogs(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -333,9 +333,9 @@ async def search_products(
from google.cloud import privatecatalog_v1beta1
def sample_search_products():
async def sample_search_products():
# Create a client
client = privatecatalog_v1beta1.PrivateCatalogClient()
client = privatecatalog_v1beta1.PrivateCatalogAsyncClient()
# Initialize request argument(s)
request = privatecatalog_v1beta1.SearchProductsRequest(
Expand All @@ -346,7 +346,7 @@ def sample_search_products():
page_result = client.search_products(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -421,9 +421,9 @@ async def search_versions(
from google.cloud import privatecatalog_v1beta1
def sample_search_versions():
async def sample_search_versions():
# Create a client
client = privatecatalog_v1beta1.PrivateCatalogClient()
client = privatecatalog_v1beta1.PrivateCatalogAsyncClient()
# Initialize request argument(s)
request = privatecatalog_v1beta1.SearchVersionsRequest(
Expand All @@ -435,7 +435,7 @@ def sample_search_versions():
page_result = client.search_versions(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ def test_search_catalogs_field_headers():
# a field header. Set these to a non-empty value.
request = private_catalog.SearchCatalogsRequest()

request.resource = "resource/value"
request.resource = "resource_value"

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


Expand All @@ -771,7 +771,7 @@ async def test_search_catalogs_field_headers_async():
# a field header. Set these to a non-empty value.
request = private_catalog.SearchCatalogsRequest()

request.resource = "resource/value"
request.resource = "resource_value"

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


Expand Down Expand Up @@ -838,7 +838,7 @@ def test_search_catalogs_pager(transport_name: str = "grpc"):

assert pager._metadata == metadata

results = [i for i in pager]
results = list(pager)
assert len(results) == 6
assert all(isinstance(i, private_catalog.Catalog) for i in results)

Expand Down Expand Up @@ -1079,7 +1079,7 @@ def test_search_products_field_headers():
# a field header. Set these to a non-empty value.
request = private_catalog.SearchProductsRequest()

request.resource = "resource/value"
request.resource = "resource_value"

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


Expand All @@ -1109,7 +1109,7 @@ async def test_search_products_field_headers_async():
# a field header. Set these to a non-empty value.
request = private_catalog.SearchProductsRequest()

request.resource = "resource/value"
request.resource = "resource_value"

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


Expand Down Expand Up @@ -1176,7 +1176,7 @@ def test_search_products_pager(transport_name: str = "grpc"):

assert pager._metadata == metadata

results = [i for i in pager]
results = list(pager)
assert len(results) == 6
assert all(isinstance(i, private_catalog.Product) for i in results)

Expand Down Expand Up @@ -1417,7 +1417,7 @@ def test_search_versions_field_headers():
# a field header. Set these to a non-empty value.
request = private_catalog.SearchVersionsRequest()

request.resource = "resource/value"
request.resource = "resource_value"

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


Expand All @@ -1447,7 +1447,7 @@ async def test_search_versions_field_headers_async():
# a field header. Set these to a non-empty value.
request = private_catalog.SearchVersionsRequest()

request.resource = "resource/value"
request.resource = "resource_value"

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


Expand Down Expand Up @@ -1514,7 +1514,7 @@ def test_search_versions_pager(transport_name: str = "grpc"):

assert pager._metadata == metadata

results = [i for i in pager]
results = list(pager)
assert len(results) == 6
assert all(isinstance(i, private_catalog.Version) for i in results)

Expand Down

0 comments on commit fe132bc

Please sign in to comment.