From d6a5bbe0613a44f4fefdd665fd562540424f6a9a Mon Sep 17 00:00:00 2001 From: realjordanna <32629229+realjordanna@users.noreply.github.com> Date: Fri, 14 Dec 2018 13:21:32 -0800 Subject: [PATCH] Per internal documentation complaint, fix the naming. The documentation for DLP uses 'dlp' as the instance name. As this is also the name of the python package, it could be confusing for people new to the API object model so switch to dlp_client. --- dlp/quickstart.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlp/quickstart.py b/dlp/quickstart.py index 82bbc1f3078..b0eca0c8875 100644 --- a/dlp/quickstart.py +++ b/dlp/quickstart.py @@ -29,7 +29,7 @@ def quickstart(): project = 'your-project' # Instantiate a client. - dlp = google.cloud.dlp.DlpServiceClient() + dlp_client = google.cloud.dlp.DlpServiceClient() # The string to inspect content = 'Robert Frost' @@ -59,10 +59,10 @@ def quickstart(): } # Convert the project id into a full resource id. - parent = dlp.project_path(project) + parent = dlp_client.project_path(project) # Call the API. - response = dlp.inspect_content(parent, inspect_config, item) + response = dlp_client.inspect_content(parent, inspect_config, item) # Print out the results. if response.result.findings: