Package ai.reveng.api
Class ReportsApi
java.lang.Object
ai.reveng.api.ReportsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePdfReport(Long analysisId) Start PDF report generation Starts an asynchronous PDF report generation workflow for the given analysis.okhttp3.CallcreatePdfReportAsync(Long analysisId, ApiCallback<GeneratePDFOutputBody> _callback) Start PDF report generation (asynchronously) Starts an asynchronous PDF report generation workflow for the given analysis.okhttp3.CallcreatePdfReportCall(Long analysisId, ApiCallback _callback) Build call for createPdfReportcreatePdfReportWithHttpInfo(Long analysisId) Start PDF report generation Starts an asynchronous PDF report generation workflow for the given analysis.voiddownloadPdfReport(Long analysisId) Download generated PDF report Streams the rendered PDF report.okhttp3.CalldownloadPdfReportAsync(Long analysisId, ApiCallback<Void> _callback) Download generated PDF report (asynchronously) Streams the rendered PDF report.okhttp3.CalldownloadPdfReportCall(Long analysisId, ApiCallback _callback) Build call for downloadPdfReportdownloadPdfReportWithHttpInfo(Long analysisId) Download generated PDF report Streams the rendered PDF report.intgetPdfReportStatus(Long analysisId) Get PDF report workflow status Returns live workflow progress for the given analysis.okhttp3.CallgetPdfReportStatusAsync(Long analysisId, ApiCallback<WorkflowProgress> _callback) Get PDF report workflow status (asynchronously) Returns live workflow progress for the given analysis.okhttp3.CallgetPdfReportStatusCall(Long analysisId, ApiCallback _callback) Build call for getPdfReportStatusgetPdfReportStatusWithHttpInfo(Long analysisId) Get PDF report workflow status Returns live workflow progress for the given analysis.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
ReportsApi
public ReportsApi() -
ReportsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createPdfReportCall
public okhttp3.Call createPdfReportCall(@Nonnull Long analysisId, ApiCallback _callback) throws ApiException Build call for createPdfReport- Parameters:
analysisId- Analysis ID (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 202 Accepted - 403 Forbidden - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
createPdfReport
Start PDF report generation Starts an asynchronous PDF report generation workflow for the given analysis. Poll status and download the resulting PDF using the same analysis ID. Idempotent: if a workflow is already running for this analysis and user, the response sets `already_running: true` and the caller rejoins the in-flight workflow. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found- Parameters:
analysisId- Analysis ID (required)- Returns:
- GeneratePDFOutputBody
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 202 Accepted - 403 Forbidden - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
createPdfReportWithHttpInfo
public ApiResponse<GeneratePDFOutputBody> createPdfReportWithHttpInfo(@Nonnull Long analysisId) throws ApiException Start PDF report generation Starts an asynchronous PDF report generation workflow for the given analysis. Poll status and download the resulting PDF using the same analysis ID. Idempotent: if a workflow is already running for this analysis and user, the response sets `already_running: true` and the caller rejoins the in-flight workflow. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found- Parameters:
analysisId- Analysis ID (required)- Returns:
- ApiResponse<GeneratePDFOutputBody>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 202 Accepted - 403 Forbidden - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
createPdfReportAsync
public okhttp3.Call createPdfReportAsync(@Nonnull Long analysisId, ApiCallback<GeneratePDFOutputBody> _callback) throws ApiException Start PDF report generation (asynchronously) Starts an asynchronous PDF report generation workflow for the given analysis. Poll status and download the resulting PDF using the same analysis ID. Idempotent: if a workflow is already running for this analysis and user, the response sets `already_running: true` and the caller rejoins the in-flight workflow. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found- Parameters:
analysisId- Analysis ID (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- Http Response Details
Response Details Status Code Description Response Headers 202 Accepted - 403 Forbidden - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
downloadPdfReportCall
public okhttp3.Call downloadPdfReportCall(@Nonnull Long analysisId, ApiCallback _callback) throws ApiException Build call for downloadPdfReport- Parameters:
analysisId- Analysis ID (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 409 Conflict - 422 Unprocessable Entity - 500 Internal Server Error -
-
downloadPdfReport
Download generated PDF report Streams the rendered PDF report. Returns 409 when the workflow is still running and 404 when no report generation exists for this analysis or the caller is not authorised to see it. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `409` [`ANALYSIS_NOT_READY`](/errors/ANALYSIS_NOT_READY) — Analysis Not Ready - `500` [`REPORT_RENDER_FAILED`](/errors/REPORT_RENDER_FAILED) — Report Render Failed- Parameters:
analysisId- Analysis ID (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 409 Conflict - 422 Unprocessable Entity - 500 Internal Server Error -
-
downloadPdfReportWithHttpInfo
public ApiResponse<Void> downloadPdfReportWithHttpInfo(@Nonnull Long analysisId) throws ApiException Download generated PDF report Streams the rendered PDF report. Returns 409 when the workflow is still running and 404 when no report generation exists for this analysis or the caller is not authorised to see it. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `409` [`ANALYSIS_NOT_READY`](/errors/ANALYSIS_NOT_READY) — Analysis Not Ready - `500` [`REPORT_RENDER_FAILED`](/errors/REPORT_RENDER_FAILED) — Report Render Failed- Parameters:
analysisId- Analysis ID (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 409 Conflict - 422 Unprocessable Entity - 500 Internal Server Error -
-
downloadPdfReportAsync
public okhttp3.Call downloadPdfReportAsync(@Nonnull Long analysisId, ApiCallback<Void> _callback) throws ApiException Download generated PDF report (asynchronously) Streams the rendered PDF report. Returns 409 when the workflow is still running and 404 when no report generation exists for this analysis or the caller is not authorised to see it. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `409` [`ANALYSIS_NOT_READY`](/errors/ANALYSIS_NOT_READY) — Analysis Not Ready - `500` [`REPORT_RENDER_FAILED`](/errors/REPORT_RENDER_FAILED) — Report Render Failed- Parameters:
analysisId- Analysis ID (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- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 409 Conflict - 422 Unprocessable Entity - 500 Internal Server Error -
-
getPdfReportStatusCall
public okhttp3.Call getPdfReportStatusCall(@Nonnull Long analysisId, ApiCallback _callback) throws ApiException Build call for getPdfReportStatus- Parameters:
analysisId- Analysis ID (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
getPdfReportStatus
Get PDF report workflow status Returns live workflow progress for the given analysis. Returns 404 when no report generation exists for this analysis or the caller is not authorised to see it. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found- Parameters:
analysisId- Analysis ID (required)- Returns:
- WorkflowProgress
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
getPdfReportStatusWithHttpInfo
public ApiResponse<WorkflowProgress> getPdfReportStatusWithHttpInfo(@Nonnull Long analysisId) throws ApiException Get PDF report workflow status Returns live workflow progress for the given analysis. Returns 404 when no report generation exists for this analysis or the caller is not authorised to see it. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found- Parameters:
analysisId- Analysis ID (required)- Returns:
- ApiResponse<WorkflowProgress>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
getPdfReportStatusAsync
public okhttp3.Call getPdfReportStatusAsync(@Nonnull Long analysisId, ApiCallback<WorkflowProgress> _callback) throws ApiException Get PDF report workflow status (asynchronously) Returns live workflow progress for the given analysis. Returns 404 when no report generation exists for this analysis or the caller is not authorised to see it. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found- Parameters:
analysisId- Analysis ID (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- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-