Пример #1
0
def sample_delete_flow():
    # Create a client
    client = dialogflowcx_v3beta1.FlowsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3beta1.DeleteFlowRequest(name="name_value", )

    # Make the request
    client.delete_flow(request=request)
def sample_list_flows():
    # Create a client
    client = dialogflowcx_v3beta1.FlowsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3beta1.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_get_flow_validation_result():
    # Create a client
    client = dialogflowcx_v3beta1.FlowsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3beta1.GetFlowValidationResultRequest(
        name="name_value", )

    # Make the request
    response = client.get_flow_validation_result(request=request)

    # Handle the response
    print(response)
Пример #4
0
def sample_validate_flow():
    # Create a client
    client = dialogflowcx_v3beta1.FlowsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3beta1.ValidateFlowRequest(
        name="name_value",
    )

    # Make the request
    response = client.validate_flow(request=request)

    # Handle the response
    print(response)
def sample_update_flow():
    # Create a client
    client = dialogflowcx_v3beta1.FlowsClient()

    # Initialize request argument(s)
    flow = dialogflowcx_v3beta1.Flow()
    flow.display_name = "display_name_value"

    request = dialogflowcx_v3beta1.UpdateFlowRequest(flow=flow, )

    # Make the request
    response = client.update_flow(request=request)

    # Handle the response
    print(response)
Пример #6
0
def sample_export_flow():
    # Create a client
    client = dialogflowcx_v3beta1.FlowsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3beta1.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)
Пример #7
0
def sample_import_flow():
    # Create a client
    client = dialogflowcx_v3beta1.FlowsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3beta1.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)