async def sample_delete_intent(): # Create a client client = dialogflowcx_v3beta1.IntentsAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3beta1.DeleteIntentRequest( name="name_value", ) # Make the request await client.delete_intent(request=request)
async def sample_get_intent(): # Create a client client = dialogflowcx_v3beta1.IntentsAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3beta1.GetIntentRequest( name="name_value", ) # Make the request response = await client.get_intent(request=request) # Handle the response print(response)
async def sample_list_intents(): # Create a client client = dialogflowcx_v3beta1.IntentsAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3beta1.ListIntentsRequest( parent="parent_value", ) # Make the request page_result = client.list_intents(request=request) # Handle the response async for response in page_result: print(response)
async def sample_update_intent(): # Create a client client = dialogflowcx_v3beta1.IntentsAsyncClient() # Initialize request argument(s) intent = dialogflowcx_v3beta1.Intent() intent.display_name = "display_name_value" request = dialogflowcx_v3beta1.UpdateIntentRequest( intent=intent, ) # Make the request response = await client.update_intent(request=request) # Handle the response print(response)