SDK reference / Models / Plans

Plan

Kind: class

Namespace: Egulu.Sdk.Models.Plans

A first-class mutation plan with JCS digest, risk tier, cost delta, 15-minute expiry, and human approval binding (ADR-0102 §4, ADR-0906).

Properties

NameTypeJSON nameDescription
ApprovalsList<Models.Plans.PlanApprovalRecord>?approvalsHuman approvals recorded against this plan's digest.
ApprovalsRequiredint?approvalsRequiredHow many different people must approve before the plan can be applied: 1, or 2 for a class R3 or higher change to an env=prod target in a project with two eligible approvers (ADR-0902 "Who approves").
ChangesList<Models.Plans.PlanChange>?changesOrdered resource changes proposed by this plan.
CostDeltaMicroslong?costDeltaMicrosAlias for estimatedMonthlyDeltaMicros.
CreateTimeDateTimeOffset?createTimeThe createTime property
Creatorstring?creatorAlias for creatorPrincipal.
CreatorActorstring?creatorActorDelegated agent actor subject ("act.sub") when an AI agent created the plan on behalf of creatorPrincipal.
CreatorPrincipalstring?creatorPrincipalPrincipal who drafted the plan (for example users/{uid} or serviceAccounts/{uid}).
Digeststring?digestDeterministic RFC 8785 JCS SHA-256 digest ("sha256:...") over the plan's canonical changes and risk.
DisplayNamestring?displayNameOptional human-readable display name (alias for summary, up to 63 characters).
EstimatedMonthlyDeltaMicroslong?estimatedMonthlyDeltaMicrosEstimated monthly cost delta in EUR micros (10^-6 EUR).
Etagstring?etagThe etag property
ExpireTimeDateTimeOffset?expireTimePlans expire 15 minutes after creation (ADR-0102 §4); expired plans fail with 412 plan-expired.
Namestring?nameResource name: projects/{project}/locations/{location}/plans/{plan}.
OperationNamestring?operationNameResulting operation or execution reference once applied.
PolicyVersionstring?policyVersionThe version of the agent risk policy the plan was classed under; an approval or an apply under another version fails with 412 policy-changed (ADR-0102, ADR-0906).
RejectionReasonstring?rejectionReasonReason recorded when the plan was rejected.
RiskModels.Plans.Plan_risk?riskHighest risk tier across the plan's changes (R0..R4; ADR-0901).
RiskReasonsList<string>?riskReasonsThe reasons the server raised the plan's class, for example prod-target, unknown-budget or cost-delta-gt-50pct-budget (ADR-0902 escalation); empty when it did not.
StateModels.Plans.PlanState?stateCurrent lifecycle state (PENDING, DRAFT, APPROVED, REJECTED, APPLIED, EXPIRED).
Summarystring?summaryOptional human-readable summary of the plan.
Uidstring?uidImmutable UUIDv7 identifier.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property