DLP UX — structured flags + curated output (2.10.0)#81
Merged
Conversation
list json now emits {items, page:{number,size,total,returned}} matching
the table/csv field projection. detail + ack renderers do the same.
all 5 formats now route through a curated shape instead of dumping the
raw API response.
patterns/profiles/filtering-profiles now accept --name, --regex, --pattern-id, --file-based, etc. JSON --body-file kept as escape hatch for complex rule trees.
patterns/profiles/filtering-profiles/dictionaries now show flag-based
create/replace as primary path; --body-file as escape hatch. List samples
updated to curated {items, page} json shape.
was hardcoded to pretty; now matches rest of DLP surface.
total values populated from real tenant; dictionaries list shape now shows omit-null behavior; upstream-400 callout on dictionaries create.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dlp patterns|profiles|filtering-profiles create/replaceaccept structured CLI flags (--name,--regex,--pattern-id,--file-based,--tag k=v, …).--body-fileretained as escape hatch.--output jsonreturns{items, page}for lists and{action,id,name,…}for acks. No more raw SDK envelope (tenant_id,is_parent_managed,pageable.*).Test plan
pnpm test— 637 pass (incl. 20 new body-builder tests + reworked renderer tests)pnpm buildcleanpatterns createvia flags returns curated ack JSON;patterns deletearchivesairs runtime dlp patterns list --output jsonshould not containtenant_idorpageableairs runtime dlp patterns create --name x --regex "ABC"should round-trip without a JSON file