Skip to content

Commit 1e5ee87

Browse files
realjordannatheacodes
authored andcommitted
Per internal documentation complaint, fix the naming. (#1933)
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.
1 parent 633d03c commit 1e5ee87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dlp/quickstart.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def quickstart():
2929
project = 'your-project'
3030

3131
# Instantiate a client.
32-
dlp = google.cloud.dlp.DlpServiceClient()
32+
dlp_client = google.cloud.dlp.DlpServiceClient()
3333

3434
# The string to inspect
3535
content = 'Robert Frost'
@@ -59,10 +59,10 @@ def quickstart():
5959
}
6060

6161
# Convert the project id into a full resource id.
62-
parent = dlp.project_path(project)
62+
parent = dlp_client.project_path(project)
6363

6464
# Call the API.
65-
response = dlp.inspect_content(parent, inspect_config, item)
65+
response = dlp_client.inspect_content(parent, inspect_config, item)
6666

6767
# Print out the results.
6868
if response.result.findings:

0 commit comments

Comments
 (0)