async def sample_delete_environment(): # Create a client client = dialogflow_v2beta1.EnvironmentsAsyncClient() # Initialize request argument(s) request = dialogflow_v2beta1.DeleteEnvironmentRequest(name="name_value", ) # Make the request await client.delete_environment(request=request)
async def sample_update_environment(): # Create a client client = dialogflow_v2beta1.EnvironmentsAsyncClient() # Initialize request argument(s) request = dialogflow_v2beta1.UpdateEnvironmentRequest() # Make the request response = await client.update_environment(request=request) # Handle the response print(response)
async def sample_get_environment(): # Create a client client = dialogflow_v2beta1.EnvironmentsAsyncClient() # Initialize request argument(s) request = dialogflow_v2beta1.GetEnvironmentRequest(name="name_value", ) # Make the request response = await client.get_environment(request=request) # Handle the response print(response)
async def sample_list_environments(): # Create a client client = dialogflow_v2beta1.EnvironmentsAsyncClient() # Initialize request argument(s) request = dialogflow_v2beta1.ListEnvironmentsRequest( parent="parent_value", ) # Make the request page_result = client.list_environments(request=request) # Handle the response async for response in page_result: print(response)
async def sample_create_environment(): # Create a client client = dialogflow_v2beta1.EnvironmentsAsyncClient() # Initialize request argument(s) request = dialogflow_v2beta1.CreateEnvironmentRequest( parent="parent_value", environment_id="environment_id_value", ) # Make the request response = await client.create_environment(request=request) # Handle the response print(response)