Record Class PendingChange
java.lang.Object
java.lang.Record
com.eqixiac.equinix.mcp.server.broker.PendingChange
- Record Components:
token- the single-use confirm token handed back byfabric_propose_changechangeType- the kind of create this proposal performscanonicalSpec- the canonical-form spec JSON (seeSpecHash)specSha256- the SHA-256 (hex) ofcanonicalSpec: the proposal's identityrequestSha256- the SHA-256 (hex) of the compiled request (change type plus the canonical JSON body the create sends). The confirm phase recompiles the stored spec and executes only when the result hashes to this valuecompiledAt- the reference instant the request was compiled at (for example the base of a service token's expiry); the confirm phase recompiles at the same instantmintedAt- when the dry run passed and the token was minted; the confirm prompt reports the proposal's age from itexpiresAt- when the proposal stops being confirmablepriceSummary- the one-line price context reported by the propose phase, repeated verbatim in the confirm prompt so the approver sees the figure the proposal showed;nullwhen the proposal was minted without one
public record PendingChange(String token, ChangeType changeType, String canonicalSpec, String specSha256, String requestSha256, Instant compiledAt, Instant mintedAt, Instant expiresAt, String priceSummary)
extends Record
One dry-run-validated proposal awaiting confirmation: the single-use confirm token, the
change type, the exact canonicalized spec the dry run validated (the confirm phase
recompiles this stored spec - never a re-supplied one), the SHA-256 of the compiled request the
token is bound to, the mint and expiry instants, and the price context the proposal reported.
The token is a lookup key into one server process's ProposalStore. It is not an
activation key of any cloud provider or of the Connection Coordinator specification, carries no
data, and is meaningless outside the process that minted it.
-
Constructor Summary
ConstructorsConstructorDescriptionPendingChange(String token, ChangeType changeType, String canonicalSpec, String specSha256, String requestSha256, Instant compiledAt, Instant mintedAt, Instant expiresAt, String priceSummary) Creates an instance of aPendingChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanonicalSpecrecord component.Returns the value of thechangeTyperecord component.Returns the value of thecompiledAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.mintedAt()Returns the value of themintedAtrecord component.Returns the value of thepriceSummaryrecord component.Returns the value of therequestSha256record component.Returns the value of thespecSha256record component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PendingChange
public PendingChange(String token, ChangeType changeType, String canonicalSpec, String specSha256, String requestSha256, Instant compiledAt, Instant mintedAt, Instant expiresAt, String priceSummary) Creates an instance of aPendingChangerecord class.- Parameters:
token- the value for thetokenrecord componentchangeType- the value for thechangeTyperecord componentcanonicalSpec- the value for thecanonicalSpecrecord componentspecSha256- the value for thespecSha256record componentrequestSha256- the value for therequestSha256record componentcompiledAt- the value for thecompiledAtrecord componentmintedAt- the value for themintedAtrecord componentexpiresAt- the value for theexpiresAtrecord componentpriceSummary- the value for thepriceSummaryrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
token
-
changeType
Returns the value of thechangeTyperecord component.- Returns:
- the value of the
changeTyperecord component
-
canonicalSpec
Returns the value of thecanonicalSpecrecord component.- Returns:
- the value of the
canonicalSpecrecord component
-
specSha256
Returns the value of thespecSha256record component.- Returns:
- the value of the
specSha256record component
-
requestSha256
Returns the value of therequestSha256record component.- Returns:
- the value of the
requestSha256record component
-
compiledAt
Returns the value of thecompiledAtrecord component.- Returns:
- the value of the
compiledAtrecord component
-
mintedAt
-
expiresAt
-
priceSummary
Returns the value of thepriceSummaryrecord component.- Returns:
- the value of the
priceSummaryrecord component
-