예제 #1
0
async def sample_delete_transition_route_group():
    # Create a client
    client = dialogflowcx_v3beta1.TransitionRouteGroupsAsyncClient()

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

    # Make the request
    await client.delete_transition_route_group(request=request)
async def sample_get_transition_route_group():
    # Create a client
    client = dialogflowcx_v3beta1.TransitionRouteGroupsAsyncClient()

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

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

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

    # 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
    async for response in page_result:
        print(response)
async def sample_update_transition_route_group():
    # Create a client
    client = dialogflowcx_v3beta1.TransitionRouteGroupsAsyncClient()

    # 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 = await client.update_transition_route_group(request=request)

    # Handle the response
    print(response)