_callback) throws ApiException {
@@ -233,9 +233,9 @@ public okhttp3.Call createAnalysisCommentAsync(@javax.annotation.Nonnull Integer
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call deleteAnalysisCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException {
@@ -312,9 +312,9 @@ private okhttp3.Call deleteAnalysisCommentValidateBeforeCall(@javax.annotation.N
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseBool deleteAnalysisComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId) throws ApiException {
@@ -334,9 +334,9 @@ public BaseResponseBool deleteAnalysisComment(@javax.annotation.Nonnull Integer
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse deleteAnalysisCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId) throws ApiException {
@@ -358,9 +358,9 @@ public ApiResponse deleteAnalysisCommentWithHttpInfo(@javax.an
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call deleteAnalysisCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException {
@@ -514,9 +514,9 @@ public okhttp3.Call getAnalysisCommentsAsync(@javax.annotation.Nonnull Integer a
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call updateAnalysisCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException {
@@ -600,9 +600,9 @@ private okhttp3.Call updateAnalysisCommentValidateBeforeCall(@javax.annotation.N
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseCommentResponse updateAnalysisComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException {
@@ -623,9 +623,9 @@ public BaseResponseCommentResponse updateAnalysisComment(@javax.annotation.Nonnu
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse updateAnalysisCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException {
@@ -648,9 +648,9 @@ public ApiResponse updateAnalysisCommentWithHttpInf
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call updateAnalysisCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException {
diff --git a/src/main/java/ai/reveng/api/AnalysesCoreApi.java b/src/main/java/ai/reveng/api/AnalysesCoreApi.java
index f73b838..310be17 100644
--- a/src/main/java/ai/reveng/api/AnalysesCoreApi.java
+++ b/src/main/java/ai/reveng/api/AnalysesCoreApi.java
@@ -50,6 +50,7 @@
import ai.reveng.model.InsertAnalysisLogRequest;
import ai.reveng.model.ModelName;
import ai.reveng.model.Order;
+import ai.reveng.model.PutAnalysisStringsRequest;
import ai.reveng.model.ReAnalysisForm;
import ai.reveng.model.StatusInput;
import ai.reveng.model.UploadFileType;
@@ -241,9 +242,9 @@ public okhttp3.Call bulkAddAnalysisTagsAsync(@javax.annotation.Nonnull AnalysisB
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 400 | Bad Request | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException {
@@ -319,9 +320,9 @@ private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 400 | Bad Request | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication) throws ApiException {
@@ -341,9 +342,9 @@ public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnu
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 400 | Bad Request | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse createAnalysisWithHttpInfo(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication) throws ApiException {
@@ -365,9 +366,9 @@ public ApiResponse createAnalysisWithHttpInf
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 400 | Bad Request | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createAnalysisAsync(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException {
@@ -388,9 +389,9 @@ public okhttp3.Call createAnalysisAsync(@javax.annotation.Nonnull AnalysisCreate
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 403 | Forbidden | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call deleteAnalysisCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException {
@@ -460,9 +461,9 @@ private okhttp3.Call deleteAnalysisValidateBeforeCall(@javax.annotation.Nonnull
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 403 | Forbidden | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseDict deleteAnalysis(@javax.annotation.Nonnull Integer analysisId) throws ApiException {
@@ -481,9 +482,9 @@ public BaseResponseDict deleteAnalysis(@javax.annotation.Nonnull Integer analysi
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 403 | Forbidden | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse deleteAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException {
@@ -504,9 +505,9 @@ public ApiResponse deleteAnalysisWithHttpInfo(@javax.annotatio
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 403 | Forbidden | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call deleteAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException {
@@ -1652,6 +1653,147 @@ public okhttp3.Call lookupBinaryIdAsync(@javax.annotation.Nonnull Integer binary
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
+ /**
+ * Build call for putAnalysisStrings
+ * @param analysisId (required)
+ * @param putAnalysisStringsRequest (required)
+ * @param _callback Callback for upload/download progress
+ * @return 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 | - |
+
+ */
+ public okhttp3.Call putAnalysisStringsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull PutAnalysisStringsRequest putAnalysisStringsRequest, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = putAnalysisStringsRequest;
+
+ // create path and map variables
+ String localVarPath = "/v2/analyses/{analysis_id}/strings"
+ .replace("{" + "analysis_id" + "}", localVarApiClient.escapeString(analysisId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] { "APIKey" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call putAnalysisStringsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull PutAnalysisStringsRequest putAnalysisStringsRequest, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'analysisId' is set
+ if (analysisId == null) {
+ throw new ApiException("Missing the required parameter 'analysisId' when calling putAnalysisStrings(Async)");
+ }
+
+ // verify the required parameter 'putAnalysisStringsRequest' is set
+ if (putAnalysisStringsRequest == null) {
+ throw new ApiException("Missing the required parameter 'putAnalysisStringsRequest' when calling putAnalysisStrings(Async)");
+ }
+
+ return putAnalysisStringsCall(analysisId, putAnalysisStringsRequest, _callback);
+
+ }
+
+ /**
+ * Add strings to the analysis
+ * Add strings to the analysis. Rejects if any string already exists at the given vaddr.
+ * @param analysisId (required)
+ * @param putAnalysisStringsRequest (required)
+ * @return BaseResponse
+ * @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 | - |
+
+ */
+ public BaseResponse putAnalysisStrings(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull PutAnalysisStringsRequest putAnalysisStringsRequest) throws ApiException {
+ ApiResponse localVarResp = putAnalysisStringsWithHttpInfo(analysisId, putAnalysisStringsRequest);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Add strings to the analysis
+ * Add strings to the analysis. Rejects if any string already exists at the given vaddr.
+ * @param analysisId (required)
+ * @param putAnalysisStringsRequest (required)
+ * @return ApiResponse<BaseResponse>
+ * @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 | - |
+
+ */
+ public ApiResponse putAnalysisStringsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull PutAnalysisStringsRequest putAnalysisStringsRequest) throws ApiException {
+ okhttp3.Call localVarCall = putAnalysisStringsValidateBeforeCall(analysisId, putAnalysisStringsRequest, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Add strings to the analysis (asynchronously)
+ * Add strings to the analysis. Rejects if any string already exists at the given vaddr.
+ * @param analysisId (required)
+ * @param putAnalysisStringsRequest (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return 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 | - |
+
+ */
+ public okhttp3.Call putAnalysisStringsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull PutAnalysisStringsRequest putAnalysisStringsRequest, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = putAnalysisStringsValidateBeforeCall(analysisId, putAnalysisStringsRequest, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
/**
* Build call for requeueAnalysis
* @param analysisId (required)
@@ -1665,9 +1807,9 @@ public okhttp3.Call lookupBinaryIdAsync(@javax.annotation.Nonnull Integer binary
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 400 | Bad Request | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call requeueAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException {
@@ -1750,9 +1892,9 @@ private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 400 | Bad Request | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication) throws ApiException {
@@ -1773,9 +1915,9 @@ public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer ana
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 400 | Bad Request | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse requeueAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication) throws ApiException {
@@ -1798,9 +1940,9 @@ public ApiResponse requeueAnalysisWithHttpInfo(@javax.annot
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 404 | Not Found | - |
| 400 | Bad Request | - |
+ | 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call requeueAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String xRevEngApplication, final ApiCallback _callback) throws ApiException {
@@ -2094,8 +2236,8 @@ public okhttp3.Call updateAnalysisTagsAsync(@javax.annotation.Nonnull Integer an
}
/**
* Build call for uploadFile
- * @param uploadFileType (required)
* @param _file (required)
+ * @param uploadFileType (required)
* @param packedPassword (optional)
* @param forceOverwrite (optional, default to false)
* @param _callback Callback for upload/download progress
@@ -2109,7 +2251,7 @@ public okhttp3.Call updateAnalysisTagsAsync(@javax.annotation.Nonnull Integer an
| 422 | Invalid request parameters | - |
*/
- public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull File _file, @javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -2134,10 +2276,6 @@ public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uplo
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- if (uploadFileType != null) {
- localVarFormParams.put("upload_file_type", uploadFileType);
- }
-
if (_file != null) {
localVarFormParams.put("file", _file);
}
@@ -2146,6 +2284,10 @@ public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uplo
localVarFormParams.put("force_overwrite", forceOverwrite);
}
+ if (uploadFileType != null) {
+ localVarFormParams.put("upload_file_type", uploadFileType);
+ }
+
if (packedPassword != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("packed_password", packedPassword));
}
@@ -2171,26 +2313,26 @@ public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uplo
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
- // verify the required parameter 'uploadFileType' is set
- if (uploadFileType == null) {
- throw new ApiException("Missing the required parameter 'uploadFileType' when calling uploadFile(Async)");
- }
-
+ private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull File _file, @javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
// verify the required parameter '_file' is set
if (_file == null) {
throw new ApiException("Missing the required parameter '_file' when calling uploadFile(Async)");
}
- return uploadFileCall(uploadFileType, _file, packedPassword, forceOverwrite, _callback);
+ // verify the required parameter 'uploadFileType' is set
+ if (uploadFileType == null) {
+ throw new ApiException("Missing the required parameter 'uploadFileType' when calling uploadFile(Async)");
+ }
+
+ return uploadFileCall(_file, uploadFileType, packedPassword, forceOverwrite, _callback);
}
/**
* Upload File
*
- * @param uploadFileType (required)
* @param _file (required)
+ * @param uploadFileType (required)
* @param packedPassword (optional)
* @param forceOverwrite (optional, default to false)
* @return BaseResponseUploadResponse
@@ -2203,16 +2345,16 @@ private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Uplo
| 422 | Invalid request parameters | - |
*/
- public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
- ApiResponse localVarResp = uploadFileWithHttpInfo(uploadFileType, _file, packedPassword, forceOverwrite);
+ public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull File _file, @javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
+ ApiResponse localVarResp = uploadFileWithHttpInfo(_file, uploadFileType, packedPassword, forceOverwrite);
return localVarResp.getData();
}
/**
* Upload File
*
- * @param uploadFileType (required)
* @param _file (required)
+ * @param uploadFileType (required)
* @param packedPassword (optional)
* @param forceOverwrite (optional, default to false)
* @return ApiResponse<BaseResponseUploadResponse>
@@ -2225,8 +2367,8 @@ public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull UploadFil
| 422 | Invalid request parameters | - |
*/
- public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
- okhttp3.Call localVarCall = uploadFileValidateBeforeCall(uploadFileType, _file, packedPassword, forceOverwrite, null);
+ public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull File _file, @javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException {
+ okhttp3.Call localVarCall = uploadFileValidateBeforeCall(_file, uploadFileType, packedPassword, forceOverwrite, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -2234,8 +2376,8 @@ public ApiResponse uploadFileWithHttpInfo(@javax.ann
/**
* Upload File (asynchronously)
*
- * @param uploadFileType (required)
* @param _file (required)
+ * @param uploadFileType (required)
* @param packedPassword (optional)
* @param forceOverwrite (optional, default to false)
* @param _callback The callback to be executed when the API call finishes
@@ -2249,9 +2391,9 @@ public ApiResponse uploadFileWithHttpInfo(@javax.ann
| 422 | Invalid request parameters | - |
*/
- public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull File _file, @javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = uploadFileValidateBeforeCall(uploadFileType, _file, packedPassword, forceOverwrite, _callback);
+ okhttp3.Call localVarCall = uploadFileValidateBeforeCall(_file, uploadFileType, packedPassword, forceOverwrite, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
diff --git a/src/main/java/ai/reveng/api/AnalysesSecurityChecksApi.java b/src/main/java/ai/reveng/api/AnalysesSecurityChecksApi.java
index a68b0cd..46c521f 100644
--- a/src/main/java/ai/reveng/api/AnalysesSecurityChecksApi.java
+++ b/src/main/java/ai/reveng/api/AnalysesSecurityChecksApi.java
@@ -86,8 +86,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
Response Details
| Status Code | Description | Response Headers |
| 202 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 409 | Security checks already extracted or queued | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createScurityChecksTaskCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException {
@@ -157,8 +157,8 @@ private okhttp3.Call createScurityChecksTaskValidateBeforeCall(@javax.annotation
Response Details
| Status Code | Description | Response Headers |
| 202 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 409 | Security checks already extracted or queued | - |
+ | 422 | Invalid request parameters | - |
*/
public QueuedSecurityChecksTaskResponse createScurityChecksTask(@javax.annotation.Nonnull Integer analysisId) throws ApiException {
@@ -177,8 +177,8 @@ public QueuedSecurityChecksTaskResponse createScurityChecksTask(@javax.annotatio
Response Details
| Status Code | Description | Response Headers |
| 202 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 409 | Security checks already extracted or queued | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse createScurityChecksTaskWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException {
@@ -199,8 +199,8 @@ public ApiResponse createScurityChecksTaskWith
Response Details
| Status Code | Description | Response Headers |
| 202 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 409 | Security checks already extracted or queued | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createScurityChecksTaskAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException {
diff --git a/src/main/java/ai/reveng/api/AnalysesXRefsApi.java b/src/main/java/ai/reveng/api/AnalysesXRefsApi.java
index b8b4584..e5e61c6 100644
--- a/src/main/java/ai/reveng/api/AnalysesXRefsApi.java
+++ b/src/main/java/ai/reveng/api/AnalysesXRefsApi.java
@@ -85,8 +85,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Xref or analysis cache not found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getXrefByVaddrCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr, final ApiCallback _callback) throws ApiException {
@@ -163,8 +163,8 @@ private okhttp3.Call getXrefByVaddrValidateBeforeCall(@javax.annotation.Nonnull
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Xref or analysis cache not found | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseXrefResponse getXrefByVaddr(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr) throws ApiException {
@@ -184,8 +184,8 @@ public BaseResponseXrefResponse getXrefByVaddr(@javax.annotation.Nonnull Integer
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Xref or analysis cache not found | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse getXrefByVaddrWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr) throws ApiException {
@@ -207,8 +207,8 @@ public ApiResponse getXrefByVaddrWithHttpInfo(@javax.a
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Xref or analysis cache not found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getXrefByVaddrAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer vaddr, final ApiCallback _callback) throws ApiException {
diff --git a/src/main/java/ai/reveng/api/AuthenticationUsersApi.java b/src/main/java/ai/reveng/api/AuthenticationUsersApi.java
index 8755002..3a5638e 100644
--- a/src/main/java/ai/reveng/api/AuthenticationUsersApi.java
+++ b/src/main/java/ai/reveng/api/AuthenticationUsersApi.java
@@ -582,8 +582,8 @@ public okhttp3.Call getUserCommentsAsync(final ApiCallbackResponse Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 401 | Invalid credentials | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call loginUserCall(@javax.annotation.Nonnull LoginRequest loginRequest, final ApiCallback _callback) throws ApiException {
@@ -653,8 +653,8 @@ private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull Login
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 401 | Invalid credentials | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseLoginResponse loginUser(@javax.annotation.Nonnull LoginRequest loginRequest) throws ApiException {
@@ -673,8 +673,8 @@ public BaseResponseLoginResponse loginUser(@javax.annotation.Nonnull LoginReques
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 401 | Invalid credentials | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull LoginRequest loginRequest) throws ApiException {
@@ -695,8 +695,8 @@ public ApiResponse loginUserWithHttpInfo(@javax.annot
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 401 | Invalid credentials | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull LoginRequest loginRequest, final ApiCallback _callback) throws ApiException {
diff --git a/src/main/java/ai/reveng/api/BinariesApi.java b/src/main/java/ai/reveng/api/BinariesApi.java
index 1eb4d4d..c5e8d07 100644
--- a/src/main/java/ai/reveng/api/BinariesApi.java
+++ b/src/main/java/ai/reveng/api/BinariesApi.java
@@ -1008,8 +1008,8 @@ public okhttp3.Call getBinaryRelatedStatusAsync(@javax.annotation.Nonnull Intege
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getRelatedBinariesCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException {
@@ -1079,8 +1079,8 @@ private okhttp3.Call getRelatedBinariesValidateBeforeCall(@javax.annotation.Nonn
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseChildBinariesResponse getRelatedBinaries(@javax.annotation.Nonnull Integer binaryId) throws ApiException {
@@ -1099,8 +1099,8 @@ public BaseResponseChildBinariesResponse getRelatedBinaries(@javax.annotation.No
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse getRelatedBinariesWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException {
@@ -1121,8 +1121,8 @@ public ApiResponse getRelatedBinariesWithHttp
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getRelatedBinariesAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException {
diff --git a/src/main/java/ai/reveng/api/ExternalSourcesApi.java b/src/main/java/ai/reveng/api/ExternalSourcesApi.java
index 1cfcda8..e79ec2a 100644
--- a/src/main/java/ai/reveng/api/ExternalSourcesApi.java
+++ b/src/main/java/ai/reveng/api/ExternalSourcesApi.java
@@ -85,8 +85,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
Response Details
| Status Code | Description | Response Headers |
| 202 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 409 | Request already queued | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createExternalTaskVtCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException {
@@ -156,8 +156,8 @@ private okhttp3.Call createExternalTaskVtValidateBeforeCall(@javax.annotation.No
Response Details
| Status Code | Description | Response Headers |
| 202 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 409 | Request already queued | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseStr createExternalTaskVt(@javax.annotation.Nonnull Integer analysisId) throws ApiException {
@@ -176,8 +176,8 @@ public BaseResponseStr createExternalTaskVt(@javax.annotation.Nonnull Integer an
Response Details
| Status Code | Description | Response Headers |
| 202 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 409 | Request already queued | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse createExternalTaskVtWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException {
@@ -198,8 +198,8 @@ public ApiResponse createExternalTaskVtWithHttpInfo(@javax.anno
Response Details
| Status Code | Description | Response Headers |
| 202 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 409 | Request already queued | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createExternalTaskVtAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException {
@@ -220,8 +220,8 @@ public okhttp3.Call createExternalTaskVtAsync(@javax.annotation.Nonnull Integer
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | No data retrieved from VirusTotal for the given analysis_id | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getVtDataCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException {
@@ -291,8 +291,8 @@ private okhttp3.Call getVtDataValidateBeforeCall(@javax.annotation.Nonnull Integ
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | No data retrieved from VirusTotal for the given analysis_id | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseExternalResponse getVtData(@javax.annotation.Nonnull Integer analysisId) throws ApiException {
@@ -311,8 +311,8 @@ public BaseResponseExternalResponse getVtData(@javax.annotation.Nonnull Integer
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | No data retrieved from VirusTotal for the given analysis_id | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse getVtDataWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException {
@@ -333,8 +333,8 @@ public ApiResponse getVtDataWithHttpInfo(@javax.an
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | No data retrieved from VirusTotal for the given analysis_id | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getVtDataAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException {
diff --git a/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java b/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java
index 7b59eac..f1793b5 100644
--- a/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java
+++ b/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java
@@ -92,8 +92,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createAiDecompilationCommentCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, final ApiCallback _callback) throws ApiException {
@@ -170,8 +170,8 @@ private okhttp3.Call createAiDecompilationCommentValidateBeforeCall(@javax.annot
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseCommentResponse createAiDecompilationComment(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException {
@@ -191,8 +191,8 @@ public BaseResponseCommentResponse createAiDecompilationComment(@javax.annotatio
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse createAiDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException {
@@ -214,8 +214,8 @@ public ApiResponse createAiDecompilationCommentWith
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createAiDecompilationCommentAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, final ApiCallback _callback) throws ApiException {
@@ -236,11 +236,11 @@ public okhttp3.Call createAiDecompilationCommentAsync(@javax.annotation.Nonnull
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 403 | Forbidden | - |
+ | 400 | Bad Request | - |
| 402 | Payment Required | - |
+ | 403 | Forbidden | - |
| 409 | Conflict | - |
- | 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createAiDecompilationTaskCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException {
@@ -310,11 +310,11 @@ private okhttp3.Call createAiDecompilationTaskValidateBeforeCall(@javax.annotati
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 403 | Forbidden | - |
+ | 400 | Bad Request | - |
| 402 | Payment Required | - |
+ | 403 | Forbidden | - |
| 409 | Conflict | - |
- | 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Long functionId) throws ApiException {
@@ -333,11 +333,11 @@ public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Long fun
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 403 | Forbidden | - |
+ | 400 | Bad Request | - |
| 402 | Payment Required | - |
+ | 403 | Forbidden | - |
| 409 | Conflict | - |
- | 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.annotation.Nonnull Long functionId) throws ApiException {
@@ -358,11 +358,11 @@ public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.an
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
- | 403 | Forbidden | - |
+ | 400 | Bad Request | - |
| 402 | Payment Required | - |
+ | 403 | Forbidden | - |
| 409 | Conflict | - |
- | 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createAiDecompilationTaskAsync(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException {
@@ -384,9 +384,9 @@ public okhttp3.Call createAiDecompilationTaskAsync(@javax.annotation.Nonnull Lon
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call deleteAiDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException {
@@ -463,9 +463,9 @@ private okhttp3.Call deleteAiDecompilationCommentValidateBeforeCall(@javax.annot
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseBool deleteAiDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId) throws ApiException {
@@ -485,9 +485,9 @@ public BaseResponseBool deleteAiDecompilationComment(@javax.annotation.Nonnull I
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse deleteAiDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId) throws ApiException {
@@ -509,9 +509,9 @@ public ApiResponse deleteAiDecompilationCommentWithHttpInfo(@j
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call deleteAiDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException {
@@ -787,7 +787,7 @@ public okhttp3.Call getAiDecompilationRatingAsync(@javax.annotation.Nonnull Long
* Build call for getAiDecompilationTaskResult
* @param functionId The ID of the function being decompiled (required)
* @param summarise Generate a summary for the decompilation (optional, default to true)
- * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true)
+ * @param generateInlineComments Generate inline comments for the decompilation (optional, default to true)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -796,8 +796,8 @@ public okhttp3.Call getAiDecompilationRatingAsync(@javax.annotation.Nonnull Long
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getAiDecompilationTaskResultCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, final ApiCallback _callback) throws ApiException {
@@ -869,7 +869,7 @@ private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annot
* Polls the AI Decompilation Process
* @param functionId The ID of the function being decompiled (required)
* @param summarise Generate a summary for the decompilation (optional, default to true)
- * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true)
+ * @param generateInlineComments Generate inline comments for the decompilation (optional, default to true)
* @return BaseResponseGetAiDecompilationTask
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -877,8 +877,8 @@ private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annot
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments) throws ApiException {
@@ -891,7 +891,7 @@ public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.an
* Polls the AI Decompilation Process
* @param functionId The ID of the function being decompiled (required)
* @param summarise Generate a summary for the decompilation (optional, default to true)
- * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true)
+ * @param generateInlineComments Generate inline comments for the decompilation (optional, default to true)
* @return ApiResponse<BaseResponseGetAiDecompilationTask>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -899,8 +899,8 @@ public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.an
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse getAiDecompilationTaskResultWithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments) throws ApiException {
@@ -914,7 +914,7 @@ public ApiResponse getAiDecompilationTaskRes
* Polls the AI Decompilation Process
* @param functionId The ID of the function being decompiled (required)
* @param summarise Generate a summary for the decompilation (optional, default to true)
- * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true)
+ * @param generateInlineComments Generate inline comments for the decompilation (optional, default to true)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -923,8 +923,8 @@ public ApiResponse getAiDecompilationTaskRes
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 403 | Forbidden | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getAiDecompilationTaskResultAsync(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, final ApiCallback _callback) throws ApiException {
@@ -1078,9 +1078,9 @@ public okhttp3.Call getAiDecompilationTaskStatusAsync(@javax.annotation.Nonnull
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call updateAiDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException {
@@ -1164,9 +1164,9 @@ private okhttp3.Call updateAiDecompilationCommentValidateBeforeCall(@javax.annot
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseCommentResponse updateAiDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException {
@@ -1187,9 +1187,9 @@ public BaseResponseCommentResponse updateAiDecompilationComment(@javax.annotatio
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse updateAiDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException {
@@ -1212,9 +1212,9 @@ public ApiResponse updateAiDecompilationCommentWith
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call updateAiDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException {
diff --git a/src/main/java/ai/reveng/api/FunctionsCoreApi.java b/src/main/java/ai/reveng/api/FunctionsCoreApi.java
index 6a23292..4a70cc3 100644
--- a/src/main/java/ai/reveng/api/FunctionsCoreApi.java
+++ b/src/main/java/ai/reveng/api/FunctionsCoreApi.java
@@ -1222,8 +1222,8 @@ public okhttp3.Call getAnalysisStringsStatusAsync(@javax.annotation.Nonnull Inte
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getFunctionBlocksCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException {
@@ -1293,8 +1293,8 @@ private okhttp3.Call getFunctionBlocksValidateBeforeCall(@javax.annotation.Nonnu
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseFunctionBlocksResponse getFunctionBlocks(@javax.annotation.Nonnull Integer functionId) throws ApiException {
@@ -1313,8 +1313,8 @@ public BaseResponseFunctionBlocksResponse getFunctionBlocks(@javax.annotation.No
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse getFunctionBlocksWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException {
@@ -1335,8 +1335,8 @@ public ApiResponse getFunctionBlocksWithHttp
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getFunctionBlocksAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException {
@@ -1622,8 +1622,8 @@ public okhttp3.Call getFunctionCalleesCallersBulkAsync(@javax.annotation.Nonnull
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getFunctionCapabilitiesCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException {
@@ -1693,8 +1693,8 @@ private okhttp3.Call getFunctionCapabilitiesValidateBeforeCall(@javax.annotation
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseFunctionCapabilityResponse getFunctionCapabilities(@javax.annotation.Nonnull Integer functionId) throws ApiException {
@@ -1713,8 +1713,8 @@ public BaseResponseFunctionCapabilityResponse getFunctionCapabilities(@javax.ann
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse getFunctionCapabilitiesWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException {
@@ -1735,8 +1735,8 @@ public ApiResponse getFunctionCapabiliti
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 404 | Not Found | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call getFunctionCapabilitiesAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException {
diff --git a/src/main/java/ai/reveng/api/FunctionsDecompilationApi.java b/src/main/java/ai/reveng/api/FunctionsDecompilationApi.java
index 54ca79b..e67d629 100644
--- a/src/main/java/ai/reveng/api/FunctionsDecompilationApi.java
+++ b/src/main/java/ai/reveng/api/FunctionsDecompilationApi.java
@@ -88,8 +88,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createDecompilationCommentCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, final ApiCallback _callback) throws ApiException {
@@ -166,8 +166,8 @@ private okhttp3.Call createDecompilationCommentValidateBeforeCall(@javax.annotat
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseCommentResponse createDecompilationComment(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException {
@@ -187,8 +187,8 @@ public BaseResponseCommentResponse createDecompilationComment(@javax.annotation.
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse createDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException {
@@ -210,8 +210,8 @@ public ApiResponse createDecompilationCommentWithHt
Response Details
| Status Code | Description | Response Headers |
| 201 | Successful Response | - |
- | 422 | Invalid request parameters | - |
| 400 | Bad Request | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call createDecompilationCommentAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, final ApiCallback _callback) throws ApiException {
@@ -233,9 +233,9 @@ public okhttp3.Call createDecompilationCommentAsync(@javax.annotation.Nonnull In
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call deleteDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException {
@@ -312,9 +312,9 @@ private okhttp3.Call deleteDecompilationCommentValidateBeforeCall(@javax.annotat
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseBool deleteDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId) throws ApiException {
@@ -334,9 +334,9 @@ public BaseResponseBool deleteDecompilationComment(@javax.annotation.Nonnull Int
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse deleteDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId) throws ApiException {
@@ -358,9 +358,9 @@ public ApiResponse deleteDecompilationCommentWithHttpInfo(@jav
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 | - |
+ | 403 | You can only delete your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call deleteDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException {
@@ -514,9 +514,9 @@ public okhttp3.Call getDecompilationCommentsAsync(@javax.annotation.Nonnull Inte
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call updateDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException {
@@ -600,9 +600,9 @@ private okhttp3.Call updateDecompilationCommentValidateBeforeCall(@javax.annotat
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public BaseResponseCommentResponse updateDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException {
@@ -623,9 +623,9 @@ public BaseResponseCommentResponse updateDecompilationComment(@javax.annotation.
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public ApiResponse updateDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException {
@@ -648,9 +648,9 @@ public ApiResponse updateDecompilationCommentWithHt
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 | - |
+ | 403 | You can only update your own comments | - |
+ | 422 | Invalid request parameters | - |
*/
public okhttp3.Call updateDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException {
diff --git a/src/main/java/ai/reveng/api/SearchApi.java b/src/main/java/ai/reveng/api/SearchApi.java
index c04d6fa..48f5749 100644
--- a/src/main/java/ai/reveng/api/SearchApi.java
+++ b/src/main/java/ai/reveng/api/SearchApi.java
@@ -275,8 +275,8 @@ public okhttp3.Call searchBinariesAsync(@javax.annotation.Nullable Integer page,
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - |
| 404 | The model name provided does not exist | - |
+ | 422 | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - |
*/
public okhttp3.Call searchCollectionsCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, final ApiCallback _callback) throws ApiException {
@@ -389,8 +389,8 @@ private okhttp3.Call searchCollectionsValidateBeforeCall(@javax.annotation.Nulla
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - |
| 404 | The model name provided does not exist | - |
+ | 422 | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - |
*/
public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection) throws ApiException {
@@ -418,8 +418,8 @@ public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation.
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - |
| 404 | The model name provided does not exist | - |
+ | 422 | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - |
*/
public ApiResponse searchCollectionsWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection) throws ApiException {
@@ -449,8 +449,8 @@ public ApiResponse searchCollectionsWithHt
Response Details
| Status Code | Description | Response Headers |
| 200 | Successful Response | - |
- | 422 | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - |
| 404 | The model name provided does not exist | - |
+ | 422 | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - |
*/
public okhttp3.Call searchCollectionsAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, final ApiCallback _callback) throws ApiException {
diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java
index 864b7bf..517beb4 100644
--- a/src/main/java/ai/reveng/invoker/ApiClient.java
+++ b/src/main/java/ai/reveng/invoker/ApiClient.java
@@ -146,7 +146,7 @@ protected void init() {
json = new JSON();
// Set default User-Agent.
- setUserAgent("OpenAPI-Generator/3.51.0/java");
+ setUserAgent("OpenAPI-Generator/3.55.0/java");
authentications = new HashMap();
}
diff --git a/src/main/java/ai/reveng/invoker/Configuration.java b/src/main/java/ai/reveng/invoker/Configuration.java
index a07d2bd..b8b1385 100644
--- a/src/main/java/ai/reveng/invoker/Configuration.java
+++ b/src/main/java/ai/reveng/invoker/Configuration.java
@@ -18,7 +18,7 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
- public static final String VERSION = "3.51.0";
+ public static final String VERSION = "3.55.0";
private static final AtomicReference defaultApiClient = new AtomicReference<>();
private static volatile Supplier apiClientFactory = ApiClient::new;
diff --git a/src/main/java/ai/reveng/invoker/JSON.java b/src/main/java/ai/reveng/invoker/JSON.java
index e6e80f9..04c71dd 100644
--- a/src/main/java/ai/reveng/invoker/JSON.java
+++ b/src/main/java/ai/reveng/invoker/JSON.java
@@ -115,6 +115,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AnalysisFunctionsList.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AnalysisRecord.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AnalysisStagesResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AnalysisStringInput.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AnalysisStringsResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AnalysisStringsStatusResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.AnalysisTags.CustomTypeAdapterFactory());
@@ -337,6 +338,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ProcessDumpsData.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ProcessRegistry.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ProcessTree.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.PutAnalysisStringsRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.QueuedSecurityChecksTaskResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.ReAnalysisForm.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new ai.reveng.model.Recent.CustomTypeAdapterFactory());
diff --git a/src/main/java/ai/reveng/model/AnalysisBulkAddTagsRequest.java b/src/main/java/ai/reveng/model/AnalysisBulkAddTagsRequest.java
index 9561d87..5f28a5e 100644
--- a/src/main/java/ai/reveng/model/AnalysisBulkAddTagsRequest.java
+++ b/src/main/java/ai/reveng/model/AnalysisBulkAddTagsRequest.java
@@ -53,70 +53,70 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AnalysisBulkAddTagsRequest {
- public static final String SERIALIZED_NAME_TAGS = "tags";
- @SerializedName(SERIALIZED_NAME_TAGS)
- @javax.annotation.Nonnull
- private List tags = new ArrayList<>();
-
public static final String SERIALIZED_NAME_ANALYSIS_IDS = "analysis_ids";
@SerializedName(SERIALIZED_NAME_ANALYSIS_IDS)
@javax.annotation.Nonnull
private List analysisIds = new ArrayList<>();
+ public static final String SERIALIZED_NAME_TAGS = "tags";
+ @SerializedName(SERIALIZED_NAME_TAGS)
+ @javax.annotation.Nonnull
+ private List tags = new ArrayList<>();
+
public AnalysisBulkAddTagsRequest() {
}
- public AnalysisBulkAddTagsRequest tags(@javax.annotation.Nonnull List tags) {
- this.tags = tags;
+ public AnalysisBulkAddTagsRequest analysisIds(@javax.annotation.Nonnull List analysisIds) {
+ this.analysisIds = analysisIds;
return this;
}
- public AnalysisBulkAddTagsRequest addTagsItem(String tagsItem) {
- if (this.tags == null) {
- this.tags = new ArrayList<>();
+ public AnalysisBulkAddTagsRequest addAnalysisIdsItem(Integer analysisIdsItem) {
+ if (this.analysisIds == null) {
+ this.analysisIds = new ArrayList<>();
}
- this.tags.add(tagsItem);
+ this.analysisIds.add(analysisIdsItem);
return this;
}
/**
- * Get tags
- * @return tags
+ * Get analysisIds
+ * @return analysisIds
*/
@javax.annotation.Nonnull
- public List getTags() {
- return tags;
+ public List getAnalysisIds() {
+ return analysisIds;
}
- public void setTags(@javax.annotation.Nonnull List tags) {
- this.tags = tags;
+ public void setAnalysisIds(@javax.annotation.Nonnull List analysisIds) {
+ this.analysisIds = analysisIds;
}
- public AnalysisBulkAddTagsRequest analysisIds(@javax.annotation.Nonnull List analysisIds) {
- this.analysisIds = analysisIds;
+ public AnalysisBulkAddTagsRequest tags(@javax.annotation.Nonnull List tags) {
+ this.tags = tags;
return this;
}
- public AnalysisBulkAddTagsRequest addAnalysisIdsItem(Integer analysisIdsItem) {
- if (this.analysisIds == null) {
- this.analysisIds = new ArrayList<>();
+ public AnalysisBulkAddTagsRequest addTagsItem(String tagsItem) {
+ if (this.tags == null) {
+ this.tags = new ArrayList<>();
}
- this.analysisIds.add(analysisIdsItem);
+ this.tags.add(tagsItem);
return this;
}
/**
- * Get analysisIds
- * @return analysisIds
+ * Get tags
+ * @return tags
*/
@javax.annotation.Nonnull
- public List getAnalysisIds() {
- return analysisIds;
+ public List getTags() {
+ return tags;
}
- public void setAnalysisIds(@javax.annotation.Nonnull List analysisIds) {
- this.analysisIds = analysisIds;
+ public void setTags(@javax.annotation.Nonnull List tags) {
+ this.tags = tags;
}
/**
@@ -174,22 +174,22 @@ public boolean equals(Object o) {
return false;
}
AnalysisBulkAddTagsRequest analysisBulkAddTagsRequest = (AnalysisBulkAddTagsRequest) o;
- return Objects.equals(this.tags, analysisBulkAddTagsRequest.tags) &&
- Objects.equals(this.analysisIds, analysisBulkAddTagsRequest.analysisIds)&&
+ return Objects.equals(this.analysisIds, analysisBulkAddTagsRequest.analysisIds) &&
+ Objects.equals(this.tags, analysisBulkAddTagsRequest.tags)&&
Objects.equals(this.additionalProperties, analysisBulkAddTagsRequest.additionalProperties);
}
@Override
public int hashCode() {
- return Objects.hash(tags, analysisIds, additionalProperties);
+ return Objects.hash(analysisIds, tags, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AnalysisBulkAddTagsRequest {\n");
- sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" analysisIds: ").append(toIndentedString(analysisIds)).append("\n");
+ sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -212,10 +212,10 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("tags", "analysis_ids"));
+ openapiFields = new HashSet(Arrays.asList("analysis_ids", "tags"));
// a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet(Arrays.asList("tags", "analysis_ids"));
+ openapiRequiredFields = new HashSet(Arrays.asList("analysis_ids", "tags"));
}
/**
@@ -239,17 +239,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
// ensure the required json array is present
- if (jsonObj.get("tags") == null) {
- throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`");
- } else if (!jsonObj.get("tags").isJsonArray()) {
- throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString()));
- }
- // ensure the required json array is present
if (jsonObj.get("analysis_ids") == null) {
throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`");
} else if (!jsonObj.get("analysis_ids").isJsonArray()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `analysis_ids` to be an array in the JSON string but got `%s`", jsonObj.get("analysis_ids").toString()));
}
+ // ensure the required json array is present
+ if (jsonObj.get("tags") == null) {
+ throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`");
+ } else if (!jsonObj.get("tags").isJsonArray()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString()));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/src/main/java/ai/reveng/model/AnalysisBulkAddTagsResponseItem.java b/src/main/java/ai/reveng/model/AnalysisBulkAddTagsResponseItem.java
index 26dde80..703f1bf 100644
--- a/src/main/java/ai/reveng/model/AnalysisBulkAddTagsResponseItem.java
+++ b/src/main/java/ai/reveng/model/AnalysisBulkAddTagsResponseItem.java
@@ -57,16 +57,16 @@ public class AnalysisBulkAddTagsResponseItem {
@javax.annotation.Nonnull
private Integer analysisId;
- public static final String SERIALIZED_NAME_MESSAGE = "message";
- @SerializedName(SERIALIZED_NAME_MESSAGE)
- @javax.annotation.Nullable
- private String message;
-
public static final String SERIALIZED_NAME_ERROR = "error";
@SerializedName(SERIALIZED_NAME_ERROR)
@javax.annotation.Nullable
private String error;
+ public static final String SERIALIZED_NAME_MESSAGE = "message";
+ @SerializedName(SERIALIZED_NAME_MESSAGE)
+ @javax.annotation.Nullable
+ private String message;
+
public AnalysisBulkAddTagsResponseItem() {
}
@@ -89,41 +89,41 @@ public void setAnalysisId(@javax.annotation.Nonnull Integer analysisId) {
}
- public AnalysisBulkAddTagsResponseItem message(@javax.annotation.Nullable String message) {
- this.message = message;
+ public AnalysisBulkAddTagsResponseItem error(@javax.annotation.Nullable String error) {
+ this.error = error;
return this;
}
/**
- * Get message
- * @return message
+ * Get error
+ * @return error
*/
@javax.annotation.Nullable
- public String getMessage() {
- return message;
+ public String getError() {
+ return error;
}
- public void setMessage(@javax.annotation.Nullable String message) {
- this.message = message;
+ public void setError(@javax.annotation.Nullable String error) {
+ this.error = error;
}
- public AnalysisBulkAddTagsResponseItem error(@javax.annotation.Nullable String error) {
- this.error = error;
+ public AnalysisBulkAddTagsResponseItem message(@javax.annotation.Nullable String message) {
+ this.message = message;
return this;
}
/**
- * Get error
- * @return error
+ * Get message
+ * @return message
*/
@javax.annotation.Nullable
- public String getError() {
- return error;
+ public String getMessage() {
+ return message;
}
- public void setError(@javax.annotation.Nullable String error) {
- this.error = error;
+ public void setMessage(@javax.annotation.Nullable String message) {
+ this.message = message;
}
/**
@@ -182,8 +182,8 @@ public boolean equals(Object o) {
}
AnalysisBulkAddTagsResponseItem analysisBulkAddTagsResponseItem = (AnalysisBulkAddTagsResponseItem) o;
return Objects.equals(this.analysisId, analysisBulkAddTagsResponseItem.analysisId) &&
- Objects.equals(this.message, analysisBulkAddTagsResponseItem.message) &&
- Objects.equals(this.error, analysisBulkAddTagsResponseItem.error)&&
+ Objects.equals(this.error, analysisBulkAddTagsResponseItem.error) &&
+ Objects.equals(this.message, analysisBulkAddTagsResponseItem.message)&&
Objects.equals(this.additionalProperties, analysisBulkAddTagsResponseItem.additionalProperties);
}
@@ -193,7 +193,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(analysisId, message, error, additionalProperties);
+ return Objects.hash(analysisId, error, message, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -208,8 +208,8 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AnalysisBulkAddTagsResponseItem {\n");
sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n");
- sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
+ sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -232,7 +232,7 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("analysis_id", "message", "error"));
+ openapiFields = new HashSet(Arrays.asList("analysis_id", "error", "message"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet(Arrays.asList("analysis_id", "message"));
@@ -258,12 +258,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
- if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString()));
- }
if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) && !jsonObj.get("error").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error").toString()));
}
+ if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString()));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/src/main/java/ai/reveng/model/AnalysisConfig.java b/src/main/java/ai/reveng/model/AnalysisConfig.java
index 7a8a71f..786d33b 100644
--- a/src/main/java/ai/reveng/model/AnalysisConfig.java
+++ b/src/main/java/ai/reveng/model/AnalysisConfig.java
@@ -53,10 +53,15 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AnalysisConfig {
- public static final String SERIALIZED_NAME_SCRAPE_THIRD_PARTY_CONFIG = "scrape_third_party_config";
- @SerializedName(SERIALIZED_NAME_SCRAPE_THIRD_PARTY_CONFIG)
+ public static final String SERIALIZED_NAME_ADVANCED_ANALYSIS = "advanced_analysis";
+ @SerializedName(SERIALIZED_NAME_ADVANCED_ANALYSIS)
@javax.annotation.Nullable
- private ScrapeThirdPartyConfig scrapeThirdPartyConfig;
+ private Boolean advancedAnalysis = false;
+
+ public static final String SERIALIZED_NAME_GENERATE_CAPABILITIES = "generate_capabilities";
+ @SerializedName(SERIALIZED_NAME_GENERATE_CAPABILITIES)
+ @javax.annotation.Nullable
+ private Boolean generateCapabilities = false;
public static final String SERIALIZED_NAME_GENERATE_CVES = "generate_cves";
@SerializedName(SERIALIZED_NAME_GENERATE_CVES)
@@ -68,45 +73,59 @@ public class AnalysisConfig {
@javax.annotation.Nullable
private Boolean generateSbom = false;
- public static final String SERIALIZED_NAME_GENERATE_CAPABILITIES = "generate_capabilities";
- @SerializedName(SERIALIZED_NAME_GENERATE_CAPABILITIES)
- @javax.annotation.Nullable
- private Boolean generateCapabilities = false;
-
public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
@SerializedName(SERIALIZED_NAME_NO_CACHE)
@javax.annotation.Nullable
private Boolean noCache = false;
- public static final String SERIALIZED_NAME_ADVANCED_ANALYSIS = "advanced_analysis";
- @SerializedName(SERIALIZED_NAME_ADVANCED_ANALYSIS)
- @javax.annotation.Nullable
- private Boolean advancedAnalysis = false;
-
public static final String SERIALIZED_NAME_SANDBOX_CONFIG = "sandbox_config";
@SerializedName(SERIALIZED_NAME_SANDBOX_CONFIG)
@javax.annotation.Nullable
private SandboxOptions sandboxConfig;
+ public static final String SERIALIZED_NAME_SCRAPE_THIRD_PARTY_CONFIG = "scrape_third_party_config";
+ @SerializedName(SERIALIZED_NAME_SCRAPE_THIRD_PARTY_CONFIG)
+ @javax.annotation.Nullable
+ private ScrapeThirdPartyConfig scrapeThirdPartyConfig;
+
public AnalysisConfig() {
}
- public AnalysisConfig scrapeThirdPartyConfig(@javax.annotation.Nullable ScrapeThirdPartyConfig scrapeThirdPartyConfig) {
- this.scrapeThirdPartyConfig = scrapeThirdPartyConfig;
+ public AnalysisConfig advancedAnalysis(@javax.annotation.Nullable Boolean advancedAnalysis) {
+ this.advancedAnalysis = advancedAnalysis;
return this;
}
/**
- * Settings to scrape third party sources
- * @return scrapeThirdPartyConfig
+ * Enables an advanced security analysis.
+ * @return advancedAnalysis
*/
@javax.annotation.Nullable
- public ScrapeThirdPartyConfig getScrapeThirdPartyConfig() {
- return scrapeThirdPartyConfig;
+ public Boolean getAdvancedAnalysis() {
+ return advancedAnalysis;
}
- public void setScrapeThirdPartyConfig(@javax.annotation.Nullable ScrapeThirdPartyConfig scrapeThirdPartyConfig) {
- this.scrapeThirdPartyConfig = scrapeThirdPartyConfig;
+ public void setAdvancedAnalysis(@javax.annotation.Nullable Boolean advancedAnalysis) {
+ this.advancedAnalysis = advancedAnalysis;
+ }
+
+
+ public AnalysisConfig generateCapabilities(@javax.annotation.Nullable Boolean generateCapabilities) {
+ this.generateCapabilities = generateCapabilities;
+ return this;
+ }
+
+ /**
+ * A configuration option for generating capabilities of a binary
+ * @return generateCapabilities
+ */
+ @javax.annotation.Nullable
+ public Boolean getGenerateCapabilities() {
+ return generateCapabilities;
+ }
+
+ public void setGenerateCapabilities(@javax.annotation.Nullable Boolean generateCapabilities) {
+ this.generateCapabilities = generateCapabilities;
}
@@ -148,25 +167,6 @@ public void setGenerateSbom(@javax.annotation.Nullable Boolean generateSbom) {
}
- public AnalysisConfig generateCapabilities(@javax.annotation.Nullable Boolean generateCapabilities) {
- this.generateCapabilities = generateCapabilities;
- return this;
- }
-
- /**
- * A configuration option for generating capabilities of a binary
- * @return generateCapabilities
- */
- @javax.annotation.Nullable
- public Boolean getGenerateCapabilities() {
- return generateCapabilities;
- }
-
- public void setGenerateCapabilities(@javax.annotation.Nullable Boolean generateCapabilities) {
- this.generateCapabilities = generateCapabilities;
- }
-
-
public AnalysisConfig noCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
return this;
@@ -186,41 +186,41 @@ public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
}
- public AnalysisConfig advancedAnalysis(@javax.annotation.Nullable Boolean advancedAnalysis) {
- this.advancedAnalysis = advancedAnalysis;
+ public AnalysisConfig sandboxConfig(@javax.annotation.Nullable SandboxOptions sandboxConfig) {
+ this.sandboxConfig = sandboxConfig;
return this;
}
/**
- * Enables an advanced security analysis.
- * @return advancedAnalysis
+ * Including a sandbox config enables the dynamic execution sandbox
+ * @return sandboxConfig
*/
@javax.annotation.Nullable
- public Boolean getAdvancedAnalysis() {
- return advancedAnalysis;
+ public SandboxOptions getSandboxConfig() {
+ return sandboxConfig;
}
- public void setAdvancedAnalysis(@javax.annotation.Nullable Boolean advancedAnalysis) {
- this.advancedAnalysis = advancedAnalysis;
+ public void setSandboxConfig(@javax.annotation.Nullable SandboxOptions sandboxConfig) {
+ this.sandboxConfig = sandboxConfig;
}
- public AnalysisConfig sandboxConfig(@javax.annotation.Nullable SandboxOptions sandboxConfig) {
- this.sandboxConfig = sandboxConfig;
+ public AnalysisConfig scrapeThirdPartyConfig(@javax.annotation.Nullable ScrapeThirdPartyConfig scrapeThirdPartyConfig) {
+ this.scrapeThirdPartyConfig = scrapeThirdPartyConfig;
return this;
}
/**
- * Including a sandbox config enables the dynamic execution sandbox
- * @return sandboxConfig
+ * Settings to scrape third party sources
+ * @return scrapeThirdPartyConfig
*/
@javax.annotation.Nullable
- public SandboxOptions getSandboxConfig() {
- return sandboxConfig;
+ public ScrapeThirdPartyConfig getScrapeThirdPartyConfig() {
+ return scrapeThirdPartyConfig;
}
- public void setSandboxConfig(@javax.annotation.Nullable SandboxOptions sandboxConfig) {
- this.sandboxConfig = sandboxConfig;
+ public void setScrapeThirdPartyConfig(@javax.annotation.Nullable ScrapeThirdPartyConfig scrapeThirdPartyConfig) {
+ this.scrapeThirdPartyConfig = scrapeThirdPartyConfig;
}
/**
@@ -278,32 +278,32 @@ public boolean equals(Object o) {
return false;
}
AnalysisConfig analysisConfig = (AnalysisConfig) o;
- return Objects.equals(this.scrapeThirdPartyConfig, analysisConfig.scrapeThirdPartyConfig) &&
+ return Objects.equals(this.advancedAnalysis, analysisConfig.advancedAnalysis) &&
+ Objects.equals(this.generateCapabilities, analysisConfig.generateCapabilities) &&
Objects.equals(this.generateCves, analysisConfig.generateCves) &&
Objects.equals(this.generateSbom, analysisConfig.generateSbom) &&
- Objects.equals(this.generateCapabilities, analysisConfig.generateCapabilities) &&
Objects.equals(this.noCache, analysisConfig.noCache) &&
- Objects.equals(this.advancedAnalysis, analysisConfig.advancedAnalysis) &&
- Objects.equals(this.sandboxConfig, analysisConfig.sandboxConfig)&&
+ Objects.equals(this.sandboxConfig, analysisConfig.sandboxConfig) &&
+ Objects.equals(this.scrapeThirdPartyConfig, analysisConfig.scrapeThirdPartyConfig)&&
Objects.equals(this.additionalProperties, analysisConfig.additionalProperties);
}
@Override
public int hashCode() {
- return Objects.hash(scrapeThirdPartyConfig, generateCves, generateSbom, generateCapabilities, noCache, advancedAnalysis, sandboxConfig, additionalProperties);
+ return Objects.hash(advancedAnalysis, generateCapabilities, generateCves, generateSbom, noCache, sandboxConfig, scrapeThirdPartyConfig, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AnalysisConfig {\n");
- sb.append(" scrapeThirdPartyConfig: ").append(toIndentedString(scrapeThirdPartyConfig)).append("\n");
+ sb.append(" advancedAnalysis: ").append(toIndentedString(advancedAnalysis)).append("\n");
+ sb.append(" generateCapabilities: ").append(toIndentedString(generateCapabilities)).append("\n");
sb.append(" generateCves: ").append(toIndentedString(generateCves)).append("\n");
sb.append(" generateSbom: ").append(toIndentedString(generateSbom)).append("\n");
- sb.append(" generateCapabilities: ").append(toIndentedString(generateCapabilities)).append("\n");
sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n");
- sb.append(" advancedAnalysis: ").append(toIndentedString(advancedAnalysis)).append("\n");
sb.append(" sandboxConfig: ").append(toIndentedString(sandboxConfig)).append("\n");
+ sb.append(" scrapeThirdPartyConfig: ").append(toIndentedString(scrapeThirdPartyConfig)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -326,7 +326,7 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("scrape_third_party_config", "generate_cves", "generate_sbom", "generate_capabilities", "no_cache", "advanced_analysis", "sandbox_config"));
+ openapiFields = new HashSet(Arrays.asList("advanced_analysis", "generate_capabilities", "generate_cves", "generate_sbom", "no_cache", "sandbox_config", "scrape_third_party_config"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet(0);
@@ -345,14 +345,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
- // validate the optional field `scrape_third_party_config`
- if (jsonObj.get("scrape_third_party_config") != null && !jsonObj.get("scrape_third_party_config").isJsonNull()) {
- ScrapeThirdPartyConfig.validateJsonElement(jsonObj.get("scrape_third_party_config"));
- }
// validate the optional field `sandbox_config`
if (jsonObj.get("sandbox_config") != null && !jsonObj.get("sandbox_config").isJsonNull()) {
SandboxOptions.validateJsonElement(jsonObj.get("sandbox_config"));
}
+ // validate the optional field `scrape_third_party_config`
+ if (jsonObj.get("scrape_third_party_config") != null && !jsonObj.get("scrape_third_party_config").isJsonNull()) {
+ ScrapeThirdPartyConfig.validateJsonElement(jsonObj.get("scrape_third_party_config"));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/src/main/java/ai/reveng/model/AnalysisCreateRequest.java b/src/main/java/ai/reveng/model/AnalysisCreateRequest.java
index c0427a4..5cf880a 100644
--- a/src/main/java/ai/reveng/model/AnalysisCreateRequest.java
+++ b/src/main/java/ai/reveng/model/AnalysisCreateRequest.java
@@ -60,230 +60,230 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AnalysisCreateRequest {
- public static final String SERIALIZED_NAME_FILENAME = "filename";
- @SerializedName(SERIALIZED_NAME_FILENAME)
- @javax.annotation.Nonnull
- private String filename;
-
- public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash";
- @SerializedName(SERIALIZED_NAME_SHA256_HASH)
- @javax.annotation.Nonnull
- private String sha256Hash;
-
- public static final String SERIALIZED_NAME_TAGS = "tags";
- @SerializedName(SERIALIZED_NAME_TAGS)
+ public static final String SERIALIZED_NAME_ANALYSIS_CONFIG = "analysis_config";
+ @SerializedName(SERIALIZED_NAME_ANALYSIS_CONFIG)
@javax.annotation.Nullable
- private List tags = new ArrayList<>();
+ private AnalysisConfig analysisConfig;
public static final String SERIALIZED_NAME_ANALYSIS_SCOPE = "analysis_scope";
@SerializedName(SERIALIZED_NAME_ANALYSIS_SCOPE)
@javax.annotation.Nullable
private AnalysisScope analysisScope;
- public static final String SERIALIZED_NAME_SYMBOLS = "symbols";
- @SerializedName(SERIALIZED_NAME_SYMBOLS)
+ public static final String SERIALIZED_NAME_AUTO_RUN_AGENTS = "auto_run_agents";
+ @SerializedName(SERIALIZED_NAME_AUTO_RUN_AGENTS)
@javax.annotation.Nullable
- private Symbols symbols;
+ private AutoRunAgents autoRunAgents;
+
+ public static final String SERIALIZED_NAME_BINARY_CONFIG = "binary_config";
+ @SerializedName(SERIALIZED_NAME_BINARY_CONFIG)
+ @javax.annotation.Nullable
+ private BinaryConfig binaryConfig;
public static final String SERIALIZED_NAME_DEBUG_HASH = "debug_hash";
@SerializedName(SERIALIZED_NAME_DEBUG_HASH)
@javax.annotation.Nullable
private String debugHash;
- public static final String SERIALIZED_NAME_ANALYSIS_CONFIG = "analysis_config";
- @SerializedName(SERIALIZED_NAME_ANALYSIS_CONFIG)
- @javax.annotation.Nullable
- private AnalysisConfig analysisConfig;
+ public static final String SERIALIZED_NAME_FILENAME = "filename";
+ @SerializedName(SERIALIZED_NAME_FILENAME)
+ @javax.annotation.Nonnull
+ private String filename;
- public static final String SERIALIZED_NAME_BINARY_CONFIG = "binary_config";
- @SerializedName(SERIALIZED_NAME_BINARY_CONFIG)
+ public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash";
+ @SerializedName(SERIALIZED_NAME_SHA256_HASH)
+ @javax.annotation.Nonnull
+ private String sha256Hash;
+
+ public static final String SERIALIZED_NAME_SYMBOLS = "symbols";
+ @SerializedName(SERIALIZED_NAME_SYMBOLS)
@javax.annotation.Nullable
- private BinaryConfig binaryConfig;
+ private Symbols symbols;
- public static final String SERIALIZED_NAME_AUTO_RUN_AGENTS = "auto_run_agents";
- @SerializedName(SERIALIZED_NAME_AUTO_RUN_AGENTS)
+ public static final String SERIALIZED_NAME_TAGS = "tags";
+ @SerializedName(SERIALIZED_NAME_TAGS)
@javax.annotation.Nullable
- private AutoRunAgents autoRunAgents;
+ private List tags = new ArrayList<>();
public AnalysisCreateRequest() {
}
- public AnalysisCreateRequest filename(@javax.annotation.Nonnull String filename) {
- this.filename = filename;
+ public AnalysisCreateRequest analysisConfig(@javax.annotation.Nullable AnalysisConfig analysisConfig) {
+ this.analysisConfig = analysisConfig;
return this;
}
/**
- * The name of the file
- * @return filename
+ * The analysis config enables the configuration of optional analysis stages
+ * @return analysisConfig
*/
- @javax.annotation.Nonnull
- public String getFilename() {
- return filename;
+ @javax.annotation.Nullable
+ public AnalysisConfig getAnalysisConfig() {
+ return analysisConfig;
}
- public void setFilename(@javax.annotation.Nonnull String filename) {
- this.filename = filename;
+ public void setAnalysisConfig(@javax.annotation.Nullable AnalysisConfig analysisConfig) {
+ this.analysisConfig = analysisConfig;
}
- public AnalysisCreateRequest sha256Hash(@javax.annotation.Nonnull String sha256Hash) {
- this.sha256Hash = sha256Hash;
+ public AnalysisCreateRequest analysisScope(@javax.annotation.Nullable AnalysisScope analysisScope) {
+ this.analysisScope = analysisScope;
return this;
}
/**
- * The name of the file
- * @return sha256Hash
+ * The scope of the analysis determines who can access it
+ * @return analysisScope
*/
- @javax.annotation.Nonnull
- public String getSha256Hash() {
- return sha256Hash;
+ @javax.annotation.Nullable
+ public AnalysisScope getAnalysisScope() {
+ return analysisScope;
}
- public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) {
- this.sha256Hash = sha256Hash;
+ public void setAnalysisScope(@javax.annotation.Nullable AnalysisScope analysisScope) {
+ this.analysisScope = analysisScope;
}
- public AnalysisCreateRequest tags(@javax.annotation.Nullable List tags) {
- this.tags = tags;
- return this;
- }
-
- public AnalysisCreateRequest addTagsItem(Tag tagsItem) {
- if (this.tags == null) {
- this.tags = new ArrayList<>();
- }
- this.tags.add(tagsItem);
+ public AnalysisCreateRequest autoRunAgents(@javax.annotation.Nullable AutoRunAgents autoRunAgents) {
+ this.autoRunAgents = autoRunAgents;
return this;
}
/**
- * List of community tags to assign to an analysis
- * @return tags
+ * Get autoRunAgents
+ * @return autoRunAgents
*/
@javax.annotation.Nullable
- public List getTags() {
- return tags;
+ public AutoRunAgents getAutoRunAgents() {
+ return autoRunAgents;
}
- public void setTags(@javax.annotation.Nullable List tags) {
- this.tags = tags;
+ public void setAutoRunAgents(@javax.annotation.Nullable AutoRunAgents autoRunAgents) {
+ this.autoRunAgents = autoRunAgents;
}
- public AnalysisCreateRequest analysisScope(@javax.annotation.Nullable AnalysisScope analysisScope) {
- this.analysisScope = analysisScope;
+ public AnalysisCreateRequest binaryConfig(@javax.annotation.Nullable BinaryConfig binaryConfig) {
+ this.binaryConfig = binaryConfig;
return this;
}
/**
- * The scope of the analysis determines who can access it
- * @return analysisScope
+ * The binary config can override automatically determined values such as ISA, Platform, File Format, etc
+ * @return binaryConfig
*/
@javax.annotation.Nullable
- public AnalysisScope getAnalysisScope() {
- return analysisScope;
+ public BinaryConfig getBinaryConfig() {
+ return binaryConfig;
}
- public void setAnalysisScope(@javax.annotation.Nullable AnalysisScope analysisScope) {
- this.analysisScope = analysisScope;
+ public void setBinaryConfig(@javax.annotation.Nullable BinaryConfig binaryConfig) {
+ this.binaryConfig = binaryConfig;
}
- public AnalysisCreateRequest symbols(@javax.annotation.Nullable Symbols symbols) {
- this.symbols = symbols;
+ public AnalysisCreateRequest debugHash(@javax.annotation.Nullable String debugHash) {
+ this.debugHash = debugHash;
return this;
}
/**
- * Get symbols
- * @return symbols
+ * Get debugHash
+ * @return debugHash
*/
@javax.annotation.Nullable
- public Symbols getSymbols() {
- return symbols;
+ public String getDebugHash() {
+ return debugHash;
}
- public void setSymbols(@javax.annotation.Nullable Symbols symbols) {
- this.symbols = symbols;
+ public void setDebugHash(@javax.annotation.Nullable String debugHash) {
+ this.debugHash = debugHash;
}
- public AnalysisCreateRequest debugHash(@javax.annotation.Nullable String debugHash) {
- this.debugHash = debugHash;
+ public AnalysisCreateRequest filename(@javax.annotation.Nonnull String filename) {
+ this.filename = filename;
return this;
}
/**
- * Get debugHash
- * @return debugHash
+ * The name of the file
+ * @return filename
*/
- @javax.annotation.Nullable
- public String getDebugHash() {
- return debugHash;
+ @javax.annotation.Nonnull
+ public String getFilename() {
+ return filename;
}
- public void setDebugHash(@javax.annotation.Nullable String debugHash) {
- this.debugHash = debugHash;
+ public void setFilename(@javax.annotation.Nonnull String filename) {
+ this.filename = filename;
}
- public AnalysisCreateRequest analysisConfig(@javax.annotation.Nullable AnalysisConfig analysisConfig) {
- this.analysisConfig = analysisConfig;
+ public AnalysisCreateRequest sha256Hash(@javax.annotation.Nonnull String sha256Hash) {
+ this.sha256Hash = sha256Hash;
return this;
}
/**
- * The analysis config enables the configuration of optional analysis stages
- * @return analysisConfig
+ * The name of the file
+ * @return sha256Hash
*/
- @javax.annotation.Nullable
- public AnalysisConfig getAnalysisConfig() {
- return analysisConfig;
+ @javax.annotation.Nonnull
+ public String getSha256Hash() {
+ return sha256Hash;
}
- public void setAnalysisConfig(@javax.annotation.Nullable AnalysisConfig analysisConfig) {
- this.analysisConfig = analysisConfig;
+ public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) {
+ this.sha256Hash = sha256Hash;
}
- public AnalysisCreateRequest binaryConfig(@javax.annotation.Nullable BinaryConfig binaryConfig) {
- this.binaryConfig = binaryConfig;
+ public AnalysisCreateRequest symbols(@javax.annotation.Nullable Symbols symbols) {
+ this.symbols = symbols;
return this;
}
/**
- * The binary config can override automatically determined values such as ISA, Platform, File Format, etc
- * @return binaryConfig
+ * Get symbols
+ * @return symbols
*/
@javax.annotation.Nullable
- public BinaryConfig getBinaryConfig() {
- return binaryConfig;
+ public Symbols getSymbols() {
+ return symbols;
}
- public void setBinaryConfig(@javax.annotation.Nullable BinaryConfig binaryConfig) {
- this.binaryConfig = binaryConfig;
+ public void setSymbols(@javax.annotation.Nullable Symbols symbols) {
+ this.symbols = symbols;
}
- public AnalysisCreateRequest autoRunAgents(@javax.annotation.Nullable AutoRunAgents autoRunAgents) {
- this.autoRunAgents = autoRunAgents;
+ public AnalysisCreateRequest tags(@javax.annotation.Nullable List tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ public AnalysisCreateRequest addTagsItem(Tag tagsItem) {
+ if (this.tags == null) {
+ this.tags = new ArrayList<>();
+ }
+ this.tags.add(tagsItem);
return this;
}
/**
- * Get autoRunAgents
- * @return autoRunAgents
+ * List of community tags to assign to an analysis
+ * @return tags
*/
@javax.annotation.Nullable
- public AutoRunAgents getAutoRunAgents() {
- return autoRunAgents;
+ public List getTags() {
+ return tags;
}
- public void setAutoRunAgents(@javax.annotation.Nullable AutoRunAgents autoRunAgents) {
- this.autoRunAgents = autoRunAgents;
+ public void setTags(@javax.annotation.Nullable List tags) {
+ this.tags = tags;
}
/**
@@ -341,15 +341,15 @@ public boolean equals(Object o) {
return false;
}
AnalysisCreateRequest analysisCreateRequest = (AnalysisCreateRequest) o;
- return Objects.equals(this.filename, analysisCreateRequest.filename) &&
- Objects.equals(this.sha256Hash, analysisCreateRequest.sha256Hash) &&
- Objects.equals(this.tags, analysisCreateRequest.tags) &&
+ return Objects.equals(this.analysisConfig, analysisCreateRequest.analysisConfig) &&
Objects.equals(this.analysisScope, analysisCreateRequest.analysisScope) &&
- Objects.equals(this.symbols, analysisCreateRequest.symbols) &&
- Objects.equals(this.debugHash, analysisCreateRequest.debugHash) &&
- Objects.equals(this.analysisConfig, analysisCreateRequest.analysisConfig) &&
+ Objects.equals(this.autoRunAgents, analysisCreateRequest.autoRunAgents) &&
Objects.equals(this.binaryConfig, analysisCreateRequest.binaryConfig) &&
- Objects.equals(this.autoRunAgents, analysisCreateRequest.autoRunAgents)&&
+ Objects.equals(this.debugHash, analysisCreateRequest.debugHash) &&
+ Objects.equals(this.filename, analysisCreateRequest.filename) &&
+ Objects.equals(this.sha256Hash, analysisCreateRequest.sha256Hash) &&
+ Objects.equals(this.symbols, analysisCreateRequest.symbols) &&
+ Objects.equals(this.tags, analysisCreateRequest.tags)&&
Objects.equals(this.additionalProperties, analysisCreateRequest.additionalProperties);
}
@@ -359,7 +359,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(filename, sha256Hash, tags, analysisScope, symbols, debugHash, analysisConfig, binaryConfig, autoRunAgents, additionalProperties);
+ return Objects.hash(analysisConfig, analysisScope, autoRunAgents, binaryConfig, debugHash, filename, sha256Hash, symbols, tags, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -373,15 +373,15 @@ private static int hashCodeNullable(JsonNullable a) {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AnalysisCreateRequest {\n");
+ sb.append(" analysisConfig: ").append(toIndentedString(analysisConfig)).append("\n");
+ sb.append(" analysisScope: ").append(toIndentedString(analysisScope)).append("\n");
+ sb.append(" autoRunAgents: ").append(toIndentedString(autoRunAgents)).append("\n");
+ sb.append(" binaryConfig: ").append(toIndentedString(binaryConfig)).append("\n");
+ sb.append(" debugHash: ").append(toIndentedString(debugHash)).append("\n");
sb.append(" filename: ").append(toIndentedString(filename)).append("\n");
sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n");
- sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
- sb.append(" analysisScope: ").append(toIndentedString(analysisScope)).append("\n");
sb.append(" symbols: ").append(toIndentedString(symbols)).append("\n");
- sb.append(" debugHash: ").append(toIndentedString(debugHash)).append("\n");
- sb.append(" analysisConfig: ").append(toIndentedString(analysisConfig)).append("\n");
- sb.append(" binaryConfig: ").append(toIndentedString(binaryConfig)).append("\n");
- sb.append(" autoRunAgents: ").append(toIndentedString(autoRunAgents)).append("\n");
+ sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -404,7 +404,7 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("filename", "sha_256_hash", "tags", "analysis_scope", "symbols", "debug_hash", "analysis_config", "binary_config", "auto_run_agents"));
+ openapiFields = new HashSet(Arrays.asList("analysis_config", "analysis_scope", "auto_run_agents", "binary_config", "debug_hash", "filename", "sha_256_hash", "symbols", "tags"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet(Arrays.asList("filename", "sha_256_hash"));
@@ -430,12 +430,35 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
+ // validate the optional field `analysis_config`
+ if (jsonObj.get("analysis_config") != null && !jsonObj.get("analysis_config").isJsonNull()) {
+ AnalysisConfig.validateJsonElement(jsonObj.get("analysis_config"));
+ }
+ // validate the optional field `analysis_scope`
+ if (jsonObj.get("analysis_scope") != null && !jsonObj.get("analysis_scope").isJsonNull()) {
+ AnalysisScope.validateJsonElement(jsonObj.get("analysis_scope"));
+ }
+ // validate the optional field `auto_run_agents`
+ if (jsonObj.get("auto_run_agents") != null && !jsonObj.get("auto_run_agents").isJsonNull()) {
+ AutoRunAgents.validateJsonElement(jsonObj.get("auto_run_agents"));
+ }
+ // validate the optional field `binary_config`
+ if (jsonObj.get("binary_config") != null && !jsonObj.get("binary_config").isJsonNull()) {
+ BinaryConfig.validateJsonElement(jsonObj.get("binary_config"));
+ }
+ if ((jsonObj.get("debug_hash") != null && !jsonObj.get("debug_hash").isJsonNull()) && !jsonObj.get("debug_hash").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `debug_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("debug_hash").toString()));
+ }
if (!jsonObj.get("filename").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `filename` to be a primitive type in the JSON string but got `%s`", jsonObj.get("filename").toString()));
}
if (!jsonObj.get("sha_256_hash").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha_256_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha_256_hash").toString()));
}
+ // validate the optional field `symbols`
+ if (jsonObj.get("symbols") != null && !jsonObj.get("symbols").isJsonNull()) {
+ Symbols.validateJsonElement(jsonObj.get("symbols"));
+ }
if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) {
JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags");
if (jsonArraytags != null) {
@@ -450,29 +473,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
};
}
}
- // validate the optional field `analysis_scope`
- if (jsonObj.get("analysis_scope") != null && !jsonObj.get("analysis_scope").isJsonNull()) {
- AnalysisScope.validateJsonElement(jsonObj.get("analysis_scope"));
- }
- // validate the optional field `symbols`
- if (jsonObj.get("symbols") != null && !jsonObj.get("symbols").isJsonNull()) {
- Symbols.validateJsonElement(jsonObj.get("symbols"));
- }
- if ((jsonObj.get("debug_hash") != null && !jsonObj.get("debug_hash").isJsonNull()) && !jsonObj.get("debug_hash").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `debug_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("debug_hash").toString()));
- }
- // validate the optional field `analysis_config`
- if (jsonObj.get("analysis_config") != null && !jsonObj.get("analysis_config").isJsonNull()) {
- AnalysisConfig.validateJsonElement(jsonObj.get("analysis_config"));
- }
- // validate the optional field `binary_config`
- if (jsonObj.get("binary_config") != null && !jsonObj.get("binary_config").isJsonNull()) {
- BinaryConfig.validateJsonElement(jsonObj.get("binary_config"));
- }
- // validate the optional field `auto_run_agents`
- if (jsonObj.get("auto_run_agents") != null && !jsonObj.get("auto_run_agents").isJsonNull()) {
- AutoRunAgents.validateJsonElement(jsonObj.get("auto_run_agents"));
- }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/src/main/java/ai/reveng/model/AnalysisDetailResponse.java b/src/main/java/ai/reveng/model/AnalysisDetailResponse.java
index 68c9741..b8eed80 100644
--- a/src/main/java/ai/reveng/model/AnalysisDetailResponse.java
+++ b/src/main/java/ai/reveng/model/AnalysisDetailResponse.java
@@ -76,6 +76,11 @@ public class AnalysisDetailResponse {
@javax.annotation.Nonnull
private String architecture;
+ public static final String SERIALIZED_NAME_AUTO_RUN_AGENTS = "auto_run_agents";
+ @SerializedName(SERIALIZED_NAME_AUTO_RUN_AGENTS)
+ @javax.annotation.Nonnull
+ private AutoRunAgents autoRunAgents;
+
public static final String SERIALIZED_NAME_BINARY_DYNAMIC = "binary_dynamic";
@SerializedName(SERIALIZED_NAME_BINARY_DYNAMIC)
@javax.annotation.Nonnull
@@ -131,11 +136,6 @@ public class AnalysisDetailResponse {
@javax.annotation.Nonnull
private String sha256Hash;
- public static final String SERIALIZED_NAME_AUTO_RUN_AGENTS = "auto_run_agents";
- @SerializedName(SERIALIZED_NAME_AUTO_RUN_AGENTS)
- @javax.annotation.Nonnull
- private AutoRunAgents autoRunAgents;
-
public AnalysisDetailResponse() {
}
@@ -215,6 +215,25 @@ public void setArchitecture(@javax.annotation.Nonnull String architecture) {
}
+ public AnalysisDetailResponse autoRunAgents(@javax.annotation.Nonnull AutoRunAgents autoRunAgents) {
+ this.autoRunAgents = autoRunAgents;
+ return this;
+ }
+
+ /**
+ * Get autoRunAgents
+ * @return autoRunAgents
+ */
+ @javax.annotation.Nonnull
+ public AutoRunAgents getAutoRunAgents() {
+ return autoRunAgents;
+ }
+
+ public void setAutoRunAgents(@javax.annotation.Nonnull AutoRunAgents autoRunAgents) {
+ this.autoRunAgents = autoRunAgents;
+ }
+
+
public AnalysisDetailResponse binaryDynamic(@javax.annotation.Nonnull Boolean binaryDynamic) {
this.binaryDynamic = binaryDynamic;
return this;
@@ -431,25 +450,6 @@ public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) {
this.sha256Hash = sha256Hash;
}
-
- public AnalysisDetailResponse autoRunAgents(@javax.annotation.Nonnull AutoRunAgents autoRunAgents) {
- this.autoRunAgents = autoRunAgents;
- return this;
- }
-
- /**
- * Get autoRunAgents
- * @return autoRunAgents
- */
- @javax.annotation.Nonnull
- public AutoRunAgents getAutoRunAgents() {
- return autoRunAgents;
- }
-
- public void setAutoRunAgents(@javax.annotation.Nonnull AutoRunAgents autoRunAgents) {
- this.autoRunAgents = autoRunAgents;
- }
-
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
@@ -509,6 +509,7 @@ public boolean equals(Object o) {
Objects.equals(this.analysisId, analysisDetailResponse.analysisId) &&
Objects.equals(this.analysisScope, analysisDetailResponse.analysisScope) &&
Objects.equals(this.architecture, analysisDetailResponse.architecture) &&
+ Objects.equals(this.autoRunAgents, analysisDetailResponse.autoRunAgents) &&
Objects.equals(this.binaryDynamic, analysisDetailResponse.binaryDynamic) &&
Objects.equals(this.binaryFormat, analysisDetailResponse.binaryFormat) &&
Objects.equals(this.binaryName, analysisDetailResponse.binaryName) &&
@@ -519,8 +520,7 @@ public boolean equals(Object o) {
Objects.equals(this.debug, analysisDetailResponse.debug) &&
Objects.equals(this.modelName, analysisDetailResponse.modelName) &&
Objects.equals(this.sbom, analysisDetailResponse.sbom) &&
- Objects.equals(this.sha256Hash, analysisDetailResponse.sha256Hash) &&
- Objects.equals(this.autoRunAgents, analysisDetailResponse.autoRunAgents)&&
+ Objects.equals(this.sha256Hash, analysisDetailResponse.sha256Hash)&&
Objects.equals(this.additionalProperties, analysisDetailResponse.additionalProperties);
}
@@ -530,7 +530,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(access, analysisId, analysisScope, architecture, binaryDynamic, binaryFormat, binaryName, binarySize, binaryType, creation, dashboardUrl, debug, modelName, sbom, sha256Hash, autoRunAgents, additionalProperties);
+ return Objects.hash(access, analysisId, analysisScope, architecture, autoRunAgents, binaryDynamic, binaryFormat, binaryName, binarySize, binaryType, creation, dashboardUrl, debug, modelName, sbom, sha256Hash, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -548,6 +548,7 @@ public String toString() {
sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n");
sb.append(" analysisScope: ").append(toIndentedString(analysisScope)).append("\n");
sb.append(" architecture: ").append(toIndentedString(architecture)).append("\n");
+ sb.append(" autoRunAgents: ").append(toIndentedString(autoRunAgents)).append("\n");
sb.append(" binaryDynamic: ").append(toIndentedString(binaryDynamic)).append("\n");
sb.append(" binaryFormat: ").append(toIndentedString(binaryFormat)).append("\n");
sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n");
@@ -559,7 +560,6 @@ public String toString() {
sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n");
sb.append(" sbom: ").append(toIndentedString(sbom)).append("\n");
sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n");
- sb.append(" autoRunAgents: ").append(toIndentedString(autoRunAgents)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -582,10 +582,10 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("access", "analysis_id", "analysis_scope", "architecture", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "dashboard_url", "debug", "model_name", "sbom", "sha_256_hash", "auto_run_agents"));
+ openapiFields = new HashSet(Arrays.asList("access", "analysis_id", "analysis_scope", "architecture", "auto_run_agents", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "dashboard_url", "debug", "model_name", "sbom", "sha_256_hash"));
// a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet(Arrays.asList("access", "analysis_id", "analysis_scope", "architecture", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "dashboard_url", "debug", "model_name", "sha_256_hash", "auto_run_agents"));
+ openapiRequiredFields = new HashSet(Arrays.asList("access", "analysis_id", "analysis_scope", "architecture", "auto_run_agents", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "dashboard_url", "debug", "model_name", "sha_256_hash"));
}
/**
@@ -616,6 +616,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("architecture").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `architecture` to be a primitive type in the JSON string but got `%s`", jsonObj.get("architecture").toString()));
}
+ // validate the required field `auto_run_agents`
+ AutoRunAgents.validateJsonElement(jsonObj.get("auto_run_agents"));
if (!jsonObj.get("binary_format").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binary_format` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binary_format").toString()));
}
@@ -637,8 +639,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("sha_256_hash").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha_256_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha_256_hash").toString()));
}
- // validate the required field `auto_run_agents`
- AutoRunAgents.validateJsonElement(jsonObj.get("auto_run_agents"));
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/src/main/java/ai/reveng/model/AnalysisFunctionMatchingRequest.java b/src/main/java/ai/reveng/model/AnalysisFunctionMatchingRequest.java
index 846158b..b435011 100644
--- a/src/main/java/ai/reveng/model/AnalysisFunctionMatchingRequest.java
+++ b/src/main/java/ai/reveng/model/AnalysisFunctionMatchingRequest.java
@@ -54,20 +54,20 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AnalysisFunctionMatchingRequest {
- public static final String SERIALIZED_NAME_MIN_SIMILARITY = "min_similarity";
- @SerializedName(SERIALIZED_NAME_MIN_SIMILARITY)
- @javax.annotation.Nullable
- private BigDecimal minSimilarity = new BigDecimal("90.0");
-
public static final String SERIALIZED_NAME_FILTERS = "filters";
@SerializedName(SERIALIZED_NAME_FILTERS)
@javax.annotation.Nullable
private FunctionMatchingFilters filters;
- public static final String SERIALIZED_NAME_RESULTS_PER_FUNCTION = "results_per_function";
- @SerializedName(SERIALIZED_NAME_RESULTS_PER_FUNCTION)
+ public static final String SERIALIZED_NAME_MIN_SIMILARITY = "min_similarity";
+ @SerializedName(SERIALIZED_NAME_MIN_SIMILARITY)
@javax.annotation.Nullable
- private Integer resultsPerFunction = 1;
+ private BigDecimal minSimilarity = new BigDecimal("90");
+
+ public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
+ @SerializedName(SERIALIZED_NAME_NO_CACHE)
+ @javax.annotation.Nullable
+ private Boolean noCache = false;
public static final String SERIALIZED_NAME_PAGE = "page";
@Deprecated
@@ -81,17 +81,17 @@ public class AnalysisFunctionMatchingRequest {
@javax.annotation.Nullable
private Integer pageSize = 0;
+ public static final String SERIALIZED_NAME_RESULTS_PER_FUNCTION = "results_per_function";
+ @SerializedName(SERIALIZED_NAME_RESULTS_PER_FUNCTION)
+ @javax.annotation.Nullable
+ private Integer resultsPerFunction = 1;
+
public static final String SERIALIZED_NAME_STATUS_ONLY = "status_only";
@Deprecated
@SerializedName(SERIALIZED_NAME_STATUS_ONLY)
@javax.annotation.Nullable
private Boolean statusOnly = false;
- public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
- @SerializedName(SERIALIZED_NAME_NO_CACHE)
- @javax.annotation.Nullable
- private Boolean noCache = false;
-
public static final String SERIALIZED_NAME_USE_CANONICAL_NAMES = "use_canonical_names";
@SerializedName(SERIALIZED_NAME_USE_CANONICAL_NAMES)
@javax.annotation.Nullable
@@ -100,64 +100,62 @@ public class AnalysisFunctionMatchingRequest {
public AnalysisFunctionMatchingRequest() {
}
- public AnalysisFunctionMatchingRequest minSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
- this.minSimilarity = minSimilarity;
+ public AnalysisFunctionMatchingRequest filters(@javax.annotation.Nullable FunctionMatchingFilters filters) {
+ this.filters = filters;
return this;
}
/**
- * Minimum similarity expected for a match as a percentage, default is 90
- * minimum: 0.0
- * maximum: 100.0
- * @return minSimilarity
+ * Get filters
+ * @return filters
*/
@javax.annotation.Nullable
- public BigDecimal getMinSimilarity() {
- return minSimilarity;
+ public FunctionMatchingFilters getFilters() {
+ return filters;
}
- public void setMinSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
- this.minSimilarity = minSimilarity;
+ public void setFilters(@javax.annotation.Nullable FunctionMatchingFilters filters) {
+ this.filters = filters;
}
- public AnalysisFunctionMatchingRequest filters(@javax.annotation.Nullable FunctionMatchingFilters filters) {
- this.filters = filters;
+ public AnalysisFunctionMatchingRequest minSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
+ this.minSimilarity = minSimilarity;
return this;
}
/**
- * Get filters
- * @return filters
+ * Minimum similarity expected for a match as a percentage, default is 90
+ * minimum: 0
+ * maximum: 100
+ * @return minSimilarity
*/
@javax.annotation.Nullable
- public FunctionMatchingFilters getFilters() {
- return filters;
+ public BigDecimal getMinSimilarity() {
+ return minSimilarity;
}
- public void setFilters(@javax.annotation.Nullable FunctionMatchingFilters filters) {
- this.filters = filters;
+ public void setMinSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
+ this.minSimilarity = minSimilarity;
}
- public AnalysisFunctionMatchingRequest resultsPerFunction(@javax.annotation.Nullable Integer resultsPerFunction) {
- this.resultsPerFunction = resultsPerFunction;
+ public AnalysisFunctionMatchingRequest noCache(@javax.annotation.Nullable Boolean noCache) {
+ this.noCache = noCache;
return this;
}
/**
- * Maximum number of matches to return per function, default is 1, max is 10
- * minimum: 1
- * maximum: 10
- * @return resultsPerFunction
+ * If set to true, forces the system to bypass any cached results and perform a fresh computation
+ * @return noCache
*/
@javax.annotation.Nullable
- public Integer getResultsPerFunction() {
- return resultsPerFunction;
+ public Boolean getNoCache() {
+ return noCache;
}
- public void setResultsPerFunction(@javax.annotation.Nullable Integer resultsPerFunction) {
- this.resultsPerFunction = resultsPerFunction;
+ public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
+ this.noCache = noCache;
}
@@ -210,6 +208,27 @@ public void setPageSize(@javax.annotation.Nullable Integer pageSize) {
}
+ public AnalysisFunctionMatchingRequest resultsPerFunction(@javax.annotation.Nullable Integer resultsPerFunction) {
+ this.resultsPerFunction = resultsPerFunction;
+ return this;
+ }
+
+ /**
+ * Maximum number of matches to return per function, default is 1, max is 10
+ * minimum: 1
+ * maximum: 10
+ * @return resultsPerFunction
+ */
+ @javax.annotation.Nullable
+ public Integer getResultsPerFunction() {
+ return resultsPerFunction;
+ }
+
+ public void setResultsPerFunction(@javax.annotation.Nullable Integer resultsPerFunction) {
+ this.resultsPerFunction = resultsPerFunction;
+ }
+
+
@Deprecated
public AnalysisFunctionMatchingRequest statusOnly(@javax.annotation.Nullable Boolean statusOnly) {
this.statusOnly = statusOnly;
@@ -233,25 +252,6 @@ public void setStatusOnly(@javax.annotation.Nullable Boolean statusOnly) {
}
- public AnalysisFunctionMatchingRequest noCache(@javax.annotation.Nullable Boolean noCache) {
- this.noCache = noCache;
- return this;
- }
-
- /**
- * If set to true, forces the system to bypass any cached results and perform a fresh computation
- * @return noCache
- */
- @javax.annotation.Nullable
- public Boolean getNoCache() {
- return noCache;
- }
-
- public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
- this.noCache = noCache;
- }
-
-
public AnalysisFunctionMatchingRequest useCanonicalNames(@javax.annotation.Nullable Boolean useCanonicalNames) {
this.useCanonicalNames = useCanonicalNames;
return this;
@@ -325,13 +325,13 @@ public boolean equals(Object o) {
return false;
}
AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest = (AnalysisFunctionMatchingRequest) o;
- return Objects.equals(this.minSimilarity, analysisFunctionMatchingRequest.minSimilarity) &&
- Objects.equals(this.filters, analysisFunctionMatchingRequest.filters) &&
- Objects.equals(this.resultsPerFunction, analysisFunctionMatchingRequest.resultsPerFunction) &&
+ return Objects.equals(this.filters, analysisFunctionMatchingRequest.filters) &&
+ Objects.equals(this.minSimilarity, analysisFunctionMatchingRequest.minSimilarity) &&
+ Objects.equals(this.noCache, analysisFunctionMatchingRequest.noCache) &&
Objects.equals(this.page, analysisFunctionMatchingRequest.page) &&
Objects.equals(this.pageSize, analysisFunctionMatchingRequest.pageSize) &&
+ Objects.equals(this.resultsPerFunction, analysisFunctionMatchingRequest.resultsPerFunction) &&
Objects.equals(this.statusOnly, analysisFunctionMatchingRequest.statusOnly) &&
- Objects.equals(this.noCache, analysisFunctionMatchingRequest.noCache) &&
Objects.equals(this.useCanonicalNames, analysisFunctionMatchingRequest.useCanonicalNames)&&
Objects.equals(this.additionalProperties, analysisFunctionMatchingRequest.additionalProperties);
}
@@ -342,7 +342,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(minSimilarity, filters, resultsPerFunction, page, pageSize, statusOnly, noCache, useCanonicalNames, additionalProperties);
+ return Objects.hash(filters, minSimilarity, noCache, page, pageSize, resultsPerFunction, statusOnly, useCanonicalNames, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -356,13 +356,13 @@ private static int hashCodeNullable(JsonNullable a) {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AnalysisFunctionMatchingRequest {\n");
- sb.append(" minSimilarity: ").append(toIndentedString(minSimilarity)).append("\n");
sb.append(" filters: ").append(toIndentedString(filters)).append("\n");
- sb.append(" resultsPerFunction: ").append(toIndentedString(resultsPerFunction)).append("\n");
+ sb.append(" minSimilarity: ").append(toIndentedString(minSimilarity)).append("\n");
+ sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
+ sb.append(" resultsPerFunction: ").append(toIndentedString(resultsPerFunction)).append("\n");
sb.append(" statusOnly: ").append(toIndentedString(statusOnly)).append("\n");
- sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n");
sb.append(" useCanonicalNames: ").append(toIndentedString(useCanonicalNames)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
@@ -386,7 +386,7 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("min_similarity", "filters", "results_per_function", "page", "page_size", "status_only", "no_cache", "use_canonical_names"));
+ openapiFields = new HashSet(Arrays.asList("filters", "min_similarity", "no_cache", "page", "page_size", "results_per_function", "status_only", "use_canonical_names"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet(0);
diff --git a/src/main/java/ai/reveng/model/AnalysisRecord.java b/src/main/java/ai/reveng/model/AnalysisRecord.java
index b6e5b26..9d5a86b 100644
--- a/src/main/java/ai/reveng/model/AnalysisRecord.java
+++ b/src/main/java/ai/reveng/model/AnalysisRecord.java
@@ -68,60 +68,30 @@ public class AnalysisRecord {
@javax.annotation.Nonnull
private String analysisScope;
+ public static final String SERIALIZED_NAME_BASE_ADDRESS = "base_address";
+ @SerializedName(SERIALIZED_NAME_BASE_ADDRESS)
+ @javax.annotation.Nonnull
+ private BigInteger baseAddress;
+
public static final String SERIALIZED_NAME_BINARY_ID = "binary_id";
@SerializedName(SERIALIZED_NAME_BINARY_ID)
@javax.annotation.Nonnull
private Integer binaryId;
- public static final String SERIALIZED_NAME_MODEL_ID = "model_id";
- @SerializedName(SERIALIZED_NAME_MODEL_ID)
- @javax.annotation.Nonnull
- private Integer modelId;
-
- public static final String SERIALIZED_NAME_MODEL_NAME = "model_name";
- @SerializedName(SERIALIZED_NAME_MODEL_NAME)
- @javax.annotation.Nonnull
- private String modelName;
-
- public static final String SERIALIZED_NAME_STATUS = "status";
- @SerializedName(SERIALIZED_NAME_STATUS)
- @javax.annotation.Nonnull
- private String status;
-
- public static final String SERIALIZED_NAME_CREATION = "creation";
- @SerializedName(SERIALIZED_NAME_CREATION)
- @javax.annotation.Nonnull
- private OffsetDateTime creation;
-
- public static final String SERIALIZED_NAME_IS_OWNER = "is_owner";
- @SerializedName(SERIALIZED_NAME_IS_OWNER)
- @javax.annotation.Nonnull
- private Boolean isOwner;
-
public static final String SERIALIZED_NAME_BINARY_NAME = "binary_name";
@SerializedName(SERIALIZED_NAME_BINARY_NAME)
@javax.annotation.Nonnull
private String binaryName;
- public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash";
- @SerializedName(SERIALIZED_NAME_SHA256_HASH)
- @javax.annotation.Nonnull
- private String sha256Hash;
-
- public static final String SERIALIZED_NAME_FUNCTION_BOUNDARIES_HASH = "function_boundaries_hash";
- @SerializedName(SERIALIZED_NAME_FUNCTION_BOUNDARIES_HASH)
- @javax.annotation.Nonnull
- private String functionBoundariesHash;
-
public static final String SERIALIZED_NAME_BINARY_SIZE = "binary_size";
@SerializedName(SERIALIZED_NAME_BINARY_SIZE)
@javax.annotation.Nonnull
private Integer binarySize;
- public static final String SERIALIZED_NAME_USERNAME = "username";
- @SerializedName(SERIALIZED_NAME_USERNAME)
+ public static final String SERIALIZED_NAME_CREATION = "creation";
+ @SerializedName(SERIALIZED_NAME_CREATION)
@javax.annotation.Nonnull
- private String username;
+ private OffsetDateTime creation;
public static final String SERIALIZED_NAME_DYNAMIC_EXECUTION_STATUS = "dynamic_execution_status";
@SerializedName(SERIALIZED_NAME_DYNAMIC_EXECUTION_STATUS)
@@ -133,16 +103,46 @@ public class AnalysisRecord {
@javax.annotation.Nullable
private Integer dynamicExecutionTaskId;
- public static final String SERIALIZED_NAME_BASE_ADDRESS = "base_address";
- @SerializedName(SERIALIZED_NAME_BASE_ADDRESS)
+ public static final String SERIALIZED_NAME_FUNCTION_BOUNDARIES_HASH = "function_boundaries_hash";
+ @SerializedName(SERIALIZED_NAME_FUNCTION_BOUNDARIES_HASH)
@javax.annotation.Nonnull
- private BigInteger baseAddress;
+ private String functionBoundariesHash;
+
+ public static final String SERIALIZED_NAME_IS_OWNER = "is_owner";
+ @SerializedName(SERIALIZED_NAME_IS_OWNER)
+ @javax.annotation.Nonnull
+ private Boolean isOwner;
+
+ public static final String SERIALIZED_NAME_MODEL_ID = "model_id";
+ @SerializedName(SERIALIZED_NAME_MODEL_ID)
+ @javax.annotation.Nonnull
+ private Integer modelId;
+
+ public static final String SERIALIZED_NAME_MODEL_NAME = "model_name";
+ @SerializedName(SERIALIZED_NAME_MODEL_NAME)
+ @javax.annotation.Nonnull
+ private String modelName;
+
+ public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash";
+ @SerializedName(SERIALIZED_NAME_SHA256_HASH)
+ @javax.annotation.Nonnull
+ private String sha256Hash;
+
+ public static final String SERIALIZED_NAME_STATUS = "status";
+ @SerializedName(SERIALIZED_NAME_STATUS)
+ @javax.annotation.Nonnull
+ private String status;
public static final String SERIALIZED_NAME_TAGS = "tags";
@SerializedName(SERIALIZED_NAME_TAGS)
@javax.annotation.Nullable
private List tags = new ArrayList<>();
+ public static final String SERIALIZED_NAME_USERNAME = "username";
+ @SerializedName(SERIALIZED_NAME_USERNAME)
+ @javax.annotation.Nonnull
+ private String username;
+
public AnalysisRecord() {
}
@@ -184,79 +184,79 @@ public void setAnalysisScope(@javax.annotation.Nonnull String analysisScope) {
}
- public AnalysisRecord binaryId(@javax.annotation.Nonnull Integer binaryId) {
- this.binaryId = binaryId;
+ public AnalysisRecord baseAddress(@javax.annotation.Nonnull BigInteger baseAddress) {
+ this.baseAddress = baseAddress;
return this;
}
/**
- * ID to identify the binary analyse
- * @return binaryId
+ * The base address of the binary
+ * @return baseAddress
*/
@javax.annotation.Nonnull
- public Integer getBinaryId() {
- return binaryId;
+ public BigInteger getBaseAddress() {
+ return baseAddress;
}
- public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) {
- this.binaryId = binaryId;
+ public void setBaseAddress(@javax.annotation.Nonnull BigInteger baseAddress) {
+ this.baseAddress = baseAddress;
}
- public AnalysisRecord modelId(@javax.annotation.Nonnull Integer modelId) {
- this.modelId = modelId;
+ public AnalysisRecord binaryId(@javax.annotation.Nonnull Integer binaryId) {
+ this.binaryId = binaryId;
return this;
}
/**
- * ID to identify the model used for analysis
- * @return modelId
+ * ID to identify the binary analyse
+ * @return binaryId
*/
@javax.annotation.Nonnull
- public Integer getModelId() {
- return modelId;
+ public Integer getBinaryId() {
+ return binaryId;
}
- public void setModelId(@javax.annotation.Nonnull Integer modelId) {
- this.modelId = modelId;
+ public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) {
+ this.binaryId = binaryId;
}
- public AnalysisRecord modelName(@javax.annotation.Nonnull String modelName) {
- this.modelName = modelName;
+ public AnalysisRecord binaryName(@javax.annotation.Nonnull String binaryName) {
+ this.binaryName = binaryName;
return this;
}
/**
- * Name of the model used for analysis
- * @return modelName
+ * The name of the file uploaded
+ * @return binaryName
*/
@javax.annotation.Nonnull
- public String getModelName() {
- return modelName;
+ public String getBinaryName() {
+ return binaryName;
}
- public void setModelName(@javax.annotation.Nonnull String modelName) {
- this.modelName = modelName;
+ public void setBinaryName(@javax.annotation.Nonnull String binaryName) {
+ this.binaryName = binaryName;
}
- public AnalysisRecord status(@javax.annotation.Nonnull String status) {
- this.status = status;
+ public AnalysisRecord binarySize(@javax.annotation.Nonnull Integer binarySize) {
+ this.binarySize = binarySize;
return this;
}
/**
- * The current status of analysis
- * @return status
+ * The size of the binary
+ * @return binarySize
*/
@javax.annotation.Nonnull
- public String getStatus() {
- return status;
+ public Integer getBinarySize() {
+ return binarySize;
}
- public void setStatus(@javax.annotation.Nonnull String status) {
- this.status = status;
+ public void setBinarySize(@javax.annotation.Nonnull Integer binarySize) {
+ this.binarySize = binarySize;
}
@@ -279,60 +279,41 @@ public void setCreation(@javax.annotation.Nonnull OffsetDateTime creation) {
}
- public AnalysisRecord isOwner(@javax.annotation.Nonnull Boolean isOwner) {
- this.isOwner = isOwner;
- return this;
- }
-
- /**
- * Whether the current user is the owner of a binary
- * @return isOwner
- */
- @javax.annotation.Nonnull
- public Boolean getIsOwner() {
- return isOwner;
- }
-
- public void setIsOwner(@javax.annotation.Nonnull Boolean isOwner) {
- this.isOwner = isOwner;
- }
-
-
- public AnalysisRecord binaryName(@javax.annotation.Nonnull String binaryName) {
- this.binaryName = binaryName;
+ public AnalysisRecord dynamicExecutionStatus(@javax.annotation.Nullable AppApiRestV2AnalysesEnumsDynamicExecutionStatus dynamicExecutionStatus) {
+ this.dynamicExecutionStatus = dynamicExecutionStatus;
return this;
}
/**
- * The name of the file uploaded
- * @return binaryName
+ * Get dynamicExecutionStatus
+ * @return dynamicExecutionStatus
*/
- @javax.annotation.Nonnull
- public String getBinaryName() {
- return binaryName;
+ @javax.annotation.Nullable
+ public AppApiRestV2AnalysesEnumsDynamicExecutionStatus getDynamicExecutionStatus() {
+ return dynamicExecutionStatus;
}
- public void setBinaryName(@javax.annotation.Nonnull String binaryName) {
- this.binaryName = binaryName;
+ public void setDynamicExecutionStatus(@javax.annotation.Nullable AppApiRestV2AnalysesEnumsDynamicExecutionStatus dynamicExecutionStatus) {
+ this.dynamicExecutionStatus = dynamicExecutionStatus;
}
- public AnalysisRecord sha256Hash(@javax.annotation.Nonnull String sha256Hash) {
- this.sha256Hash = sha256Hash;
+ public AnalysisRecord dynamicExecutionTaskId(@javax.annotation.Nullable Integer dynamicExecutionTaskId) {
+ this.dynamicExecutionTaskId = dynamicExecutionTaskId;
return this;
}
/**
- * The hash of the binary
- * @return sha256Hash
+ * Get dynamicExecutionTaskId
+ * @return dynamicExecutionTaskId
*/
- @javax.annotation.Nonnull
- public String getSha256Hash() {
- return sha256Hash;
+ @javax.annotation.Nullable
+ public Integer getDynamicExecutionTaskId() {
+ return dynamicExecutionTaskId;
}
- public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) {
- this.sha256Hash = sha256Hash;
+ public void setDynamicExecutionTaskId(@javax.annotation.Nullable Integer dynamicExecutionTaskId) {
+ this.dynamicExecutionTaskId = dynamicExecutionTaskId;
}
@@ -355,98 +336,98 @@ public void setFunctionBoundariesHash(@javax.annotation.Nonnull String functionB
}
- public AnalysisRecord binarySize(@javax.annotation.Nonnull Integer binarySize) {
- this.binarySize = binarySize;
+ public AnalysisRecord isOwner(@javax.annotation.Nonnull Boolean isOwner) {
+ this.isOwner = isOwner;
return this;
}
/**
- * The size of the binary
- * @return binarySize
+ * Whether the current user is the owner of a binary
+ * @return isOwner
*/
@javax.annotation.Nonnull
- public Integer getBinarySize() {
- return binarySize;
+ public Boolean getIsOwner() {
+ return isOwner;
}
- public void setBinarySize(@javax.annotation.Nonnull Integer binarySize) {
- this.binarySize = binarySize;
+ public void setIsOwner(@javax.annotation.Nonnull Boolean isOwner) {
+ this.isOwner = isOwner;
}
- public AnalysisRecord username(@javax.annotation.Nonnull String username) {
- this.username = username;
+ public AnalysisRecord modelId(@javax.annotation.Nonnull Integer modelId) {
+ this.modelId = modelId;
return this;
}
/**
- * The username of the analysis owner
- * @return username
+ * ID to identify the model used for analysis
+ * @return modelId
*/
@javax.annotation.Nonnull
- public String getUsername() {
- return username;
+ public Integer getModelId() {
+ return modelId;
}
- public void setUsername(@javax.annotation.Nonnull String username) {
- this.username = username;
+ public void setModelId(@javax.annotation.Nonnull Integer modelId) {
+ this.modelId = modelId;
}
- public AnalysisRecord dynamicExecutionStatus(@javax.annotation.Nullable AppApiRestV2AnalysesEnumsDynamicExecutionStatus dynamicExecutionStatus) {
- this.dynamicExecutionStatus = dynamicExecutionStatus;
+ public AnalysisRecord modelName(@javax.annotation.Nonnull String modelName) {
+ this.modelName = modelName;
return this;
}
/**
- * Get dynamicExecutionStatus
- * @return dynamicExecutionStatus
+ * Name of the model used for analysis
+ * @return modelName
*/
- @javax.annotation.Nullable
- public AppApiRestV2AnalysesEnumsDynamicExecutionStatus getDynamicExecutionStatus() {
- return dynamicExecutionStatus;
+ @javax.annotation.Nonnull
+ public String getModelName() {
+ return modelName;
}
- public void setDynamicExecutionStatus(@javax.annotation.Nullable AppApiRestV2AnalysesEnumsDynamicExecutionStatus dynamicExecutionStatus) {
- this.dynamicExecutionStatus = dynamicExecutionStatus;
+ public void setModelName(@javax.annotation.Nonnull String modelName) {
+ this.modelName = modelName;
}
- public AnalysisRecord dynamicExecutionTaskId(@javax.annotation.Nullable Integer dynamicExecutionTaskId) {
- this.dynamicExecutionTaskId = dynamicExecutionTaskId;
+ public AnalysisRecord sha256Hash(@javax.annotation.Nonnull String sha256Hash) {
+ this.sha256Hash = sha256Hash;
return this;
}
/**
- * Get dynamicExecutionTaskId
- * @return dynamicExecutionTaskId
+ * The hash of the binary
+ * @return sha256Hash
*/
- @javax.annotation.Nullable
- public Integer getDynamicExecutionTaskId() {
- return dynamicExecutionTaskId;
+ @javax.annotation.Nonnull
+ public String getSha256Hash() {
+ return sha256Hash;
}
- public void setDynamicExecutionTaskId(@javax.annotation.Nullable Integer dynamicExecutionTaskId) {
- this.dynamicExecutionTaskId = dynamicExecutionTaskId;
+ public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) {
+ this.sha256Hash = sha256Hash;
}
- public AnalysisRecord baseAddress(@javax.annotation.Nonnull BigInteger baseAddress) {
- this.baseAddress = baseAddress;
+ public AnalysisRecord status(@javax.annotation.Nonnull String status) {
+ this.status = status;
return this;
}
/**
- * The base address of the binary
- * @return baseAddress
+ * The current status of analysis
+ * @return status
*/
@javax.annotation.Nonnull
- public BigInteger getBaseAddress() {
- return baseAddress;
+ public String getStatus() {
+ return status;
}
- public void setBaseAddress(@javax.annotation.Nonnull BigInteger baseAddress) {
- this.baseAddress = baseAddress;
+ public void setStatus(@javax.annotation.Nonnull String status) {
+ this.status = status;
}
@@ -476,6 +457,25 @@ public void setTags(@javax.annotation.Nullable List tags) {
this.tags = tags;
}
+
+ public AnalysisRecord username(@javax.annotation.Nonnull String username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * The username of the analysis owner
+ * @return username
+ */
+ @javax.annotation.Nonnull
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(@javax.annotation.Nonnull String username) {
+ this.username = username;
+ }
+
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
@@ -533,21 +533,21 @@ public boolean equals(Object o) {
AnalysisRecord analysisRecord = (AnalysisRecord) o;
return Objects.equals(this.analysisId, analysisRecord.analysisId) &&
Objects.equals(this.analysisScope, analysisRecord.analysisScope) &&
+ Objects.equals(this.baseAddress, analysisRecord.baseAddress) &&
Objects.equals(this.binaryId, analysisRecord.binaryId) &&
- Objects.equals(this.modelId, analysisRecord.modelId) &&
- Objects.equals(this.modelName, analysisRecord.modelName) &&
- Objects.equals(this.status, analysisRecord.status) &&
- Objects.equals(this.creation, analysisRecord.creation) &&
- Objects.equals(this.isOwner, analysisRecord.isOwner) &&
Objects.equals(this.binaryName, analysisRecord.binaryName) &&
- Objects.equals(this.sha256Hash, analysisRecord.sha256Hash) &&
- Objects.equals(this.functionBoundariesHash, analysisRecord.functionBoundariesHash) &&
Objects.equals(this.binarySize, analysisRecord.binarySize) &&
- Objects.equals(this.username, analysisRecord.username) &&
+ Objects.equals(this.creation, analysisRecord.creation) &&
Objects.equals(this.dynamicExecutionStatus, analysisRecord.dynamicExecutionStatus) &&
Objects.equals(this.dynamicExecutionTaskId, analysisRecord.dynamicExecutionTaskId) &&
- Objects.equals(this.baseAddress, analysisRecord.baseAddress) &&
- Objects.equals(this.tags, analysisRecord.tags)&&
+ Objects.equals(this.functionBoundariesHash, analysisRecord.functionBoundariesHash) &&
+ Objects.equals(this.isOwner, analysisRecord.isOwner) &&
+ Objects.equals(this.modelId, analysisRecord.modelId) &&
+ Objects.equals(this.modelName, analysisRecord.modelName) &&
+ Objects.equals(this.sha256Hash, analysisRecord.sha256Hash) &&
+ Objects.equals(this.status, analysisRecord.status) &&
+ Objects.equals(this.tags, analysisRecord.tags) &&
+ Objects.equals(this.username, analysisRecord.username)&&
Objects.equals(this.additionalProperties, analysisRecord.additionalProperties);
}
@@ -557,7 +557,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(analysisId, analysisScope, binaryId, modelId, modelName, status, creation, isOwner, binaryName, sha256Hash, functionBoundariesHash, binarySize, username, dynamicExecutionStatus, dynamicExecutionTaskId, baseAddress, tags, additionalProperties);
+ return Objects.hash(analysisId, analysisScope, baseAddress, binaryId, binaryName, binarySize, creation, dynamicExecutionStatus, dynamicExecutionTaskId, functionBoundariesHash, isOwner, modelId, modelName, sha256Hash, status, tags, username, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -573,21 +573,21 @@ public String toString() {
sb.append("class AnalysisRecord {\n");
sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n");
sb.append(" analysisScope: ").append(toIndentedString(analysisScope)).append("\n");
+ sb.append(" baseAddress: ").append(toIndentedString(baseAddress)).append("\n");
sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n");
- sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n");
- sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n");
- sb.append(" status: ").append(toIndentedString(status)).append("\n");
- sb.append(" creation: ").append(toIndentedString(creation)).append("\n");
- sb.append(" isOwner: ").append(toIndentedString(isOwner)).append("\n");
sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n");
- sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n");
- sb.append(" functionBoundariesHash: ").append(toIndentedString(functionBoundariesHash)).append("\n");
sb.append(" binarySize: ").append(toIndentedString(binarySize)).append("\n");
- sb.append(" username: ").append(toIndentedString(username)).append("\n");
+ sb.append(" creation: ").append(toIndentedString(creation)).append("\n");
sb.append(" dynamicExecutionStatus: ").append(toIndentedString(dynamicExecutionStatus)).append("\n");
sb.append(" dynamicExecutionTaskId: ").append(toIndentedString(dynamicExecutionTaskId)).append("\n");
- sb.append(" baseAddress: ").append(toIndentedString(baseAddress)).append("\n");
+ sb.append(" functionBoundariesHash: ").append(toIndentedString(functionBoundariesHash)).append("\n");
+ sb.append(" isOwner: ").append(toIndentedString(isOwner)).append("\n");
+ sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n");
+ sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n");
+ sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
+ sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -610,10 +610,10 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("analysis_id", "analysis_scope", "binary_id", "model_id", "model_name", "status", "creation", "is_owner", "binary_name", "sha_256_hash", "function_boundaries_hash", "binary_size", "username", "dynamic_execution_status", "dynamic_execution_task_id", "base_address", "tags"));
+ openapiFields = new HashSet(Arrays.asList("analysis_id", "analysis_scope", "base_address", "binary_id", "binary_name", "binary_size", "creation", "dynamic_execution_status", "dynamic_execution_task_id", "function_boundaries_hash", "is_owner", "model_id", "model_name", "sha_256_hash", "status", "tags", "username"));
// a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet(Arrays.asList("analysis_id", "analysis_scope", "binary_id", "model_id", "model_name", "status", "creation", "is_owner", "binary_name", "sha_256_hash", "function_boundaries_hash", "binary_size", "username", "base_address"));
+ openapiRequiredFields = new HashSet(Arrays.asList("analysis_id", "analysis_scope", "base_address", "binary_id", "binary_name", "binary_size", "creation", "function_boundaries_hash", "is_owner", "model_id", "model_name", "sha_256_hash", "status", "username"));
}
/**
@@ -639,27 +639,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("analysis_scope").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `analysis_scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("analysis_scope").toString()));
}
- if (!jsonObj.get("model_name").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `model_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("model_name").toString()));
- }
- if (!jsonObj.get("status").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString()));
- }
if (!jsonObj.get("binary_name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binary_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binary_name").toString()));
}
- if (!jsonObj.get("sha_256_hash").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha_256_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha_256_hash").toString()));
+ // validate the optional field `dynamic_execution_status`
+ if (jsonObj.get("dynamic_execution_status") != null && !jsonObj.get("dynamic_execution_status").isJsonNull()) {
+ AppApiRestV2AnalysesEnumsDynamicExecutionStatus.validateJsonElement(jsonObj.get("dynamic_execution_status"));
}
if (!jsonObj.get("function_boundaries_hash").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_boundaries_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_boundaries_hash").toString()));
}
- if (!jsonObj.get("username").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString()));
+ if (!jsonObj.get("model_name").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `model_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("model_name").toString()));
}
- // validate the optional field `dynamic_execution_status`
- if (jsonObj.get("dynamic_execution_status") != null && !jsonObj.get("dynamic_execution_status").isJsonNull()) {
- AppApiRestV2AnalysesEnumsDynamicExecutionStatus.validateJsonElement(jsonObj.get("dynamic_execution_status"));
+ if (!jsonObj.get("sha_256_hash").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha_256_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha_256_hash").toString()));
+ }
+ if (!jsonObj.get("status").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString()));
}
if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) {
JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags");
@@ -675,6 +672,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
};
}
}
+ if (!jsonObj.get("username").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString()));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/src/main/java/ai/reveng/model/AnalysisStringInput.java b/src/main/java/ai/reveng/model/AnalysisStringInput.java
new file mode 100644
index 0000000..340b259
--- /dev/null
+++ b/src/main/java/ai/reveng/model/AnalysisStringInput.java
@@ -0,0 +1,349 @@
+/*
+ * RevEng.AI API
+ * RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal.
+ *
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package ai.reveng.model;
+
+import java.util.Objects;
+import java.util.Locale;
+import ai.reveng.model.StringSource;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.util.Arrays;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.TypeAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.Locale;
+
+import ai.reveng.invoker.JSON;
+
+/**
+ * Input model for inserting a string into an analysis.
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class AnalysisStringInput {
+ public static final String SERIALIZED_NAME_SOURCE = "source";
+ @SerializedName(SERIALIZED_NAME_SOURCE)
+ @javax.annotation.Nonnull
+ private StringSource source;
+
+ public static final String SERIALIZED_NAME_VADDR = "vaddr";
+ @SerializedName(SERIALIZED_NAME_VADDR)
+ @javax.annotation.Nonnull
+ private Integer vaddr;
+
+ public static final String SERIALIZED_NAME_VALUE = "value";
+ @SerializedName(SERIALIZED_NAME_VALUE)
+ @javax.annotation.Nonnull
+ private String value;
+
+ public AnalysisStringInput() {
+ }
+
+ public AnalysisStringInput source(@javax.annotation.Nonnull StringSource source) {
+ this.source = source;
+ return this;
+ }
+
+ /**
+ * The source of the string
+ * @return source
+ */
+ @javax.annotation.Nonnull
+ public StringSource getSource() {
+ return source;
+ }
+
+ public void setSource(@javax.annotation.Nonnull StringSource source) {
+ this.source = source;
+ }
+
+
+ public AnalysisStringInput vaddr(@javax.annotation.Nonnull Integer vaddr) {
+ this.vaddr = vaddr;
+ return this;
+ }
+
+ /**
+ * The virtual address of the string
+ * @return vaddr
+ */
+ @javax.annotation.Nonnull
+ public Integer getVaddr() {
+ return vaddr;
+ }
+
+ public void setVaddr(@javax.annotation.Nonnull Integer vaddr) {
+ this.vaddr = vaddr;
+ }
+
+
+ public AnalysisStringInput value(@javax.annotation.Nonnull String value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * The string literal value
+ * @return value
+ */
+ @javax.annotation.Nonnull
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(@javax.annotation.Nonnull String value) {
+ this.value = value;
+ }
+
+ /**
+ * A container for additional, undeclared properties.
+ * This is a holder for any undeclared properties as specified with
+ * the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value.
+ * If the property does not already exist, create it otherwise replace it.
+ *
+ * @param key name of the property
+ * @param value value of the property
+ * @return the AnalysisStringInput instance itself
+ */
+ public AnalysisStringInput putAdditionalProperty(String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return a map of objects
+ */
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key name of the property
+ * @return an object
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AnalysisStringInput analysisStringInput = (AnalysisStringInput) o;
+ return Objects.equals(this.source, analysisStringInput.source) &&
+ Objects.equals(this.vaddr, analysisStringInput.vaddr) &&
+ Objects.equals(this.value, analysisStringInput.value)&&
+ Objects.equals(this.additionalProperties, analysisStringInput.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(source, vaddr, value, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AnalysisStringInput {\n");
+ sb.append(" source: ").append(toIndentedString(source)).append("\n");
+ sb.append(" vaddr: ").append(toIndentedString(vaddr)).append("\n");
+ sb.append(" value: ").append(toIndentedString(value)).append("\n");
+ sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet(Arrays.asList("source", "vaddr", "value"));
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet(Arrays.asList("source", "vaddr", "value"));
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AnalysisStringInput
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!AnalysisStringInput.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AnalysisStringInput is not found in the empty JSON string", AnalysisStringInput.openapiRequiredFields.toString()));
+ }
+ }
+
+ // check to make sure all required properties/fields are present in the JSON string
+ for (String requiredField : AnalysisStringInput.openapiRequiredFields) {
+ if (jsonElement.getAsJsonObject().get(requiredField) == null) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ // validate the required field `source`
+ StringSource.validateJsonElement(jsonObj.get("source"));
+ if (!jsonObj.get("value").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!AnalysisStringInput.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AnalysisStringInput' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AnalysisStringInput.class));
+
+ return (TypeAdapter) new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, AnalysisStringInput value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ obj.remove("additionalProperties");
+ // serialize additional properties
+ if (value.getAdditionalProperties() != null) {
+ for (Map.Entry entry : value.getAdditionalProperties().entrySet()) {
+ if (entry.getValue() instanceof String)
+ obj.addProperty(entry.getKey(), (String) entry.getValue());
+ else if (entry.getValue() instanceof Number)
+ obj.addProperty(entry.getKey(), (Number) entry.getValue());
+ else if (entry.getValue() instanceof Boolean)
+ obj.addProperty(entry.getKey(), (Boolean) entry.getValue());
+ else if (entry.getValue() instanceof Character)
+ obj.addProperty(entry.getKey(), (Character) entry.getValue());
+ else {
+ JsonElement jsonElement = gson.toJsonTree(entry.getValue());
+ if (jsonElement.isJsonArray()) {
+ obj.add(entry.getKey(), jsonElement.getAsJsonArray());
+ } else {
+ obj.add(entry.getKey(), jsonElement.getAsJsonObject());
+ }
+ }
+ }
+ }
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public AnalysisStringInput read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ // store additional fields in the deserialized instance
+ AnalysisStringInput instance = thisAdapter.fromJsonTree(jsonObj);
+ for (Map.Entry entry : jsonObj.entrySet()) {
+ if (!openapiFields.contains(entry.getKey())) {
+ if (entry.getValue().isJsonPrimitive()) { // primitive type
+ if (entry.getValue().getAsJsonPrimitive().isString())
+ instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString());
+ else if (entry.getValue().getAsJsonPrimitive().isNumber())
+ instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber());
+ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
+ instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean());
+ else
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString()));
+ } else if (entry.getValue().isJsonArray()) {
+ instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class));
+ } else { // JSON object
+ instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class));
+ }
+ }
+ }
+ return instance;
+ }
+
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of AnalysisStringInput given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AnalysisStringInput
+ * @throws IOException if the JSON string is invalid with respect to AnalysisStringInput
+ */
+ public static AnalysisStringInput fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AnalysisStringInput.class);
+ }
+
+ /**
+ * Convert an instance of AnalysisStringInput to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
+
diff --git a/src/main/java/ai/reveng/model/AnalysisUpdateRequest.java b/src/main/java/ai/reveng/model/AnalysisUpdateRequest.java
index 2de834f..566028e 100644
--- a/src/main/java/ai/reveng/model/AnalysisUpdateRequest.java
+++ b/src/main/java/ai/reveng/model/AnalysisUpdateRequest.java
@@ -52,11 +52,6 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AnalysisUpdateRequest {
- public static final String SERIALIZED_NAME_BINARY_NAME = "binary_name";
- @SerializedName(SERIALIZED_NAME_BINARY_NAME)
- @javax.annotation.Nullable
- private String binaryName;
-
/**
* Gets or Sets analysisScope
*/
@@ -114,44 +109,49 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
@javax.annotation.Nullable
private AnalysisScopeEnum analysisScope;
+ public static final String SERIALIZED_NAME_BINARY_NAME = "binary_name";
+ @SerializedName(SERIALIZED_NAME_BINARY_NAME)
+ @javax.annotation.Nullable
+ private String binaryName;
+
public AnalysisUpdateRequest() {
}
- public AnalysisUpdateRequest binaryName(@javax.annotation.Nullable String binaryName) {
- this.binaryName = binaryName;
+ public AnalysisUpdateRequest analysisScope(@javax.annotation.Nullable AnalysisScopeEnum analysisScope) {
+ this.analysisScope = analysisScope;
return this;
}
/**
- * Get binaryName
- * @return binaryName
+ * Get analysisScope
+ * @return analysisScope
*/
@javax.annotation.Nullable
- public String getBinaryName() {
- return binaryName;
+ public AnalysisScopeEnum getAnalysisScope() {
+ return analysisScope;
}
- public void setBinaryName(@javax.annotation.Nullable String binaryName) {
- this.binaryName = binaryName;
+ public void setAnalysisScope(@javax.annotation.Nullable AnalysisScopeEnum analysisScope) {
+ this.analysisScope = analysisScope;
}
- public AnalysisUpdateRequest analysisScope(@javax.annotation.Nullable AnalysisScopeEnum analysisScope) {
- this.analysisScope = analysisScope;
+ public AnalysisUpdateRequest binaryName(@javax.annotation.Nullable String binaryName) {
+ this.binaryName = binaryName;
return this;
}
/**
- * Get analysisScope
- * @return analysisScope
+ * Get binaryName
+ * @return binaryName
*/
@javax.annotation.Nullable
- public AnalysisScopeEnum getAnalysisScope() {
- return analysisScope;
+ public String getBinaryName() {
+ return binaryName;
}
- public void setAnalysisScope(@javax.annotation.Nullable AnalysisScopeEnum analysisScope) {
- this.analysisScope = analysisScope;
+ public void setBinaryName(@javax.annotation.Nullable String binaryName) {
+ this.binaryName = binaryName;
}
/**
@@ -209,8 +209,8 @@ public boolean equals(Object o) {
return false;
}
AnalysisUpdateRequest analysisUpdateRequest = (AnalysisUpdateRequest) o;
- return Objects.equals(this.binaryName, analysisUpdateRequest.binaryName) &&
- Objects.equals(this.analysisScope, analysisUpdateRequest.analysisScope)&&
+ return Objects.equals(this.analysisScope, analysisUpdateRequest.analysisScope) &&
+ Objects.equals(this.binaryName, analysisUpdateRequest.binaryName)&&
Objects.equals(this.additionalProperties, analysisUpdateRequest.additionalProperties);
}
@@ -220,7 +220,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(binaryName, analysisScope, additionalProperties);
+ return Objects.hash(analysisScope, binaryName, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -234,8 +234,8 @@ private static int hashCodeNullable(JsonNullable a) {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AnalysisUpdateRequest {\n");
- sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n");
sb.append(" analysisScope: ").append(toIndentedString(analysisScope)).append("\n");
+ sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -258,7 +258,7 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("binary_name", "analysis_scope"));
+ openapiFields = new HashSet(Arrays.asList("analysis_scope", "binary_name"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet(0);
@@ -277,9 +277,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
- if ((jsonObj.get("binary_name") != null && !jsonObj.get("binary_name").isJsonNull()) && !jsonObj.get("binary_name").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binary_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binary_name").toString()));
- }
if ((jsonObj.get("analysis_scope") != null && !jsonObj.get("analysis_scope").isJsonNull()) && !jsonObj.get("analysis_scope").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `analysis_scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("analysis_scope").toString()));
}
@@ -287,6 +284,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonObj.get("analysis_scope") != null && !jsonObj.get("analysis_scope").isJsonNull()) {
AnalysisScopeEnum.validateJsonElement(jsonObj.get("analysis_scope"));
}
+ if ((jsonObj.get("binary_name") != null && !jsonObj.get("binary_name").isJsonNull()) && !jsonObj.get("binary_name").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binary_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binary_name").toString()));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java b/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java
index 0aa720d..eafb1f9 100644
--- a/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java
+++ b/src/main/java/ai/reveng/model/AppApiRestV2FunctionsTypesFunction.java
@@ -55,214 +55,214 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AppApiRestV2FunctionsTypesFunction {
+ public static final String SERIALIZED_NAME_DEBUG = "debug";
+ @SerializedName(SERIALIZED_NAME_DEBUG)
+ @javax.annotation.Nonnull
+ private Boolean debug;
+
+ public static final String SERIALIZED_NAME_EMBEDDING1D = "embedding_1d";
+ @SerializedName(SERIALIZED_NAME_EMBEDDING1D)
+ @javax.annotation.Nullable
+ private List embedding1d;
+
+ public static final String SERIALIZED_NAME_EMBEDDING3D = "embedding_3d";
+ @SerializedName(SERIALIZED_NAME_EMBEDDING3D)
+ @javax.annotation.Nullable
+ private List embedding3d;
+
public static final String SERIALIZED_NAME_FUNCTION_ID = "function_id";
@SerializedName(SERIALIZED_NAME_FUNCTION_ID)
@javax.annotation.Nonnull
private Long functionId;
- public static final String SERIALIZED_NAME_FUNCTION_NAME = "function_name";
- @SerializedName(SERIALIZED_NAME_FUNCTION_NAME)
- @javax.annotation.Nonnull
- private String functionName;
-
public static final String SERIALIZED_NAME_FUNCTION_MANGLED_NAME = "function_mangled_name";
@SerializedName(SERIALIZED_NAME_FUNCTION_MANGLED_NAME)
@javax.annotation.Nonnull
private String functionMangledName;
- public static final String SERIALIZED_NAME_FUNCTION_VADDR = "function_vaddr";
- @SerializedName(SERIALIZED_NAME_FUNCTION_VADDR)
+ public static final String SERIALIZED_NAME_FUNCTION_NAME = "function_name";
+ @SerializedName(SERIALIZED_NAME_FUNCTION_NAME)
@javax.annotation.Nonnull
- private Long functionVaddr;
+ private String functionName;
public static final String SERIALIZED_NAME_FUNCTION_SIZE = "function_size";
@SerializedName(SERIALIZED_NAME_FUNCTION_SIZE)
@javax.annotation.Nonnull
private Integer functionSize;
- public static final String SERIALIZED_NAME_DEBUG = "debug";
- @SerializedName(SERIALIZED_NAME_DEBUG)
+ public static final String SERIALIZED_NAME_FUNCTION_VADDR = "function_vaddr";
+ @SerializedName(SERIALIZED_NAME_FUNCTION_VADDR)
@javax.annotation.Nonnull
- private Boolean debug;
-
- public static final String SERIALIZED_NAME_EMBEDDING3D = "embedding_3d";
- @SerializedName(SERIALIZED_NAME_EMBEDDING3D)
- @javax.annotation.Nullable
- private List embedding3d;
-
- public static final String SERIALIZED_NAME_EMBEDDING1D = "embedding_1d";
- @SerializedName(SERIALIZED_NAME_EMBEDDING1D)
- @javax.annotation.Nullable
- private List embedding1d;
+ private Long functionVaddr;
public AppApiRestV2FunctionsTypesFunction() {
}
- public AppApiRestV2FunctionsTypesFunction functionId(@javax.annotation.Nonnull Long functionId) {
- this.functionId = functionId;
+ public AppApiRestV2FunctionsTypesFunction debug(@javax.annotation.Nonnull Boolean debug) {
+ this.debug = debug;
return this;
}
/**
- * Function id
- * @return functionId
+ * Whether the function is debug
+ * @return debug
*/
@javax.annotation.Nonnull
- public Long getFunctionId() {
- return functionId;
+ public Boolean getDebug() {
+ return debug;
}
- public void setFunctionId(@javax.annotation.Nonnull Long functionId) {
- this.functionId = functionId;
+ public void setDebug(@javax.annotation.Nonnull Boolean debug) {
+ this.debug = debug;
}
- public AppApiRestV2FunctionsTypesFunction functionName(@javax.annotation.Nonnull String functionName) {
- this.functionName = functionName;
+ public AppApiRestV2FunctionsTypesFunction embedding1d(@javax.annotation.Nullable List embedding1d) {
+ this.embedding1d = embedding1d;
+ return this;
+ }
+
+ public AppApiRestV2FunctionsTypesFunction addEmbedding1dItem(BigDecimal embedding1dItem) {
+ if (this.embedding1d == null) {
+ this.embedding1d = new ArrayList<>();
+ }
+ this.embedding1d.add(embedding1dItem);
return this;
}
/**
- * Demangled name of the function
- * @return functionName
+ * Get embedding1d
+ * @return embedding1d
*/
- @javax.annotation.Nonnull
- public String getFunctionName() {
- return functionName;
+ @javax.annotation.Nullable
+ public List getEmbedding1d() {
+ return embedding1d;
}
- public void setFunctionName(@javax.annotation.Nonnull String functionName) {
- this.functionName = functionName;
+ public void setEmbedding1d(@javax.annotation.Nullable List embedding1d) {
+ this.embedding1d = embedding1d;
}
- public AppApiRestV2FunctionsTypesFunction functionMangledName(@javax.annotation.Nonnull String functionMangledName) {
- this.functionMangledName = functionMangledName;
+ public AppApiRestV2FunctionsTypesFunction embedding3d(@javax.annotation.Nullable List embedding3d) {
+ this.embedding3d = embedding3d;
+ return this;
+ }
+
+ public AppApiRestV2FunctionsTypesFunction addEmbedding3dItem(BigDecimal embedding3dItem) {
+ if (this.embedding3d == null) {
+ this.embedding3d = new ArrayList<>();
+ }
+ this.embedding3d.add(embedding3dItem);
return this;
}
/**
- * Mangled name of the function
- * @return functionMangledName
+ * Get embedding3d
+ * @return embedding3d
*/
- @javax.annotation.Nonnull
- public String getFunctionMangledName() {
- return functionMangledName;
+ @javax.annotation.Nullable
+ public List getEmbedding3d() {
+ return embedding3d;
}
- public void setFunctionMangledName(@javax.annotation.Nonnull String functionMangledName) {
- this.functionMangledName = functionMangledName;
+ public void setEmbedding3d(@javax.annotation.Nullable List embedding3d) {
+ this.embedding3d = embedding3d;
}
- public AppApiRestV2FunctionsTypesFunction functionVaddr(@javax.annotation.Nonnull Long functionVaddr) {
- this.functionVaddr = functionVaddr;
+ public AppApiRestV2FunctionsTypesFunction functionId(@javax.annotation.Nonnull Long functionId) {
+ this.functionId = functionId;
return this;
}
/**
- * Function virtual address
- * @return functionVaddr
+ * Function id
+ * @return functionId
*/
@javax.annotation.Nonnull
- public Long getFunctionVaddr() {
- return functionVaddr;
+ public Long getFunctionId() {
+ return functionId;
}
- public void setFunctionVaddr(@javax.annotation.Nonnull Long functionVaddr) {
- this.functionVaddr = functionVaddr;
+ public void setFunctionId(@javax.annotation.Nonnull Long functionId) {
+ this.functionId = functionId;
}
- public AppApiRestV2FunctionsTypesFunction functionSize(@javax.annotation.Nonnull Integer functionSize) {
- this.functionSize = functionSize;
+ public AppApiRestV2FunctionsTypesFunction functionMangledName(@javax.annotation.Nonnull String functionMangledName) {
+ this.functionMangledName = functionMangledName;
return this;
}
/**
- * Function size
- * @return functionSize
+ * Mangled name of the function
+ * @return functionMangledName
*/
@javax.annotation.Nonnull
- public Integer getFunctionSize() {
- return functionSize;
+ public String getFunctionMangledName() {
+ return functionMangledName;
}
- public void setFunctionSize(@javax.annotation.Nonnull Integer functionSize) {
- this.functionSize = functionSize;
+ public void setFunctionMangledName(@javax.annotation.Nonnull String functionMangledName) {
+ this.functionMangledName = functionMangledName;
}
- public AppApiRestV2FunctionsTypesFunction debug(@javax.annotation.Nonnull Boolean debug) {
- this.debug = debug;
+ public AppApiRestV2FunctionsTypesFunction functionName(@javax.annotation.Nonnull String functionName) {
+ this.functionName = functionName;
return this;
}
/**
- * Whether the function is debug
- * @return debug
+ * Demangled name of the function
+ * @return functionName
*/
@javax.annotation.Nonnull
- public Boolean getDebug() {
- return debug;
+ public String getFunctionName() {
+ return functionName;
}
- public void setDebug(@javax.annotation.Nonnull Boolean debug) {
- this.debug = debug;
+ public void setFunctionName(@javax.annotation.Nonnull String functionName) {
+ this.functionName = functionName;
}
- public AppApiRestV2FunctionsTypesFunction embedding3d(@javax.annotation.Nullable List embedding3d) {
- this.embedding3d = embedding3d;
- return this;
- }
-
- public AppApiRestV2FunctionsTypesFunction addEmbedding3dItem(BigDecimal embedding3dItem) {
- if (this.embedding3d == null) {
- this.embedding3d = new ArrayList<>();
- }
- this.embedding3d.add(embedding3dItem);
+ public AppApiRestV2FunctionsTypesFunction functionSize(@javax.annotation.Nonnull Integer functionSize) {
+ this.functionSize = functionSize;
return this;
}
/**
- * Get embedding3d
- * @return embedding3d
+ * Function size
+ * @return functionSize
*/
- @javax.annotation.Nullable
- public List getEmbedding3d() {
- return embedding3d;
+ @javax.annotation.Nonnull
+ public Integer getFunctionSize() {
+ return functionSize;
}
- public void setEmbedding3d(@javax.annotation.Nullable List embedding3d) {
- this.embedding3d = embedding3d;
+ public void setFunctionSize(@javax.annotation.Nonnull Integer functionSize) {
+ this.functionSize = functionSize;
}
- public AppApiRestV2FunctionsTypesFunction embedding1d(@javax.annotation.Nullable List embedding1d) {
- this.embedding1d = embedding1d;
- return this;
- }
-
- public AppApiRestV2FunctionsTypesFunction addEmbedding1dItem(BigDecimal embedding1dItem) {
- if (this.embedding1d == null) {
- this.embedding1d = new ArrayList<>();
- }
- this.embedding1d.add(embedding1dItem);
+ public AppApiRestV2FunctionsTypesFunction functionVaddr(@javax.annotation.Nonnull Long functionVaddr) {
+ this.functionVaddr = functionVaddr;
return this;
}
/**
- * Get embedding1d
- * @return embedding1d
+ * Function virtual address
+ * @return functionVaddr
*/
- @javax.annotation.Nullable
- public List getEmbedding1d() {
- return embedding1d;
+ @javax.annotation.Nonnull
+ public Long getFunctionVaddr() {
+ return functionVaddr;
}
- public void setEmbedding1d(@javax.annotation.Nullable List embedding1d) {
- this.embedding1d = embedding1d;
+ public void setFunctionVaddr(@javax.annotation.Nonnull Long functionVaddr) {
+ this.functionVaddr = functionVaddr;
}
/**
@@ -320,14 +320,14 @@ public boolean equals(Object o) {
return false;
}
AppApiRestV2FunctionsTypesFunction appApiRestV2FunctionsTypesFunction = (AppApiRestV2FunctionsTypesFunction) o;
- return Objects.equals(this.functionId, appApiRestV2FunctionsTypesFunction.functionId) &&
- Objects.equals(this.functionName, appApiRestV2FunctionsTypesFunction.functionName) &&
+ return Objects.equals(this.debug, appApiRestV2FunctionsTypesFunction.debug) &&
+ Objects.equals(this.embedding1d, appApiRestV2FunctionsTypesFunction.embedding1d) &&
+ Objects.equals(this.embedding3d, appApiRestV2FunctionsTypesFunction.embedding3d) &&
+ Objects.equals(this.functionId, appApiRestV2FunctionsTypesFunction.functionId) &&
Objects.equals(this.functionMangledName, appApiRestV2FunctionsTypesFunction.functionMangledName) &&
- Objects.equals(this.functionVaddr, appApiRestV2FunctionsTypesFunction.functionVaddr) &&
+ Objects.equals(this.functionName, appApiRestV2FunctionsTypesFunction.functionName) &&
Objects.equals(this.functionSize, appApiRestV2FunctionsTypesFunction.functionSize) &&
- Objects.equals(this.debug, appApiRestV2FunctionsTypesFunction.debug) &&
- Objects.equals(this.embedding3d, appApiRestV2FunctionsTypesFunction.embedding3d) &&
- Objects.equals(this.embedding1d, appApiRestV2FunctionsTypesFunction.embedding1d)&&
+ Objects.equals(this.functionVaddr, appApiRestV2FunctionsTypesFunction.functionVaddr)&&
Objects.equals(this.additionalProperties, appApiRestV2FunctionsTypesFunction.additionalProperties);
}
@@ -337,7 +337,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(functionId, functionName, functionMangledName, functionVaddr, functionSize, debug, embedding3d, embedding1d, additionalProperties);
+ return Objects.hash(debug, embedding1d, embedding3d, functionId, functionMangledName, functionName, functionSize, functionVaddr, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -351,14 +351,14 @@ private static int hashCodeNullable(JsonNullable a) {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AppApiRestV2FunctionsTypesFunction {\n");
+ sb.append(" debug: ").append(toIndentedString(debug)).append("\n");
+ sb.append(" embedding1d: ").append(toIndentedString(embedding1d)).append("\n");
+ sb.append(" embedding3d: ").append(toIndentedString(embedding3d)).append("\n");
sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n");
- sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n");
sb.append(" functionMangledName: ").append(toIndentedString(functionMangledName)).append("\n");
- sb.append(" functionVaddr: ").append(toIndentedString(functionVaddr)).append("\n");
+ sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n");
sb.append(" functionSize: ").append(toIndentedString(functionSize)).append("\n");
- sb.append(" debug: ").append(toIndentedString(debug)).append("\n");
- sb.append(" embedding3d: ").append(toIndentedString(embedding3d)).append("\n");
- sb.append(" embedding1d: ").append(toIndentedString(embedding1d)).append("\n");
+ sb.append(" functionVaddr: ").append(toIndentedString(functionVaddr)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -381,10 +381,10 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug", "embedding_3d", "embedding_1d"));
+ openapiFields = new HashSet(Arrays.asList("debug", "embedding_1d", "embedding_3d", "function_id", "function_mangled_name", "function_name", "function_size", "function_vaddr"));
// a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet(Arrays.asList("function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug"));
+ openapiRequiredFields = new HashSet(Arrays.asList("debug", "function_id", "function_mangled_name", "function_name", "function_size", "function_vaddr"));
}
/**
@@ -407,19 +407,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
- if (!jsonObj.get("function_name").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_name").toString()));
- }
- if (!jsonObj.get("function_mangled_name").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_mangled_name").toString()));
+ // ensure the optional json data is an array if present
+ if (jsonObj.get("embedding_1d") != null && !jsonObj.get("embedding_1d").isJsonNull() && !jsonObj.get("embedding_1d").isJsonArray()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `embedding_1d` to be an array in the JSON string but got `%s`", jsonObj.get("embedding_1d").toString()));
}
// ensure the optional json data is an array if present
if (jsonObj.get("embedding_3d") != null && !jsonObj.get("embedding_3d").isJsonNull() && !jsonObj.get("embedding_3d").isJsonArray()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `embedding_3d` to be an array in the JSON string but got `%s`", jsonObj.get("embedding_3d").toString()));
}
- // ensure the optional json data is an array if present
- if (jsonObj.get("embedding_1d") != null && !jsonObj.get("embedding_1d").isJsonNull() && !jsonObj.get("embedding_1d").isJsonArray()) {
- throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `embedding_1d` to be an array in the JSON string but got `%s`", jsonObj.get("embedding_1d").toString()));
+ if (!jsonObj.get("function_mangled_name").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_mangled_name").toString()));
+ }
+ if (!jsonObj.get("function_name").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_name").toString()));
}
}
diff --git a/src/main/java/ai/reveng/model/Argument.java b/src/main/java/ai/reveng/model/Argument.java
index 6cf540f..1b8344a 100644
--- a/src/main/java/ai/reveng/model/Argument.java
+++ b/src/main/java/ai/reveng/model/Argument.java
@@ -57,26 +57,26 @@ public class Argument {
@javax.annotation.Nullable
private String lastChange;
- public static final String SERIALIZED_NAME_OFFSET = "offset";
- @SerializedName(SERIALIZED_NAME_OFFSET)
- @javax.annotation.Nonnull
- private Integer offset;
-
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nonnull
private String name;
- public static final String SERIALIZED_NAME_TYPE = "type";
- @SerializedName(SERIALIZED_NAME_TYPE)
+ public static final String SERIALIZED_NAME_OFFSET = "offset";
+ @SerializedName(SERIALIZED_NAME_OFFSET)
@javax.annotation.Nonnull
- private String type;
+ private Integer offset;
public static final String SERIALIZED_NAME_SIZE = "size";
@SerializedName(SERIALIZED_NAME_SIZE)
@javax.annotation.Nonnull
private Integer size;
+ public static final String SERIALIZED_NAME_TYPE = "type";
+ @SerializedName(SERIALIZED_NAME_TYPE)
+ @javax.annotation.Nonnull
+ private String type;
+
public Argument() {
}
@@ -99,25 +99,6 @@ public void setLastChange(@javax.annotation.Nullable String lastChange) {
}
- public Argument offset(@javax.annotation.Nonnull Integer offset) {
- this.offset = offset;
- return this;
- }
-
- /**
- * Offset of the argument in the function signature
- * @return offset
- */
- @javax.annotation.Nonnull
- public Integer getOffset() {
- return offset;
- }
-
- public void setOffset(@javax.annotation.Nonnull Integer offset) {
- this.offset = offset;
- }
-
-
public Argument name(@javax.annotation.Nonnull String name) {
this.name = name;
return this;
@@ -137,22 +118,22 @@ public void setName(@javax.annotation.Nonnull String name) {
}
- public Argument type(@javax.annotation.Nonnull String type) {
- this.type = type;
+ public Argument offset(@javax.annotation.Nonnull Integer offset) {
+ this.offset = offset;
return this;
}
/**
- * Data type of the argument
- * @return type
+ * Offset of the argument in the function signature
+ * @return offset
*/
@javax.annotation.Nonnull
- public String getType() {
- return type;
+ public Integer getOffset() {
+ return offset;
}
- public void setType(@javax.annotation.Nonnull String type) {
- this.type = type;
+ public void setOffset(@javax.annotation.Nonnull Integer offset) {
+ this.offset = offset;
}
@@ -174,6 +155,25 @@ public void setSize(@javax.annotation.Nonnull Integer size) {
this.size = size;
}
+
+ public Argument type(@javax.annotation.Nonnull String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Data type of the argument
+ * @return type
+ */
+ @javax.annotation.Nonnull
+ public String getType() {
+ return type;
+ }
+
+ public void setType(@javax.annotation.Nonnull String type) {
+ this.type = type;
+ }
+
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
@@ -230,10 +230,10 @@ public boolean equals(Object o) {
}
Argument argument = (Argument) o;
return Objects.equals(this.lastChange, argument.lastChange) &&
- Objects.equals(this.offset, argument.offset) &&
Objects.equals(this.name, argument.name) &&
- Objects.equals(this.type, argument.type) &&
- Objects.equals(this.size, argument.size)&&
+ Objects.equals(this.offset, argument.offset) &&
+ Objects.equals(this.size, argument.size) &&
+ Objects.equals(this.type, argument.type)&&
Objects.equals(this.additionalProperties, argument.additionalProperties);
}
@@ -243,7 +243,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(lastChange, offset, name, type, size, additionalProperties);
+ return Objects.hash(lastChange, name, offset, size, type, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -258,10 +258,10 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Argument {\n");
sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n");
- sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -284,10 +284,10 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("last_change", "offset", "name", "type", "size"));
+ openapiFields = new HashSet(Arrays.asList("last_change", "name", "offset", "size", "type"));
// a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet(Arrays.asList("offset", "name", "type", "size"));
+ openapiRequiredFields = new HashSet(Arrays.asList("name", "offset", "size", "type"));
}
/**
diff --git a/src/main/java/ai/reveng/model/AutoUnstripRequest.java b/src/main/java/ai/reveng/model/AutoUnstripRequest.java
index c8e0dd3..84b99f9 100644
--- a/src/main/java/ai/reveng/model/AutoUnstripRequest.java
+++ b/src/main/java/ai/reveng/model/AutoUnstripRequest.java
@@ -52,12 +52,6 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AutoUnstripRequest {
- public static final String SERIALIZED_NAME_MIN_SIMILARITY = "min_similarity";
- @Deprecated
- @SerializedName(SERIALIZED_NAME_MIN_SIMILARITY)
- @javax.annotation.Nullable
- private BigDecimal minSimilarity = new BigDecimal("90.0");
-
public static final String SERIALIZED_NAME_APPLY = "apply";
@Deprecated
@SerializedName(SERIALIZED_NAME_APPLY)
@@ -68,7 +62,7 @@ public class AutoUnstripRequest {
@Deprecated
@SerializedName(SERIALIZED_NAME_CONFIDENCE_THRESHOLD)
@javax.annotation.Nullable
- private BigDecimal confidenceThreshold = new BigDecimal("90.0");
+ private BigDecimal confidenceThreshold = new BigDecimal("90");
public static final String SERIALIZED_NAME_MIN_GROUP_SIZE = "min_group_size";
@Deprecated
@@ -76,11 +70,11 @@ public class AutoUnstripRequest {
@javax.annotation.Nullable
private Integer minGroupSize = 10;
- public static final String SERIALIZED_NAME_STATUS_ONLY = "status_only";
+ public static final String SERIALIZED_NAME_MIN_SIMILARITY = "min_similarity";
@Deprecated
- @SerializedName(SERIALIZED_NAME_STATUS_ONLY)
+ @SerializedName(SERIALIZED_NAME_MIN_SIMILARITY)
@javax.annotation.Nullable
- private Boolean statusOnly = false;
+ private BigDecimal minSimilarity = new BigDecimal("90");
public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
@Deprecated
@@ -88,6 +82,12 @@ public class AutoUnstripRequest {
@javax.annotation.Nullable
private Boolean noCache = false;
+ public static final String SERIALIZED_NAME_STATUS_ONLY = "status_only";
+ @Deprecated
+ @SerializedName(SERIALIZED_NAME_STATUS_ONLY)
+ @javax.annotation.Nullable
+ private Boolean statusOnly = false;
+
public static final String SERIALIZED_NAME_USE_CANONICAL_NAMES = "use_canonical_names";
@SerializedName(SERIALIZED_NAME_USE_CANONICAL_NAMES)
@javax.annotation.Nullable
@@ -96,31 +96,6 @@ public class AutoUnstripRequest {
public AutoUnstripRequest() {
}
- @Deprecated
- public AutoUnstripRequest minSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
- this.minSimilarity = minSimilarity;
- return this;
- }
-
- /**
- * Minimum similarity expected for a match as a percentage, default is 90
- * minimum: 0.0
- * maximum: 100.0
- * @return minSimilarity
- * @deprecated
- */
- @Deprecated
- @javax.annotation.Nullable
- public BigDecimal getMinSimilarity() {
- return minSimilarity;
- }
-
- @Deprecated
- public void setMinSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
- this.minSimilarity = minSimilarity;
- }
-
-
@Deprecated
public AutoUnstripRequest apply(@javax.annotation.Nullable Boolean apply) {
this.apply = apply;
@@ -152,8 +127,8 @@ public AutoUnstripRequest confidenceThreshold(@javax.annotation.Nullable BigDeci
/**
* Confidence threshold for applying function names as a percentage, default is 90
- * minimum: 0.0
- * maximum: 100.0
+ * minimum: 0
+ * maximum: 100
* @return confidenceThreshold
* @deprecated
*/
@@ -195,25 +170,27 @@ public void setMinGroupSize(@javax.annotation.Nullable Integer minGroupSize) {
@Deprecated
- public AutoUnstripRequest statusOnly(@javax.annotation.Nullable Boolean statusOnly) {
- this.statusOnly = statusOnly;
+ public AutoUnstripRequest minSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
+ this.minSimilarity = minSimilarity;
return this;
}
/**
- * If set to true, only returns the status of the auto-unstrip operation without the actual results
- * @return statusOnly
+ * Minimum similarity expected for a match as a percentage, default is 90
+ * minimum: 0
+ * maximum: 100
+ * @return minSimilarity
* @deprecated
*/
@Deprecated
@javax.annotation.Nullable
- public Boolean getStatusOnly() {
- return statusOnly;
+ public BigDecimal getMinSimilarity() {
+ return minSimilarity;
}
@Deprecated
- public void setStatusOnly(@javax.annotation.Nullable Boolean statusOnly) {
- this.statusOnly = statusOnly;
+ public void setMinSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
+ this.minSimilarity = minSimilarity;
}
@@ -240,6 +217,29 @@ public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
}
+ @Deprecated
+ public AutoUnstripRequest statusOnly(@javax.annotation.Nullable Boolean statusOnly) {
+ this.statusOnly = statusOnly;
+ return this;
+ }
+
+ /**
+ * If set to true, only returns the status of the auto-unstrip operation without the actual results
+ * @return statusOnly
+ * @deprecated
+ */
+ @Deprecated
+ @javax.annotation.Nullable
+ public Boolean getStatusOnly() {
+ return statusOnly;
+ }
+
+ @Deprecated
+ public void setStatusOnly(@javax.annotation.Nullable Boolean statusOnly) {
+ this.statusOnly = statusOnly;
+ }
+
+
public AutoUnstripRequest useCanonicalNames(@javax.annotation.Nullable Boolean useCanonicalNames) {
this.useCanonicalNames = useCanonicalNames;
return this;
@@ -313,31 +313,31 @@ public boolean equals(Object o) {
return false;
}
AutoUnstripRequest autoUnstripRequest = (AutoUnstripRequest) o;
- return Objects.equals(this.minSimilarity, autoUnstripRequest.minSimilarity) &&
- Objects.equals(this.apply, autoUnstripRequest.apply) &&
+ return Objects.equals(this.apply, autoUnstripRequest.apply) &&
Objects.equals(this.confidenceThreshold, autoUnstripRequest.confidenceThreshold) &&
Objects.equals(this.minGroupSize, autoUnstripRequest.minGroupSize) &&
- Objects.equals(this.statusOnly, autoUnstripRequest.statusOnly) &&
+ Objects.equals(this.minSimilarity, autoUnstripRequest.minSimilarity) &&
Objects.equals(this.noCache, autoUnstripRequest.noCache) &&
+ Objects.equals(this.statusOnly, autoUnstripRequest.statusOnly) &&
Objects.equals(this.useCanonicalNames, autoUnstripRequest.useCanonicalNames)&&
Objects.equals(this.additionalProperties, autoUnstripRequest.additionalProperties);
}
@Override
public int hashCode() {
- return Objects.hash(minSimilarity, apply, confidenceThreshold, minGroupSize, statusOnly, noCache, useCanonicalNames, additionalProperties);
+ return Objects.hash(apply, confidenceThreshold, minGroupSize, minSimilarity, noCache, statusOnly, useCanonicalNames, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AutoUnstripRequest {\n");
- sb.append(" minSimilarity: ").append(toIndentedString(minSimilarity)).append("\n");
sb.append(" apply: ").append(toIndentedString(apply)).append("\n");
sb.append(" confidenceThreshold: ").append(toIndentedString(confidenceThreshold)).append("\n");
sb.append(" minGroupSize: ").append(toIndentedString(minGroupSize)).append("\n");
- sb.append(" statusOnly: ").append(toIndentedString(statusOnly)).append("\n");
+ sb.append(" minSimilarity: ").append(toIndentedString(minSimilarity)).append("\n");
sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n");
+ sb.append(" statusOnly: ").append(toIndentedString(statusOnly)).append("\n");
sb.append(" useCanonicalNames: ").append(toIndentedString(useCanonicalNames)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
@@ -361,7 +361,7 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("min_similarity", "apply", "confidence_threshold", "min_group_size", "status_only", "no_cache", "use_canonical_names"));
+ openapiFields = new HashSet(Arrays.asList("apply", "confidence_threshold", "min_group_size", "min_similarity", "no_cache", "status_only", "use_canonical_names"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet