Class TenantQuorumApprovalApi
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.api.TenantQuorumApprovalApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancelTenantQuorumRequest(UUID tenantId, UUID requestId) Cancel one's own quorum approval request The requester withdraws a request still waiting; it ends CANCELLED and nothing runs.okhttp3.CallcancelTenantQuorumRequestAsync(UUID tenantId, UUID requestId, ApiCallback<QuorumRequestResponse> _callback) Cancel one's own quorum approval request (asynchronously) The requester withdraws a request still waiting; it ends CANCELLED and nothing runs.okhttp3.CallcancelTenantQuorumRequestCall(UUID tenantId, UUID requestId, ApiCallback _callback) Build call for cancelTenantQuorumRequestcancelTenantQuorumRequestWithHttpInfo(UUID tenantId, UUID requestId) Cancel one's own quorum approval request The requester withdraws a request still waiting; it ends CANCELLED and nothing runs.intgetTenantQuorumRequest(UUID tenantId, UUID requestId) Read one quorum approval request One request of the tenant, with every decision.okhttp3.CallgetTenantQuorumRequestAsync(UUID tenantId, UUID requestId, ApiCallback<QuorumRequestResponse> _callback) Read one quorum approval request (asynchronously) One request of the tenant, with every decision.okhttp3.CallgetTenantQuorumRequestCall(UUID tenantId, UUID requestId, ApiCallback _callback) Build call for getTenantQuorumRequestgetTenantQuorumRequestWithHttpInfo(UUID tenantId, UUID requestId) Read one quorum approval request One request of the tenant, with every decision.listTenantQuorumRequests(UUID tenantId, String status, String operation, String target, Integer page, Integer size) List the tenant's quorum approval requests The tenant's quorum requests, newest first.okhttp3.CalllistTenantQuorumRequestsAsync(UUID tenantId, String status, String operation, String target, Integer page, Integer size, ApiCallback<QuorumRequestPageResponse> _callback) List the tenant's quorum approval requests (asynchronously) The tenant's quorum requests, newest first.okhttp3.CalllistTenantQuorumRequestsCall(UUID tenantId, String status, String operation, String target, Integer page, Integer size, ApiCallback _callback) Build call for listTenantQuorumRequestslistTenantQuorumRequestsWithHttpInfo(UUID tenantId, String status, String operation, String target, Integer page, Integer size) List the tenant's quorum approval requests The tenant's quorum requests, newest first.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
TenantQuorumApprovalApi
public TenantQuorumApprovalApi() -
TenantQuorumApprovalApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
cancelTenantQuorumRequestCall
public okhttp3.Call cancelTenantQuorumRequestCall(@Nonnull UUID tenantId, @Nonnull UUID requestId, ApiCallback _callback) throws ApiException Build call for cancelTenantQuorumRequest- Parameters:
tenantId- The caller's own tenant. (required)requestId- The request. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
cancelTenantQuorumRequest
public QuorumRequestResponse cancelTenantQuorumRequest(@Nonnull UUID tenantId, @Nonnull UUID requestId) throws ApiException Cancel one's own quorum approval request The requester withdraws a request still waiting; it ends CANCELLED and nothing runs. Anyone else is refused: an approver who does not want the operation rejects it.- Parameters:
tenantId- The caller's own tenant. (required)requestId- The request. (required)- Returns:
- QuorumRequestResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
cancelTenantQuorumRequestWithHttpInfo
public ApiResponse<QuorumRequestResponse> cancelTenantQuorumRequestWithHttpInfo(@Nonnull UUID tenantId, @Nonnull UUID requestId) throws ApiException Cancel one's own quorum approval request The requester withdraws a request still waiting; it ends CANCELLED and nothing runs. Anyone else is refused: an approver who does not want the operation rejects it.- Parameters:
tenantId- The caller's own tenant. (required)requestId- The request. (required)- Returns:
- ApiResponse<QuorumRequestResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
cancelTenantQuorumRequestAsync
public okhttp3.Call cancelTenantQuorumRequestAsync(@Nonnull UUID tenantId, @Nonnull UUID requestId, ApiCallback<QuorumRequestResponse> _callback) throws ApiException Cancel one's own quorum approval request (asynchronously) The requester withdraws a request still waiting; it ends CANCELLED and nothing runs. Anyone else is refused: an approver who does not want the operation rejects it.- Parameters:
tenantId- The caller's own tenant. (required)requestId- The request. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getTenantQuorumRequestCall
public okhttp3.Call getTenantQuorumRequestCall(@Nonnull UUID tenantId, @Nonnull UUID requestId, ApiCallback _callback) throws ApiException Build call for getTenantQuorumRequest- Parameters:
tenantId- The caller's own tenant. (required)requestId- The request. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getTenantQuorumRequest
public QuorumRequestResponse getTenantQuorumRequest(@Nonnull UUID tenantId, @Nonnull UUID requestId) throws ApiException Read one quorum approval request One request of the tenant, with every decision. A request of another tenant answers 404, as an unknown id does.- Parameters:
tenantId- The caller's own tenant. (required)requestId- The request. (required)- Returns:
- QuorumRequestResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getTenantQuorumRequestWithHttpInfo
public ApiResponse<QuorumRequestResponse> getTenantQuorumRequestWithHttpInfo(@Nonnull UUID tenantId, @Nonnull UUID requestId) throws ApiException Read one quorum approval request One request of the tenant, with every decision. A request of another tenant answers 404, as an unknown id does.- Parameters:
tenantId- The caller's own tenant. (required)requestId- The request. (required)- Returns:
- ApiResponse<QuorumRequestResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getTenantQuorumRequestAsync
public okhttp3.Call getTenantQuorumRequestAsync(@Nonnull UUID tenantId, @Nonnull UUID requestId, ApiCallback<QuorumRequestResponse> _callback) throws ApiException Read one quorum approval request (asynchronously) One request of the tenant, with every decision. A request of another tenant answers 404, as an unknown id does.- Parameters:
tenantId- The caller's own tenant. (required)requestId- The request. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
listTenantQuorumRequestsCall
public okhttp3.Call listTenantQuorumRequestsCall(@Nonnull UUID tenantId, @Nullable String status, @Nullable String operation, @Nullable String target, @Nullable Integer page, @Nullable Integer size, ApiCallback _callback) throws ApiException Build call for listTenantQuorumRequests- Parameters:
tenantId- The caller's own tenant. (required)status- Only the requests in this status now; all when absent. (optional)operation- Only the requests of this operation; all when absent. (optional)target- Only the requests of this target, matched exactly; all when absent. (optional)page- The page index, from 0. (optional, default to 0)size- The page size, 1..100. (optional, default to 20)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
listTenantQuorumRequests
public QuorumRequestPageResponse listTenantQuorumRequests(@Nonnull UUID tenantId, @Nullable String status, @Nullable String operation, @Nullable String target, @Nullable Integer page, @Nullable Integer size) throws ApiException List the tenant's quorum approval requests The tenant's quorum requests, newest first. <code>status=PENDING</code> is the approvals inbox: the requests still waiting and not expired. <code>EXPIRED</code> is computed at the moment of the read. <code>operation</code> and <code>target</code> narrow the list to the requests of one operation and of one target (the request's <code>target</code>, such as a Key ID), alone or together. A request never carries the gated operation's request body; a destruction request carries what it asks to destroy in <code>destruction</code>. <p>An administrative workload reads only the key management requests it made itself: the destruction requests and the key updates that wait for approval.</p>- Parameters:
tenantId- The caller's own tenant. (required)status- Only the requests in this status now; all when absent. (optional)operation- Only the requests of this operation; all when absent. (optional)target- Only the requests of this target, matched exactly; all when absent. (optional)page- The page index, from 0. (optional, default to 0)size- The page size, 1..100. (optional, default to 20)- Returns:
- QuorumRequestPageResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listTenantQuorumRequestsWithHttpInfo
public ApiResponse<QuorumRequestPageResponse> listTenantQuorumRequestsWithHttpInfo(@Nonnull UUID tenantId, @Nullable String status, @Nullable String operation, @Nullable String target, @Nullable Integer page, @Nullable Integer size) throws ApiException List the tenant's quorum approval requests The tenant's quorum requests, newest first. <code>status=PENDING</code> is the approvals inbox: the requests still waiting and not expired. <code>EXPIRED</code> is computed at the moment of the read. <code>operation</code> and <code>target</code> narrow the list to the requests of one operation and of one target (the request's <code>target</code>, such as a Key ID), alone or together. A request never carries the gated operation's request body; a destruction request carries what it asks to destroy in <code>destruction</code>. <p>An administrative workload reads only the key management requests it made itself: the destruction requests and the key updates that wait for approval.</p>- Parameters:
tenantId- The caller's own tenant. (required)status- Only the requests in this status now; all when absent. (optional)operation- Only the requests of this operation; all when absent. (optional)target- Only the requests of this target, matched exactly; all when absent. (optional)page- The page index, from 0. (optional, default to 0)size- The page size, 1..100. (optional, default to 20)- Returns:
- ApiResponse<QuorumRequestPageResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listTenantQuorumRequestsAsync
public okhttp3.Call listTenantQuorumRequestsAsync(@Nonnull UUID tenantId, @Nullable String status, @Nullable String operation, @Nullable String target, @Nullable Integer page, @Nullable Integer size, ApiCallback<QuorumRequestPageResponse> _callback) throws ApiException List the tenant's quorum approval requests (asynchronously) The tenant's quorum requests, newest first. <code>status=PENDING</code> is the approvals inbox: the requests still waiting and not expired. <code>EXPIRED</code> is computed at the moment of the read. <code>operation</code> and <code>target</code> narrow the list to the requests of one operation and of one target (the request's <code>target</code>, such as a Key ID), alone or together. A request never carries the gated operation's request body; a destruction request carries what it asks to destroy in <code>destruction</code>. <p>An administrative workload reads only the key management requests it made itself: the destruction requests and the key updates that wait for approval.</p>- Parameters:
tenantId- The caller's own tenant. (required)status- Only the requests in this status now; all when absent. (optional)operation- Only the requests of this operation; all when absent. (optional)target- Only the requests of this target, matched exactly; all when absent. (optional)page- The page index, from 0. (optional, default to 0)size- The page size, 1..100. (optional, default to 20)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-