FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

DLP: Several python example scripts have badly behaved info_types parameter by maximus12793 · Pull Request #2191 · GoogleCloudPlatform/python-docs-samples · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (5) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion dlp/deid.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def write_data(data):
help='Deidentify sensitive data in a string by masking it with a '
'character.')
mask_parser.add_argument(
'--info_types', action='append',
'--info_types', nargs='+',
help='Strings representing info types to look for. A full list of '
'info categories and types is available from the API. Examples '
'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". '
Expand Down
4 changes: 2 additions & 2 deletions dlp/inspect_content.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def callback(message):
help='The Google Cloud project id to use as a parent resource.',
default=default_project)
parser_string.add_argument(
'--info_types', action='append',
'--info_types', nargs='+',
help='Strings representing info types to look for. A full list of '
'info categories and types is available from the API. Examples '
'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". '
Expand Down Expand Up @@ -1041,7 +1041,7 @@ def callback(message):
help='The Google Cloud project id to use as a parent resource.',
default=default_project)
parser_bigquery.add_argument(
'--info_types', action='append',
'--info_types', nargs='+',
help='Strings representing info types to look for. A full list of '
'info categories and types is available from the API. Examples '
'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". '
Expand Down
2 changes: 1 addition & 1 deletion dlp/redact.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def redact_image(project, filename, output_filename,
help='The Google Cloud project id to use as a parent resource.',
default=default_project)
parser.add_argument(
'--info_types', action='append',
'--info_types', nargs='+',
help='Strings representing info types to look for. A full list of '
'info categories and types is available from the API. Examples '
'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". '
Expand Down
2 changes: 1 addition & 1 deletion dlp/templates.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def delete_inspect_template(project, template_id):
help='The Google Cloud project id to use as a parent resource.',
default=default_project)
parser_create.add_argument(
'--info_types', action='append',
'--info_types', nargs='+',
help='Strings representing info types to look for. A full list of '
'info categories and types is available from the API. Examples '
'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". '
Expand Down
2 changes: 1 addition & 1 deletion dlp/triggers.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def delete_trigger(project, trigger_id):
help='The Google Cloud project id to use as a parent resource.',
default=default_project)
parser_create.add_argument(
'--info_types', action='append',
'--info_types', nargs='+',
help='Strings representing info types to look for. A full list of '
'info categories and types is available from the API. Examples '
'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". '
Expand Down

Back | FazBrowse Home | New Git URL