feat(tag-policies): add tag-policies command#604
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
platinummonkey
previously approved these changes
Jun 18, 2026
Implements the tag-policies API surface added in SDK 0.32.0: - list: list all tag policies with optional filters (disabled, deleted, source, score) - get: fetch a single policy by ID - create: create from JSON file - update: update by ID from JSON file - delete: delete by ID (supports --hard-delete) - score: fetch per-policy compliance score with optional time window All 6 operations registered in UNSTABLE_OPS. 12 unit tests, all passing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
tag-policies must precede tags alphabetically to pass the top-level command sort order test. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Implements the Model Lab API surface added in SDK 0.32.0: Projects: - list: list projects with optional filter/tags/sort/pagination - get: fetch a project by ID - star / unstar: mark projects as starred - artifacts: list project artifacts - facet-keys / facet-values: explore project facets Runs: - list: list runs with rich filtering (project, status, tags, params, parent) - get: fetch a run by ID - delete: delete a run - pin / unpin: pin runs for easy access - artifacts: list run artifacts with optional path prefix filter - facet-keys / facet-values: explore run facets All 16 operations registered in UNSTABLE_OPS. 18 unit tests, all passing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Config gained a jq field in PR #590 but one test initializer in config.rs was missed, causing clippy --all-targets to fail. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
9784bc3 to
fc042d6
Compare
platinummonkey
approved these changes
Jun 18, 2026
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
Adds the
pup tag-policiescommand, which wraps the Datadog Tag Policies v2 API. Tag policies let teams enforce required tag keys and allowed values across Datadog resources, and expose a compliance score to measure adherence.Changes
src/commands/tag_policies.rs— new command module withlist,get,create,update,delete, andscorefunctions, plus full positive/negative unit test coveragesrc/commands/mod.rs— registerstag_policiesmodulesrc/main.rs— addsTagPoliciesvariant to theCommandsenum andTagPoliciesActionssubcommand enum; wires up dispatch inmain_innersrc/client.rs— adds 6 tag-policy operations toUNSTABLE_OPS; removes 7 stabilized ops (5 Incident Services, 2 Fleet Automation); updatestest_unstable_ops_countto 170Usage
Testing
cargo test,cargo clippy -- -D warnings,cargo fmt --checkall pass🤖 Generated with Claude Code