async def sample_delete_version(): # Create a client client = dialogflowcx_v3beta1.VersionsAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3beta1.DeleteVersionRequest(name="name_value", ) # Make the request await client.delete_version(request=request)
async def sample_list_versions(): # Create a client client = dialogflowcx_v3beta1.VersionsAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3beta1.ListVersionsRequest(parent="parent_value", ) # Make the request page_result = client.list_versions(request=request) # Handle the response async for response in page_result: print(response)
async def sample_get_version(): # Create a client client = dialogflowcx_v3beta1.VersionsAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3beta1.GetVersionRequest( name="name_value", ) # Make the request response = await client.get_version(request=request) # Handle the response print(response)
async def sample_compare_versions(): # Create a client client = dialogflowcx_v3beta1.VersionsAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3beta1.CompareVersionsRequest( base_version="base_version_value", target_version="target_version_value", ) # Make the request response = await client.compare_versions(request=request) # Handle the response print(response)
async def sample_load_version(): # Create a client client = dialogflowcx_v3beta1.VersionsAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3beta1.LoadVersionRequest(name="name_value", ) # Make the request operation = client.load_version(request=request) print("Waiting for operation to complete...") response = await operation.result() # Handle the response print(response)
async def sample_update_version(): # Create a client client = dialogflowcx_v3beta1.VersionsAsyncClient() # Initialize request argument(s) version = dialogflowcx_v3beta1.Version() version.display_name = "display_name_value" request = dialogflowcx_v3beta1.UpdateVersionRequest( version=version, ) # Make the request response = await client.update_version(request=request) # Handle the response print(response)