예제 #1
0
def sample_delete_page():
    # Create a client
    client = dialogflowcx_v3.PagesClient()

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

    # Make the request
    client.delete_page(request=request)
예제 #2
0
def sample_get_page():
    # Create a client
    client = dialogflowcx_v3.PagesClient()

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

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

    # Handle the response
    print(response)
예제 #3
0
def sample_list_pages():
    # Create a client
    client = dialogflowcx_v3.PagesClient()

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

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

    # Handle the response
    for response in page_result:
        print(response)
예제 #4
0
def sample_update_page():
    # Create a client
    client = dialogflowcx_v3.PagesClient()

    # Initialize request argument(s)
    page = dialogflowcx_v3.Page()
    page.display_name = "display_name_value"

    request = dialogflowcx_v3.UpdatePageRequest(page=page, )

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

    # Handle the response
    print(response)