Package ai.reveng.api

Class AnalysesCommentsApi

java.lang.Object
ai.reveng.api.AnalysesCommentsApi

public class AnalysesCommentsApi extends Object
  • Constructor Details

    • AnalysesCommentsApi

      public AnalysesCommentsApi()
    • AnalysesCommentsApi

      public AnalysesCommentsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • createAnalysisCommentCall

      public okhttp3.Call createAnalysisCommentCall(@Nonnull Integer analysisId, @Nonnull CommentBase commentBase, ApiCallback _callback) throws ApiException
      Build call for createAnalysisComment
      Parameters:
      analysisId - (required)
      commentBase - (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
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • createAnalysisComment

      public BaseResponseCommentResponse createAnalysisComment(@Nonnull Integer analysisId, @Nonnull CommentBase commentBase) throws ApiException
      Create a comment for this analysis Creates a comment associated with a specified analysis).
      Parameters:
      analysisId - (required)
      commentBase - (required)
      Returns:
      BaseResponseCommentResponse
      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
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • createAnalysisCommentWithHttpInfo

      public ApiResponse<BaseResponseCommentResponse> createAnalysisCommentWithHttpInfo(@Nonnull Integer analysisId, @Nonnull CommentBase commentBase) throws ApiException
      Create a comment for this analysis Creates a comment associated with a specified analysis).
      Parameters:
      analysisId - (required)
      commentBase - (required)
      Returns:
      ApiResponse<BaseResponseCommentResponse>
      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
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • createAnalysisCommentAsync

      public okhttp3.Call createAnalysisCommentAsync(@Nonnull Integer analysisId, @Nonnull CommentBase commentBase, ApiCallback<BaseResponseCommentResponse> _callback) throws ApiException
      Create a comment for this analysis (asynchronously) Creates a comment associated with a specified analysis).
      Parameters:
      analysisId - (required)
      commentBase - (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
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • deleteAnalysisCommentCall

      public okhttp3.Call deleteAnalysisCommentCall(@Nonnull Integer commentId, @Nonnull Integer analysisId, ApiCallback _callback) throws ApiException
      Build call for deleteAnalysisComment
      Parameters:
      commentId - (required)
      analysisId - (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 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • deleteAnalysisComment

      public BaseResponseBool deleteAnalysisComment(@Nonnull Integer commentId, @Nonnull Integer analysisId) throws ApiException
      Delete a comment Deletes an existing comment. Users can only delete their own comments.
      Parameters:
      commentId - (required)
      analysisId - (required)
      Returns:
      BaseResponseBool
      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 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • deleteAnalysisCommentWithHttpInfo

      public ApiResponse<BaseResponseBool> deleteAnalysisCommentWithHttpInfo(@Nonnull Integer commentId, @Nonnull Integer analysisId) throws ApiException
      Delete a comment Deletes an existing comment. Users can only delete their own comments.
      Parameters:
      commentId - (required)
      analysisId - (required)
      Returns:
      ApiResponse<BaseResponseBool>
      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 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • deleteAnalysisCommentAsync

      public okhttp3.Call deleteAnalysisCommentAsync(@Nonnull Integer commentId, @Nonnull Integer analysisId, ApiCallback<BaseResponseBool> _callback) throws ApiException
      Delete a comment (asynchronously) Deletes an existing comment. Users can only delete their own comments.
      Parameters:
      commentId - (required)
      analysisId - (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 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • getAnalysisCommentsCall

      public okhttp3.Call getAnalysisCommentsCall(@Nonnull Integer analysisId, ApiCallback _callback) throws ApiException
      Build call for getAnalysisComments
      Parameters:
      analysisId - (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 Successful Response -
      422 Invalid request parameters -
    • getAnalysisComments

      public BaseResponseListCommentResponse getAnalysisComments(@Nonnull Integer analysisId) throws ApiException
      Get comments for this analysis Retrieves all comments created for a specific analysis. Only returns comments for resources the requesting user has access to.
      Parameters:
      analysisId - (required)
      Returns:
      BaseResponseListCommentResponse
      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 Successful Response -
      422 Invalid request parameters -
    • getAnalysisCommentsWithHttpInfo

      public ApiResponse<BaseResponseListCommentResponse> getAnalysisCommentsWithHttpInfo(@Nonnull Integer analysisId) throws ApiException
      Get comments for this analysis Retrieves all comments created for a specific analysis. Only returns comments for resources the requesting user has access to.
      Parameters:
      analysisId - (required)
      Returns:
      ApiResponse<BaseResponseListCommentResponse>
      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 Successful Response -
      422 Invalid request parameters -
    • getAnalysisCommentsAsync

      public okhttp3.Call getAnalysisCommentsAsync(@Nonnull Integer analysisId, ApiCallback<BaseResponseListCommentResponse> _callback) throws ApiException
      Get comments for this analysis (asynchronously) Retrieves all comments created for a specific analysis. Only returns comments for resources the requesting user has access to.
      Parameters:
      analysisId - (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 Successful Response -
      422 Invalid request parameters -
    • updateAnalysisCommentCall

      public okhttp3.Call updateAnalysisCommentCall(@Nonnull Integer commentId, @Nonnull Integer analysisId, @Nonnull CommentUpdateRequest commentUpdateRequest, ApiCallback _callback) throws ApiException
      Build call for updateAnalysisComment
      Parameters:
      commentId - (required)
      analysisId - (required)
      commentUpdateRequest - (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 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -
    • updateAnalysisComment

      public BaseResponseCommentResponse updateAnalysisComment(@Nonnull Integer commentId, @Nonnull Integer analysisId, @Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException
      Update a comment Updates the content of an existing comment. Users can only update their own comments.
      Parameters:
      commentId - (required)
      analysisId - (required)
      commentUpdateRequest - (required)
      Returns:
      BaseResponseCommentResponse
      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 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -
    • updateAnalysisCommentWithHttpInfo

      public ApiResponse<BaseResponseCommentResponse> updateAnalysisCommentWithHttpInfo(@Nonnull Integer commentId, @Nonnull Integer analysisId, @Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException
      Update a comment Updates the content of an existing comment. Users can only update their own comments.
      Parameters:
      commentId - (required)
      analysisId - (required)
      commentUpdateRequest - (required)
      Returns:
      ApiResponse<BaseResponseCommentResponse>
      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 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -
    • updateAnalysisCommentAsync

      public okhttp3.Call updateAnalysisCommentAsync(@Nonnull Integer commentId, @Nonnull Integer analysisId, @Nonnull CommentUpdateRequest commentUpdateRequest, ApiCallback<BaseResponseCommentResponse> _callback) throws ApiException
      Update a comment (asynchronously) Updates the content of an existing comment. Users can only update their own comments.
      Parameters:
      commentId - (required)
      analysisId - (required)
      commentUpdateRequest - (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 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -