镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dlp/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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:
Expand Down