Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#221)
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 903c61e commit ee316f0
Show file tree
Hide file tree
Showing 12 changed files with 171 additions and 171 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ async def list_catalogs(
from google.cloud import retail_v2
def sample_list_catalogs():
async def sample_list_catalogs():
# Create a client
client = retail_v2.CatalogServiceClient()
client = retail_v2.CatalogServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.ListCatalogsRequest(
Expand All @@ -239,7 +239,7 @@ def sample_list_catalogs():
page_result = client.list_catalogs(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -342,9 +342,9 @@ async def update_catalog(
from google.cloud import retail_v2
def sample_update_catalog():
async def sample_update_catalog():
# Create a client
client = retail_v2.CatalogServiceClient()
client = retail_v2.CatalogServiceAsyncClient()
# Initialize request argument(s)
catalog = retail_v2.Catalog()
Expand All @@ -356,7 +356,7 @@ def sample_update_catalog():
)
# Make the request
response = client.update_catalog(request=request)
response = await client.update_catalog(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -496,16 +496,16 @@ async def set_default_branch(
from google.cloud import retail_v2
def sample_set_default_branch():
async def sample_set_default_branch():
# Create a client
client = retail_v2.CatalogServiceClient()
client = retail_v2.CatalogServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.SetDefaultBranchRequest(
)
# Make the request
client.set_default_branch(request=request)
await client.set_default_branch(request=request)
Args:
request (Union[google.cloud.retail_v2.types.SetDefaultBranchRequest, dict]):
Expand Down Expand Up @@ -580,16 +580,16 @@ async def get_default_branch(
from google.cloud import retail_v2
def sample_get_default_branch():
async def sample_get_default_branch():
# Create a client
client = retail_v2.CatalogServiceClient()
client = retail_v2.CatalogServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.GetDefaultBranchRequest(
)
# Make the request
response = client.get_default_branch(request=request)
response = await client.get_default_branch(request=request)
# Handle the response
print(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ async def complete_query(
from google.cloud import retail_v2
def sample_complete_query():
async def sample_complete_query():
# Create a client
client = retail_v2.CompletionServiceClient()
client = retail_v2.CompletionServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.CompleteQueryRequest(
Expand All @@ -238,7 +238,7 @@ def sample_complete_query():
)
# Make the request
response = client.complete_query(request=request)
response = await client.complete_query(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -306,9 +306,9 @@ async def import_completion_data(
from google.cloud import retail_v2
def sample_import_completion_data():
async def sample_import_completion_data():
# Create a client
client = retail_v2.CompletionServiceClient()
client = retail_v2.CompletionServiceAsyncClient()
# Initialize request argument(s)
input_config = retail_v2.CompletionDataInputConfig()
Expand All @@ -325,7 +325,7 @@ def sample_import_completion_data():
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 @@ -216,9 +216,9 @@ async def predict(
from google.cloud import retail_v2
def sample_predict():
async def sample_predict():
# Create a client
client = retail_v2.PredictionServiceClient()
client = retail_v2.PredictionServiceAsyncClient()
# Initialize request argument(s)
user_event = retail_v2.UserEvent()
Expand All @@ -231,7 +231,7 @@ def sample_predict():
)
# Make the request
response = client.predict(request=request)
response = await client.predict(request=request)
# Handle the response
print(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ async def create_product(
from google.cloud import retail_v2
def sample_create_product():
async def sample_create_product():
# Create a client
client = retail_v2.ProductServiceClient()
client = retail_v2.ProductServiceAsyncClient()
# Initialize request argument(s)
product = retail_v2.Product()
Expand All @@ -249,7 +249,7 @@ def sample_create_product():
)
# Make the request
response = client.create_product(request=request)
response = await client.create_product(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -369,17 +369,17 @@ async def get_product(
from google.cloud import retail_v2
def sample_get_product():
async def sample_get_product():
# Create a client
client = retail_v2.ProductServiceClient()
client = retail_v2.ProductServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.GetProductRequest(
name="name_value",
)
# Make the request
response = client.get_product(request=request)
response = await client.get_product(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -475,9 +475,9 @@ async def list_products(
from google.cloud import retail_v2
def sample_list_products():
async def sample_list_products():
# Create a client
client = retail_v2.ProductServiceClient()
client = retail_v2.ProductServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.ListProductsRequest(
Expand All @@ -488,7 +488,7 @@ def sample_list_products():
page_result = client.list_products(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -593,9 +593,9 @@ async def update_product(
from google.cloud import retail_v2
def sample_update_product():
async def sample_update_product():
# Create a client
client = retail_v2.ProductServiceClient()
client = retail_v2.ProductServiceAsyncClient()
# Initialize request argument(s)
product = retail_v2.Product()
Expand All @@ -606,7 +606,7 @@ def sample_update_product():
)
# Make the request
response = client.update_product(request=request)
response = await client.update_product(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -718,17 +718,17 @@ async def delete_product(
from google.cloud import retail_v2
def sample_delete_product():
async def sample_delete_product():
# Create a client
client = retail_v2.ProductServiceClient()
client = retail_v2.ProductServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.DeleteProductRequest(
name="name_value",
)
# Make the request
client.delete_product(request=request)
await client.delete_product(request=request)
Args:
request (Union[google.cloud.retail_v2.types.DeleteProductRequest, dict]):
Expand Down Expand Up @@ -831,9 +831,9 @@ async def import_products(
from google.cloud import retail_v2
def sample_import_products():
async def sample_import_products():
# Create a client
client = retail_v2.ProductServiceClient()
client = retail_v2.ProductServiceAsyncClient()
# Initialize request argument(s)
input_config = retail_v2.ProductInputConfig()
Expand All @@ -849,7 +849,7 @@ def sample_import_products():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -982,9 +982,9 @@ async def set_inventory(
from google.cloud import retail_v2
def sample_set_inventory():
async def sample_set_inventory():
# Create a client
client = retail_v2.ProductServiceClient()
client = retail_v2.ProductServiceAsyncClient()
# Initialize request argument(s)
inventory = retail_v2.Product()
Expand All @@ -999,7 +999,7 @@ def sample_set_inventory():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -1187,9 +1187,9 @@ async def add_fulfillment_places(
from google.cloud import retail_v2
def sample_add_fulfillment_places():
async def sample_add_fulfillment_places():
# Create a client
client = retail_v2.ProductServiceClient()
client = retail_v2.ProductServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.AddFulfillmentPlacesRequest(
Expand All @@ -1203,7 +1203,7 @@ def sample_add_fulfillment_places():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -1321,9 +1321,9 @@ async def remove_fulfillment_places(
from google.cloud import retail_v2
def sample_remove_fulfillment_places():
async def sample_remove_fulfillment_places():
# Create a client
client = retail_v2.ProductServiceClient()
client = retail_v2.ProductServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.RemoveFulfillmentPlacesRequest(
Expand All @@ -1337,7 +1337,7 @@ def sample_remove_fulfillment_places():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -1464,9 +1464,9 @@ async def add_local_inventories(
from google.cloud import retail_v2
def sample_add_local_inventories():
async def sample_add_local_inventories():
# Create a client
client = retail_v2.ProductServiceClient()
client = retail_v2.ProductServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.AddLocalInventoriesRequest(
Expand All @@ -1478,7 +1478,7 @@ def sample_add_local_inventories():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -1602,9 +1602,9 @@ async def remove_local_inventories(
from google.cloud import retail_v2
def sample_remove_local_inventories():
async def sample_remove_local_inventories():
# Create a client
client = retail_v2.ProductServiceClient()
client = retail_v2.ProductServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.RemoveLocalInventoriesRequest(
Expand All @@ -1617,7 +1617,7 @@ def sample_remove_local_inventories():
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 @@ -226,9 +226,9 @@ async def search(
from google.cloud import retail_v2
def sample_search():
async def sample_search():
# Create a client
client = retail_v2.SearchServiceClient()
client = retail_v2.SearchServiceAsyncClient()
# Initialize request argument(s)
request = retail_v2.SearchRequest(
Expand All @@ -240,7 +240,7 @@ def sample_search():
page_result = client.search(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down
Loading

0 comments on commit ee316f0

Please sign in to comment.