def sample_delete_environment():
    # Create a client
    client = dialogflowcx_v3beta1.EnvironmentsClient()

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

    # Make the request
    client.delete_environment(request=request)
def sample_get_environment():
    # Create a client
    client = dialogflowcx_v3beta1.EnvironmentsClient()

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

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

    # Handle the response
    print(response)
def sample_list_continuous_test_results():
    # Create a client
    client = dialogflowcx_v3beta1.EnvironmentsClient()

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

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

    # Handle the response
    for response in page_result:
        print(response)
def sample_lookup_environment_history():
    # Create a client
    client = dialogflowcx_v3beta1.EnvironmentsClient()

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

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

    # Handle the response
    for response in page_result:
        print(response)
def sample_run_continuous_test():
    # Create a client
    client = dialogflowcx_v3beta1.EnvironmentsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3beta1.RunContinuousTestRequest(
        environment="environment_value",
    )

    # Make the request
    operation = client.run_continuous_test(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
def sample_deploy_flow():
    # Create a client
    client = dialogflowcx_v3beta1.EnvironmentsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3beta1.DeployFlowRequest(
        environment="environment_value",
        flow_version="flow_version_value",
    )

    # Make the request
    operation = client.deploy_flow(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
def sample_update_environment():
    # Create a client
    client = dialogflowcx_v3beta1.EnvironmentsClient()

    # Initialize request argument(s)
    environment = dialogflowcx_v3beta1.Environment()
    environment.display_name = "display_name_value"
    environment.version_configs.version = "version_value"

    request = dialogflowcx_v3beta1.UpdateEnvironmentRequest(
        environment=environment,
    )

    # Make the request
    operation = client.update_environment(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)