def sample_delete_flow(): # Create a client client = dialogflowcx_v3.FlowsClient() # Initialize request argument(s) request = dialogflowcx_v3.DeleteFlowRequest(name="name_value", ) # Make the request client.delete_flow(request=request)
def sample_get_flow(): # Create a client client = dialogflowcx_v3.FlowsClient() # Initialize request argument(s) request = dialogflowcx_v3.GetFlowRequest(name="name_value", ) # Make the request response = client.get_flow(request=request) # Handle the response print(response)
def sample_list_flows(): # Create a client client = dialogflowcx_v3.FlowsClient() # Initialize request argument(s) request = dialogflowcx_v3.ListFlowsRequest(parent="parent_value", ) # Make the request page_result = client.list_flows(request=request) # Handle the response for response in page_result: print(response)
def sample_update_flow(): # Create a client client = dialogflowcx_v3.FlowsClient() # Initialize request argument(s) flow = dialogflowcx_v3.Flow() flow.display_name = "display_name_value" request = dialogflowcx_v3.UpdateFlowRequest(flow=flow, ) # Make the request response = client.update_flow(request=request) # Handle the response print(response)
def sample_export_flow(): # Create a client client = dialogflowcx_v3.FlowsClient() # Initialize request argument(s) request = dialogflowcx_v3.ExportFlowRequest(name="name_value", ) # Make the request operation = client.export_flow(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
def sample_import_flow(): # Create a client client = dialogflowcx_v3.FlowsClient() # Initialize request argument(s) request = dialogflowcx_v3.ImportFlowRequest( flow_uri="flow_uri_value", parent="parent_value", ) # Make the request operation = client.import_flow(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)