async def sample_delete_experiment():
    # Create a client
    client = dialogflowcx_v3beta1.ExperimentsAsyncClient()

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

    # Make the request
    await client.delete_experiment(request=request)
Esempio n. 2
0
async def sample_stop_experiment():
    # Create a client
    client = dialogflowcx_v3beta1.ExperimentsAsyncClient()

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

    # Make the request
    response = await client.stop_experiment(request=request)

    # Handle the response
    print(response)
async def sample_list_experiments():
    # Create a client
    client = dialogflowcx_v3beta1.ExperimentsAsyncClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3beta1.ListExperimentsRequest(
        parent="parent_value", )

    # Make the request
    page_result = client.list_experiments(request=request)

    # Handle the response
    async for response in page_result:
        print(response)
async def sample_update_experiment():
    # Create a client
    client = dialogflowcx_v3beta1.ExperimentsAsyncClient()

    # Initialize request argument(s)
    experiment = dialogflowcx_v3beta1.Experiment()
    experiment.display_name = "display_name_value"

    request = dialogflowcx_v3beta1.UpdateExperimentRequest(
        experiment=experiment,
    )

    # Make the request
    response = await client.update_experiment(request=request)

    # Handle the response
    print(response)