Esempio n. 1
0
def sample_delete_transition_route_group():
    # Create a client
    client = dialogflowcx_v3.TransitionRouteGroupsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3.DeleteTransitionRouteGroupRequest(
        name="name_value",
    )

    # Make the request
    client.delete_transition_route_group(request=request)
def sample_get_transition_route_group():
    # Create a client
    client = dialogflowcx_v3.TransitionRouteGroupsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3.GetTransitionRouteGroupRequest(
        name="name_value",
    )

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

    # Handle the response
    print(response)
Esempio n. 3
0
def sample_list_transition_route_groups():
    # Create a client
    client = dialogflowcx_v3.TransitionRouteGroupsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3.ListTransitionRouteGroupsRequest(
        parent="parent_value", )

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

    # Handle the response
    for response in page_result:
        print(response)
def sample_update_transition_route_group():
    # Create a client
    client = dialogflowcx_v3.TransitionRouteGroupsClient()

    # Initialize request argument(s)
    transition_route_group = dialogflowcx_v3.TransitionRouteGroup()
    transition_route_group.display_name = "display_name_value"

    request = dialogflowcx_v3.UpdateTransitionRouteGroupRequest(
        transition_route_group=transition_route_group, )

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

    # Handle the response
    print(response)