Skip to main content

Module integration_policy_ops

Module integration_policy_ops 

Source
Expand description

Integration-policy selection, normalization, and local validation.

Structs§

IntegrationPolicyDeletePlan
A safe, fully preflighted integration-policy deletion. Only the guard presentation and count are public: Fleet snapshots and package metadata can include configuration values, so they remain private to the API layer.
IntegrationPolicyDeleteReport
The result of applying an integration-policy deletion plan.
IntegrationPolicyFilter
IntegrationPolicyImportArtifact
A locally decoded import artifact. Its canonical specifications are kept private so callers can retain a validated source across context setup without being able to alter what remote planning will use.
IntegrationPolicyImportPlan
What plan_import preflights and apply_import rechecks. Only guard presentation is public: the canonical artifact, effective specifications, and Fleet snapshots never cross the API boundary.
IntegrationPolicyImportReport
IntegrationPolicyList

Functions§

apply_delete
Recheck the exact planning snapshots, then delete each independent target. An acknowledged wrong-id response is deliberately not treated as a clean deletion, and never advances shared parent expectations.
apply_import
Apply a previously validated import plan. Rows are independent except for their exact package group and shared parent-attachment snapshots.
collect
Collect all measured pages then sort by stable id locally.
export
Export selected integrations or every custom integration. A selector is resolved once and deduplicated by its stable id before any parent, package, or metadata reads.
get_op
Return a safe integration-policy view. Parent reads are both the attachment race check and the sole source of affected-agent counts.
list_op
List with local case-insensitive search and post-sort limiting.
normalize
Build a fresh portable policy from a simplified live Fleet response.
plan_delete
Plan safe, stable-id integration-policy deletion without issuing a mutation. Each selected object is retained exactly so apply_delete can reject a Fleet change before it reaches the single-id delete route.
plan_import
Plan a canonical integration-policy import without sending a write. This convenience wrapper reads the source once, then delegates to the retained artifact planner.
plan_prepared_import
Plan a retained integration-policy import without reopening its source or sending a write. Apply uses only the returned plan.
prepare_import
Read, validate, and retain an integration-policy artifact before context or credential construction. The returned value has no public raw fields.
resolve
Resolve a stable id first, then a unique exact name.
validate
Decode one JSON or YAML artifact without constructing transport or config.