def sample_delete_transition_route_group():
    # Create a client
    client = dialogflowcx_v3beta1.TransitionRouteGroupsClient()

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

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

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

    # Handle the response
    print(response)
def sample_list_transition_route_groups():
    # Create a client
    client = dialogflowcx_v3beta1.TransitionRouteGroupsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3beta1.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)
Esempio n. 4
0
def sample_update_transition_route_group():
    # Create a client
    client = dialogflowcx_v3beta1.TransitionRouteGroupsClient()

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

    request = dialogflowcx_v3beta1.UpdateTransitionRouteGroupRequest(
        transition_route_group=transition_route_group,
    )

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

    # Handle the response
    print(response)