Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit b225dfe

Browse files
feat(v3): added audio_export_settings (#300)
* chore: use gapic-generator-python 0.65.2 PiperOrigin-RevId: 444333013 Source-Link: googleapis/googleapis@f91b6cf Source-Link: https://github.com/googleapis/googleapis-gen/commit/16eb36095c294e712c74a1bf23550817b42174e5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZlYjM2MDk1YzI5NGU3MTJjNzRhMWJmMjM1NTA4MTdiNDIxNzRlNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: added audio_export_settings PiperOrigin-RevId: 444644952 Source-Link: googleapis/googleapis@4bd299a Source-Link: https://github.com/googleapis/googleapis-gen/commit/cd15ee9b95feb65bd9fd31160c7d5f3cbdb35d40 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2QxNWVlOWI5NWZlYjY1YmQ5ZmQzMTE2MGM3ZDVmM2NiZGIzNWQ0MCJ9 * 🦉 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>
1 parent e0142e0 commit b225dfe

File tree

65 files changed

+1459
-1388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1459
-1388
lines changed

google/cloud/dialogflowcx_v3/services/agents/async_client.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ async def list_agents(
234234
235235
from google.cloud import dialogflowcx_v3
236236
237-
def sample_list_agents():
237+
async def sample_list_agents():
238238
# Create a client
239-
client = dialogflowcx_v3.AgentsClient()
239+
client = dialogflowcx_v3.AgentsAsyncClient()
240240
241241
# Initialize request argument(s)
242242
request = dialogflowcx_v3.ListAgentsRequest(
@@ -247,7 +247,7 @@ def sample_list_agents():
247247
page_result = client.list_agents(request=request)
248248
249249
# Handle the response
250-
for response in page_result:
250+
async for response in page_result:
251251
print(response)
252252
253253
Args:
@@ -342,17 +342,17 @@ async def get_agent(
342342
343343
from google.cloud import dialogflowcx_v3
344344
345-
def sample_get_agent():
345+
async def sample_get_agent():
346346
# Create a client
347-
client = dialogflowcx_v3.AgentsClient()
347+
client = dialogflowcx_v3.AgentsAsyncClient()
348348
349349
# Initialize request argument(s)
350350
request = dialogflowcx_v3.GetAgentRequest(
351351
name="name_value",
352352
)
353353
354354
# Make the request
355-
response = client.get_agent(request=request)
355+
response = await client.get_agent(request=request)
356356
357357
# Handle the response
358358
print(response)
@@ -454,9 +454,9 @@ async def create_agent(
454454
455455
from google.cloud import dialogflowcx_v3
456456
457-
def sample_create_agent():
457+
async def sample_create_agent():
458458
# Create a client
459-
client = dialogflowcx_v3.AgentsClient()
459+
client = dialogflowcx_v3.AgentsAsyncClient()
460460
461461
# Initialize request argument(s)
462462
agent = dialogflowcx_v3.Agent()
@@ -470,7 +470,7 @@ def sample_create_agent():
470470
)
471471
472472
# Make the request
473-
response = client.create_agent(request=request)
473+
response = await client.create_agent(request=request)
474474
475475
# Handle the response
476476
print(response)
@@ -579,9 +579,9 @@ async def update_agent(
579579
580580
from google.cloud import dialogflowcx_v3
581581
582-
def sample_update_agent():
582+
async def sample_update_agent():
583583
# Create a client
584-
client = dialogflowcx_v3.AgentsClient()
584+
client = dialogflowcx_v3.AgentsAsyncClient()
585585
586586
# Initialize request argument(s)
587587
agent = dialogflowcx_v3.Agent()
@@ -594,7 +594,7 @@ def sample_update_agent():
594594
)
595595
596596
# Make the request
597-
response = client.update_agent(request=request)
597+
response = await client.update_agent(request=request)
598598
599599
# Handle the response
600600
print(response)
@@ -701,17 +701,17 @@ async def delete_agent(
701701
702702
from google.cloud import dialogflowcx_v3
703703
704-
def sample_delete_agent():
704+
async def sample_delete_agent():
705705
# Create a client
706-
client = dialogflowcx_v3.AgentsClient()
706+
client = dialogflowcx_v3.AgentsAsyncClient()
707707
708708
# Initialize request argument(s)
709709
request = dialogflowcx_v3.DeleteAgentRequest(
710710
name="name_value",
711711
)
712712
713713
# Make the request
714-
client.delete_agent(request=request)
714+
await client.delete_agent(request=request)
715715
716716
Args:
717717
request (Union[google.cloud.dialogflowcx_v3.types.DeleteAgentRequest, dict]):
@@ -793,9 +793,9 @@ async def export_agent(
793793
794794
from google.cloud import dialogflowcx_v3
795795
796-
def sample_export_agent():
796+
async def sample_export_agent():
797797
# Create a client
798-
client = dialogflowcx_v3.AgentsClient()
798+
client = dialogflowcx_v3.AgentsAsyncClient()
799799
800800
# Initialize request argument(s)
801801
request = dialogflowcx_v3.ExportAgentRequest(
@@ -807,7 +807,7 @@ def sample_export_agent():
807807
808808
print("Waiting for operation to complete...")
809809
810-
response = operation.result()
810+
response = await operation.result()
811811
812812
# Handle the response
813813
print(response)
@@ -900,9 +900,9 @@ async def restore_agent(
900900
901901
from google.cloud import dialogflowcx_v3
902902
903-
def sample_restore_agent():
903+
async def sample_restore_agent():
904904
# Create a client
905-
client = dialogflowcx_v3.AgentsClient()
905+
client = dialogflowcx_v3.AgentsAsyncClient()
906906
907907
# Initialize request argument(s)
908908
request = dialogflowcx_v3.RestoreAgentRequest(
@@ -915,7 +915,7 @@ def sample_restore_agent():
915915
916916
print("Waiting for operation to complete...")
917917
918-
response = operation.result()
918+
response = await operation.result()
919919
920920
# Handle the response
921921
print(response)
@@ -1002,17 +1002,17 @@ async def validate_agent(
10021002
10031003
from google.cloud import dialogflowcx_v3
10041004
1005-
def sample_validate_agent():
1005+
async def sample_validate_agent():
10061006
# Create a client
1007-
client = dialogflowcx_v3.AgentsClient()
1007+
client = dialogflowcx_v3.AgentsAsyncClient()
10081008
10091009
# Initialize request argument(s)
10101010
request = dialogflowcx_v3.ValidateAgentRequest(
10111011
name="name_value",
10121012
)
10131013
10141014
# Make the request
1015-
response = client.validate_agent(request=request)
1015+
response = await client.validate_agent(request=request)
10161016
10171017
# Handle the response
10181018
print(response)
@@ -1077,17 +1077,17 @@ async def get_agent_validation_result(
10771077
10781078
from google.cloud import dialogflowcx_v3
10791079
1080-
def sample_get_agent_validation_result():
1080+
async def sample_get_agent_validation_result():
10811081
# Create a client
1082-
client = dialogflowcx_v3.AgentsClient()
1082+
client = dialogflowcx_v3.AgentsAsyncClient()
10831083
10841084
# Initialize request argument(s)
10851085
request = dialogflowcx_v3.GetAgentValidationResultRequest(
10861086
name="name_value",
10871087
)
10881088
10891089
# Make the request
1090-
response = client.get_agent_validation_result(request=request)
1090+
response = await client.get_agent_validation_result(request=request)
10911091
10921092
# Handle the response
10931093
print(response)

google/cloud/dialogflowcx_v3/services/changelogs/async_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ async def list_changelogs(
214214
215215
from google.cloud import dialogflowcx_v3
216216
217-
def sample_list_changelogs():
217+
async def sample_list_changelogs():
218218
# Create a client
219-
client = dialogflowcx_v3.ChangelogsClient()
219+
client = dialogflowcx_v3.ChangelogsAsyncClient()
220220
221221
# Initialize request argument(s)
222222
request = dialogflowcx_v3.ListChangelogsRequest(
@@ -227,7 +227,7 @@ def sample_list_changelogs():
227227
page_result = client.list_changelogs(request=request)
228228
229229
# Handle the response
230-
for response in page_result:
230+
async for response in page_result:
231231
print(response)
232232
233233
Args:
@@ -322,17 +322,17 @@ async def get_changelog(
322322
323323
from google.cloud import dialogflowcx_v3
324324
325-
def sample_get_changelog():
325+
async def sample_get_changelog():
326326
# Create a client
327-
client = dialogflowcx_v3.ChangelogsClient()
327+
client = dialogflowcx_v3.ChangelogsAsyncClient()
328328
329329
# Initialize request argument(s)
330330
request = dialogflowcx_v3.GetChangelogRequest(
331331
name="name_value",
332332
)
333333
334334
# Make the request
335-
response = client.get_changelog(request=request)
335+
response = await client.get_changelog(request=request)
336336
337337
# Handle the response
338338
print(response)

google/cloud/dialogflowcx_v3/services/deployments/async_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ async def list_deployments(
225225
226226
from google.cloud import dialogflowcx_v3
227227
228-
def sample_list_deployments():
228+
async def sample_list_deployments():
229229
# Create a client
230-
client = dialogflowcx_v3.DeploymentsClient()
230+
client = dialogflowcx_v3.DeploymentsAsyncClient()
231231
232232
# Initialize request argument(s)
233233
request = dialogflowcx_v3.ListDeploymentsRequest(
@@ -238,7 +238,7 @@ def sample_list_deployments():
238238
page_result = client.list_deployments(request=request)
239239
240240
# Handle the response
241-
for response in page_result:
241+
async for response in page_result:
242242
print(response)
243243
244244
Args:
@@ -336,17 +336,17 @@ async def get_deployment(
336336
337337
from google.cloud import dialogflowcx_v3
338338
339-
def sample_get_deployment():
339+
async def sample_get_deployment():
340340
# Create a client
341-
client = dialogflowcx_v3.DeploymentsClient()
341+
client = dialogflowcx_v3.DeploymentsAsyncClient()
342342
343343
# Initialize request argument(s)
344344
request = dialogflowcx_v3.GetDeploymentRequest(
345345
name="name_value",
346346
)
347347
348348
# Make the request
349-
response = client.get_deployment(request=request)
349+
response = await client.get_deployment(request=request)
350350
351351
# Handle the response
352352
print(response)

google/cloud/dialogflowcx_v3/services/entity_types/async_client.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ async def list_entity_types(
218218
219219
from google.cloud import dialogflowcx_v3
220220
221-
def sample_list_entity_types():
221+
async def sample_list_entity_types():
222222
# Create a client
223-
client = dialogflowcx_v3.EntityTypesClient()
223+
client = dialogflowcx_v3.EntityTypesAsyncClient()
224224
225225
# Initialize request argument(s)
226226
request = dialogflowcx_v3.ListEntityTypesRequest(
@@ -231,7 +231,7 @@ def sample_list_entity_types():
231231
page_result = client.list_entity_types(request=request)
232232
233233
# Handle the response
234-
for response in page_result:
234+
async for response in page_result:
235235
print(response)
236236
237237
Args:
@@ -327,17 +327,17 @@ async def get_entity_type(
327327
328328
from google.cloud import dialogflowcx_v3
329329
330-
def sample_get_entity_type():
330+
async def sample_get_entity_type():
331331
# Create a client
332-
client = dialogflowcx_v3.EntityTypesClient()
332+
client = dialogflowcx_v3.EntityTypesAsyncClient()
333333
334334
# Initialize request argument(s)
335335
request = dialogflowcx_v3.GetEntityTypeRequest(
336336
name="name_value",
337337
)
338338
339339
# Make the request
340-
response = client.get_entity_type(request=request)
340+
response = await client.get_entity_type(request=request)
341341
342342
# Handle the response
343343
print(response)
@@ -459,9 +459,9 @@ async def create_entity_type(
459459
460460
from google.cloud import dialogflowcx_v3
461461
462-
def sample_create_entity_type():
462+
async def sample_create_entity_type():
463463
# Create a client
464-
client = dialogflowcx_v3.EntityTypesClient()
464+
client = dialogflowcx_v3.EntityTypesAsyncClient()
465465
466466
# Initialize request argument(s)
467467
entity_type = dialogflowcx_v3.EntityType()
@@ -474,7 +474,7 @@ def sample_create_entity_type():
474474
)
475475
476476
# Make the request
477-
response = client.create_entity_type(request=request)
477+
response = await client.create_entity_type(request=request)
478478
479479
# Handle the response
480480
print(response)
@@ -603,9 +603,9 @@ async def update_entity_type(
603603
604604
from google.cloud import dialogflowcx_v3
605605
606-
def sample_update_entity_type():
606+
async def sample_update_entity_type():
607607
# Create a client
608-
client = dialogflowcx_v3.EntityTypesClient()
608+
client = dialogflowcx_v3.EntityTypesAsyncClient()
609609
610610
# Initialize request argument(s)
611611
entity_type = dialogflowcx_v3.EntityType()
@@ -617,7 +617,7 @@ def sample_update_entity_type():
617617
)
618618
619619
# Make the request
620-
response = client.update_entity_type(request=request)
620+
response = await client.update_entity_type(request=request)
621621
622622
# Handle the response
623623
print(response)
@@ -747,17 +747,17 @@ async def delete_entity_type(
747747
748748
from google.cloud import dialogflowcx_v3
749749
750-
def sample_delete_entity_type():
750+
async def sample_delete_entity_type():
751751
# Create a client
752-
client = dialogflowcx_v3.EntityTypesClient()
752+
client = dialogflowcx_v3.EntityTypesAsyncClient()
753753
754754
# Initialize request argument(s)
755755
request = dialogflowcx_v3.DeleteEntityTypeRequest(
756756
name="name_value",
757757
)
758758
759759
# Make the request
760-
client.delete_entity_type(request=request)
760+
await client.delete_entity_type(request=request)
761761
762762
Args:
763763
request (Union[google.cloud.dialogflowcx_v3.types.DeleteEntityTypeRequest, dict]):

0 commit comments

Comments
 (0)