「個人データの検出」では事前に用意された検出器(INFO TYPE)を使い検出できます。
INFO TYPEは特定したい情報、例えば名前や電話番号、住所など情報の種類ごとに違います。
INFO TYPEはGCSに置いた辞書から自作でき、固有名詞にも対応できます。
下記が事前に用意されたINFO TYPEのリファレンスです。
declare text string;
set text = """
私は山田太郎です。
本日はよろしくお願いします。
山田
090-0000-0000
tensyoku.taro@gmail.com
""";
select text, `function_dataset.dlp_api`(text) as masked_text;
hoge@fuga Piyo % npx git-cz
cz-cli@4.3.0, @commitlint/cz-commitlint@19.2.0
? Select the type of change that you're committing: (Use arrow keys)
❯ feat: A new feature
fix: A bug fix
docs: Documentation only changes
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
refactor: A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
test: Adding missing tests or correcting existing tests
hoge@fuga Piyo % npx git-cz
cz-cli@4.3.0, @commitlint/cz-commitlint@19.2.0
? Select the type of change that you're committing: docs
? What is the scope of this change? (See README for more details; e.g. project name): piyo
? Write a short, imperative tense description of the change: (max 188 chars)
(13) update readme
? Provide a longer description of the change (press enter to skip):
? Are there any breaking changes?: No
? Does this change affect any open issues?: No
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
✔ Cleaning up temporary files...
[test-git-cz aaaaaaa] docs(piyo): update readme
1 file changed, 1 insertion(+), 1 deletion(-)