Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#384)
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 27, 2022
1 parent c1c7841 commit 7987ddb
Show file tree
Hide file tree
Showing 8 changed files with 330 additions and 330 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ async def create_dataset(
from google.cloud import automl_v1
def sample_create_dataset():
async def sample_create_dataset():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
dataset = automl_v1.Dataset()
Expand All @@ -268,7 +268,7 @@ def sample_create_dataset():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -370,17 +370,17 @@ async def get_dataset(
from google.cloud import automl_v1
def sample_get_dataset():
async def sample_get_dataset():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.GetDatasetRequest(
name="name_value",
)
# Make the request
response = client.get_dataset(request=request)
response = await client.get_dataset(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -477,9 +477,9 @@ async def list_datasets(
from google.cloud import automl_v1
def sample_list_datasets():
async def sample_list_datasets():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.ListDatasetsRequest(
Expand All @@ -490,7 +490,7 @@ def sample_list_datasets():
page_result = client.list_datasets(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -596,9 +596,9 @@ async def update_dataset(
from google.cloud import automl_v1
def sample_update_dataset():
async def sample_update_dataset():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
dataset = automl_v1.Dataset()
Expand All @@ -610,7 +610,7 @@ def sample_update_dataset():
)
# Make the request
response = client.update_dataset(request=request)
response = await client.update_dataset(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -712,9 +712,9 @@ async def delete_dataset(
from google.cloud import automl_v1
def sample_delete_dataset():
async def sample_delete_dataset():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.DeleteDatasetRequest(
Expand All @@ -726,7 +726,7 @@ def sample_delete_dataset():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -852,9 +852,9 @@ async def import_data(
from google.cloud import automl_v1
def sample_import_data():
async def sample_import_data():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
input_config = automl_v1.InputConfig()
Expand All @@ -870,7 +870,7 @@ def sample_import_data():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -991,9 +991,9 @@ async def export_data(
from google.cloud import automl_v1
def sample_export_data():
async def sample_export_data():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
output_config = automl_v1.OutputConfig()
Expand All @@ -1009,7 +1009,7 @@ def sample_export_data():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -1124,17 +1124,17 @@ async def get_annotation_spec(
from google.cloud import automl_v1
def sample_get_annotation_spec():
async def sample_get_annotation_spec():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.GetAnnotationSpecRequest(
name="name_value",
)
# Make the request
response = client.get_annotation_spec(request=request)
response = await client.get_annotation_spec(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1232,9 +1232,9 @@ async def create_model(
from google.cloud import automl_v1
def sample_create_model():
async def sample_create_model():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.CreateModelRequest(
Expand All @@ -1246,7 +1246,7 @@ def sample_create_model():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -1350,17 +1350,17 @@ async def get_model(
from google.cloud import automl_v1
def sample_get_model():
async def sample_get_model():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.GetModelRequest(
name="name_value",
)
# Make the request
response = client.get_model(request=request)
response = await client.get_model(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1453,9 +1453,9 @@ async def list_models(
from google.cloud import automl_v1
def sample_list_models():
async def sample_list_models():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.ListModelsRequest(
Expand All @@ -1466,7 +1466,7 @@ def sample_list_models():
page_result = client.list_models(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -1574,9 +1574,9 @@ async def delete_model(
from google.cloud import automl_v1
def sample_delete_model():
async def sample_delete_model():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.DeleteModelRequest(
Expand All @@ -1588,7 +1588,7 @@ def sample_delete_model():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -1705,16 +1705,16 @@ async def update_model(
from google.cloud import automl_v1
def sample_update_model():
async def sample_update_model():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.UpdateModelRequest(
)
# Make the request
response = client.update_model(request=request)
response = await client.update_model(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1823,9 +1823,9 @@ async def deploy_model(
from google.cloud import automl_v1
def sample_deploy_model():
async def sample_deploy_model():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.DeployModelRequest(
Expand All @@ -1837,7 +1837,7 @@ def sample_deploy_model():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -1951,9 +1951,9 @@ async def undeploy_model(
from google.cloud import automl_v1
def sample_undeploy_model():
async def sample_undeploy_model():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.UndeployModelRequest(
Expand All @@ -1965,7 +1965,7 @@ def sample_undeploy_model():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -2079,9 +2079,9 @@ async def export_model(
from google.cloud import automl_v1
def sample_export_model():
async def sample_export_model():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
output_config = automl_v1.ModelExportOutputConfig()
Expand All @@ -2097,7 +2097,7 @@ def sample_export_model():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -2214,17 +2214,17 @@ async def get_model_evaluation(
from google.cloud import automl_v1
def sample_get_model_evaluation():
async def sample_get_model_evaluation():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.GetModelEvaluationRequest(
name="name_value",
)
# Make the request
response = client.get_model_evaluation(request=request)
response = await client.get_model_evaluation(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -2318,9 +2318,9 @@ async def list_model_evaluations(
from google.cloud import automl_v1
def sample_list_model_evaluations():
async def sample_list_model_evaluations():
# Create a client
client = automl_v1.AutoMlClient()
client = automl_v1.AutoMlAsyncClient()
# Initialize request argument(s)
request = automl_v1.ListModelEvaluationsRequest(
Expand All @@ -2332,7 +2332,7 @@ def sample_list_model_evaluations():
page_result = client.list_model_evaluations(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 7987ddb

Please sign in to comment.