Example #1
0
def sample_delete_security_settings():
    # Create a client
    client = dialogflowcx_v3beta1.SecuritySettingsServiceClient()

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

    # Make the request
    client.delete_security_settings(request=request)
Example #2
0
def sample_get_security_settings():
    # Create a client
    client = dialogflowcx_v3beta1.SecuritySettingsServiceClient()

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

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

    # Handle the response
    print(response)
def sample_list_security_settings():
    # Create a client
    client = dialogflowcx_v3beta1.SecuritySettingsServiceClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3beta1.ListSecuritySettingsRequest(
        parent="parent_value", )

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

    # Handle the response
    for response in page_result:
        print(response)
Example #4
0
def sample_update_security_settings():
    # Create a client
    client = dialogflowcx_v3beta1.SecuritySettingsServiceClient()

    # Initialize request argument(s)
    security_settings = dialogflowcx_v3beta1.SecuritySettings()
    security_settings.retention_window_days = 2271
    security_settings.display_name = "display_name_value"

    request = dialogflowcx_v3beta1.UpdateSecuritySettingsRequest(
        security_settings=security_settings, )

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

    # Handle the response
    print(response)