async def sample_delete_version():
    # Create a client
    client = dialogflow_v2beta1.VersionsAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2beta1.DeleteVersionRequest(name="name_value", )

    # Make the request
    await client.delete_version(request=request)
async def sample_update_version():
    # Create a client
    client = dialogflow_v2beta1.VersionsAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2beta1.UpdateVersionRequest()

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

    # Handle the response
    print(response)
示例#3
0
async def sample_get_version():
    # Create a client
    client = dialogflow_v2beta1.VersionsAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2beta1.GetVersionRequest(name="name_value", )

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

    # Handle the response
    print(response)
示例#4
0
async def sample_list_versions():
    # Create a client
    client = dialogflow_v2beta1.VersionsAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2beta1.ListVersionsRequest(parent="parent_value", )

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

    # Handle the response
    async for response in page_result:
        print(response)