Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#514)
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 3690e94 commit a500556
Show file tree
Hide file tree
Showing 64 changed files with 1,365 additions and 1,365 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,17 +213,17 @@ async def get_agent(
from google.cloud import dialogflow_v2
def sample_get_agent():
async def sample_get_agent():
# Create a client
client = dialogflow_v2.AgentsClient()
client = dialogflow_v2.AgentsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.GetAgentRequest(
parent="parent_value",
)
# Make the request
response = client.get_agent(request=request)
response = await client.get_agent(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -321,9 +321,9 @@ async def set_agent(
from google.cloud import dialogflow_v2
def sample_set_agent():
async def sample_set_agent():
# Create a client
client = dialogflow_v2.AgentsClient()
client = dialogflow_v2.AgentsAsyncClient()
# Initialize request argument(s)
agent = dialogflow_v2.Agent()
Expand All @@ -337,7 +337,7 @@ def sample_set_agent():
)
# Make the request
response = client.set_agent(request=request)
response = await client.set_agent(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -431,17 +431,17 @@ async def delete_agent(
from google.cloud import dialogflow_v2
def sample_delete_agent():
async def sample_delete_agent():
# Create a client
client = dialogflow_v2.AgentsClient()
client = dialogflow_v2.AgentsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.DeleteAgentRequest(
parent="parent_value",
)
# Make the request
client.delete_agent(request=request)
await client.delete_agent(request=request)
Args:
request (Union[google.cloud.dialogflow_v2.types.DeleteAgentRequest, dict]):
Expand Down Expand Up @@ -520,9 +520,9 @@ async def search_agents(
from google.cloud import dialogflow_v2
def sample_search_agents():
async def sample_search_agents():
# Create a client
client = dialogflow_v2.AgentsClient()
client = dialogflow_v2.AgentsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.SearchAgentsRequest(
Expand All @@ -533,7 +533,7 @@ def sample_search_agents():
page_result = client.search_agents(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -642,9 +642,9 @@ async def train_agent(
from google.cloud import dialogflow_v2
def sample_train_agent():
async def sample_train_agent():
# Create a client
client = dialogflow_v2.AgentsClient()
client = dialogflow_v2.AgentsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.TrainAgentRequest(
Expand All @@ -656,7 +656,7 @@ def sample_train_agent():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -772,9 +772,9 @@ async def export_agent(
from google.cloud import dialogflow_v2
def sample_export_agent():
async def sample_export_agent():
# Create a client
client = dialogflow_v2.AgentsClient()
client = dialogflow_v2.AgentsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.ExportAgentRequest(
Expand All @@ -787,7 +787,7 @@ def sample_export_agent():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -911,9 +911,9 @@ async def import_agent(
from google.cloud import dialogflow_v2
def sample_import_agent():
async def sample_import_agent():
# Create a client
client = dialogflow_v2.AgentsClient()
client = dialogflow_v2.AgentsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.ImportAgentRequest(
Expand All @@ -926,7 +926,7 @@ def sample_import_agent():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -1036,9 +1036,9 @@ async def restore_agent(
from google.cloud import dialogflow_v2
def sample_restore_agent():
async def sample_restore_agent():
# Create a client
client = dialogflow_v2.AgentsClient()
client = dialogflow_v2.AgentsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.RestoreAgentRequest(
Expand All @@ -1051,7 +1051,7 @@ def sample_restore_agent():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -1137,17 +1137,17 @@ async def get_validation_result(
from google.cloud import dialogflow_v2
def sample_get_validation_result():
async def sample_get_validation_result():
# Create a client
client = dialogflow_v2.AgentsClient()
client = dialogflow_v2.AgentsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.GetValidationResultRequest(
parent="parent_value",
)
# Make the request
response = client.get_validation_result(request=request)
response = await client.get_validation_result(request=request)
# Handle the response
print(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ async def list_answer_records(
from google.cloud import dialogflow_v2
def sample_list_answer_records():
async def sample_list_answer_records():
# Create a client
client = dialogflow_v2.AnswerRecordsClient()
client = dialogflow_v2.AnswerRecordsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.ListAnswerRecordsRequest(
Expand All @@ -238,7 +238,7 @@ def sample_list_answer_records():
page_result = client.list_answer_records(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -335,16 +335,16 @@ async def update_answer_record(
from google.cloud import dialogflow_v2
def sample_update_answer_record():
async def sample_update_answer_record():
# Create a client
client = dialogflow_v2.AnswerRecordsClient()
client = dialogflow_v2.AnswerRecordsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.UpdateAnswerRecordRequest(
)
# Make the request
response = client.update_answer_record(request=request)
response = await client.update_answer_record(request=request)
# Handle the response
print(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ async def list_contexts(
from google.cloud import dialogflow_v2
def sample_list_contexts():
async def sample_list_contexts():
# Create a client
client = dialogflow_v2.ContextsClient()
client = dialogflow_v2.ContextsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.ListContextsRequest(
Expand All @@ -226,7 +226,7 @@ def sample_list_contexts():
page_result = client.list_contexts(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -325,17 +325,17 @@ async def get_context(
from google.cloud import dialogflow_v2
def sample_get_context():
async def sample_get_context():
# Create a client
client = dialogflow_v2.ContextsClient()
client = dialogflow_v2.ContextsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.GetContextRequest(
name="name_value",
)
# Make the request
response = client.get_context(request=request)
response = await client.get_context(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -445,9 +445,9 @@ async def create_context(
from google.cloud import dialogflow_v2
def sample_create_context():
async def sample_create_context():
# Create a client
client = dialogflow_v2.ContextsClient()
client = dialogflow_v2.ContextsAsyncClient()
# Initialize request argument(s)
context = dialogflow_v2.Context()
Expand All @@ -459,7 +459,7 @@ def sample_create_context():
)
# Make the request
response = client.create_context(request=request)
response = await client.create_context(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -573,9 +573,9 @@ async def update_context(
from google.cloud import dialogflow_v2
def sample_update_context():
async def sample_update_context():
# Create a client
client = dialogflow_v2.ContextsClient()
client = dialogflow_v2.ContextsAsyncClient()
# Initialize request argument(s)
context = dialogflow_v2.Context()
Expand All @@ -586,7 +586,7 @@ def sample_update_context():
)
# Make the request
response = client.update_context(request=request)
response = await client.update_context(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -697,17 +697,17 @@ async def delete_context(
from google.cloud import dialogflow_v2
def sample_delete_context():
async def sample_delete_context():
# Create a client
client = dialogflow_v2.ContextsClient()
client = dialogflow_v2.ContextsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.DeleteContextRequest(
name="name_value",
)
# Make the request
client.delete_context(request=request)
await client.delete_context(request=request)
Args:
request (Union[google.cloud.dialogflow_v2.types.DeleteContextRequest, dict]):
Expand Down Expand Up @@ -785,17 +785,17 @@ async def delete_all_contexts(
from google.cloud import dialogflow_v2
def sample_delete_all_contexts():
async def sample_delete_all_contexts():
# Create a client
client = dialogflow_v2.ContextsClient()
client = dialogflow_v2.ContextsAsyncClient()
# Initialize request argument(s)
request = dialogflow_v2.DeleteAllContextsRequest(
parent="parent_value",
)
# Make the request
client.delete_all_contexts(request=request)
await client.delete_all_contexts(request=request)
Args:
request (Union[google.cloud.dialogflow_v2.types.DeleteAllContextsRequest, dict]):
Expand Down
Loading

0 comments on commit a500556

Please sign in to comment.