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
| Name | Type | JSON name | Description |
|---|---|---|---|
Approvals | List<Models.Plans.PlanApprovalRecord>? | approvals | Human approvals recorded against this plan's digest. |
ApprovalsRequired | int? | approvalsRequired | How 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"). |
Changes | List<Models.Plans.PlanChange>? | changes | Ordered resource changes proposed by this plan. |
CostDeltaMicros | long? | costDeltaMicros | Alias for estimatedMonthlyDeltaMicros. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
Creator | string? | creator | Alias for creatorPrincipal. |
CreatorActor | string? | creatorActor | Delegated agent actor subject ("act.sub") when an AI agent created the plan on behalf of creatorPrincipal. |
CreatorPrincipal | string? | creatorPrincipal | Principal who drafted the plan (for example users/{uid} or serviceAccounts/{uid}). |
Digest | string? | digest | Deterministic RFC 8785 JCS SHA-256 digest ("sha256:...") over the plan's canonical changes and risk. |
DisplayName | string? | displayName | Optional human-readable display name (alias for summary, up to 63 characters). |
EstimatedMonthlyDeltaMicros | long? | estimatedMonthlyDeltaMicros | Estimated monthly cost delta in EUR micros (10^-6 EUR). |
Etag | string? | etag | The etag property |
ExpireTime | DateTimeOffset? | expireTime | Plans expire 15 minutes after creation (ADR-0102 §4); expired plans fail with 412 plan-expired. |
Name | string? | name | Resource name: projects/{project}/locations/{location}/plans/{plan}. |
OperationName | string? | operationName | Resulting operation or execution reference once applied. |
PolicyVersion | string? | policyVersion | The 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). |
RejectionReason | string? | rejectionReason | Reason recorded when the plan was rejected. |
Risk | Models.Plans.Plan_risk? | risk | Highest risk tier across the plan's changes (R0..R4; ADR-0901). |
RiskReasons | List<string>? | riskReasons | The 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. |
State | Models.Plans.PlanState? | state | Current lifecycle state (PENDING, DRAFT, APPROVED, REJECTED, APPLIED, EXPIRED). |
Summary | string? | summary | Optional human-readable summary of the plan. |
Uid | string? | uid | Immutable UUIDv7 identifier. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |