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