Class QuorumRequestResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.QuorumRequestResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class QuorumRequestResponse
extends Object
A gated operation waiting for, or decided by, its quorum of approvers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe gated operation.static enumTENANT for a tenant's request; DEPLOYMENT for a platform request.static enumIDENTITY when a person requested; WORKLOAD when an administrative workload identity did; APPLICATION when an application did, with its own token or an actor's.static enumPENDING while it waits; EXECUTED once its quorum was reached and the operation ran; SCHEDULED when its quorum was reached and it takes effect at takesEffectAt (a platform recovery, which the tenant may cancel until then); FAILED when the operation refused to run at that moment (failureType says why); REJECTED by an approver; CANCELLED by its requester, by the tenant, or because its requester can no longer act; EXPIRED when it waited past expiresAt. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDecisionsItem(QuorumDecision decisionsItem) decisions(List<QuorumDecision> decisions) destruction(QuorumDestructionRequest destruction) booleanexpiresAt(OffsetDateTime expiresAt) failureDetail(String failureDetail) failureType(String failureType) static QuorumRequestResponseCreate an instance of QuorumRequestResponse given an JSON stringThe approvals recorded so far.Every decision, oldest first.What a key or material destruction request asks to destroy, as it was made.Until when it may be approved.The detail of that refusal.The RFC 9457 problem type of the refusal that ended a FAILED request.True when a platform operator made the request under a support-access impersonation of requestedBy: the member did not ask in person.The gated operation.The wire value ofoperation: what the server sent, verbatim.getPlane()TENANT for a tenant's request; DEPLOYMENT for a platform request.The wire value ofplane: what the server sent, verbatim.When it was created.Who asked for the operation.IDENTITY when a person requested; WORKLOAD when an administrative workload identity did; APPLICATION when an application did, with its own token or an actor's.The wire value ofrequesterType: what the server sent, verbatim.The request id.The approvals it needs, set when it was created.When it ended.PENDING while it waits; EXECUTED once its quorum was reached and the operation ran; SCHEDULED when its quorum was reached and it takes effect at takesEffectAt (a platform recovery, which the tenant may cancel until then); FAILED when the operation refused to run at that moment (failureType says why); REJECTED by an approver; CANCELLED by its requester, by the tenant, or because its requester can no longer act; EXPIRED when it waited past expiresAt.The wire value ofstatus: what the server sent, verbatim.When a SCHEDULED request takes effect.What the operation acts on.inthashCode()impersonated(Boolean impersonated) operation(QuorumRequestResponse.OperationEnum operation) requestedAt(OffsetDateTime requestedAt) requestedBy(String requestedBy) requesterType(QuorumRequestResponse.RequesterTypeEnum requesterType) requiredApprovals(Integer requiredApprovals) resolvedAt(OffsetDateTime resolvedAt) voidsetApprovals(Integer approvals) voidsetDecisions(List<QuorumDecision> decisions) voidsetDestruction(QuorumDestructionRequest destruction) voidsetExpiresAt(OffsetDateTime expiresAt) voidsetFailureDetail(String failureDetail) voidsetFailureType(String failureType) voidsetImpersonated(Boolean impersonated) voidsetOperation(QuorumRequestResponse.OperationEnum operation) voidvoidsetRequestedAt(OffsetDateTime requestedAt) voidsetRequestedBy(String requestedBy) voidsetRequesterType(QuorumRequestResponse.RequesterTypeEnum requesterType) voidsetRequestId(UUID requestId) voidsetRequiredApprovals(Integer requiredApprovals) voidsetResolvedAt(OffsetDateTime resolvedAt) voidvoidsetTakesEffectAt(OffsetDateTime takesEffectAt) voidtakesEffectAt(OffsetDateTime takesEffectAt) toJson()Convert an instance of QuorumRequestResponse to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_APPROVALS
- See Also:
-
SERIALIZED_NAME_DECISIONS
- See Also:
-
SERIALIZED_NAME_DESTRUCTION
- See Also:
-
SERIALIZED_NAME_EXPIRES_AT
- See Also:
-
SERIALIZED_NAME_FAILURE_DETAIL
- See Also:
-
SERIALIZED_NAME_FAILURE_TYPE
- See Also:
-
SERIALIZED_NAME_IMPERSONATED
- See Also:
-
SERIALIZED_NAME_OPERATION
- See Also:
-
SERIALIZED_NAME_PLANE
- See Also:
-
SERIALIZED_NAME_REQUEST_ID
- See Also:
-
SERIALIZED_NAME_REQUESTED_AT
- See Also:
-
SERIALIZED_NAME_REQUESTED_BY
- See Also:
-
SERIALIZED_NAME_REQUESTER_TYPE
- See Also:
-
SERIALIZED_NAME_REQUIRED_APPROVALS
- See Also:
-
SERIALIZED_NAME_RESOLVED_AT
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TAKES_EFFECT_AT
- See Also:
-
SERIALIZED_NAME_TARGET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QuorumRequestResponse
public QuorumRequestResponse()
-
-
Method Details
-
getOperationAsString
The wire value ofoperation: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getOperation()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
getPlaneAsString
The wire value ofplane: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getPlane()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
getRequesterTypeAsString
The wire value ofrequesterType: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getRequesterType()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
getStatusAsString
The wire value ofstatus: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getStatus()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
approvals
-
getApprovals
The approvals recorded so far.- Returns:
- approvals
-
setApprovals
-
decisions
-
addDecisionsItem
-
getDecisions
Every decision, oldest first.- Returns:
- decisions
-
setDecisions
-
destruction
-
getDestruction
What a key or material destruction request asks to destroy, as it was made. Present only on KEY_MARK_FOR_DESTRUCTION and KEY_MATERIAL_MARK_FOR_DESTRUCTION requests.- Returns:
- destruction
-
setDestruction
-
expiresAt
-
getExpiresAt
Until when it may be approved. It bounds the approval only: once a request is SCHEDULED its quorum was reached, takesEffectAt governs, and expiresAt may be earlier than takesEffectAt without the request expiring.- Returns:
- expiresAt
-
setExpiresAt
-
failureDetail
-
getFailureDetail
The detail of that refusal.- Returns:
- failureDetail
-
setFailureDetail
-
failureType
-
getFailureType
The RFC 9457 problem type of the refusal that ended a FAILED request.- Returns:
- failureType
-
setFailureType
-
impersonated
-
getImpersonated
True when a platform operator made the request under a support-access impersonation of requestedBy: the member did not ask in person. The operator is not named.- Returns:
- impersonated
-
setImpersonated
-
operation
-
getOperation
The gated operation.- Returns:
- operation
-
setOperation
-
plane
-
getPlane
TENANT for a tenant's request; DEPLOYMENT for a platform request.- Returns:
- plane
-
setPlane
-
requestId
-
getRequestId
The request id.- Returns:
- requestId
-
setRequestId
-
requestedAt
-
getRequestedAt
When it was created.- Returns:
- requestedAt
-
setRequestedAt
-
requestedBy
-
getRequestedBy
Who asked for the operation.- Returns:
- requestedBy
-
setRequestedBy
-
requesterType
public QuorumRequestResponse requesterType(@Nonnull QuorumRequestResponse.RequesterTypeEnum requesterType) -
getRequesterType
IDENTITY when a person requested; WORKLOAD when an administrative workload identity did; APPLICATION when an application did, with its own token or an actor's. A workload or an application may request; only a person approves, and never one accountable for the requesting application.- Returns:
- requesterType
-
setRequesterType
-
requiredApprovals
-
getRequiredApprovals
The approvals it needs, set when it was created. A later raise of the policy's required approvals applies to it; a lowering does not.- Returns:
- requiredApprovals
-
setRequiredApprovals
-
resolvedAt
-
getResolvedAt
When it ended. Absent while PENDING, SCHEDULED or EXPIRED.- Returns:
- resolvedAt
-
setResolvedAt
-
status
-
getStatus
PENDING while it waits; EXECUTED once its quorum was reached and the operation ran; SCHEDULED when its quorum was reached and it takes effect at takesEffectAt (a platform recovery, which the tenant may cancel until then); FAILED when the operation refused to run at that moment (failureType says why); REJECTED by an approver; CANCELLED by its requester, by the tenant, or because its requester can no longer act; EXPIRED when it waited past expiresAt.- Returns:
- status
-
setStatus
-
takesEffectAt
-
getTakesEffectAt
When a SCHEDULED request takes effect. Absent for every other status but a request that was SCHEDULED and then ended.- Returns:
- takesEffectAt
-
setTakesEffectAt
-
target
-
getTarget
What the operation acts on.- Returns:
- target
-
setTarget
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to QuorumRequestResponse
-
validateJsonElementAsCandidate
public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is not a QuorumRequestResponse
-
fromJson
Create an instance of QuorumRequestResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QuorumRequestResponse
- Throws:
IOException- if the JSON string is invalid with respect to QuorumRequestResponse
-
toJson
Convert an instance of QuorumRequestResponse to an JSON string- Returns:
- JSON string
-