diff --git a/.sdk-version b/.sdk-version index 100a28e..304e303 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.51.0 +v3.55.0 diff --git a/README.md b/README.md index 349dfac..fad1208 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 3.51.0 + 3.55.0 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:3.51.0" + implementation "ai.reveng:sdk:3.55.0" } ``` @@ -91,6 +91,7 @@ Class | Method | HTTP request | Description *AnalysesCoreApi* | [**insertAnalysisLog**](docs/AnalysesCoreApi.md#insertAnalysisLog) | **POST** /v2/analyses/{analysis_id}/logs | Insert a log entry for an analysis *AnalysesCoreApi* | [**listAnalyses**](docs/AnalysesCoreApi.md#listAnalyses) | **GET** /v2/analyses/list | Gets the most recent analyses *AnalysesCoreApi* | [**lookupBinaryId**](docs/AnalysesCoreApi.md#lookupBinaryId) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID +*AnalysesCoreApi* | [**putAnalysisStrings**](docs/AnalysesCoreApi.md#putAnalysisStrings) | **PUT** /v2/analyses/{analysis_id}/strings | Add strings to the analysis *AnalysesCoreApi* | [**requeueAnalysis**](docs/AnalysesCoreApi.md#requeueAnalysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis *AnalysesCoreApi* | [**updateAnalysis**](docs/AnalysesCoreApi.md#updateAnalysis) | **PATCH** /v2/analyses/{analysis_id} | Update Analysis *AnalysesCoreApi* | [**updateAnalysisTags**](docs/AnalysesCoreApi.md#updateAnalysisTags) | **PATCH** /v2/analyses/{analysis_id}/tags | Update Analysis Tags @@ -213,6 +214,7 @@ Class | Method | HTTP request | Description - [AnalysisStage](docs/AnalysisStage.md) - [AnalysisStageStatus](docs/AnalysisStageStatus.md) - [AnalysisStagesResponse](docs/AnalysisStagesResponse.md) + - [AnalysisStringInput](docs/AnalysisStringInput.md) - [AnalysisStringsResponse](docs/AnalysisStringsResponse.md) - [AnalysisStringsStatusResponse](docs/AnalysisStringsStatusResponse.md) - [AnalysisTags](docs/AnalysisTags.md) @@ -452,6 +454,7 @@ Class | Method | HTTP request | Description - [ProcessDumpsData](docs/ProcessDumpsData.md) - [ProcessRegistry](docs/ProcessRegistry.md) - [ProcessTree](docs/ProcessTree.md) + - [PutAnalysisStringsRequest](docs/PutAnalysisStringsRequest.md) - [QueuedSecurityChecksTaskResponse](docs/QueuedSecurityChecksTaskResponse.md) - [ReAnalysisForm](docs/ReAnalysisForm.md) - [Recent](docs/Recent.md) @@ -477,6 +480,7 @@ Class | Method | HTTP request | Description - [StatusInput](docs/StatusInput.md) - [StatusOutput](docs/StatusOutput.md) - [StringFunctions](docs/StringFunctions.md) + - [StringSource](docs/StringSource.md) - [Structure](docs/Structure.md) - [StructureMember](docs/StructureMember.md) - [Symbols](docs/Symbols.md) diff --git a/build.gradle b/build.gradle index 9382fc1..8f4b502 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '3.51.0' +version = '3.55.0' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "3.51.0") + coordinates("ai.reveng", "sdk", "3.55.0") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index 344cf63..35c733d 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "ai.reveng", name := "sdk", - version := "3.51.0", + version := "3.55.0", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/AnalysesCommentsApi.md b/docs/AnalysesCommentsApi.md index bfacf9f..13f4f22 100644 --- a/docs/AnalysesCommentsApi.md +++ b/docs/AnalysesCommentsApi.md @@ -80,8 +80,8 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **201** | Successful Response | - | -| **422** | Invalid request parameters | - | | **400** | Bad Request | - | +| **422** | Invalid request parameters | - | # **deleteAnalysisComment** @@ -153,9 +153,9 @@ public class Example { | 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 | - | # **getAnalysisComments** @@ -299,7 +299,7 @@ public class Example { | 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 | - | diff --git a/docs/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index 4efd09e..939f1ab 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -15,6 +15,7 @@ All URIs are relative to *https://api.reveng.ai* | [**insertAnalysisLog**](AnalysesCoreApi.md#insertAnalysisLog) | **POST** /v2/analyses/{analysis_id}/logs | Insert a log entry for an analysis | | [**listAnalyses**](AnalysesCoreApi.md#listAnalyses) | **GET** /v2/analyses/list | Gets the most recent analyses | | [**lookupBinaryId**](AnalysesCoreApi.md#lookupBinaryId) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID | +| [**putAnalysisStrings**](AnalysesCoreApi.md#putAnalysisStrings) | **PUT** /v2/analyses/{analysis_id}/strings | Add strings to the analysis | | [**requeueAnalysis**](AnalysesCoreApi.md#requeueAnalysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis | | [**updateAnalysis**](AnalysesCoreApi.md#updateAnalysis) | **PATCH** /v2/analyses/{analysis_id} | Update Analysis | | [**updateAnalysisTags**](AnalysesCoreApi.md#updateAnalysisTags) | **PATCH** /v2/analyses/{analysis_id}/tags | Update Analysis Tags | @@ -161,9 +162,9 @@ public class Example { | 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 | - | # **deleteAnalysis** @@ -233,9 +234,9 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful Response | - | -| **422** | Invalid request parameters | - | -| **404** | Not Found | - | | **403** | Forbidden | - | +| **404** | Not Found | - | +| **422** | Invalid request parameters | - | # **getAnalysisBasicInfo** @@ -819,6 +820,78 @@ public class Example { | **200** | Successful Response | - | | **422** | Invalid request parameters | - | + +# **putAnalysisStrings** +> BaseResponse putAnalysisStrings(analysisId, putAnalysisStringsRequest) + +Add strings to the analysis + +Add strings to the analysis. Rejects if any string already exists at the given vaddr. + +### Example +```java +// Import classes: +import ai.reveng.invoker.ApiClient; +import ai.reveng.invoker.ApiException; +import ai.reveng.invoker.Configuration; +import ai.reveng.invoker.auth.*; +import ai.reveng.invoker.models.*; +import ai.reveng.api.AnalysesCoreApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.reveng.ai"); + + // Configure API key authorization: APIKey + ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey"); + APIKey.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //APIKey.setApiKeyPrefix("Token"); + + AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); + Integer analysisId = 56; // Integer | + PutAnalysisStringsRequest putAnalysisStringsRequest = new PutAnalysisStringsRequest(); // PutAnalysisStringsRequest | + try { + BaseResponse result = apiInstance.putAnalysisStrings(analysisId, putAnalysisStringsRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AnalysesCoreApi#putAnalysisStrings"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **analysisId** | **Integer**| | | +| **putAnalysisStringsRequest** | [**PutAnalysisStringsRequest**](PutAnalysisStringsRequest.md)| | | + +### Return type + +[**BaseResponse**](BaseResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **422** | Invalid request parameters | - | + # **requeueAnalysis** > BaseResponseCreated requeueAnalysis(analysisId, reAnalysisForm, xRevEngApplication) @@ -891,9 +964,9 @@ public class Example { | 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 | - | # **updateAnalysis** @@ -1041,7 +1114,7 @@ public class Example { # **uploadFile** -> BaseResponseUploadResponse uploadFile(uploadFileType, _file, packedPassword, forceOverwrite) +> BaseResponseUploadResponse uploadFile(_file, uploadFileType, packedPassword, forceOverwrite) Upload File @@ -1067,12 +1140,12 @@ public class Example { //APIKey.setApiKeyPrefix("Token"); AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); - UploadFileType uploadFileType = UploadFileType.fromValue("BINARY"); // UploadFileType | File _file = new File("/path/to/file"); // File | + UploadFileType uploadFileType = UploadFileType.fromValue("BINARY"); // UploadFileType | String packedPassword = "packedPassword_example"; // String | Boolean forceOverwrite = false; // Boolean | try { - BaseResponseUploadResponse result = apiInstance.uploadFile(uploadFileType, _file, packedPassword, forceOverwrite); + BaseResponseUploadResponse result = apiInstance.uploadFile(_file, uploadFileType, packedPassword, forceOverwrite); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#uploadFile"); @@ -1089,8 +1162,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **uploadFileType** | [**UploadFileType**](UploadFileType.md)| | [enum: BINARY, DEBUG, PACKED, FIRMWARE] | | **_file** | **File**| | | +| **uploadFileType** | [**UploadFileType**](UploadFileType.md)| | [enum: BINARY, DEBUG, PACKED, FIRMWARE] | | **packedPassword** | **String**| | [optional] | | **forceOverwrite** | **Boolean**| | [optional] [default to false] | diff --git a/docs/AnalysesSecurityChecksApi.md b/docs/AnalysesSecurityChecksApi.md index d7ce66e..f86c62b 100644 --- a/docs/AnalysesSecurityChecksApi.md +++ b/docs/AnalysesSecurityChecksApi.md @@ -75,8 +75,8 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **202** | Successful Response | - | -| **422** | Invalid request parameters | - | | **409** | Security checks already extracted or queued | - | +| **422** | Invalid request parameters | - | # **getSecurityChecks** diff --git a/docs/AnalysesXRefsApi.md b/docs/AnalysesXRefsApi.md index a9e267f..70a210a 100644 --- a/docs/AnalysesXRefsApi.md +++ b/docs/AnalysesXRefsApi.md @@ -77,6 +77,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful Response | - | -| **422** | Invalid request parameters | - | | **404** | Xref or analysis cache not found | - | +| **422** | Invalid request parameters | - | diff --git a/docs/AnalysisBulkAddTagsRequest.md b/docs/AnalysisBulkAddTagsRequest.md index 9a62fda..3b3a246 100644 --- a/docs/AnalysisBulkAddTagsRequest.md +++ b/docs/AnalysisBulkAddTagsRequest.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**tags** | **List<String>** | | | |**analysisIds** | **List<Integer>** | | | +|**tags** | **List<String>** | | | diff --git a/docs/AnalysisBulkAddTagsResponseItem.md b/docs/AnalysisBulkAddTagsResponseItem.md index 595418f..9ee0eeb 100644 --- a/docs/AnalysisBulkAddTagsResponseItem.md +++ b/docs/AnalysisBulkAddTagsResponseItem.md @@ -8,8 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**analysisId** | **Integer** | | | -|**message** | **String** | | | |**error** | **String** | | [optional] | +|**message** | **String** | | | diff --git a/docs/AnalysisConfig.md b/docs/AnalysisConfig.md index 7ad2fef..2b9719b 100644 --- a/docs/AnalysisConfig.md +++ b/docs/AnalysisConfig.md @@ -7,13 +7,13 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**scrapeThirdPartyConfig** | [**ScrapeThirdPartyConfig**](ScrapeThirdPartyConfig.md) | Settings to scrape third party sources | [optional] | +|**advancedAnalysis** | **Boolean** | Enables an advanced security analysis. | [optional] | +|**generateCapabilities** | **Boolean** | A configuration option for generating capabilities of a binary | [optional] | |**generateCves** | **Boolean** | A configuration option for fetching CVEs data. | [optional] | |**generateSbom** | **Boolean** | A configuration option for generating software bill of materials data. | [optional] | -|**generateCapabilities** | **Boolean** | A configuration option for generating capabilities of a binary | [optional] | |**noCache** | **Boolean** | When enabled, skips using cached data within the processing. | [optional] | -|**advancedAnalysis** | **Boolean** | Enables an advanced security analysis. | [optional] | |**sandboxConfig** | [**SandboxOptions**](SandboxOptions.md) | Including a sandbox config enables the dynamic execution sandbox | [optional] | +|**scrapeThirdPartyConfig** | [**ScrapeThirdPartyConfig**](ScrapeThirdPartyConfig.md) | Settings to scrape third party sources | [optional] | diff --git a/docs/AnalysisCreateRequest.md b/docs/AnalysisCreateRequest.md index 83a11ee..97a95a0 100644 --- a/docs/AnalysisCreateRequest.md +++ b/docs/AnalysisCreateRequest.md @@ -7,15 +7,15 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**analysisConfig** | [**AnalysisConfig**](AnalysisConfig.md) | The analysis config enables the configuration of optional analysis stages | [optional] | +|**analysisScope** | **AnalysisScope** | The scope of the analysis determines who can access it | [optional] | +|**autoRunAgents** | [**AutoRunAgents**](AutoRunAgents.md) | | [optional] | +|**binaryConfig** | [**BinaryConfig**](BinaryConfig.md) | The binary config can override automatically determined values such as ISA, Platform, File Format, etc | [optional] | +|**debugHash** | **String** | | [optional] | |**filename** | **String** | The name of the file | | |**sha256Hash** | **String** | The name of the file | | -|**tags** | [**List<Tag>**](Tag.md) | List of community tags to assign to an analysis | [optional] | -|**analysisScope** | **AnalysisScope** | The scope of the analysis determines who can access it | [optional] | |**symbols** | [**Symbols**](Symbols.md) | | [optional] | -|**debugHash** | **String** | | [optional] | -|**analysisConfig** | [**AnalysisConfig**](AnalysisConfig.md) | The analysis config enables the configuration of optional analysis stages | [optional] | -|**binaryConfig** | [**BinaryConfig**](BinaryConfig.md) | The binary config can override automatically determined values such as ISA, Platform, File Format, etc | [optional] | -|**autoRunAgents** | [**AutoRunAgents**](AutoRunAgents.md) | | [optional] | +|**tags** | [**List<Tag>**](Tag.md) | List of community tags to assign to an analysis | [optional] | diff --git a/docs/AnalysisDetailResponse.md b/docs/AnalysisDetailResponse.md index 4251ce9..63d333b 100644 --- a/docs/AnalysisDetailResponse.md +++ b/docs/AnalysisDetailResponse.md @@ -11,6 +11,7 @@ |**analysisId** | **Integer** | | | |**analysisScope** | **String** | | | |**architecture** | **String** | | | +|**autoRunAgents** | [**AutoRunAgents**](AutoRunAgents.md) | | | |**binaryDynamic** | **Boolean** | | | |**binaryFormat** | **String** | | | |**binaryName** | **String** | | | @@ -22,7 +23,6 @@ |**modelName** | **String** | | | |**sbom** | **Map<String, Object>** | | [optional] | |**sha256Hash** | **String** | | | -|**autoRunAgents** | [**AutoRunAgents**](AutoRunAgents.md) | | | diff --git a/docs/AnalysisFunctionMatchingRequest.md b/docs/AnalysisFunctionMatchingRequest.md index 33fd715..be645b7 100644 --- a/docs/AnalysisFunctionMatchingRequest.md +++ b/docs/AnalysisFunctionMatchingRequest.md @@ -7,13 +7,13 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**minSimilarity** | **BigDecimal** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] | |**filters** | [**FunctionMatchingFilters**](FunctionMatchingFilters.md) | | [optional] | -|**resultsPerFunction** | **Integer** | Maximum number of matches to return per function, default is 1, max is 10 | [optional] | +|**minSimilarity** | **BigDecimal** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] | +|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] | |**page** | **Integer** | Page number for paginated results, default is 1 (first page) | [optional] | |**pageSize** | **Integer** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] | +|**resultsPerFunction** | **Integer** | Maximum number of matches to return per function, default is 1, max is 10 | [optional] | |**statusOnly** | **Boolean** | If set to true, only returns the status of the matching operation without the actual results | [optional] | -|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] | |**useCanonicalNames** | **Boolean** | Whether to use canonical function names during function matching for confidence results, default is False | [optional] | diff --git a/docs/AnalysisRecord.md b/docs/AnalysisRecord.md index 54905ed..278d9c9 100644 --- a/docs/AnalysisRecord.md +++ b/docs/AnalysisRecord.md @@ -9,21 +9,21 @@ |------------ | ------------- | ------------- | -------------| |**analysisId** | **Integer** | ID to identify analysis | | |**analysisScope** | **String** | Scope of the analysis | | +|**baseAddress** | **BigInteger** | The base address of the binary | | |**binaryId** | **Integer** | ID to identify the binary analyse | | -|**modelId** | **Integer** | ID to identify the model used for analysis | | -|**modelName** | **String** | Name of the model used for analysis | | -|**status** | **String** | The current status of analysis | | -|**creation** | **OffsetDateTime** | The datetime of when the analysis was created | | -|**isOwner** | **Boolean** | Whether the current user is the owner of a binary | | |**binaryName** | **String** | The name of the file uploaded | | -|**sha256Hash** | **String** | The hash of the binary | | -|**functionBoundariesHash** | **String** | The hash of the function boundaries | | |**binarySize** | **Integer** | The size of the binary | | -|**username** | **String** | The username of the analysis owner | | +|**creation** | **OffsetDateTime** | The datetime of when the analysis was created | | |**dynamicExecutionStatus** | **AppApiRestV2AnalysesEnumsDynamicExecutionStatus** | | [optional] | |**dynamicExecutionTaskId** | **Integer** | | [optional] | -|**baseAddress** | **BigInteger** | The base address of the binary | | +|**functionBoundariesHash** | **String** | The hash of the function boundaries | | +|**isOwner** | **Boolean** | Whether the current user is the owner of a binary | | +|**modelId** | **Integer** | ID to identify the model used for analysis | | +|**modelName** | **String** | Name of the model used for analysis | | +|**sha256Hash** | **String** | The hash of the binary | | +|**status** | **String** | The current status of analysis | | |**tags** | [**List<TagItem>**](TagItem.md) | List of tags associated with the analysis | [optional] | +|**username** | **String** | The username of the analysis owner | | diff --git a/docs/AnalysisStringInput.md b/docs/AnalysisStringInput.md new file mode 100644 index 0000000..bd2e227 --- /dev/null +++ b/docs/AnalysisStringInput.md @@ -0,0 +1,16 @@ + + +# AnalysisStringInput + +Input model for inserting a string into an analysis. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**source** | **StringSource** | The source of the string | | +|**vaddr** | **Integer** | The virtual address of the string | | +|**value** | **String** | The string literal value | | + + + diff --git a/docs/AnalysisUpdateRequest.md b/docs/AnalysisUpdateRequest.md index 1d4d7e9..fed9db8 100644 --- a/docs/AnalysisUpdateRequest.md +++ b/docs/AnalysisUpdateRequest.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**binaryName** | **String** | | [optional] | |**analysisScope** | [**AnalysisScopeEnum**](#AnalysisScopeEnum) | | [optional] | +|**binaryName** | **String** | | [optional] | diff --git a/docs/AppApiRestV2FunctionsTypesFunction.md b/docs/AppApiRestV2FunctionsTypesFunction.md index 32aa95e..d6508ce 100644 --- a/docs/AppApiRestV2FunctionsTypesFunction.md +++ b/docs/AppApiRestV2FunctionsTypesFunction.md @@ -7,14 +7,14 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**debug** | **Boolean** | Whether the function is debug | | +|**embedding1d** | **List<BigDecimal>** | | [optional] | +|**embedding3d** | **List<BigDecimal>** | | [optional] | |**functionId** | **Long** | Function id | | -|**functionName** | **String** | Demangled name of the function | | |**functionMangledName** | **String** | Mangled name of the function | | -|**functionVaddr** | **Long** | Function virtual address | | +|**functionName** | **String** | Demangled name of the function | | |**functionSize** | **Integer** | Function size | | -|**debug** | **Boolean** | Whether the function is debug | | -|**embedding3d** | **List<BigDecimal>** | | [optional] | -|**embedding1d** | **List<BigDecimal>** | | [optional] | +|**functionVaddr** | **Long** | Function virtual address | | diff --git a/docs/Argument.md b/docs/Argument.md index 9da3375..cb6f6c5 100644 --- a/docs/Argument.md +++ b/docs/Argument.md @@ -8,10 +8,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**lastChange** | **String** | | [optional] | -|**offset** | **Integer** | Offset of the argument in the function signature | | |**name** | **String** | Name of the argument | | -|**type** | **String** | Data type of the argument | | +|**offset** | **Integer** | Offset of the argument in the function signature | | |**size** | **Integer** | Size of the argument in bytes | | +|**type** | **String** | Data type of the argument | | diff --git a/docs/AuthenticationUsersApi.md b/docs/AuthenticationUsersApi.md index 6deed1a..e3ecaa7 100644 --- a/docs/AuthenticationUsersApi.md +++ b/docs/AuthenticationUsersApi.md @@ -341,6 +341,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful Response | - | -| **422** | Invalid request parameters | - | | **401** | Invalid credentials | - | +| **422** | Invalid request parameters | - | diff --git a/docs/AutoUnstripRequest.md b/docs/AutoUnstripRequest.md index 0a4160a..08f24da 100644 --- a/docs/AutoUnstripRequest.md +++ b/docs/AutoUnstripRequest.md @@ -7,12 +7,12 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**minSimilarity** | **BigDecimal** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] | |**apply** | **Boolean** | Whether to apply the matched function names to the target binary, default is False | [optional] | |**confidenceThreshold** | **BigDecimal** | Confidence threshold for applying function names as a percentage, default is 90 | [optional] | |**minGroupSize** | **Integer** | Minimum number of matching functions required to consider for a match, default is 10 | [optional] | -|**statusOnly** | **Boolean** | If set to true, only returns the status of the auto-unstrip operation without the actual results | [optional] | +|**minSimilarity** | **BigDecimal** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] | |**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] | +|**statusOnly** | **Boolean** | If set to true, only returns the status of the auto-unstrip operation without the actual results | [optional] | |**useCanonicalNames** | **Boolean** | Whether to use canonical function names during matching for auto-unstrip, default is False | [optional] | diff --git a/docs/AutoUnstripResponse.md b/docs/AutoUnstripResponse.md index 6e64866..9fd4706 100644 --- a/docs/AutoUnstripResponse.md +++ b/docs/AutoUnstripResponse.md @@ -7,12 +7,12 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**applied** | **Boolean** | | [optional] | +|**errorMessage** | **String** | | [optional] | +|**matches** | [**List<MatchedFunctionSuggestion>**](MatchedFunctionSuggestion.md) | | [optional] | |**progress** | **Integer** | Progress of the auto-unstrip operation, represented as a percentage | [optional] | |**status** | **String** | | [optional] | |**totalTime** | **Integer** | | [optional] | -|**matches** | [**List<MatchedFunctionSuggestion>**](MatchedFunctionSuggestion.md) | | [optional] | -|**applied** | **Boolean** | | [optional] | -|**errorMessage** | **String** | | [optional] | diff --git a/docs/BaseResponse.md b/docs/BaseResponse.md index 7572fbf..583ff1d 100644 --- a/docs/BaseResponse.md +++ b/docs/BaseResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | **Object** | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAdditionalDetailsStatusResponse.md b/docs/BaseResponseAdditionalDetailsStatusResponse.md index 78bf60a..bf6b1b7 100644 --- a/docs/BaseResponseAdditionalDetailsStatusResponse.md +++ b/docs/BaseResponseAdditionalDetailsStatusResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AdditionalDetailsStatusResponse**](AdditionalDetailsStatusResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAnalysisBulkAddTagsResponse.md b/docs/BaseResponseAnalysisBulkAddTagsResponse.md index 82af94f..d9608a3 100644 --- a/docs/BaseResponseAnalysisBulkAddTagsResponse.md +++ b/docs/BaseResponseAnalysisBulkAddTagsResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AnalysisBulkAddTagsResponse**](AnalysisBulkAddTagsResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAnalysisCreateResponse.md b/docs/BaseResponseAnalysisCreateResponse.md index d12fecd..306dcca 100644 --- a/docs/BaseResponseAnalysisCreateResponse.md +++ b/docs/BaseResponseAnalysisCreateResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AnalysisCreateResponse**](AnalysisCreateResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAnalysisDetailResponse.md b/docs/BaseResponseAnalysisDetailResponse.md index b3a5d92..dc07340 100644 --- a/docs/BaseResponseAnalysisDetailResponse.md +++ b/docs/BaseResponseAnalysisDetailResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AnalysisDetailResponse**](AnalysisDetailResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAnalysisFunctionMapping.md b/docs/BaseResponseAnalysisFunctionMapping.md index 884732d..ed961d1 100644 --- a/docs/BaseResponseAnalysisFunctionMapping.md +++ b/docs/BaseResponseAnalysisFunctionMapping.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AnalysisFunctionMapping**](AnalysisFunctionMapping.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAnalysisFunctions.md b/docs/BaseResponseAnalysisFunctions.md index 5346a85..a8031be 100644 --- a/docs/BaseResponseAnalysisFunctions.md +++ b/docs/BaseResponseAnalysisFunctions.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AnalysisFunctions**](AnalysisFunctions.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAnalysisFunctionsList.md b/docs/BaseResponseAnalysisFunctionsList.md index 46ea744..5438254 100644 --- a/docs/BaseResponseAnalysisFunctionsList.md +++ b/docs/BaseResponseAnalysisFunctionsList.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AnalysisFunctionsList**](AnalysisFunctionsList.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAnalysisStagesResponse.md b/docs/BaseResponseAnalysisStagesResponse.md index 31e644a..40128ce 100644 --- a/docs/BaseResponseAnalysisStagesResponse.md +++ b/docs/BaseResponseAnalysisStagesResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AnalysisStagesResponse**](AnalysisStagesResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAnalysisStringsResponse.md b/docs/BaseResponseAnalysisStringsResponse.md index b2a02d3..9003310 100644 --- a/docs/BaseResponseAnalysisStringsResponse.md +++ b/docs/BaseResponseAnalysisStringsResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AnalysisStringsResponse**](AnalysisStringsResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAnalysisStringsStatusResponse.md b/docs/BaseResponseAnalysisStringsStatusResponse.md index 71f0679..63caf1d 100644 --- a/docs/BaseResponseAnalysisStringsStatusResponse.md +++ b/docs/BaseResponseAnalysisStringsStatusResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AnalysisStringsStatusResponse**](AnalysisStringsStatusResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAnalysisTags.md b/docs/BaseResponseAnalysisTags.md index f030b05..f74753e 100644 --- a/docs/BaseResponseAnalysisTags.md +++ b/docs/BaseResponseAnalysisTags.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AnalysisTags**](AnalysisTags.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseAnalysisUpdateTagsResponse.md b/docs/BaseResponseAnalysisUpdateTagsResponse.md index d650dbd..74e779e 100644 --- a/docs/BaseResponseAnalysisUpdateTagsResponse.md +++ b/docs/BaseResponseAnalysisUpdateTagsResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AnalysisUpdateTagsResponse**](AnalysisUpdateTagsResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseBasic.md b/docs/BaseResponseBasic.md index ede9b87..675a98a 100644 --- a/docs/BaseResponseBasic.md +++ b/docs/BaseResponseBasic.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**Basic**](Basic.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseBinariesRelatedStatusResponse.md b/docs/BaseResponseBinariesRelatedStatusResponse.md index dfc9f09..e990d83 100644 --- a/docs/BaseResponseBinariesRelatedStatusResponse.md +++ b/docs/BaseResponseBinariesRelatedStatusResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**BinariesRelatedStatusResponse**](BinariesRelatedStatusResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseBinaryAdditionalResponse.md b/docs/BaseResponseBinaryAdditionalResponse.md index dcfaddc..def73a5 100644 --- a/docs/BaseResponseBinaryAdditionalResponse.md +++ b/docs/BaseResponseBinaryAdditionalResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**BinaryAdditionalResponse**](BinaryAdditionalResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseBinaryDetailsResponse.md b/docs/BaseResponseBinaryDetailsResponse.md index d6f31b6..ffafd75 100644 --- a/docs/BaseResponseBinaryDetailsResponse.md +++ b/docs/BaseResponseBinaryDetailsResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**BinaryDetailsResponse**](BinaryDetailsResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseBinaryExternalsResponse.md b/docs/BaseResponseBinaryExternalsResponse.md index 630b000..b0ef14d 100644 --- a/docs/BaseResponseBinaryExternalsResponse.md +++ b/docs/BaseResponseBinaryExternalsResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**BinaryExternalsResponse**](BinaryExternalsResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseBinarySearchResponse.md b/docs/BaseResponseBinarySearchResponse.md index 700f9f4..2d5ba20 100644 --- a/docs/BaseResponseBinarySearchResponse.md +++ b/docs/BaseResponseBinarySearchResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**BinarySearchResponse**](BinarySearchResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseBlockCommentsGenerationForFunctionResponse.md b/docs/BaseResponseBlockCommentsGenerationForFunctionResponse.md index 176af7f..4457e66 100644 --- a/docs/BaseResponseBlockCommentsGenerationForFunctionResponse.md +++ b/docs/BaseResponseBlockCommentsGenerationForFunctionResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**BlockCommentsGenerationForFunctionResponse**](BlockCommentsGenerationForFunctionResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseBlockCommentsOverviewGenerationResponse.md b/docs/BaseResponseBlockCommentsOverviewGenerationResponse.md index ad279bd..8aaea4d 100644 --- a/docs/BaseResponseBlockCommentsOverviewGenerationResponse.md +++ b/docs/BaseResponseBlockCommentsOverviewGenerationResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | **Object** | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseBool.md b/docs/BaseResponseBool.md index 9b0360c..923844d 100644 --- a/docs/BaseResponseBool.md +++ b/docs/BaseResponseBool.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | **Boolean** | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseCalleesCallerFunctionsResponse.md b/docs/BaseResponseCalleesCallerFunctionsResponse.md index 7a78241..b72b03b 100644 --- a/docs/BaseResponseCalleesCallerFunctionsResponse.md +++ b/docs/BaseResponseCalleesCallerFunctionsResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**CalleesCallerFunctionsResponse**](CalleesCallerFunctionsResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseCapabilities.md b/docs/BaseResponseCapabilities.md index 711c4f2..bfa3492 100644 --- a/docs/BaseResponseCapabilities.md +++ b/docs/BaseResponseCapabilities.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**Capabilities**](Capabilities.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseCheckSecurityChecksTaskResponse.md b/docs/BaseResponseCheckSecurityChecksTaskResponse.md index d1ab0d7..2b714ba 100644 --- a/docs/BaseResponseCheckSecurityChecksTaskResponse.md +++ b/docs/BaseResponseCheckSecurityChecksTaskResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**CheckSecurityChecksTaskResponse**](CheckSecurityChecksTaskResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseChildBinariesResponse.md b/docs/BaseResponseChildBinariesResponse.md index f0223ba..01737ec 100644 --- a/docs/BaseResponseChildBinariesResponse.md +++ b/docs/BaseResponseChildBinariesResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**ChildBinariesResponse**](ChildBinariesResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseCollectionBinariesUpdateResponse.md b/docs/BaseResponseCollectionBinariesUpdateResponse.md index c7101f5..531f26e 100644 --- a/docs/BaseResponseCollectionBinariesUpdateResponse.md +++ b/docs/BaseResponseCollectionBinariesUpdateResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**CollectionBinariesUpdateResponse**](CollectionBinariesUpdateResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseCollectionResponse.md b/docs/BaseResponseCollectionResponse.md index 74bdee9..4419d43 100644 --- a/docs/BaseResponseCollectionResponse.md +++ b/docs/BaseResponseCollectionResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**CollectionResponse**](CollectionResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseCollectionSearchResponse.md b/docs/BaseResponseCollectionSearchResponse.md index 52c06fb..868be44 100644 --- a/docs/BaseResponseCollectionSearchResponse.md +++ b/docs/BaseResponseCollectionSearchResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**CollectionSearchResponse**](CollectionSearchResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseCollectionTagsUpdateResponse.md b/docs/BaseResponseCollectionTagsUpdateResponse.md index aff71ba..766bb25 100644 --- a/docs/BaseResponseCollectionTagsUpdateResponse.md +++ b/docs/BaseResponseCollectionTagsUpdateResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**CollectionTagsUpdateResponse**](CollectionTagsUpdateResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseCommentResponse.md b/docs/BaseResponseCommentResponse.md index a3b8f6b..8221c8a 100644 --- a/docs/BaseResponseCommentResponse.md +++ b/docs/BaseResponseCommentResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**CommentResponse**](CommentResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseCommunities.md b/docs/BaseResponseCommunities.md index 6f545a6..96aaa8e 100644 --- a/docs/BaseResponseCommunities.md +++ b/docs/BaseResponseCommunities.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**Communities**](Communities.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseConfigResponse.md b/docs/BaseResponseConfigResponse.md index 01e910a..d176cf3 100644 --- a/docs/BaseResponseConfigResponse.md +++ b/docs/BaseResponseConfigResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**ConfigResponse**](ConfigResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseCreated.md b/docs/BaseResponseCreated.md index ae74d22..19bb5ca 100644 --- a/docs/BaseResponseCreated.md +++ b/docs/BaseResponseCreated.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**Created**](Created.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseDict.md b/docs/BaseResponseDict.md index 1cbd395..c0fe49c 100644 --- a/docs/BaseResponseDict.md +++ b/docs/BaseResponseDict.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | **Map<String, Object>** | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseDynamicExecutionStatus.md b/docs/BaseResponseDynamicExecutionStatus.md index 8e2a0b7..abce21c 100644 --- a/docs/BaseResponseDynamicExecutionStatus.md +++ b/docs/BaseResponseDynamicExecutionStatus.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**AppServicesDynamicExecutionSchemasDynamicExecutionStatus**](AppServicesDynamicExecutionSchemasDynamicExecutionStatus.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseExternalResponse.md b/docs/BaseResponseExternalResponse.md index e792d35..ae0b027 100644 --- a/docs/BaseResponseExternalResponse.md +++ b/docs/BaseResponseExternalResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**ExternalResponse**](ExternalResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseFunctionBlocksResponse.md b/docs/BaseResponseFunctionBlocksResponse.md index 22f6570..03178c4 100644 --- a/docs/BaseResponseFunctionBlocksResponse.md +++ b/docs/BaseResponseFunctionBlocksResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**FunctionBlocksResponse**](FunctionBlocksResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseFunctionCapabilityResponse.md b/docs/BaseResponseFunctionCapabilityResponse.md index 6d56132..5c7fc7a 100644 --- a/docs/BaseResponseFunctionCapabilityResponse.md +++ b/docs/BaseResponseFunctionCapabilityResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**FunctionCapabilityResponse**](FunctionCapabilityResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseFunctionDataTypes.md b/docs/BaseResponseFunctionDataTypes.md index f9d85e3..22cf09f 100644 --- a/docs/BaseResponseFunctionDataTypes.md +++ b/docs/BaseResponseFunctionDataTypes.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**FunctionDataTypes**](FunctionDataTypes.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseFunctionDataTypesList.md b/docs/BaseResponseFunctionDataTypesList.md index c857f1e..add3da7 100644 --- a/docs/BaseResponseFunctionDataTypesList.md +++ b/docs/BaseResponseFunctionDataTypesList.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**FunctionDataTypesList**](FunctionDataTypesList.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseFunctionSearchResponse.md b/docs/BaseResponseFunctionSearchResponse.md index 93cfbea..4a3cdf0 100644 --- a/docs/BaseResponseFunctionSearchResponse.md +++ b/docs/BaseResponseFunctionSearchResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**FunctionSearchResponse**](FunctionSearchResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseFunctionStringsResponse.md b/docs/BaseResponseFunctionStringsResponse.md index f1a04e5..176e4ca 100644 --- a/docs/BaseResponseFunctionStringsResponse.md +++ b/docs/BaseResponseFunctionStringsResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**FunctionStringsResponse**](FunctionStringsResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseFunctionTaskResponse.md b/docs/BaseResponseFunctionTaskResponse.md index a059858..9dbef86 100644 --- a/docs/BaseResponseFunctionTaskResponse.md +++ b/docs/BaseResponseFunctionTaskResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**FunctionTaskResponse**](FunctionTaskResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseFunctionsDetailResponse.md b/docs/BaseResponseFunctionsDetailResponse.md index eb6c17b..6b8abc7 100644 --- a/docs/BaseResponseFunctionsDetailResponse.md +++ b/docs/BaseResponseFunctionsDetailResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**FunctionsDetailResponse**](FunctionsDetailResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseGenerateFunctionDataTypes.md b/docs/BaseResponseGenerateFunctionDataTypes.md index c0baf80..8f5aff9 100644 --- a/docs/BaseResponseGenerateFunctionDataTypes.md +++ b/docs/BaseResponseGenerateFunctionDataTypes.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**GenerateFunctionDataTypes**](GenerateFunctionDataTypes.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseGenerationStatusList.md b/docs/BaseResponseGenerationStatusList.md index f03dbdb..8a0e976 100644 --- a/docs/BaseResponseGenerationStatusList.md +++ b/docs/BaseResponseGenerationStatusList.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**GenerationStatusList**](GenerationStatusList.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseGetAiDecompilationRatingResponse.md b/docs/BaseResponseGetAiDecompilationRatingResponse.md index 7b2642e..8ca980e 100644 --- a/docs/BaseResponseGetAiDecompilationRatingResponse.md +++ b/docs/BaseResponseGetAiDecompilationRatingResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**GetAiDecompilationRatingResponse**](GetAiDecompilationRatingResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseGetAiDecompilationTask.md b/docs/BaseResponseGetAiDecompilationTask.md index 309b7ce..9809127 100644 --- a/docs/BaseResponseGetAiDecompilationTask.md +++ b/docs/BaseResponseGetAiDecompilationTask.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**GetAiDecompilationTask**](GetAiDecompilationTask.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseGetMeResponse.md b/docs/BaseResponseGetMeResponse.md index fa43951..47fa5d5 100644 --- a/docs/BaseResponseGetMeResponse.md +++ b/docs/BaseResponseGetMeResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**GetMeResponse**](GetMeResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseGetPublicUserResponse.md b/docs/BaseResponseGetPublicUserResponse.md index 26ba58d..1139f37 100644 --- a/docs/BaseResponseGetPublicUserResponse.md +++ b/docs/BaseResponseGetPublicUserResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**GetPublicUserResponse**](GetPublicUserResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseListCalleesCallerFunctionsResponse.md b/docs/BaseResponseListCalleesCallerFunctionsResponse.md index a110c40..f0dbca8 100644 --- a/docs/BaseResponseListCalleesCallerFunctionsResponse.md +++ b/docs/BaseResponseListCalleesCallerFunctionsResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**List<CalleesCallerFunctionsResponse>**](CalleesCallerFunctionsResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseListCollectionResults.md b/docs/BaseResponseListCollectionResults.md index 118b684..0bfd13f 100644 --- a/docs/BaseResponseListCollectionResults.md +++ b/docs/BaseResponseListCollectionResults.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**ListCollectionResults**](ListCollectionResults.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseListCommentResponse.md b/docs/BaseResponseListCommentResponse.md index 3bfe583..2b507a5 100644 --- a/docs/BaseResponseListCommentResponse.md +++ b/docs/BaseResponseListCommentResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**List<CommentResponse>**](CommentResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseListDieMatch.md b/docs/BaseResponseListDieMatch.md index e2448e9..ba727cc 100644 --- a/docs/BaseResponseListDieMatch.md +++ b/docs/BaseResponseListDieMatch.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**List<DieMatch>**](DieMatch.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseListFunctionNameHistory.md b/docs/BaseResponseListFunctionNameHistory.md index 803b6a4..744aec5 100644 --- a/docs/BaseResponseListFunctionNameHistory.md +++ b/docs/BaseResponseListFunctionNameHistory.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**List<FunctionNameHistory>**](FunctionNameHistory.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseListSBOM.md b/docs/BaseResponseListSBOM.md index 6a4ccc3..3c6d259 100644 --- a/docs/BaseResponseListSBOM.md +++ b/docs/BaseResponseListSBOM.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**List<SBOM>**](SBOM.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseListUserActivityResponse.md b/docs/BaseResponseListUserActivityResponse.md index a62ed06..29947d1 100644 --- a/docs/BaseResponseListUserActivityResponse.md +++ b/docs/BaseResponseListUserActivityResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**List<UserActivityResponse>**](UserActivityResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseLoginResponse.md b/docs/BaseResponseLoginResponse.md index 815e87c..f1eaec2 100644 --- a/docs/BaseResponseLoginResponse.md +++ b/docs/BaseResponseLoginResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**LoginResponse**](LoginResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseLogs.md b/docs/BaseResponseLogs.md index 06e624c..b2bf32f 100644 --- a/docs/BaseResponseLogs.md +++ b/docs/BaseResponseLogs.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**Logs**](Logs.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseModelsResponse.md b/docs/BaseResponseModelsResponse.md index 29da8ba..73a23e3 100644 --- a/docs/BaseResponseModelsResponse.md +++ b/docs/BaseResponseModelsResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**ModelsResponse**](ModelsResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseNetworkOverviewResponse.md b/docs/BaseResponseNetworkOverviewResponse.md index 3202052..fee090d 100644 --- a/docs/BaseResponseNetworkOverviewResponse.md +++ b/docs/BaseResponseNetworkOverviewResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**NetworkOverviewResponse**](NetworkOverviewResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseParams.md b/docs/BaseResponseParams.md index a4c9893..df20995 100644 --- a/docs/BaseResponseParams.md +++ b/docs/BaseResponseParams.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**Params**](Params.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponsePipelineStatusResponse.md b/docs/BaseResponsePipelineStatusResponse.md index b63d3e9..f9fdc9d 100644 --- a/docs/BaseResponsePipelineStatusResponse.md +++ b/docs/BaseResponsePipelineStatusResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**PipelineStatusResponse**](PipelineStatusResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseProcessDumps.md b/docs/BaseResponseProcessDumps.md index 73f6364..b26f6e0 100644 --- a/docs/BaseResponseProcessDumps.md +++ b/docs/BaseResponseProcessDumps.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**ProcessDumps**](ProcessDumps.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseProcessRegistry.md b/docs/BaseResponseProcessRegistry.md index 5676c71..22a406e 100644 --- a/docs/BaseResponseProcessRegistry.md +++ b/docs/BaseResponseProcessRegistry.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**ProcessRegistry**](ProcessRegistry.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseProcessTree.md b/docs/BaseResponseProcessTree.md index 616943a..a7852b7 100644 --- a/docs/BaseResponseProcessTree.md +++ b/docs/BaseResponseProcessTree.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**ProcessTree**](ProcessTree.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseQueuedSecurityChecksTaskResponse.md b/docs/BaseResponseQueuedSecurityChecksTaskResponse.md index b9bc70b..b1494c8 100644 --- a/docs/BaseResponseQueuedSecurityChecksTaskResponse.md +++ b/docs/BaseResponseQueuedSecurityChecksTaskResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**QueuedSecurityChecksTaskResponse**](QueuedSecurityChecksTaskResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseRecent.md b/docs/BaseResponseRecent.md index 6990690..60fb0f1 100644 --- a/docs/BaseResponseRecent.md +++ b/docs/BaseResponseRecent.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**Recent**](Recent.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseSecurityChecksResponse.md b/docs/BaseResponseSecurityChecksResponse.md index bab23b1..8074a93 100644 --- a/docs/BaseResponseSecurityChecksResponse.md +++ b/docs/BaseResponseSecurityChecksResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**SecurityChecksResponse**](SecurityChecksResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseStatus.md b/docs/BaseResponseStatus.md index d2d585b..c71e344 100644 --- a/docs/BaseResponseStatus.md +++ b/docs/BaseResponseStatus.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**StatusOutput**](StatusOutput.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseStr.md b/docs/BaseResponseStr.md index 066806e..90d3c8b 100644 --- a/docs/BaseResponseStr.md +++ b/docs/BaseResponseStr.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | **String** | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseTTPS.md b/docs/BaseResponseTTPS.md index 7cc12dc..d00d2aa 100644 --- a/docs/BaseResponseTTPS.md +++ b/docs/BaseResponseTTPS.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**TTPS**](TTPS.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseTagSearchResponse.md b/docs/BaseResponseTagSearchResponse.md index d8fcf8c..937aced 100644 --- a/docs/BaseResponseTagSearchResponse.md +++ b/docs/BaseResponseTagSearchResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**TagSearchResponse**](TagSearchResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseTaskResponse.md b/docs/BaseResponseTaskResponse.md index 35b4ae8..830de34 100644 --- a/docs/BaseResponseTaskResponse.md +++ b/docs/BaseResponseTaskResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**TaskResponse**](TaskResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseUploadResponse.md b/docs/BaseResponseUploadResponse.md index 15daeb0..a08ee8f 100644 --- a/docs/BaseResponseUploadResponse.md +++ b/docs/BaseResponseUploadResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**UploadResponse**](UploadResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseVulnerabilities.md b/docs/BaseResponseVulnerabilities.md index 5b0ed9c..f3921eb 100644 --- a/docs/BaseResponseVulnerabilities.md +++ b/docs/BaseResponseVulnerabilities.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**Vulnerabilities**](Vulnerabilities.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/BaseResponseXrefResponse.md b/docs/BaseResponseXrefResponse.md index 275a552..13d63a2 100644 --- a/docs/BaseResponseXrefResponse.md +++ b/docs/BaseResponseXrefResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | |**data** | [**XrefResponse**](XrefResponse.md) | | [optional] | -|**message** | **String** | | [optional] | |**errors** | [**List<ErrorModel>**](ErrorModel.md) | | [optional] | +|**message** | **String** | | [optional] | |**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] | +|**status** | **Boolean** | Response status on whether the request succeeded | [optional] | diff --git a/docs/Basic.md b/docs/Basic.md index 5b1951a..69b986f 100644 --- a/docs/Basic.md +++ b/docs/Basic.md @@ -7,23 +7,23 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**analysisScope** | **String** | The scope of the analysis | | +|**baseAddress** | **Integer** | | | |**binaryId** | **Integer** | The ID of the binary | | |**binaryName** | **String** | The name of the binary uploaded | | |**binarySize** | **Integer** | The size of the binary uploaded (bytes) | | +|**binaryUuid** | **String** | | [optional] | |**creation** | **OffsetDateTime** | When the binary was uploaded | | -|**sha256Hash** | **String** | The hash of the binary uploaded | | -|**modelName** | **String** | The model name used for analysis | | -|**modelId** | **Integer** | The model ID used for analysis | | -|**ownerUsername** | **String** | The name of the owner of the binary | | -|**isSystem** | **Boolean** | Whether the analysis is a system analysis | | -|**analysisScope** | **String** | The scope of the analysis | | -|**isOwner** | **Boolean** | Whether the current user is the owner | | |**debug** | **Boolean** | Whether the current analysis was analysed with debug symbols | | |**functionCount** | **Integer** | The number of functions in the binary | | |**isAdvanced** | **Boolean** | Whether the analysis was advanced | | -|**baseAddress** | **Integer** | | | -|**binaryUuid** | **String** | | [optional] | +|**isOwner** | **Boolean** | Whether the current user is the owner | | +|**isSystem** | **Boolean** | Whether the analysis is a system analysis | | +|**modelId** | **Integer** | The model ID used for analysis | | +|**modelName** | **String** | The model name used for analysis | | +|**ownerUsername** | **String** | The name of the owner of the binary | | |**sequencerVersion** | **String** | | [optional] | +|**sha256Hash** | **String** | The hash of the binary uploaded | | diff --git a/docs/BinariesApi.md b/docs/BinariesApi.md index 402bca3..d769f53 100644 --- a/docs/BinariesApi.md +++ b/docs/BinariesApi.md @@ -556,6 +556,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful Response | - | -| **422** | Invalid request parameters | - | | **403** | Forbidden | - | +| **422** | Invalid request parameters | - | diff --git a/docs/BinaryAdditionalDetailsDataResponse.md b/docs/BinaryAdditionalDetailsDataResponse.md index 2ba4318..d2aaa8e 100644 --- a/docs/BinaryAdditionalDetailsDataResponse.md +++ b/docs/BinaryAdditionalDetailsDataResponse.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**elf** | [**ELFModel**](ELFModel.md) | | [optional] | |**_file** | [**FileMetadata**](FileMetadata.md) | | | |**pe** | [**PEModel**](PEModel.md) | | [optional] | -|**elf** | [**ELFModel**](ELFModel.md) | | [optional] | diff --git a/docs/BinaryAdditionalResponse.md b/docs/BinaryAdditionalResponse.md index ab8e5ef..9e51866 100644 --- a/docs/BinaryAdditionalResponse.md +++ b/docs/BinaryAdditionalResponse.md @@ -8,8 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**binaryId** | **Integer** | | | -|**details** | [**BinaryAdditionalDetailsDataResponse**](BinaryAdditionalDetailsDataResponse.md) | | | |**creation** | **OffsetDateTime** | | [optional] | +|**details** | [**BinaryAdditionalDetailsDataResponse**](BinaryAdditionalDetailsDataResponse.md) | | | diff --git a/docs/BinaryConfig.md b/docs/BinaryConfig.md index 1e55ef9..d87c4cd 100644 --- a/docs/BinaryConfig.md +++ b/docs/BinaryConfig.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**fileFormat** | **FileFormat** | | [optional] | |**isa** | **ISA** | | [optional] | |**platform** | **Platform** | | [optional] | -|**fileFormat** | **FileFormat** | | [optional] | diff --git a/docs/BinaryDetailsResponse.md b/docs/BinaryDetailsResponse.md index 5f3efbd..e738904 100644 --- a/docs/BinaryDetailsResponse.md +++ b/docs/BinaryDetailsResponse.md @@ -7,15 +7,17 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**propertyClass** | **String** | | | |**arch** | **String** | The architecture of the binary | | |**bits** | **Integer** | The size of the binary in bits | | |**crc32** | **String** | | | -|**propertyClass** | **String** | | | +|**debug** | **Boolean** | | | |**entropy** | **BigDecimal** | | | |**fileSize** | **Integer** | | | +|**firstSeen** | **OffsetDateTime** | | | |**language** | **String** | | | -|**md5** | **String** | | | |**machine** | **String** | | | +|**md5** | **String** | | | |**os** | **String** | OS target of the binary | | |**sha1** | **String** | SHA1 hash of the binary | | |**sha256** | **String** | SHA256 hash of the binary | | @@ -25,8 +27,6 @@ |**subSys** | **String** | | | |**tlsh** | **String** | | | |**type** | **String** | | | -|**debug** | **Boolean** | | | -|**firstSeen** | **OffsetDateTime** | | | diff --git a/docs/BinaryExternalsResponse.md b/docs/BinaryExternalsResponse.md index b158ad1..fdc77c2 100644 --- a/docs/BinaryExternalsResponse.md +++ b/docs/BinaryExternalsResponse.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**mb** | **Map<String, Object>** | MalwareBazaar information | | +|**mbLastUpdated** | **OffsetDateTime** | MalwareBazaar last updated date | | |**sha256Hash** | **String** | SHA256 hash of the binary | | |**vt** | **Map<String, Object>** | VirusTotal information | | |**vtLastUpdated** | **OffsetDateTime** | VirusTotal last updated date | | -|**mb** | **Map<String, Object>** | MalwareBazaar information | | -|**mbLastUpdated** | **OffsetDateTime** | MalwareBazaar last updated date | | diff --git a/docs/BinarySearchResult.md b/docs/BinarySearchResult.md index 2770092..1d12b47 100644 --- a/docs/BinarySearchResult.md +++ b/docs/BinarySearchResult.md @@ -7,15 +7,15 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**analysisId** | **Integer** | The analysis ID | | |**binaryId** | **Integer** | The binary ID | | |**binaryName** | **String** | The name of the binary | | -|**analysisId** | **Integer** | The analysis ID | | -|**sha256Hash** | **String** | The SHA-256 hash of the binary | | -|**tags** | **List<String>** | | | |**createdAt** | **OffsetDateTime** | The creation date of the binary | | |**modelId** | **Integer** | The model ID of the binary | | |**modelName** | **String** | The name of the model | | |**ownedBy** | **String** | The owner of the binary | | +|**sha256Hash** | **String** | The SHA-256 hash of the binary | | +|**tags** | **List<String>** | | | diff --git a/docs/CalleeFunctionInfo.md b/docs/CalleeFunctionInfo.md index eedf81d..abd5c86 100644 --- a/docs/CalleeFunctionInfo.md +++ b/docs/CalleeFunctionInfo.md @@ -7,12 +7,12 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**functionId** | **Long** | Unique identifier of the function | | -|**matchedFunctionId** | **Integer** | | | -|**dashboardUrl** | **String** | | | -|**isExternal** | **Boolean** | Indicates if the function is external | [optional] | |**calleeName** | **String** | Name of the called function | | |**calleeVaddr** | **String** | Virtual address of the called function | | +|**dashboardUrl** | **String** | | | +|**functionId** | **Long** | Unique identifier of the function | | +|**isExternal** | **Boolean** | Indicates if the function is external | [optional] | +|**matchedFunctionId** | **Integer** | | | diff --git a/docs/CallerFunctionInfo.md b/docs/CallerFunctionInfo.md index 2a70580..723952c 100644 --- a/docs/CallerFunctionInfo.md +++ b/docs/CallerFunctionInfo.md @@ -7,12 +7,12 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**functionId** | **Long** | Unique identifier of the function | | -|**matchedFunctionId** | **Integer** | | | -|**dashboardUrl** | **String** | | | -|**isExternal** | **Boolean** | Indicates if the function is external | [optional] | |**callerName** | **String** | Name of the calling function | | |**callerVaddr** | **String** | Virtual address of the calling function | | +|**dashboardUrl** | **String** | | | +|**functionId** | **Long** | Unique identifier of the function | | +|**isExternal** | **Boolean** | Indicates if the function is external | [optional] | +|**matchedFunctionId** | **Integer** | | | diff --git a/docs/Capability.md b/docs/Capability.md index 8ea31df..b8c15ec 100644 --- a/docs/Capability.md +++ b/docs/Capability.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**capabilities** | **List<String>** | The list of capabilities associated with the function | | |**functionName** | **String** | The name of the function with a capability | | |**functionVaddr** | **Long** | The virtual address of the function where the capability comes from | | -|**capabilities** | **List<String>** | The list of capabilities associated with the function | | diff --git a/docs/CodeSignatureModel.md b/docs/CodeSignatureModel.md index 13500c5..37ffe90 100644 --- a/docs/CodeSignatureModel.md +++ b/docs/CodeSignatureModel.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**signatures** | [**List<SingleCodeSignatureModel>**](SingleCodeSignatureModel.md) | | | |**signed** | **Boolean** | | | |**validSignature** | **Boolean** | | | -|**signatures** | [**List<SingleCodeSignatureModel>**](SingleCodeSignatureModel.md) | | | diff --git a/docs/CollectionBinaryResponse.md b/docs/CollectionBinaryResponse.md index 68cffcf..5e56b69 100644 --- a/docs/CollectionBinaryResponse.md +++ b/docs/CollectionBinaryResponse.md @@ -10,10 +10,10 @@ |**analysisId** | **Integer** | Analysis ID | | |**binaryId** | **Integer** | Binary ID | | |**binaryName** | **String** | Binary name | | -|**ownerId** | **Integer** | Binary owner | | -|**sha256Hash** | **String** | Binary SHA-256 hash | | |**createdAt** | **OffsetDateTime** | Binary creation date | | |**isSystemAnalysis** | **Boolean** | Is the analysis owned by a RevEng.AI account | | +|**ownerId** | **Integer** | Binary owner | | +|**sha256Hash** | **String** | Binary SHA-256 hash | | diff --git a/docs/CollectionCreateRequest.md b/docs/CollectionCreateRequest.md index 845dbb8..132ffb9 100644 --- a/docs/CollectionCreateRequest.md +++ b/docs/CollectionCreateRequest.md @@ -7,12 +7,12 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**binaries** | **List<Integer>** | | [optional] | |**collectionName** | **String** | | | -|**description** | **String** | | | |**collectionScope** | **CollectionScope** | | [optional] | -|**tags** | **List<String>** | | [optional] | -|**binaries** | **List<Integer>** | | [optional] | +|**description** | **String** | | | |**modelId** | **Integer** | | | +|**tags** | **List<String>** | | [optional] | diff --git a/docs/CollectionListItem.md b/docs/CollectionListItem.md index d967ffc..72afe37 100644 --- a/docs/CollectionListItem.md +++ b/docs/CollectionListItem.md @@ -7,16 +7,16 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**collectionId** | **Integer** | The ID of the collection | | |**collectionName** | **String** | The name of the collection | | -|**description** | **String** | The description of the collection | | -|**collectionScope** | **String** | The scope of the collection | | |**collectionOwner** | **String** | The owner of the collection | | -|**officialCollection** | **Boolean** | Whether the collection is maintained by RevEng.AI | | -|**collectionTags** | **List<String>** | The tags of the collection | [optional] | +|**collectionScope** | **String** | The scope of the collection | | |**collectionSize** | **Integer** | The size of the collection | | -|**collectionId** | **Integer** | The ID of the collection | | +|**collectionTags** | **List<String>** | The tags of the collection | [optional] | |**creation** | **OffsetDateTime** | The datetime of when the collection was created | | +|**description** | **String** | The description of the collection | | |**modelName** | **String** | The model being used for the collection | | +|**officialCollection** | **Boolean** | Whether the collection is maintained by RevEng.AI | | |**teamId** | **Integer** | | [optional] | diff --git a/docs/CollectionResponse.md b/docs/CollectionResponse.md index c87011e..4dfe25e 100644 --- a/docs/CollectionResponse.md +++ b/docs/CollectionResponse.md @@ -7,17 +7,17 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**binaries** | [**List<CollectionResponseBinariesInner>**](CollectionResponseBinariesInner.md) | | [optional] | |**collectionId** | **Integer** | Collection ID | | |**collectionName** | **String** | Collection name | | +|**collectionScope** | **CollectionScope** | Collection public status | | +|**createdAt** | **OffsetDateTime** | Collection creation date | | |**description** | **String** | Collection description | | |**modelId** | **Integer** | Collection model ID | | -|**userId** | **Integer** | Collection user ID | | +|**tags** | **List<String>** | | [optional] | |**teamId** | **Integer** | | [optional] | -|**collectionScope** | **CollectionScope** | Collection public status | | -|**createdAt** | **OffsetDateTime** | Collection creation date | | |**updatedAt** | **OffsetDateTime** | Collection last update date | | -|**tags** | **List<String>** | | [optional] | -|**binaries** | [**List<CollectionResponseBinariesInner>**](CollectionResponseBinariesInner.md) | | [optional] | +|**userId** | **Integer** | Collection user ID | | diff --git a/docs/CollectionResponseBinariesInner.md b/docs/CollectionResponseBinariesInner.md index 2d83d68..59df191 100644 --- a/docs/CollectionResponseBinariesInner.md +++ b/docs/CollectionResponseBinariesInner.md @@ -10,10 +10,10 @@ |**analysisId** | **Integer** | Analysis ID | | |**binaryId** | **Integer** | Binary ID | | |**binaryName** | **String** | Binary name | | -|**ownerId** | **Integer** | Binary owner | | -|**sha256Hash** | **String** | Binary SHA-256 hash | | |**createdAt** | **OffsetDateTime** | Binary creation date | | |**isSystemAnalysis** | **Boolean** | Is the analysis owned by a RevEng.AI account | | +|**ownerId** | **Integer** | Binary owner | | +|**sha256Hash** | **String** | Binary SHA-256 hash | | diff --git a/docs/CollectionSearchResult.md b/docs/CollectionSearchResult.md index 67e3310..c99404c 100644 --- a/docs/CollectionSearchResult.md +++ b/docs/CollectionSearchResult.md @@ -9,15 +9,15 @@ |------------ | ------------- | ------------- | -------------| |**collectionId** | **Integer** | The ID of the collection | | |**collectionName** | **String** | The name of the collection | | -|**scope** | **String** | The scope of the collection | | -|**lastUpdatedAt** | **OffsetDateTime** | The last update date of the collection | | |**createdAt** | **OffsetDateTime** | The creation date of the collection | | +|**description** | **String** | The description of the collection | | +|**lastUpdatedAt** | **OffsetDateTime** | The last update date of the collection | | |**modelId** | **Integer** | The model ID of the binary | | |**modelName** | **String** | The name of the model | | |**ownedBy** | **String** | The owner of the collection | | -|**tags** | **List<String>** | | [optional] | +|**scope** | **String** | The scope of the collection | | |**size** | **Integer** | | [optional] | -|**description** | **String** | The description of the collection | | +|**tags** | **List<String>** | | [optional] | |**teamId** | **Integer** | | [optional] | diff --git a/docs/CollectionUpdateRequest.md b/docs/CollectionUpdateRequest.md index 81a0da6..9129e1a 100644 --- a/docs/CollectionUpdateRequest.md +++ b/docs/CollectionUpdateRequest.md @@ -8,8 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**collectionName** | **String** | | [optional] | -|**description** | **String** | | [optional] | |**collectionScope** | **CollectionScope** | | [optional] | +|**description** | **String** | | [optional] | diff --git a/docs/CommentResponse.md b/docs/CommentResponse.md index 8f3b957..8fd45e3 100644 --- a/docs/CommentResponse.md +++ b/docs/CommentResponse.md @@ -8,13 +8,13 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**content** | **String** | Comment text content | | -|**id** | **Integer** | | | -|**userId** | **Integer** | | | -|**resourceType** | **String** | | | -|**resourceId** | **String** | | | |**context** | [**Context**](Context.md) | | [optional] | |**createdAt** | **OffsetDateTime** | | | +|**id** | **Integer** | | | +|**resourceId** | **String** | | | +|**resourceType** | **String** | | | |**updatedAt** | **OffsetDateTime** | | | +|**userId** | **Integer** | | | diff --git a/docs/Communities.md b/docs/Communities.md index ede810c..177f38a 100644 --- a/docs/Communities.md +++ b/docs/Communities.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**totalFunctions** | **Integer** | The total number of matched community functions | | -|**totalMatchedFunctions** | **Integer** | The total number of functions in the binary | | |**directCommunityMatchPercentages** | [**List<CommunityMatchPercentages>**](CommunityMatchPercentages.md) | The list of directly matched communities | | |**topComponents** | **List<Map<String, Object>>** | The top components of the binary | | +|**totalFunctions** | **Integer** | The total number of matched community functions | | +|**totalMatchedFunctions** | **Integer** | The total number of functions in the binary | | diff --git a/docs/CommunityMatchPercentages.md b/docs/CommunityMatchPercentages.md index dd796b2..0231f3c 100644 --- a/docs/CommunityMatchPercentages.md +++ b/docs/CommunityMatchPercentages.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**binaryName** | **String** | | | |**binaryId** | **Integer** | | | +|**binaryName** | **String** | | | |**matchedCommunitiesPercent** | **BigDecimal** | | | |**unmatchedCommunitiesPercent** | **BigDecimal** | | | diff --git a/docs/ConfigResponse.md b/docs/ConfigResponse.md index 04f9cb3..e909aa7 100644 --- a/docs/ConfigResponse.md +++ b/docs/ConfigResponse.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**aiDecompilerSupportedModels** | **List<String>** | List of models that support AI decompilation | | +|**aiDecompilerUnsupportedLanguages** | **List<String>** | List of programming languages that are not supported for AI decompilation | | |**dashboardUrl** | **String** | The domain of the RevEng.AI platform you are connected to | [optional] | |**maxFileSizeBytes** | **Integer** | Maximum file size (in bytes) that can be uploaded for analysis | | -|**aiDecompilerUnsupportedLanguages** | **List<String>** | List of programming languages that are not supported for AI decompilation | | -|**aiDecompilerSupportedModels** | **List<String>** | List of models that support AI decompilation | | diff --git a/docs/Context.md b/docs/Context.md index 1861e3e..1e3487a 100644 --- a/docs/Context.md +++ b/docs/Context.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**startLine** | **Integer** | | | |**endLine** | **Integer** | | | +|**startLine** | **Integer** | | | diff --git a/docs/DecompilationCommentContext.md b/docs/DecompilationCommentContext.md index 3514ac3..01865c2 100644 --- a/docs/DecompilationCommentContext.md +++ b/docs/DecompilationCommentContext.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**startLine** | **Integer** | | | |**endLine** | **Integer** | | | +|**startLine** | **Integer** | | | diff --git a/docs/DieMatch.md b/docs/DieMatch.md index 9034d0f..411855c 100644 --- a/docs/DieMatch.md +++ b/docs/DieMatch.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**display** | **String** | Human-readable description from DIE's 'string' field; suitable for UI/logs, not for parsing. | | |**name** | **String** | Canonical name of the matched signature/technology (e.g., 'UPX', 'GCC', 'MSVC'). | | |**type** | **String** | Category assigned by DIE for the match (e.g., 'compiler', 'packer', 'file'). | | -|**display** | **String** | Human-readable description from DIE's 'string' field; suitable for UI/logs, not for parsing. | | |**version** | **String** | Extracted version string when available; may be empty/None if unknown. | | diff --git a/docs/ELFImportModel.md b/docs/ELFImportModel.md index 987cdae..bd4b789 100644 --- a/docs/ELFImportModel.md +++ b/docs/ELFImportModel.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**numberOfImports** | **Integer** | | | |**imports** | **List<String>** | | | +|**numberOfImports** | **Integer** | | | diff --git a/docs/ELFModel.md b/docs/ELFModel.md index 0bc1b60..fed2e9f 100644 --- a/docs/ELFModel.md +++ b/docs/ELFModel.md @@ -7,25 +7,25 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**fileType** | **String** | | | |**architecture** | **String** | | | +|**buildId** | **String** | | | +|**debugInfo** | **Map<String, Object>** | | | +|**dynamicEntries** | [**List<ElfDynamicEntry>**](ElfDynamicEntry.md) | | | +|**dynamicSymbols** | [**List<ELFSymbol>**](ELFSymbol.md) | | | |**endianness** | **String** | | | |**entryPoint** | **Integer** | | | |**entryPointBytes** | **String** | | | -|**importHash** | **String** | | | |**exportHash** | **String** | | | -|**buildId** | **String** | | | -|**security** | [**ELFSecurity**](ELFSecurity.md) | | | +|**exportedFunctions** | **List<String>** | | | +|**fileType** | **String** | | | +|**importHash** | **String** | | | +|**imports** | [**ELFImportModel**](ELFImportModel.md) | | | +|**notes** | **List<Map<String, Object>>** | | | +|**relocations** | [**List<ELFRelocation>**](ELFRelocation.md) | | | |**sections** | [**List<ELFSection>**](ELFSection.md) | | | +|**security** | [**ELFSecurity**](ELFSecurity.md) | | | |**segments** | [**List<ELFSegment>**](ELFSegment.md) | | | |**symbols** | [**List<ELFSymbol>**](ELFSymbol.md) | | | -|**dynamicSymbols** | [**List<ELFSymbol>**](ELFSymbol.md) | | | -|**relocations** | [**List<ELFRelocation>**](ELFRelocation.md) | | | -|**imports** | [**ELFImportModel**](ELFImportModel.md) | | | -|**exportedFunctions** | **List<String>** | | | -|**dynamicEntries** | [**List<ElfDynamicEntry>**](ElfDynamicEntry.md) | | | -|**notes** | **List<Map<String, Object>>** | | | -|**debugInfo** | **Map<String, Object>** | | | |**versionInfo** | **Map<String, Object>** | | | diff --git a/docs/ELFRelocation.md b/docs/ELFRelocation.md index aa5b2b5..49878e8 100644 --- a/docs/ELFRelocation.md +++ b/docs/ELFRelocation.md @@ -7,13 +7,13 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**address** | **Integer** | | | -|**type** | **String** | | | -|**size** | **Integer** | | | |**addend** | **Integer** | | | -|**symbolName** | **String** | | | +|**address** | **Integer** | | | |**isDynamic** | **Boolean** | | | |**isPltgot** | **Boolean** | | | +|**size** | **Integer** | | | +|**symbolName** | **String** | | | +|**type** | **String** | | | diff --git a/docs/ELFSection.md b/docs/ELFSection.md index ea6cc34..a1d230b 100644 --- a/docs/ELFSection.md +++ b/docs/ELFSection.md @@ -7,16 +7,16 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**alignment** | **Integer** | | | +|**entropy** | **BigDecimal** | | | +|**fileOffset** | **Integer** | | | +|**flags** | **String** | | | +|**flagsRaw** | **Integer** | | | |**name** | **String** | | | +|**rawSize** | **Integer** | | | |**type** | **String** | | | |**virtualAddress** | **Integer** | | | |**virtualSize** | **Integer** | | | -|**rawSize** | **Integer** | | | -|**fileOffset** | **Integer** | | | -|**flags** | **String** | | | -|**flagsRaw** | **Integer** | | | -|**entropy** | **BigDecimal** | | | -|**alignment** | **Integer** | | | diff --git a/docs/ELFSecurity.md b/docs/ELFSecurity.md index dbe65fb..ad009ec 100644 --- a/docs/ELFSecurity.md +++ b/docs/ELFSecurity.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**pie** | **Boolean** | | | -|**stripped** | **Boolean** | | | |**canary** | **Boolean** | | | |**nx** | **Boolean** | | | +|**pie** | **Boolean** | | | |**relo** | **Boolean** | | | +|**stripped** | **Boolean** | | | diff --git a/docs/ELFSegment.md b/docs/ELFSegment.md index d19215d..58b0d36 100644 --- a/docs/ELFSegment.md +++ b/docs/ELFSegment.md @@ -7,15 +7,15 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**type** | **String** | | | -|**virtualAddress** | **Integer** | | | -|**virtualSize** | **Integer** | | | -|**physicalAddress** | **Integer** | | | -|**physicalSize** | **Integer** | | | +|**alignment** | **Integer** | | | |**fileOffset** | **Integer** | | | |**flags** | **String** | | | |**flagsRaw** | **Integer** | | | -|**alignment** | **Integer** | | | +|**physicalAddress** | **Integer** | | | +|**physicalSize** | **Integer** | | | +|**type** | **String** | | | +|**virtualAddress** | **Integer** | | | +|**virtualSize** | **Integer** | | | diff --git a/docs/ELFSymbol.md b/docs/ELFSymbol.md index 3bfbce6..7c617c3 100644 --- a/docs/ELFSymbol.md +++ b/docs/ELFSymbol.md @@ -7,13 +7,13 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**binding** | **String** | | | |**name** | **String** | | | -|**value** | **Integer** | | | +|**sectionIndex** | **Integer** | | | |**size** | **Integer** | | | |**type** | **String** | | | -|**binding** | **String** | | | +|**value** | **Integer** | | | |**visibility** | **String** | | | -|**sectionIndex** | **Integer** | | | diff --git a/docs/Enumeration.md b/docs/Enumeration.md index d9d31c2..91db813 100644 --- a/docs/Enumeration.md +++ b/docs/Enumeration.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**artifactType** | **String** | Type of artifact that the enumeration is associated with | [optional] | |**lastChange** | **String** | | [optional] | -|**name** | **String** | Name of the enumeration | | |**members** | **Map<String, Integer>** | Dictionary of enumeration members and their values | | -|**artifactType** | **String** | Type of artifact that the enumeration is associated with | [optional] | +|**name** | **String** | Name of the enumeration | | diff --git a/docs/ExportModel.md b/docs/ExportModel.md index 0e0766f..c7fb859 100644 --- a/docs/ExportModel.md +++ b/docs/ExportModel.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**numberOfExports** | **Integer** | | | |**exports** | **List<Map<String, Integer>>** | | | +|**numberOfExports** | **Integer** | | | diff --git a/docs/ExternalResponse.md b/docs/ExternalResponse.md index 9b65c9b..e20e154 100644 --- a/docs/ExternalResponse.md +++ b/docs/ExternalResponse.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**sha256Hash** | **String** | | | |**data** | **Map<String, Object>** | | | |**lastUpdated** | **OffsetDateTime** | | | +|**sha256Hash** | **String** | | | diff --git a/docs/ExternalSourcesApi.md b/docs/ExternalSourcesApi.md index 6e0d1cb..1916dfa 100644 --- a/docs/ExternalSourcesApi.md +++ b/docs/ExternalSourcesApi.md @@ -75,8 +75,8 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **202** | Successful Response | - | -| **422** | Invalid request parameters | - | | **409** | Request already queued | - | +| **422** | Invalid request parameters | - | # **getVtData** @@ -144,8 +144,8 @@ public class Example { | 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 | - | # **getVtTaskStatus** diff --git a/docs/FileHashes.md b/docs/FileHashes.md index ff7381b..5f3304a 100644 --- a/docs/FileHashes.md +++ b/docs/FileHashes.md @@ -10,11 +10,11 @@ |**md5** | **String** | | | |**sha1** | **String** | | | |**sha256** | **String** | | | -|**sha512** | **String** | | | |**sha3224** | **String** | | | |**sha3256** | **String** | | | |**sha3384** | **String** | | | |**sha3512** | **String** | | | +|**sha512** | **String** | | | diff --git a/docs/FileMetadata.md b/docs/FileMetadata.md index 9596ad2..c460785 100644 --- a/docs/FileMetadata.md +++ b/docs/FileMetadata.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**size** | **Integer** | | | -|**friendlySize** | **String** | | | |**entropy** | **BigDecimal** | | | +|**friendlySize** | **String** | | | |**hashes** | [**FileHashes**](FileHashes.md) | | | +|**size** | **Integer** | | | diff --git a/docs/FunctionBlockResponse.md b/docs/FunctionBlockResponse.md index 2f89b34..bff75a3 100644 --- a/docs/FunctionBlockResponse.md +++ b/docs/FunctionBlockResponse.md @@ -8,11 +8,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**asm** | **List<String>** | The ordered assembly strings for this chunk | | +|**comment** | **String** | | [optional] | +|**destinations** | [**List<FunctionBlockDestinationResponse>**](FunctionBlockDestinationResponse.md) | The potential execution flow destinations from this block | | |**id** | **Integer** | ID of the block | | -|**minAddr** | **Integer** | The minimum vaddr of the block | | |**maxAddr** | **Integer** | The maximum vaddr of the block | | -|**destinations** | [**List<FunctionBlockDestinationResponse>**](FunctionBlockDestinationResponse.md) | The potential execution flow destinations from this block | | -|**comment** | **String** | | [optional] | +|**minAddr** | **Integer** | The minimum vaddr of the block | | diff --git a/docs/FunctionBlocksResponse.md b/docs/FunctionBlocksResponse.md index 78b2b9e..9924e70 100644 --- a/docs/FunctionBlocksResponse.md +++ b/docs/FunctionBlocksResponse.md @@ -10,8 +10,8 @@ Response for returning disassembly of a function. |------------ | ------------- | ------------- | -------------| |**blocks** | [**List<FunctionBlockResponse>**](FunctionBlockResponse.md) | Disassembly is broken into control flow blocks | | |**localVariables** | [**List<FunctionLocalVariableResponse>**](FunctionLocalVariableResponse.md) | Local variables associated with this function | | -|**params** | [**List<FunctionParamResponse>**](FunctionParamResponse.md) | Params associated with this function | | |**overviewComment** | **String** | | | +|**params** | [**List<FunctionParamResponse>**](FunctionParamResponse.md) | Params associated with this function | | diff --git a/docs/FunctionBoundary.md b/docs/FunctionBoundary.md index ea6e6dc..43d4d47 100644 --- a/docs/FunctionBoundary.md +++ b/docs/FunctionBoundary.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**mangledName** | **String** | | | -|**startAddress** | **Long** | | | |**endAddress** | **Long** | | | |**includeInAnalysis** | **Boolean** | | [optional] | +|**mangledName** | **String** | | | +|**startAddress** | **Long** | | | diff --git a/docs/FunctionDataTypes.md b/docs/FunctionDataTypes.md index 921ea8c..a6084f5 100644 --- a/docs/FunctionDataTypes.md +++ b/docs/FunctionDataTypes.md @@ -8,9 +8,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**completed** | **Boolean** | Whether the service has completed data types generation | | -|**status** | **String** | The current status of the data types service | | |**dataTypes** | [**FunctionInfoOutput**](FunctionInfoOutput.md) | | [optional] | |**dataTypesVersion** | **Integer** | | [optional] | +|**status** | **String** | The current status of the data types service | | diff --git a/docs/FunctionDataTypesList.md b/docs/FunctionDataTypesList.md index ee1d2d8..521697b 100644 --- a/docs/FunctionDataTypesList.md +++ b/docs/FunctionDataTypesList.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**items** | [**List<FunctionDataTypesListItem>**](FunctionDataTypesListItem.md) | List of function data types information | | |**totalCount** | **Integer** | Total number of functions in analysis | [optional] | |**totalDataTypesCount** | **Integer** | Total number of functions with data types | [optional] | -|**items** | [**List<FunctionDataTypesListItem>**](FunctionDataTypesListItem.md) | List of function data types information | | diff --git a/docs/FunctionDataTypesListItem.md b/docs/FunctionDataTypesListItem.md index 4904417..012fe9d 100644 --- a/docs/FunctionDataTypesListItem.md +++ b/docs/FunctionDataTypesListItem.md @@ -8,10 +8,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**completed** | **Boolean** | Whether the service has completed data types generation | | -|**status** | **String** | The current status of the data types service | | |**dataTypes** | [**FunctionInfoOutput**](FunctionInfoOutput.md) | | [optional] | |**dataTypesVersion** | **Integer** | | [optional] | |**functionId** | **Long** | Function id | | +|**status** | **String** | The current status of the data types service | | diff --git a/docs/FunctionDataTypesStatus.md b/docs/FunctionDataTypesStatus.md index e753780..c59a022 100644 --- a/docs/FunctionDataTypesStatus.md +++ b/docs/FunctionDataTypesStatus.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**functionId** | **Long** | Function id | | |**completed** | **Boolean** | Whether the service has completed data types generation | | +|**functionId** | **Long** | Function id | | |**status** | **String** | The current status of the data types service | | diff --git a/docs/FunctionHeader.md b/docs/FunctionHeader.md index 8b7a9ef..4c4f617 100644 --- a/docs/FunctionHeader.md +++ b/docs/FunctionHeader.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**addr** | **Integer** | Memory address of the function | | +|**args** | [**Map<String, Argument>**](Argument.md) | Dictionary of function arguments | | |**lastChange** | **String** | | [optional] | |**name** | **String** | Name of the function | | -|**addr** | **Integer** | Memory address of the function | | |**type** | **String** | Return type of the function | | -|**args** | [**Map<String, Argument>**](Argument.md) | Dictionary of function arguments | | diff --git a/docs/FunctionInfoInput.md b/docs/FunctionInfoInput.md index 02b5a59..d4e6fb7 100644 --- a/docs/FunctionInfoInput.md +++ b/docs/FunctionInfoInput.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**funcTypes** | [**FunctionTypeInput**](FunctionTypeInput.md) | | [optional] | |**funcDeps** | [**List<FunctionInfoInputFuncDepsInner>**](FunctionInfoInputFuncDepsInner.md) | List of function dependencies | | +|**funcTypes** | [**FunctionTypeInput**](FunctionTypeInput.md) | | [optional] | diff --git a/docs/FunctionInfoInputFuncDepsInner.md b/docs/FunctionInfoInputFuncDepsInner.md index 065aa26..933a738 100644 --- a/docs/FunctionInfoInputFuncDepsInner.md +++ b/docs/FunctionInfoInputFuncDepsInner.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**artifactType** | **String** | Type of artifact that the global variable is associated with | [optional] | |**lastChange** | **String** | | [optional] | +|**members** | **Map<String, Integer>** | Dictionary of enumeration members and their values | | |**name** | **String** | Name of the global variable | | |**size** | **Integer** | Size of the global variable in bytes | | -|**members** | **Map<String, Integer>** | Dictionary of enumeration members and their values | | -|**artifactType** | **String** | Type of artifact that the global variable is associated with | [optional] | |**type** | **String** | Data type of the global variable | | |**addr** | **Integer** | Memory address of the global variable | | diff --git a/docs/FunctionInfoOutput.md b/docs/FunctionInfoOutput.md index 075340e..75ae8d2 100644 --- a/docs/FunctionInfoOutput.md +++ b/docs/FunctionInfoOutput.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**funcTypes** | [**FunctionTypeOutput**](FunctionTypeOutput.md) | | [optional] | |**funcDeps** | [**List<FunctionInfoInputFuncDepsInner>**](FunctionInfoInputFuncDepsInner.md) | List of function dependencies | | +|**funcTypes** | [**FunctionTypeOutput**](FunctionTypeOutput.md) | | [optional] | diff --git a/docs/FunctionListItem.md b/docs/FunctionListItem.md index ef8fac0..354d767 100644 --- a/docs/FunctionListItem.md +++ b/docs/FunctionListItem.md @@ -7,14 +7,14 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**debug** | **Boolean** | Whether the function has debug information | | |**id** | **Long** | Function id | | +|**mangledName** | **String** | Mangled name of the function | | |**name** | **String** | Name of the function | | -|**nameSourceType** | [**NameSourceTypeEnum**](#NameSourceTypeEnum) | The source (process) the function name came from | | |**nameSource** | [**NameSourceType**](NameSourceType.md) | The source of the current function name. | | -|**mangledName** | **String** | Mangled name of the function | | -|**vaddr** | **Long** | Function virtual address | | +|**nameSourceType** | [**NameSourceTypeEnum**](#NameSourceTypeEnum) | The source (process) the function name came from | | |**size** | **Integer** | Function size in bytes | | -|**debug** | **Boolean** | Whether the function has debug information | | +|**vaddr** | **Long** | Function virtual address | | diff --git a/docs/FunctionLocalVariableResponse.md b/docs/FunctionLocalVariableResponse.md index 3a0de17..e5fd321 100644 --- a/docs/FunctionLocalVariableResponse.md +++ b/docs/FunctionLocalVariableResponse.md @@ -9,9 +9,9 @@ |------------ | ------------- | ------------- | -------------| |**address** | **String** | | | |**dType** | **String** | | | -|**size** | **Integer** | | | |**loc** | **String** | | | |**name** | **String** | | | +|**size** | **Integer** | | | diff --git a/docs/FunctionMappingFull.md b/docs/FunctionMappingFull.md index fecc4ab..aa81775 100644 --- a/docs/FunctionMappingFull.md +++ b/docs/FunctionMappingFull.md @@ -7,19 +7,19 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**inverseStringMap** | [**Map<String, InverseStringMapItem>**](InverseStringMapItem.md) | | | +|**fields** | **Map<String, Map<String, InverseValue>>** | | | |**inverseFunctionMap** | [**Map<String, InverseFunctionMapItem>**](InverseFunctionMapItem.md) | | | -|**unmatchedFunctions** | [**Map<String, InverseValue>**](InverseValue.md) | | | -|**unmatchedCustomTypes** | [**Map<String, InverseValue>**](InverseValue.md) | | | -|**unmatchedStrings** | [**Map<String, InverseValue>**](InverseValue.md) | | | -|**unmatchedVars** | [**Map<String, InverseValue>**](InverseValue.md) | | | -|**unmatchedGoToLabels** | [**Map<String, InverseValue>**](InverseValue.md) | | | +|**inverseStringMap** | [**Map<String, InverseStringMapItem>**](InverseStringMapItem.md) | | | |**unmatchedCustomFunctionPointers** | [**Map<String, InverseValue>**](InverseValue.md) | | | -|**unmatchedVariadicLists** | [**Map<String, InverseValue>**](InverseValue.md) | | | +|**unmatchedCustomTypes** | [**Map<String, InverseValue>**](InverseValue.md) | | | |**unmatchedEnums** | [**Map<String, InverseValue>**](InverseValue.md) | | | -|**unmatchedGlobalVars** | [**Map<String, InverseValue>**](InverseValue.md) | | | -|**fields** | **Map<String, Map<String, InverseValue>>** | | | |**unmatchedExternalVars** | [**Map<String, InverseValue>**](InverseValue.md) | No longer provided. | [optional] | +|**unmatchedFunctions** | [**Map<String, InverseValue>**](InverseValue.md) | | | +|**unmatchedGlobalVars** | [**Map<String, InverseValue>**](InverseValue.md) | | | +|**unmatchedGoToLabels** | [**Map<String, InverseValue>**](InverseValue.md) | | | +|**unmatchedStrings** | [**Map<String, InverseValue>**](InverseValue.md) | | | +|**unmatchedVariadicLists** | [**Map<String, InverseValue>**](InverseValue.md) | | | +|**unmatchedVars** | [**Map<String, InverseValue>**](InverseValue.md) | | | diff --git a/docs/FunctionMatch.md b/docs/FunctionMatch.md index 9b4e1c9..a86606d 100644 --- a/docs/FunctionMatch.md +++ b/docs/FunctionMatch.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**confidences** | [**List<NameConfidence>**](NameConfidence.md) | | [optional] | |**functionId** | **Long** | Unique identifier of the function | | |**matchedFunctions** | [**List<MatchedFunction>**](MatchedFunction.md) | | | -|**confidences** | [**List<NameConfidence>**](NameConfidence.md) | | [optional] | diff --git a/docs/FunctionMatchingFilters.md b/docs/FunctionMatchingFilters.md index f737acf..092ab90 100644 --- a/docs/FunctionMatchingFilters.md +++ b/docs/FunctionMatchingFilters.md @@ -9,9 +9,9 @@ |------------ | ------------- | ------------- | -------------| |**binaryIds** | **List<Integer>** | ID's of binaries to limit the search to, if empty, search all scoped binaries | [optional] | |**collectionIds** | **List<Integer>** | ID's of collections to limit the search to, if empty, search all scoped collections | [optional] | +|**debugTypes** | [**List<DebugTypesEnum>**](#List<DebugTypesEnum>) | Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions | [optional] | |**functionIds** | **List<Long>** | ID's of functions to limit the search to, if empty, search all scoped functions | [optional] | |**userIds** | **List<Integer>** | ID's of users to limit the search to, if empty, search all scoped users | [optional] | -|**debugTypes** | [**List<DebugTypesEnum>**](#List<DebugTypesEnum>) | Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions | [optional] | diff --git a/docs/FunctionMatchingRequest.md b/docs/FunctionMatchingRequest.md index 45c0acb..71cf1aa 100644 --- a/docs/FunctionMatchingRequest.md +++ b/docs/FunctionMatchingRequest.md @@ -7,15 +7,15 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**modelId** | **Integer** | ID of the model used for function matching, used to determine the embedding model | | +|**filters** | [**FunctionMatchingFilters**](FunctionMatchingFilters.md) | | [optional] | |**functionIds** | **List<Long>** | ID's of functions to find matches for, must be at least one function ID | | |**minSimilarity** | **BigDecimal** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] | -|**filters** | [**FunctionMatchingFilters**](FunctionMatchingFilters.md) | | [optional] | -|**resultsPerFunction** | **Integer** | Maximum number of matches to return per function, default is 1, max is 50 | [optional] | +|**modelId** | **Integer** | ID of the model used for function matching, used to determine the embedding model | | +|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] | |**page** | **Integer** | Page number for paginated results, default is 1 (first page) | [optional] | |**pageSize** | **Integer** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] | +|**resultsPerFunction** | **Integer** | Maximum number of matches to return per function, default is 1, max is 50 | [optional] | |**statusOnly** | **Boolean** | If set to true, only returns the status of the matching operation without the actual results | [optional] | -|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] | |**useCanonicalNames** | **Boolean** | Whether to use canonical function names during function matching for confidence results, default is False | [optional] | diff --git a/docs/FunctionMatchingResponse.md b/docs/FunctionMatchingResponse.md index c9edcd9..fdf25ee 100644 --- a/docs/FunctionMatchingResponse.md +++ b/docs/FunctionMatchingResponse.md @@ -7,15 +7,15 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**progress** | **Integer** | Progress of the matching operation, represented as a percentage | [optional] | -|**status** | **String** | | [optional] | -|**totalTime** | **Integer** | | [optional] | -|**errorMessage** | **String** | | [optional] | |**currentPage** | **Integer** | | [optional] | -|**totalPages** | **Integer** | | [optional] | +|**errorMessage** | **String** | | [optional] | |**matches** | [**List<FunctionMatch>**](FunctionMatch.md) | | [optional] | -|**numMatches** | **Integer** | | [optional] | |**numDebugMatches** | **Integer** | | [optional] | +|**numMatches** | **Integer** | | [optional] | +|**progress** | **Integer** | Progress of the matching operation, represented as a percentage | [optional] | +|**status** | **String** | | [optional] | +|**totalPages** | **Integer** | | [optional] | +|**totalTime** | **Integer** | | [optional] | |**updatedAt** | **String** | | [optional] | diff --git a/docs/FunctionNameHistory.md b/docs/FunctionNameHistory.md index f3b017c..6c7a0a5 100644 --- a/docs/FunctionNameHistory.md +++ b/docs/FunctionNameHistory.md @@ -7,13 +7,13 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**historyId** | **Integer** | The ID of the history record | | |**changeMadeBy** | **String** | The user who made the change | | +|**createdAt** | **String** | The timestamp when the function name was created | | |**functionName** | **String** | The name of the function | | -|**mangledName** | **String** | The mangled name of the function | | +|**historyId** | **Integer** | The ID of the history record | | |**isDebug** | **Boolean** | Whether the function is debugged | | +|**mangledName** | **String** | The mangled name of the function | | |**sourceType** | **FunctionSourceType** | The source type of the function | | -|**createdAt** | **String** | The timestamp when the function name was created | | diff --git a/docs/FunctionParamResponse.md b/docs/FunctionParamResponse.md index 0aec65a..d7ba331 100644 --- a/docs/FunctionParamResponse.md +++ b/docs/FunctionParamResponse.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dType** | **String** | | | -|**loc** | **String** | | | |**addr** | **String** | | | +|**dType** | **String** | | | |**length** | **Integer** | | | +|**loc** | **String** | | | |**name** | **String** | | | diff --git a/docs/FunctionRename.md b/docs/FunctionRename.md index f23802a..dd1143c 100644 --- a/docs/FunctionRename.md +++ b/docs/FunctionRename.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**newName** | **String** | The new name for the function | | |**newMangledName** | **String** | The new mangled name for the function | | +|**newName** | **String** | The new name for the function | | diff --git a/docs/FunctionRenameMap.md b/docs/FunctionRenameMap.md index 941dfc5..5777bcf 100644 --- a/docs/FunctionRenameMap.md +++ b/docs/FunctionRenameMap.md @@ -8,8 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**functionId** | **Long** | The ID of the function to rename | | -|**newName** | **String** | The new name for the function | | |**newMangledName** | **String** | The new mangled name for the function | | +|**newName** | **String** | The new name for the function | | diff --git a/docs/FunctionSearchResult.md b/docs/FunctionSearchResult.md index 139c8d7..766f5eb 100644 --- a/docs/FunctionSearchResult.md +++ b/docs/FunctionSearchResult.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**functionId** | **Long** | The function ID | | -|**functionName** | **String** | The name of the function | | |**binaryName** | **String** | The name of the binary the function belongs to | | |**createdAt** | **OffsetDateTime** | The creation date of the function | | +|**functionId** | **Long** | The function ID | | +|**functionName** | **String** | The name of the function | | |**modelId** | **Integer** | The model ID used to analyze the binary the function belongs to | | |**modelName** | **String** | The name of the model used to analyze the binary the function belongs to | | |**ownedBy** | **String** | The owner of the binary the function belongs to | | diff --git a/docs/FunctionString.md b/docs/FunctionString.md index 926f4f6..cdb7e56 100644 --- a/docs/FunctionString.md +++ b/docs/FunctionString.md @@ -7,8 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**value** | **String** | The value of the string literal | | +|**source** | **StringSource** | The source of the string | [optional] | |**vaddr** | **Integer** | The vaddr of the string value | | +|**value** | **String** | The value of the string literal | | diff --git a/docs/FunctionTaskResponse.md b/docs/FunctionTaskResponse.md index fbfe762..c85db70 100644 --- a/docs/FunctionTaskResponse.md +++ b/docs/FunctionTaskResponse.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **FunctionTaskStatus** | | [optional] | |**errorMessage** | **String** | | [optional] | +|**status** | **FunctionTaskStatus** | | [optional] | diff --git a/docs/FunctionTypeInput.md b/docs/FunctionTypeInput.md index 0fa3f38..a6339c4 100644 --- a/docs/FunctionTypeInput.md +++ b/docs/FunctionTypeInput.md @@ -7,14 +7,14 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**lastChange** | **String** | | [optional] | |**addr** | **Integer** | Memory address of the function | | -|**size** | **Integer** | Size of the function in bytes | | +|**artifactType** | **String** | Type of artifact that the structure is associated with | [optional] | |**header** | [**FunctionHeader**](FunctionHeader.md) | Function header information | | -|**stackVars** | [**Map<String, StackVariable>**](StackVariable.md) | | [optional] | +|**lastChange** | **String** | | [optional] | |**name** | **String** | Name of the function | | +|**size** | **Integer** | Size of the function in bytes | | +|**stackVars** | [**Map<String, StackVariable>**](StackVariable.md) | | [optional] | |**type** | **String** | Return type of the function | | -|**artifactType** | **String** | Type of artifact that the structure is associated with | [optional] | diff --git a/docs/FunctionTypeOutput.md b/docs/FunctionTypeOutput.md index a27ae3d..410dd45 100644 --- a/docs/FunctionTypeOutput.md +++ b/docs/FunctionTypeOutput.md @@ -7,14 +7,14 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**lastChange** | **String** | | [optional] | |**addr** | **Integer** | Memory address of the function | | -|**size** | **Integer** | Size of the function in bytes | | +|**artifactType** | **String** | Type of artifact that the structure is associated with | [optional] | |**header** | [**FunctionHeader**](FunctionHeader.md) | Function header information | | -|**stackVars** | [**Map<String, StackVariable>**](StackVariable.md) | | [optional] | +|**lastChange** | **String** | | [optional] | |**name** | **String** | Name of the function | | +|**size** | **Integer** | Size of the function in bytes | | +|**stackVars** | [**Map<String, StackVariable>**](StackVariable.md) | | [optional] | |**type** | **String** | Return type of the function | | -|**artifactType** | **String** | Type of artifact that the structure is associated with | [optional] | diff --git a/docs/FunctionsAiDecompilationApi.md b/docs/FunctionsAiDecompilationApi.md index 78272e5..551dcba 100644 --- a/docs/FunctionsAiDecompilationApi.md +++ b/docs/FunctionsAiDecompilationApi.md @@ -85,8 +85,8 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **201** | Successful Response | - | -| **422** | Invalid request parameters | - | | **400** | Bad Request | - | +| **422** | Invalid request parameters | - | # **createAiDecompilationTask** @@ -156,11 +156,11 @@ public class Example { | 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 | - | # **deleteAiDecompilationComment** @@ -232,9 +232,9 @@ public class Example { | 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 | - | # **getAiDecompilationComments** @@ -406,7 +406,7 @@ public class Example { FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); Long functionId = 56L; // Long | The ID of the function being decompiled Boolean summarise = true; // Boolean | Generate a summary for the decompilation - Boolean generateInlineComments = true; // Boolean | Generate inline comments for the decompilation (only works if summarise is enabled) + Boolean generateInlineComments = true; // Boolean | Generate inline comments for the decompilation try { BaseResponseGetAiDecompilationTask result = apiInstance.getAiDecompilationTaskResult(functionId, summarise, generateInlineComments); System.out.println(result); @@ -427,7 +427,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **functionId** | **Long**| The ID of the function being decompiled | | | **summarise** | **Boolean**| Generate a summary for the decompilation | [optional] [default to true] | -| **generateInlineComments** | **Boolean**| Generate inline comments for the decompilation (only works if summarise is enabled) | [optional] [default to true] | +| **generateInlineComments** | **Boolean**| Generate inline comments for the decompilation | [optional] [default to true] | ### Return type @@ -446,8 +446,8 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful Response | - | -| **422** | Invalid request parameters | - | | **403** | Forbidden | - | +| **422** | Invalid request parameters | - | # **getAiDecompilationTaskStatus** @@ -589,9 +589,9 @@ public class Example { | 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 | - | # **upsertAiDecompilationRating** diff --git a/docs/FunctionsCoreApi.md b/docs/FunctionsCoreApi.md index 0efafc7..845bc38 100644 --- a/docs/FunctionsCoreApi.md +++ b/docs/FunctionsCoreApi.md @@ -666,8 +666,8 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful Response | - | -| **422** | Invalid request parameters | - | | **404** | Not Found | - | +| **422** | Invalid request parameters | - | # **getFunctionCalleesCallers** @@ -871,8 +871,8 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful Response | - | -| **422** | Invalid request parameters | - | | **404** | Not Found | - | +| **422** | Invalid request parameters | - | # **getFunctionDetails** diff --git a/docs/FunctionsDecompilationApi.md b/docs/FunctionsDecompilationApi.md index f131a8a..6c1f9f1 100644 --- a/docs/FunctionsDecompilationApi.md +++ b/docs/FunctionsDecompilationApi.md @@ -80,8 +80,8 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **201** | Successful Response | - | -| **422** | Invalid request parameters | - | | **400** | Bad Request | - | +| **422** | Invalid request parameters | - | # **deleteDecompilationComment** @@ -153,9 +153,9 @@ public class Example { | 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 | - | # **getDecompilationComments** @@ -299,7 +299,7 @@ public class Example { | 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 | - | diff --git a/docs/FunctionsDetailResponse.md b/docs/FunctionsDetailResponse.md index 600b735..bb9cede 100644 --- a/docs/FunctionsDetailResponse.md +++ b/docs/FunctionsDetailResponse.md @@ -7,19 +7,19 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**functionId** | **Long** | Function id | | -|**functionName** | **String** | | | -|**functionNameMangled** | **String** | | | -|**functionVaddr** | **Long** | | | -|**functionSize** | **Integer** | | | |**analysisId** | **Integer** | | | |**binaryId** | **Integer** | | | |**binaryName** | **String** | | | -|**sha256Hash** | **String** | | | -|**debugHash** | **String** | | | |**debug** | **Boolean** | | | -|**embedding3d** | **List<BigDecimal>** | | [optional] | +|**debugHash** | **String** | | | |**embedding1d** | **List<BigDecimal>** | | [optional] | +|**embedding3d** | **List<BigDecimal>** | | [optional] | +|**functionId** | **Long** | Function id | | +|**functionName** | **String** | | | +|**functionNameMangled** | **String** | | | +|**functionSize** | **Integer** | | | +|**functionVaddr** | **Long** | | | +|**sha256Hash** | **String** | | | diff --git a/docs/GenerateFunctionDataTypes.md b/docs/GenerateFunctionDataTypes.md index 9329468..ec77bea 100644 --- a/docs/GenerateFunctionDataTypes.md +++ b/docs/GenerateFunctionDataTypes.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**dataTypesList** | [**GenerationStatusList**](GenerationStatusList.md) | List of function data types information that are either already generated, or now queued for generation | | |**queued** | **Boolean** | [DEPRECATED] This value has been replaced with the `data_types_list` field | | |**reference** | **String** | [DEPRECATED] This value has been replaced with the `data_types_list` field | | -|**dataTypesList** | [**GenerationStatusList**](GenerationStatusList.md) | List of function data types information that are either already generated, or now queued for generation | | diff --git a/docs/GenerationStatusList.md b/docs/GenerationStatusList.md index 7f35256..9c8a4b5 100644 --- a/docs/GenerationStatusList.md +++ b/docs/GenerationStatusList.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**items** | [**List<FunctionDataTypesStatus>**](FunctionDataTypesStatus.md) | List of function data types information | | |**totalCount** | **Integer** | Total number of functions in analysis | [optional] | |**totalDataTypesCount** | **Integer** | Total number of functions with data types | [optional] | -|**items** | [**List<FunctionDataTypesStatus>**](FunctionDataTypesStatus.md) | List of function data types information | | diff --git a/docs/GetAiDecompilationTask.md b/docs/GetAiDecompilationTask.md index bda4b10..780f85d 100644 --- a/docs/GetAiDecompilationTask.md +++ b/docs/GetAiDecompilationTask.md @@ -7,15 +7,15 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **AiDecompilationTaskStatus** | The status of the AI decompilation task | | +|**aiSummary** | **String** | | [optional] | |**decompilation** | **String** | | | -|**rawDecompilation** | **String** | | | |**functionMapping** | [**Map<String, InverseFunctionMapItem>**](InverseFunctionMapItem.md) | | | |**functionMappingFull** | [**FunctionMappingFull**](FunctionMappingFull.md) | | | -|**summary** | **String** | | [optional] | -|**aiSummary** | **String** | | [optional] | -|**rawAiSummary** | **String** | | [optional] | |**predictedFunctionName** | **String** | | [optional] | +|**rawAiSummary** | **String** | | [optional] | +|**rawDecompilation** | **String** | | | +|**status** | **AiDecompilationTaskStatus** | The status of the AI decompilation task | | +|**summary** | **String** | | [optional] | diff --git a/docs/GetMeResponse.md b/docs/GetMeResponse.md index 2412e86..dd6b08d 100644 --- a/docs/GetMeResponse.md +++ b/docs/GetMeResponse.md @@ -7,14 +7,14 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**username** | **String** | | | -|**userId** | **Integer** | | | +|**creation** | **OffsetDateTime** | | | +|**email** | **String** | | | |**firstName** | **String** | | | |**lastName** | **String** | | | -|**email** | **String** | | | -|**creation** | **OffsetDateTime** | | | -|**tutorialSeen** | **Boolean** | | | |**role** | [**RoleEnum**](#RoleEnum) | | | +|**tutorialSeen** | **Boolean** | | | +|**userId** | **Integer** | | | +|**username** | **String** | | | diff --git a/docs/GetPublicUserResponse.md b/docs/GetPublicUserResponse.md index a44dae2..b10d3f3 100644 --- a/docs/GetPublicUserResponse.md +++ b/docs/GetPublicUserResponse.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**username** | **String** | | | |**userId** | **Integer** | | | +|**username** | **String** | | | diff --git a/docs/GlobalVariable.md b/docs/GlobalVariable.md index ae590bf..ea75d8c 100644 --- a/docs/GlobalVariable.md +++ b/docs/GlobalVariable.md @@ -7,12 +7,12 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**lastChange** | **String** | | [optional] | |**addr** | **Integer** | Memory address of the global variable | | +|**artifactType** | **String** | Type of artifact that the global variable is associated with | [optional] | +|**lastChange** | **String** | | [optional] | |**name** | **String** | Name of the global variable | | -|**type** | **String** | Data type of the global variable | | |**size** | **Integer** | Size of the global variable in bytes | | -|**artifactType** | **String** | Type of artifact that the global variable is associated with | [optional] | +|**type** | **String** | Data type of the global variable | | diff --git a/docs/ImportModel.md b/docs/ImportModel.md index c49fb71..9a1da34 100644 --- a/docs/ImportModel.md +++ b/docs/ImportModel.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**numberOfImports** | **Integer** | | | |**imports** | **List<Map<String, Map<String, Integer>>>** | | | +|**numberOfImports** | **Integer** | | | diff --git a/docs/InverseFunctionMapItem.md b/docs/InverseFunctionMapItem.md index 4d5328d..7583f38 100644 --- a/docs/InverseFunctionMapItem.md +++ b/docs/InverseFunctionMapItem.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | | | |**addr** | [**Addr**](Addr.md) | | | |**isExternal** | **Boolean** | | [optional] | +|**name** | **String** | | | diff --git a/docs/InverseStringMapItem.md b/docs/InverseStringMapItem.md index a7d73fc..a4360b2 100644 --- a/docs/InverseStringMapItem.md +++ b/docs/InverseStringMapItem.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**string** | **String** | | | |**addr** | **Long** | | | +|**string** | **String** | | | diff --git a/docs/LoginRequest.md b/docs/LoginRequest.md index e239613..fa9828d 100644 --- a/docs/LoginRequest.md +++ b/docs/LoginRequest.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**username** | **String** | User's username or email | | |**password** | **String** | User's password | | +|**username** | **String** | User's username or email | | diff --git a/docs/MatchedFunction.md b/docs/MatchedFunction.md index bd0d03d..5f8ccef 100644 --- a/docs/MatchedFunction.md +++ b/docs/MatchedFunction.md @@ -7,17 +7,17 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**functionId** | **Long** | Unique identifier of the matched function | | +|**analysisId** | **Integer** | | | |**binaryId** | **Integer** | | | +|**binaryName** | **String** | | | +|**confidence** | **BigDecimal** | | [optional] | +|**debug** | **Boolean** | | | +|**functionId** | **Long** | Unique identifier of the matched function | | |**functionName** | **String** | | | |**functionVaddr** | **Long** | | | |**mangledName** | **String** | | | -|**debug** | **Boolean** | | | -|**binaryName** | **String** | | | |**sha256Hash** | **String** | | | -|**analysisId** | **Integer** | | | |**similarity** | **BigDecimal** | | [optional] | -|**confidence** | **BigDecimal** | | [optional] | diff --git a/docs/MatchedFunctionSuggestion.md b/docs/MatchedFunctionSuggestion.md index 32fef31..6f1f19f 100644 --- a/docs/MatchedFunctionSuggestion.md +++ b/docs/MatchedFunctionSuggestion.md @@ -9,8 +9,8 @@ |------------ | ------------- | ------------- | -------------| |**functionId** | **Long** | Unique identifier of the matched function | | |**functionVaddr** | **Long** | Virtual address of the matched function | | -|**suggestedName** | **String** | | [optional] | |**suggestedDemangledName** | **String** | De-mangled name of the function group that contains the matched functions | | +|**suggestedName** | **String** | | [optional] | diff --git a/docs/NameConfidence.md b/docs/NameConfidence.md index 296dea3..100463c 100644 --- a/docs/NameConfidence.md +++ b/docs/NameConfidence.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | The suggested function name | | |**confidence** | **BigDecimal** | Confidence score as a percentage | | +|**name** | **String** | The suggested function name | | diff --git a/docs/NameSourceType.md b/docs/NameSourceType.md index 3dee38e..59dd7d1 100644 --- a/docs/NameSourceType.md +++ b/docs/NameSourceType.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | The source (process) the function name came from | | -|**functionId** | **Integer** | | [optional] | -|**binaryId** | **Integer** | | [optional] | |**analysisId** | **Integer** | | [optional] | +|**binaryId** | **Integer** | | [optional] | +|**functionId** | **Integer** | | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | The source (process) the function name came from | | diff --git a/docs/NetworkOverviewDns.md b/docs/NetworkOverviewDns.md index 87adc6d..7e2205a 100644 --- a/docs/NetworkOverviewDns.md +++ b/docs/NetworkOverviewDns.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**answers** | [**List<NetworkOverviewDnsAnswer>**](NetworkOverviewDnsAnswer.md) | | | |**host** | **String** | | | |**type** | **String** | | | -|**answers** | [**List<NetworkOverviewDnsAnswer>**](NetworkOverviewDnsAnswer.md) | | | diff --git a/docs/NetworkOverviewDnsAnswer.md b/docs/NetworkOverviewDnsAnswer.md index ba9a429..4ee39da 100644 --- a/docs/NetworkOverviewDnsAnswer.md +++ b/docs/NetworkOverviewDnsAnswer.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**type** | **String** | | | |**data** | **String** | | | +|**type** | **String** | | | diff --git a/docs/NetworkOverviewMetadata.md b/docs/NetworkOverviewMetadata.md index 74f5bf1..af859ac 100644 --- a/docs/NetworkOverviewMetadata.md +++ b/docs/NetworkOverviewMetadata.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**host** | **String** | | | -|**countryCode** | **String** | | | |**ASN** | **String** | | | +|**countryCode** | **String** | | | +|**host** | **String** | | | |**type** | [**TypeEnum**](#TypeEnum) | | | diff --git a/docs/PEModel.md b/docs/PEModel.md index 0d4c38e..2639283 100644 --- a/docs/PEModel.md +++ b/docs/PEModel.md @@ -7,26 +7,26 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**type** | **String** | | | -|**timestamps** | [**TimestampModel**](TimestampModel.md) | | | |**architecture** | **String** | | | |**checksum** | **Integer** | | | -|**imageBase** | **Integer** | | | -|**security** | [**SecurityModel**](SecurityModel.md) | | | -|**versionInfo** | **Map<String, Object>** | | | |**debugInfo** | [**PDBDebugModel**](PDBDebugModel.md) | | | -|**numberOfResources** | **Integer** | | | -|**entryPoint** | [**EntrypointModel**](EntrypointModel.md) | | | -|**signature** | [**CodeSignatureModel**](CodeSignatureModel.md) | | | -|**dotnet** | **Boolean** | | | |**debugStripped** | **Boolean** | | | -|**importHash** | **String** | | | +|**dotnet** | **Boolean** | | | +|**entryPoint** | [**EntrypointModel**](EntrypointModel.md) | | | |**exportHash** | **String** | | | -|**richHeaderHash** | **String** | | | -|**sections** | [**SectionModel**](SectionModel.md) | | | -|**imports** | [**ImportModel**](ImportModel.md) | | | |**exports** | [**ExportModel**](ExportModel.md) | | | |**iconData** | [**IconModel**](IconModel.md) | | | +|**imageBase** | **Integer** | | | +|**importHash** | **String** | | | +|**imports** | [**ImportModel**](ImportModel.md) | | | +|**numberOfResources** | **Integer** | | | +|**richHeaderHash** | **String** | | | +|**sections** | [**SectionModel**](SectionModel.md) | | | +|**security** | [**SecurityModel**](SecurityModel.md) | | | +|**signature** | [**CodeSignatureModel**](CodeSignatureModel.md) | | | +|**timestamps** | [**TimestampModel**](TimestampModel.md) | | | +|**type** | **String** | | | +|**versionInfo** | **Map<String, Object>** | | | diff --git a/docs/PaginationModel.md b/docs/PaginationModel.md index 61e6f13..7876b6a 100644 --- a/docs/PaginationModel.md +++ b/docs/PaginationModel.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**pageSize** | **Integer** | | | -|**pageNumber** | **Integer** | | | |**hasNextPage** | **Boolean** | | | +|**pageNumber** | **Integer** | | | +|**pageSize** | **Integer** | | | diff --git a/docs/Params.md b/docs/Params.md index 305c3c9..44f7979 100644 --- a/docs/Params.md +++ b/docs/Params.md @@ -7,12 +7,12 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**debugHash** | **String** | | | -|**binarySize** | **Integer** | The size of the binary data | | |**architecture** | **String** | The architecture of the binary data | | -|**binaryType** | **String** | The type of binary data | | -|**binaryFormat** | **String** | The format of the binary data | | |**binaryDynamic** | **Boolean** | Whether the binary data is dynamic | | +|**binaryFormat** | **String** | The format of the binary data | | +|**binarySize** | **Integer** | The size of the binary data | | +|**binaryType** | **String** | The type of binary data | | +|**debugHash** | **String** | | | |**modelName** | **String** | The name of the model | | diff --git a/docs/Process.md b/docs/Process.md index c4be98f..0e0f464 100644 --- a/docs/Process.md +++ b/docs/Process.md @@ -7,13 +7,13 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**args** | **List<String>** | | | +|**children** | **List<Object>** | | | +|**executableName** | **String** | | | |**pid** | **Integer** | | | |**procname** | **String** | | | -|**executableName** | **String** | | | -|**args** | **List<String>** | | | |**tsFrom** | **BigDecimal** | | | |**tsTo** | **BigDecimal** | | | -|**children** | **List<Object>** | | | diff --git a/docs/ProcessDump.md b/docs/ProcessDump.md index 3469b61..d230079 100644 --- a/docs/ProcessDump.md +++ b/docs/ProcessDump.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**baseAddress** | **Integer** | | | |**actualFilename** | **String** | | | -|**filenameFriendly** | **String** | | | +|**baseAddress** | **Integer** | | | |**extendedMetadata** | [**ProcessDumpMetadata**](ProcessDumpMetadata.md) | | | +|**filenameFriendly** | **String** | | | diff --git a/docs/ProcessDumpMetadata.md b/docs/ProcessDumpMetadata.md index 5b2064f..53545f3 100644 --- a/docs/ProcessDumpMetadata.md +++ b/docs/ProcessDumpMetadata.md @@ -8,8 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**sha256** | **String** | | | -|**type** | **String** | | | |**size** | **Integer** | | | +|**type** | **String** | | | diff --git a/docs/ProcessDumps.md b/docs/ProcessDumps.md index df47022..b4dbc79 100644 --- a/docs/ProcessDumps.md +++ b/docs/ProcessDumps.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**success** | **Boolean** | | | |**data** | [**ProcessDumpsData**](ProcessDumpsData.md) | | | +|**success** | **Boolean** | | | diff --git a/docs/ProcessRegistry.md b/docs/ProcessRegistry.md index 6ddc14d..7967e44 100644 --- a/docs/ProcessRegistry.md +++ b/docs/ProcessRegistry.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**success** | **Boolean** | | | |**data** | **Map<String, List<Registry>>** | | | +|**success** | **Boolean** | | | diff --git a/docs/ProcessTree.md b/docs/ProcessTree.md index 8b3bef2..79b9a2a 100644 --- a/docs/ProcessTree.md +++ b/docs/ProcessTree.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**success** | **Boolean** | | | |**data** | [**List<Process>**](Process.md) | | | +|**success** | **Boolean** | | | diff --git a/docs/PutAnalysisStringsRequest.md b/docs/PutAnalysisStringsRequest.md new file mode 100644 index 0000000..b9f2669 --- /dev/null +++ b/docs/PutAnalysisStringsRequest.md @@ -0,0 +1,13 @@ + + +# PutAnalysisStringsRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**strings** | [**List<AnalysisStringInput>**](AnalysisStringInput.md) | The strings to add to the analysis | | + + + diff --git a/docs/ReAnalysisForm.md b/docs/ReAnalysisForm.md index 3ed77bc..71efdb3 100644 --- a/docs/ReAnalysisForm.md +++ b/docs/ReAnalysisForm.md @@ -8,12 +8,12 @@ Form Model for receiving the analysis request | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**tags** | **List<String>** | Tags associated with the analysis | [optional] | |**commandLineArgs** | **String** | Command line arguments for dynamic execution | [optional] | -|**priority** | **Integer** | Priority of the analysis | [optional] | |**essential** | **Boolean** | Only runs essential parts of the analysis, skips tags/sbom/cves etc. | [optional] | |**modelName** | **String** | | [optional] | |**noCache** | **Boolean** | When enabled, skips using cached data within the processing. | [optional] | +|**priority** | **Integer** | Priority of the analysis | [optional] | +|**tags** | **List<String>** | Tags associated with the analysis | [optional] | diff --git a/docs/Registry.md b/docs/Registry.md index 33824b9..6a5eaa4 100644 --- a/docs/Registry.md +++ b/docs/Registry.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**method** | **String** | | | |**key** | **String** | | | -|**valueName** | **String** | | | +|**method** | **String** | | | |**value** | **String** | | | +|**valueName** | **String** | | | diff --git a/docs/RelativeBinaryResponse.md b/docs/RelativeBinaryResponse.md index 32cd910..8e1d68f 100644 --- a/docs/RelativeBinaryResponse.md +++ b/docs/RelativeBinaryResponse.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**binaryId** | **Integer** | ID of the relative binary | | |**analysisId** | **Integer** | | [optional] | +|**binaryId** | **Integer** | ID of the relative binary | | |**name** | **String** | Name of the relative binary | | |**sha256** | **String** | SHA256 hash of the relative binary | | diff --git a/docs/SBOM.md b/docs/SBOM.md index e3c41a4..bc12ec3 100644 --- a/docs/SBOM.md +++ b/docs/SBOM.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**packages** | [**List<SBOMPackage>**](SBOMPackage.md) | The packages found | | |**importedLibs** | **List<String>** | The import libraries found | | +|**packages** | [**List<SBOMPackage>**](SBOMPackage.md) | The packages found | | diff --git a/docs/SandboxOptions.md b/docs/SandboxOptions.md index f173db5..8de38dc 100644 --- a/docs/SandboxOptions.md +++ b/docs/SandboxOptions.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**enabled** | **Boolean** | | [optional] | |**commandLineArgs** | **String** | The command line parameters to pass to the dynamic execution sandbox. Requires `sandbox` to be True. | [optional] | +|**enabled** | **Boolean** | | [optional] | diff --git a/docs/SearchApi.md b/docs/SearchApi.md index 5554745..fc567b2 100644 --- a/docs/SearchApi.md +++ b/docs/SearchApi.md @@ -178,8 +178,8 @@ public class Example { | 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 | - | # **searchFunctions** diff --git a/docs/SecurityChecksResponse.md b/docs/SecurityChecksResponse.md index 8106ad2..56b26c6 100644 --- a/docs/SecurityChecksResponse.md +++ b/docs/SecurityChecksResponse.md @@ -8,8 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**binaryId** | **Integer** | | | -|**totalResults** | **Integer** | | | |**results** | [**List<SecurityChecksResult>**](SecurityChecksResult.md) | | | +|**totalResults** | **Integer** | | | diff --git a/docs/SecurityChecksResult.md b/docs/SecurityChecksResult.md index 877c772..2d58207 100644 --- a/docs/SecurityChecksResult.md +++ b/docs/SecurityChecksResult.md @@ -7,14 +7,14 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**confidence** | **ConfidenceType** | | | +|**description** | **String** | | | |**functionId** | **Long** | | | |**functionName** | **String** | | | |**name** | **String** | | | -|**vulnClass** | **VulnerabilityType** | | | -|**description** | **String** | | | |**remediation** | **String** | | | -|**confidence** | **ConfidenceType** | | | |**severity** | **SeverityType** | | | +|**vulnClass** | **VulnerabilityType** | | | diff --git a/docs/SecurityModel.md b/docs/SecurityModel.md index 331d4c0..f64e5d7 100644 --- a/docs/SecurityModel.md +++ b/docs/SecurityModel.md @@ -7,17 +7,17 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**appContainer** | **Boolean** | | | |**aslr** | **Boolean** | | | -|**dep** | **Boolean** | | | +|**boundImage** | **Boolean** | | | |**cfg** | **Boolean** | | | -|**driverModel** | **Boolean** | | | -|**appContainer** | **Boolean** | | | -|**terminalServerAware** | **Boolean** | | | -|**imageIsolation** | **Boolean** | | | |**codeIntegrity** | **Boolean** | | | +|**dep** | **Boolean** | | | +|**driverModel** | **Boolean** | | | |**highEntropy** | **Boolean** | | | +|**imageIsolation** | **Boolean** | | | |**seh** | **Boolean** | | | -|**boundImage** | **Boolean** | | | +|**terminalServerAware** | **Boolean** | | | diff --git a/docs/SegmentInfo.md b/docs/SegmentInfo.md index 21a968b..0ce4ab0 100644 --- a/docs/SegmentInfo.md +++ b/docs/SegmentInfo.md @@ -8,12 +8,12 @@ Represents the information about a segment. Attributes: name: The name of t | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**end** | **Integer** | | [optional] | |**name** | **String** | | [optional] | |**r** | **Boolean** | | [optional] | +|**start** | **Integer** | | [optional] | |**w** | **Boolean** | | [optional] | |**x** | **Boolean** | | [optional] | -|**start** | **Integer** | | [optional] | -|**end** | **Integer** | | [optional] | diff --git a/docs/SingleCodeCertificateModel.md b/docs/SingleCodeCertificateModel.md index 9affba5..e7373b4 100644 --- a/docs/SingleCodeCertificateModel.md +++ b/docs/SingleCodeCertificateModel.md @@ -7,12 +7,12 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**version** | **Integer** | | | -|**issuedOn** | **String** | | | |**expiresOn** | **String** | | | +|**issuedOn** | **String** | | | |**issuerName** | **String** | | | |**serialNumber** | **String** | | | |**subjectName** | **String** | | | +|**version** | **Integer** | | | diff --git a/docs/SingleCodeSignatureModel.md b/docs/SingleCodeSignatureModel.md index 87fc573..74156c1 100644 --- a/docs/SingleCodeSignatureModel.md +++ b/docs/SingleCodeSignatureModel.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**certificates** | [**List<SingleCodeCertificateModel>**](SingleCodeCertificateModel.md) | | | |**authenticodeDigest** | **String** | | | +|**certificates** | [**List<SingleCodeCertificateModel>**](SingleCodeCertificateModel.md) | | | diff --git a/docs/SinglePDBEntryModel.md b/docs/SinglePDBEntryModel.md index 79d4ef8..d6ab912 100644 --- a/docs/SinglePDBEntryModel.md +++ b/docs/SinglePDBEntryModel.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**guid** | **String** | | | |**age** | **Integer** | | | +|**guid** | **String** | | | |**path** | **String** | | | diff --git a/docs/SingleSectionModel.md b/docs/SingleSectionModel.md index 729afef..6d250e8 100644 --- a/docs/SingleSectionModel.md +++ b/docs/SingleSectionModel.md @@ -7,13 +7,13 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | | | -|**virtualAddress** | **Integer** | | | -|**virtualSize** | **Integer** | | | |**characteristics** | **String** | | | -|**rawSize** | **Integer** | | | |**entropy** | **BigDecimal** | | | +|**name** | **String** | | | +|**rawSize** | **Integer** | | | |**sha3256** | **String** | | | +|**virtualAddress** | **Integer** | | | +|**virtualSize** | **Integer** | | | diff --git a/docs/StackVariable.md b/docs/StackVariable.md index dd30918..df322a6 100644 --- a/docs/StackVariable.md +++ b/docs/StackVariable.md @@ -7,12 +7,12 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**addr** | **Integer** | Memory address of the stack variable | | |**lastChange** | **String** | | [optional] | -|**offset** | **Integer** | Offset of the stack variable | | |**name** | **String** | Name of the stack variable | | -|**type** | **String** | Data type of the stack variable | | +|**offset** | **Integer** | Offset of the stack variable | | |**size** | **Integer** | Size of the stack variable in bytes | | -|**addr** | **Integer** | Memory address of the stack variable | | +|**type** | **String** | Data type of the stack variable | | diff --git a/docs/StageStatus.md b/docs/StageStatus.md index 1c8c0bd..e1efe04 100644 --- a/docs/StageStatus.md +++ b/docs/StageStatus.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**numAhead** | **Integer** | | | |**stage** | **AnalysisStage** | | | |**status** | **PipelineStageStatus** | | | -|**numAhead** | **Integer** | | | diff --git a/docs/StringFunctions.md b/docs/StringFunctions.md index 768bb1b..b15272a 100644 --- a/docs/StringFunctions.md +++ b/docs/StringFunctions.md @@ -8,8 +8,9 @@ This is a string with the functions where the string is used. A function string | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**value** | **String** | The value of the string literal | | |**functions** | [**List<AppApiRestV2FunctionsResponsesFunction>**](AppApiRestV2FunctionsResponsesFunction.md) | The function ids the string literal was found within | | +|**source** | **StringSource** | The source of the string | [optional] | +|**value** | **String** | The value of the string literal | | diff --git a/docs/StringSource.md b/docs/StringSource.md new file mode 100644 index 0000000..69db71a --- /dev/null +++ b/docs/StringSource.md @@ -0,0 +1,15 @@ + + +# StringSource + +## Enum + + +* `SYSTEM` (value: `"SYSTEM"`) + +* `USER` (value: `"USER"`) + +* `AI_AGENT` (value: `"AI_AGENT"`) + + + diff --git a/docs/Structure.md b/docs/Structure.md index b3aa4b1..69d7356 100644 --- a/docs/Structure.md +++ b/docs/Structure.md @@ -7,11 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**artifactType** | **String** | Type of artifact that the structure is associated with | [optional] | |**lastChange** | **String** | | [optional] | +|**members** | [**Map<String, StructureMember>**](StructureMember.md) | Dictionary of structure members | | |**name** | **String** | Name of the structure | | |**size** | **Integer** | | [optional] | -|**members** | [**Map<String, StructureMember>**](StructureMember.md) | Dictionary of structure members | | -|**artifactType** | **String** | Type of artifact that the structure is associated with | [optional] | diff --git a/docs/StructureMember.md b/docs/StructureMember.md index f7929f0..666ead4 100644 --- a/docs/StructureMember.md +++ b/docs/StructureMember.md @@ -10,8 +10,8 @@ |**lastChange** | **String** | | [optional] | |**name** | **String** | Name of the structure member | | |**offset** | **Integer** | Offset of the member within the structure | | -|**type** | **String** | Data type of the structure member | | |**size** | **Integer** | Size of the structure member in bytes | | +|**type** | **String** | Data type of the structure member | | diff --git a/docs/TTPS.md b/docs/TTPS.md index dd1e639..6dcaaeb 100644 --- a/docs/TTPS.md +++ b/docs/TTPS.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**success** | **Boolean** | | | |**data** | [**TTPSData**](TTPSData.md) | | | +|**success** | **Boolean** | | | diff --git a/docs/TTPSElement.md b/docs/TTPSElement.md index 867909f..0d7d162 100644 --- a/docs/TTPSElement.md +++ b/docs/TTPSElement.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | | | |**attack** | [**List<TTPSAttack>**](TTPSAttack.md) | | | +|**name** | **String** | | | |**occurrences** | [**List<TTPSOccurance>**](TTPSOccurance.md) | | | |**score** | **Integer** | | | diff --git a/docs/TTPSOccurance.md b/docs/TTPSOccurance.md index 99f53d3..ad411f1 100644 --- a/docs/TTPSOccurance.md +++ b/docs/TTPSOccurance.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**ppid** | **Integer** | | | |**pid** | **Integer** | | | +|**ppid** | **Integer** | | | diff --git a/docs/TagItem.md b/docs/TagItem.md index a284970..22fb3d2 100644 --- a/docs/TagItem.md +++ b/docs/TagItem.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**collectionId** | **Integer** | | [optional] | |**name** | **String** | | | |**origin** | **String** | | | -|**collectionId** | **Integer** | | [optional] | diff --git a/docs/TagSearchResult.md b/docs/TagSearchResult.md index 18392e7..ca37e05 100644 --- a/docs/TagSearchResult.md +++ b/docs/TagSearchResult.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**tagId** | **Integer** | The ID of the tag | | |**tag** | **String** | The name of the tag | | +|**tagId** | **Integer** | The ID of the tag | | diff --git a/docs/TaskResponse.md b/docs/TaskResponse.md index 7fb87e2..c287a0a 100644 --- a/docs/TaskResponse.md +++ b/docs/TaskResponse.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **TaskStatus** | | [optional] | |**errorMessage** | **String** | | [optional] | +|**status** | **TaskStatus** | | [optional] | diff --git a/docs/TimestampModel.md b/docs/TimestampModel.md index fb6cdfe..65401b0 100644 --- a/docs/TimestampModel.md +++ b/docs/TimestampModel.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**peTimestamp** | **Integer** | | | -|**exportTimestamp** | **Integer** | | | |**debugTimestamp** | **Integer** | | | +|**exportTimestamp** | **Integer** | | | +|**peTimestamp** | **Integer** | | | diff --git a/docs/TypeDefinition.md b/docs/TypeDefinition.md index c4c8e8f..ff1798f 100644 --- a/docs/TypeDefinition.md +++ b/docs/TypeDefinition.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**artifactType** | **String** | Type of artifact the type definition is associated with | [optional] | |**lastChange** | **String** | | [optional] | |**name** | **String** | Name of the type definition | | |**type** | **String** | Underlying type of the type definition | | -|**artifactType** | **String** | Type of artifact the type definition is associated with | [optional] | diff --git a/docs/UpdateFunctionDataTypes.md b/docs/UpdateFunctionDataTypes.md index 7297667..3424f62 100644 --- a/docs/UpdateFunctionDataTypes.md +++ b/docs/UpdateFunctionDataTypes.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataTypesVersion** | **Integer** | Version of the function data types, used to check this update is not overwriting a newer one | | |**dataTypes** | [**FunctionInfoInput**](FunctionInfoInput.md) | Function data types information to update | | +|**dataTypesVersion** | **Integer** | Version of the function data types, used to check this update is not overwriting a newer one | | diff --git a/docs/UploadResponse.md b/docs/UploadResponse.md index 8869a13..e18d51e 100644 --- a/docs/UploadResponse.md +++ b/docs/UploadResponse.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**sha256Hash** | **String** | | | |**fileType** | **UploadFileType** | | | |**filename** | **String** | | | +|**sha256Hash** | **String** | | | diff --git a/docs/Vulnerability.md b/docs/Vulnerability.md index 2d2ae83..94b7556 100644 --- a/docs/Vulnerability.md +++ b/docs/Vulnerability.md @@ -7,17 +7,17 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**vendor** | **String** | | | -|**product** | **String** | | | -|**version** | **String** | | | |**cveNumber** | **String** | | | -|**severity** | [**SeverityEnum**](#SeverityEnum) | | | -|**source** | **String** | | | -|**cvssVersion** | **String** | | | |**cvssVector** | **String** | | | +|**cvssVersion** | **String** | | | +|**isUnknown** | **Boolean** | | [optional] | +|**product** | **String** | | | |**remarks** | **String** | | | |**score** | **BigDecimal** | | | -|**isUnknown** | **Boolean** | | [optional] | +|**severity** | [**SeverityEnum**](#SeverityEnum) | | | +|**source** | **String** | | | +|**vendor** | **String** | | | +|**version** | **String** | | | diff --git a/docs/XrefFromResponse.md b/docs/XrefFromResponse.md index a042e78..50e4f0c 100644 --- a/docs/XrefFromResponse.md +++ b/docs/XrefFromResponse.md @@ -7,14 +7,14 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**value** | **String** | | | -|**isScalar** | **Boolean** | | [optional] | |**isCall** | **Boolean** | | [optional] | |**isData** | **Boolean** | | [optional] | +|**isScalar** | **Boolean** | | [optional] | |**isString** | **Boolean** | | [optional] | +|**origStrEncoding** | **String** | | [optional] | |**rawData** | **String** | | [optional] | |**segment** | [**SegmentInfo**](SegmentInfo.md) | | [optional] | -|**origStrEncoding** | **String** | | [optional] | +|**value** | **String** | | | |**xrefTo** | **String** | | | diff --git a/docs/XrefResponse.md b/docs/XrefResponse.md index 905083f..70ec2a8 100644 --- a/docs/XrefResponse.md +++ b/docs/XrefResponse.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**xrefToList** | [**List<XrefToResponse>**](XrefToResponse.md) | | | |**xrefFromList** | [**List<XrefFromResponse>**](XrefFromResponse.md) | | | +|**xrefToList** | [**List<XrefToResponse>**](XrefToResponse.md) | | | diff --git a/docs/XrefToResponse.md b/docs/XrefToResponse.md index 36955f0..379a3c2 100644 --- a/docs/XrefToResponse.md +++ b/docs/XrefToResponse.md @@ -7,14 +7,14 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**value** | **String** | | | -|**isScalar** | **Boolean** | | [optional] | |**isCall** | **Boolean** | | [optional] | |**isData** | **Boolean** | | [optional] | +|**isScalar** | **Boolean** | | [optional] | |**isString** | **Boolean** | | [optional] | +|**origStrEncoding** | **String** | | [optional] | |**rawData** | **String** | | [optional] | |**segment** | [**SegmentInfo**](SegmentInfo.md) | | [optional] | -|**origStrEncoding** | **String** | | [optional] | +|**value** | **String** | | | |**xrefFrom** | **String** | | | diff --git a/pom.xml b/pom.xml index 66de9db..63aed7c 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 3.51.0 + 3.55.0 https://github.com/RevEngAI/sdk-java Java SDK for the RevEng.AI API diff --git a/src/main/java/ai/reveng/api/AnalysesCommentsApi.java b/src/main/java/ai/reveng/api/AnalysesCommentsApi.java index 18854df..d05bf27 100644 --- a/src/main/java/ai/reveng/api/AnalysesCommentsApi.java +++ b/src/main/java/ai/reveng/api/AnalysesCommentsApi.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 createAnalysisCommentCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase, final ApiCallback _callback) throws ApiException { @@ -166,8 +166,8 @@ private okhttp3.Call createAnalysisCommentValidateBeforeCall(@javax.annotation.N Response Details Status Code Description Response Headers 201 Successful Response - - 422 Invalid request parameters - 400 Bad Request - + 422 Invalid request parameters - */ public BaseResponseCommentResponse createAnalysisComment(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase) throws ApiException { @@ -187,8 +187,8 @@ public BaseResponseCommentResponse createAnalysisComment(@javax.annotation.Nonnu Response Details Status Code Description Response Headers 201 Successful Response - - 422 Invalid request parameters - 400 Bad Request - + 422 Invalid request parameters - */ public ApiResponse createAnalysisCommentWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase) throws ApiException { @@ -210,8 +210,8 @@ public ApiResponse createAnalysisCommentWithHttpInf Response Details Status Code Description Response Headers 201 Successful Response - - 422 Invalid request parameters - 400 Bad Request - + 422 Invalid request parameters - */ public okhttp3.Call createAnalysisCommentAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase, final ApiCallback _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(0); diff --git a/src/main/java/ai/reveng/model/AutoUnstripResponse.java b/src/main/java/ai/reveng/model/AutoUnstripResponse.java index a7bbfcd..111c1cd 100644 --- a/src/main/java/ai/reveng/model/AutoUnstripResponse.java +++ b/src/main/java/ai/reveng/model/AutoUnstripResponse.java @@ -55,6 +55,21 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class AutoUnstripResponse { + public static final String SERIALIZED_NAME_APPLIED = "applied"; + @SerializedName(SERIALIZED_NAME_APPLIED) + @javax.annotation.Nullable + private Boolean applied; + + public static final String SERIALIZED_NAME_ERROR_MESSAGE = "error_message"; + @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) + @javax.annotation.Nullable + private String errorMessage; + + public static final String SERIALIZED_NAME_MATCHES = "matches"; + @SerializedName(SERIALIZED_NAME_MATCHES) + @javax.annotation.Nullable + private List matches; + public static final String SERIALIZED_NAME_PROGRESS = "progress"; @Deprecated @SerializedName(SERIALIZED_NAME_PROGRESS) @@ -71,82 +86,44 @@ public class AutoUnstripResponse { @javax.annotation.Nullable private Integer totalTime; - public static final String SERIALIZED_NAME_MATCHES = "matches"; - @SerializedName(SERIALIZED_NAME_MATCHES) - @javax.annotation.Nullable - private List matches; - - public static final String SERIALIZED_NAME_APPLIED = "applied"; - @SerializedName(SERIALIZED_NAME_APPLIED) - @javax.annotation.Nullable - private Boolean applied; - - public static final String SERIALIZED_NAME_ERROR_MESSAGE = "error_message"; - @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) - @javax.annotation.Nullable - private String errorMessage; - public AutoUnstripResponse() { } - @Deprecated - public AutoUnstripResponse progress(@javax.annotation.Nullable Integer progress) { - this.progress = progress; - return this; - } - - /** - * Progress of the auto-unstrip operation, represented as a percentage - * @return progress - * @deprecated - */ - @Deprecated - @javax.annotation.Nullable - public Integer getProgress() { - return progress; - } - - @Deprecated - public void setProgress(@javax.annotation.Nullable Integer progress) { - this.progress = progress; - } - - - public AutoUnstripResponse status(@javax.annotation.Nullable String status) { - this.status = status; + public AutoUnstripResponse applied(@javax.annotation.Nullable Boolean applied) { + this.applied = applied; return this; } /** - * Get status - * @return status + * Get applied + * @return applied */ @javax.annotation.Nullable - public String getStatus() { - return status; + public Boolean getApplied() { + return applied; } - public void setStatus(@javax.annotation.Nullable String status) { - this.status = status; + public void setApplied(@javax.annotation.Nullable Boolean applied) { + this.applied = applied; } - public AutoUnstripResponse totalTime(@javax.annotation.Nullable Integer totalTime) { - this.totalTime = totalTime; + public AutoUnstripResponse errorMessage(@javax.annotation.Nullable String errorMessage) { + this.errorMessage = errorMessage; return this; } /** - * Get totalTime - * @return totalTime + * Get errorMessage + * @return errorMessage */ @javax.annotation.Nullable - public Integer getTotalTime() { - return totalTime; + public String getErrorMessage() { + return errorMessage; } - public void setTotalTime(@javax.annotation.Nullable Integer totalTime) { - this.totalTime = totalTime; + public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { + this.errorMessage = errorMessage; } @@ -177,41 +154,64 @@ public void setMatches(@javax.annotation.Nullable List boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(progress, status, totalTime, matches, applied, errorMessage, additionalProperties); + return Objects.hash(applied, errorMessage, matches, progress, status, totalTime, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -298,12 +298,12 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AutoUnstripResponse {\n"); + sb.append(" applied: ").append(toIndentedString(applied)).append("\n"); + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append(" matches: ").append(toIndentedString(matches)).append("\n"); sb.append(" progress: ").append(toIndentedString(progress)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" totalTime: ").append(toIndentedString(totalTime)).append("\n"); - sb.append(" matches: ").append(toIndentedString(matches)).append("\n"); - sb.append(" applied: ").append(toIndentedString(applied)).append("\n"); - sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).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("progress", "status", "total_time", "matches", "applied", "error_message")); + openapiFields = new HashSet(Arrays.asList("applied", "error_message", "matches", "progress", "status", "total_time")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -345,8 +345,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !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("error_message") != null && !jsonObj.get("error_message").isJsonNull()) && !jsonObj.get("error_message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error_message").toString())); } if (jsonObj.get("matches") != null && !jsonObj.get("matches").isJsonNull()) { JsonArray jsonArraymatches = jsonObj.getAsJsonArray("matches"); @@ -362,8 +362,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } - if ((jsonObj.get("error_message") != null && !jsonObj.get("error_message").isJsonNull()) && !jsonObj.get("error_message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error_message").toString())); + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !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())); } } diff --git a/src/main/java/ai/reveng/model/BaseResponse.java b/src/main/java/ai/reveng/model/BaseResponse.java index 162c088..45389ca 100644 --- a/src/main/java/ai/reveng/model/BaseResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponse.java @@ -56,53 +56,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Object data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponse() { - } - - public BaseResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponse() { } - public BaseResponse data(@javax.annotation.Nullable Object data) { this.data = data; return this; @@ -122,25 +103,6 @@ public void setData(@javax.annotation.Nullable Object data) { } - public BaseResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -168,6 +130,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -186,6 +167,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -241,11 +241,11 @@ public boolean equals(Object o) { return false; } BaseResponse baseResponse = (BaseResponse) o; - return Objects.equals(this.status, baseResponse.status) && - Objects.equals(this.data, baseResponse.data) && - Objects.equals(this.message, baseResponse.message) && + return Objects.equals(this.data, baseResponse.data) && Objects.equals(this.errors, baseResponse.errors) && - Objects.equals(this.meta, baseResponse.meta)&& + Objects.equals(this.message, baseResponse.message) && + Objects.equals(this.meta, baseResponse.meta) && + Objects.equals(this.status, baseResponse.status)&& Objects.equals(this.additionalProperties, baseResponse.additionalProperties); } @@ -255,7 +255,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -269,11 +269,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -296,7 +296,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -315,9 +315,6 @@ 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -332,6 +329,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAdditionalDetailsStatusResponse.java b/src/main/java/ai/reveng/model/BaseResponseAdditionalDetailsStatusResponse.java index d0ba4bb..201a476 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAdditionalDetailsStatusResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseAdditionalDetailsStatusResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAdditionalDetailsStatusResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AdditionalDetailsStatusResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAdditionalDetailsStatusResponse() { - } - - public BaseResponseAdditionalDetailsStatusResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAdditionalDetailsStatusResponse() { } - public BaseResponseAdditionalDetailsStatusResponse data(@javax.annotation.Nullable AdditionalDetailsStatusResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AdditionalDetailsStatusResponse d } - public BaseResponseAdditionalDetailsStatusResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAdditionalDetailsStatusResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAdditionalDetailsStatusResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAdditionalDetailsStatusResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAdditionalDetailsStatusResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAdditionalDetailsStatusResponse baseResponseAdditionalDetailsStatusResponse = (BaseResponseAdditionalDetailsStatusResponse) o; - return Objects.equals(this.status, baseResponseAdditionalDetailsStatusResponse.status) && - Objects.equals(this.data, baseResponseAdditionalDetailsStatusResponse.data) && - Objects.equals(this.message, baseResponseAdditionalDetailsStatusResponse.message) && + return Objects.equals(this.data, baseResponseAdditionalDetailsStatusResponse.data) && Objects.equals(this.errors, baseResponseAdditionalDetailsStatusResponse.errors) && - Objects.equals(this.meta, baseResponseAdditionalDetailsStatusResponse.meta)&& + Objects.equals(this.message, baseResponseAdditionalDetailsStatusResponse.message) && + Objects.equals(this.meta, baseResponseAdditionalDetailsStatusResponse.meta) && + Objects.equals(this.status, baseResponseAdditionalDetailsStatusResponse.status)&& Objects.equals(this.additionalProperties, baseResponseAdditionalDetailsStatusResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAdditionalDetailsStatusResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AdditionalDetailsStatusResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAnalysisBulkAddTagsResponse.java b/src/main/java/ai/reveng/model/BaseResponseAnalysisBulkAddTagsResponse.java index aedf7d3..6c1695a 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAnalysisBulkAddTagsResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseAnalysisBulkAddTagsResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAnalysisBulkAddTagsResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AnalysisBulkAddTagsResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAnalysisBulkAddTagsResponse() { - } - - public BaseResponseAnalysisBulkAddTagsResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAnalysisBulkAddTagsResponse() { } - public BaseResponseAnalysisBulkAddTagsResponse data(@javax.annotation.Nullable AnalysisBulkAddTagsResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AnalysisBulkAddTagsResponse data) } - public BaseResponseAnalysisBulkAddTagsResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAnalysisBulkAddTagsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAnalysisBulkAddTagsResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAnalysisBulkAddTagsResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAnalysisBulkAddTagsResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAnalysisBulkAddTagsResponse baseResponseAnalysisBulkAddTagsResponse = (BaseResponseAnalysisBulkAddTagsResponse) o; - return Objects.equals(this.status, baseResponseAnalysisBulkAddTagsResponse.status) && - Objects.equals(this.data, baseResponseAnalysisBulkAddTagsResponse.data) && - Objects.equals(this.message, baseResponseAnalysisBulkAddTagsResponse.message) && + return Objects.equals(this.data, baseResponseAnalysisBulkAddTagsResponse.data) && Objects.equals(this.errors, baseResponseAnalysisBulkAddTagsResponse.errors) && - Objects.equals(this.meta, baseResponseAnalysisBulkAddTagsResponse.meta)&& + Objects.equals(this.message, baseResponseAnalysisBulkAddTagsResponse.message) && + Objects.equals(this.meta, baseResponseAnalysisBulkAddTagsResponse.meta) && + Objects.equals(this.status, baseResponseAnalysisBulkAddTagsResponse.status)&& Objects.equals(this.additionalProperties, baseResponseAnalysisBulkAddTagsResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAnalysisBulkAddTagsResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AnalysisBulkAddTagsResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAnalysisCreateResponse.java b/src/main/java/ai/reveng/model/BaseResponseAnalysisCreateResponse.java index a3916d2..94ae08b 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAnalysisCreateResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseAnalysisCreateResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAnalysisCreateResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AnalysisCreateResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAnalysisCreateResponse() { - } - - public BaseResponseAnalysisCreateResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAnalysisCreateResponse() { } - public BaseResponseAnalysisCreateResponse data(@javax.annotation.Nullable AnalysisCreateResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AnalysisCreateResponse data) { } - public BaseResponseAnalysisCreateResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAnalysisCreateResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAnalysisCreateResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAnalysisCreateResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAnalysisCreateResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAnalysisCreateResponse baseResponseAnalysisCreateResponse = (BaseResponseAnalysisCreateResponse) o; - return Objects.equals(this.status, baseResponseAnalysisCreateResponse.status) && - Objects.equals(this.data, baseResponseAnalysisCreateResponse.data) && - Objects.equals(this.message, baseResponseAnalysisCreateResponse.message) && + return Objects.equals(this.data, baseResponseAnalysisCreateResponse.data) && Objects.equals(this.errors, baseResponseAnalysisCreateResponse.errors) && - Objects.equals(this.meta, baseResponseAnalysisCreateResponse.meta)&& + Objects.equals(this.message, baseResponseAnalysisCreateResponse.message) && + Objects.equals(this.meta, baseResponseAnalysisCreateResponse.meta) && + Objects.equals(this.status, baseResponseAnalysisCreateResponse.status)&& Objects.equals(this.additionalProperties, baseResponseAnalysisCreateResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAnalysisCreateResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AnalysisCreateResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAnalysisDetailResponse.java b/src/main/java/ai/reveng/model/BaseResponseAnalysisDetailResponse.java index e715ba6..70154c7 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAnalysisDetailResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseAnalysisDetailResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAnalysisDetailResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AnalysisDetailResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAnalysisDetailResponse() { - } - - public BaseResponseAnalysisDetailResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAnalysisDetailResponse() { } - public BaseResponseAnalysisDetailResponse data(@javax.annotation.Nullable AnalysisDetailResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AnalysisDetailResponse data) { } - public BaseResponseAnalysisDetailResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAnalysisDetailResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAnalysisDetailResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAnalysisDetailResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAnalysisDetailResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAnalysisDetailResponse baseResponseAnalysisDetailResponse = (BaseResponseAnalysisDetailResponse) o; - return Objects.equals(this.status, baseResponseAnalysisDetailResponse.status) && - Objects.equals(this.data, baseResponseAnalysisDetailResponse.data) && - Objects.equals(this.message, baseResponseAnalysisDetailResponse.message) && + return Objects.equals(this.data, baseResponseAnalysisDetailResponse.data) && Objects.equals(this.errors, baseResponseAnalysisDetailResponse.errors) && - Objects.equals(this.meta, baseResponseAnalysisDetailResponse.meta)&& + Objects.equals(this.message, baseResponseAnalysisDetailResponse.message) && + Objects.equals(this.meta, baseResponseAnalysisDetailResponse.meta) && + Objects.equals(this.status, baseResponseAnalysisDetailResponse.status)&& Objects.equals(this.additionalProperties, baseResponseAnalysisDetailResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAnalysisDetailResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AnalysisDetailResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctionMapping.java b/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctionMapping.java index b901a33..2a00897 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctionMapping.java +++ b/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctionMapping.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAnalysisFunctionMapping { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AnalysisFunctionMapping data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAnalysisFunctionMapping() { - } - - public BaseResponseAnalysisFunctionMapping status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAnalysisFunctionMapping() { } - public BaseResponseAnalysisFunctionMapping data(@javax.annotation.Nullable AnalysisFunctionMapping data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AnalysisFunctionMapping data) { } - public BaseResponseAnalysisFunctionMapping message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAnalysisFunctionMapping errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAnalysisFunctionMapping message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAnalysisFunctionMapping meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAnalysisFunctionMapping status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAnalysisFunctionMapping baseResponseAnalysisFunctionMapping = (BaseResponseAnalysisFunctionMapping) o; - return Objects.equals(this.status, baseResponseAnalysisFunctionMapping.status) && - Objects.equals(this.data, baseResponseAnalysisFunctionMapping.data) && - Objects.equals(this.message, baseResponseAnalysisFunctionMapping.message) && + return Objects.equals(this.data, baseResponseAnalysisFunctionMapping.data) && Objects.equals(this.errors, baseResponseAnalysisFunctionMapping.errors) && - Objects.equals(this.meta, baseResponseAnalysisFunctionMapping.meta)&& + Objects.equals(this.message, baseResponseAnalysisFunctionMapping.message) && + Objects.equals(this.meta, baseResponseAnalysisFunctionMapping.meta) && + Objects.equals(this.status, baseResponseAnalysisFunctionMapping.status)&& Objects.equals(this.additionalProperties, baseResponseAnalysisFunctionMapping.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAnalysisFunctionMapping {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AnalysisFunctionMapping.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctions.java b/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctions.java index 135fd04..2971f1f 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctions.java +++ b/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctions.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAnalysisFunctions { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AnalysisFunctions data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAnalysisFunctions() { - } - - public BaseResponseAnalysisFunctions status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAnalysisFunctions() { } - public BaseResponseAnalysisFunctions data(@javax.annotation.Nullable AnalysisFunctions data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AnalysisFunctions data) { } - public BaseResponseAnalysisFunctions message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAnalysisFunctions errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAnalysisFunctions message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAnalysisFunctions meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAnalysisFunctions status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAnalysisFunctions baseResponseAnalysisFunctions = (BaseResponseAnalysisFunctions) o; - return Objects.equals(this.status, baseResponseAnalysisFunctions.status) && - Objects.equals(this.data, baseResponseAnalysisFunctions.data) && - Objects.equals(this.message, baseResponseAnalysisFunctions.message) && + return Objects.equals(this.data, baseResponseAnalysisFunctions.data) && Objects.equals(this.errors, baseResponseAnalysisFunctions.errors) && - Objects.equals(this.meta, baseResponseAnalysisFunctions.meta)&& + Objects.equals(this.message, baseResponseAnalysisFunctions.message) && + Objects.equals(this.meta, baseResponseAnalysisFunctions.meta) && + Objects.equals(this.status, baseResponseAnalysisFunctions.status)&& Objects.equals(this.additionalProperties, baseResponseAnalysisFunctions.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAnalysisFunctions {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AnalysisFunctions.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctionsList.java b/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctionsList.java index 2712808..346e56b 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctionsList.java +++ b/src/main/java/ai/reveng/model/BaseResponseAnalysisFunctionsList.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAnalysisFunctionsList { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AnalysisFunctionsList data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAnalysisFunctionsList() { - } - - public BaseResponseAnalysisFunctionsList status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAnalysisFunctionsList() { } - public BaseResponseAnalysisFunctionsList data(@javax.annotation.Nullable AnalysisFunctionsList data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AnalysisFunctionsList data) { } - public BaseResponseAnalysisFunctionsList message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAnalysisFunctionsList errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAnalysisFunctionsList message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAnalysisFunctionsList meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAnalysisFunctionsList status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAnalysisFunctionsList baseResponseAnalysisFunctionsList = (BaseResponseAnalysisFunctionsList) o; - return Objects.equals(this.status, baseResponseAnalysisFunctionsList.status) && - Objects.equals(this.data, baseResponseAnalysisFunctionsList.data) && - Objects.equals(this.message, baseResponseAnalysisFunctionsList.message) && + return Objects.equals(this.data, baseResponseAnalysisFunctionsList.data) && Objects.equals(this.errors, baseResponseAnalysisFunctionsList.errors) && - Objects.equals(this.meta, baseResponseAnalysisFunctionsList.meta)&& + Objects.equals(this.message, baseResponseAnalysisFunctionsList.message) && + Objects.equals(this.meta, baseResponseAnalysisFunctionsList.meta) && + Objects.equals(this.status, baseResponseAnalysisFunctionsList.status)&& Objects.equals(this.additionalProperties, baseResponseAnalysisFunctionsList.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAnalysisFunctionsList {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AnalysisFunctionsList.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAnalysisStagesResponse.java b/src/main/java/ai/reveng/model/BaseResponseAnalysisStagesResponse.java index 362b400..879acc9 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAnalysisStagesResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseAnalysisStagesResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAnalysisStagesResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AnalysisStagesResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAnalysisStagesResponse() { - } - - public BaseResponseAnalysisStagesResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAnalysisStagesResponse() { } - public BaseResponseAnalysisStagesResponse data(@javax.annotation.Nullable AnalysisStagesResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AnalysisStagesResponse data) { } - public BaseResponseAnalysisStagesResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAnalysisStagesResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAnalysisStagesResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAnalysisStagesResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAnalysisStagesResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAnalysisStagesResponse baseResponseAnalysisStagesResponse = (BaseResponseAnalysisStagesResponse) o; - return Objects.equals(this.status, baseResponseAnalysisStagesResponse.status) && - Objects.equals(this.data, baseResponseAnalysisStagesResponse.data) && - Objects.equals(this.message, baseResponseAnalysisStagesResponse.message) && + return Objects.equals(this.data, baseResponseAnalysisStagesResponse.data) && Objects.equals(this.errors, baseResponseAnalysisStagesResponse.errors) && - Objects.equals(this.meta, baseResponseAnalysisStagesResponse.meta)&& + Objects.equals(this.message, baseResponseAnalysisStagesResponse.message) && + Objects.equals(this.meta, baseResponseAnalysisStagesResponse.meta) && + Objects.equals(this.status, baseResponseAnalysisStagesResponse.status)&& Objects.equals(this.additionalProperties, baseResponseAnalysisStagesResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAnalysisStagesResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AnalysisStagesResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAnalysisStringsResponse.java b/src/main/java/ai/reveng/model/BaseResponseAnalysisStringsResponse.java index 1fb50fd..ea10cbf 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAnalysisStringsResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseAnalysisStringsResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAnalysisStringsResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AnalysisStringsResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAnalysisStringsResponse() { - } - - public BaseResponseAnalysisStringsResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAnalysisStringsResponse() { } - public BaseResponseAnalysisStringsResponse data(@javax.annotation.Nullable AnalysisStringsResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AnalysisStringsResponse data) { } - public BaseResponseAnalysisStringsResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAnalysisStringsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAnalysisStringsResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAnalysisStringsResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAnalysisStringsResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAnalysisStringsResponse baseResponseAnalysisStringsResponse = (BaseResponseAnalysisStringsResponse) o; - return Objects.equals(this.status, baseResponseAnalysisStringsResponse.status) && - Objects.equals(this.data, baseResponseAnalysisStringsResponse.data) && - Objects.equals(this.message, baseResponseAnalysisStringsResponse.message) && + return Objects.equals(this.data, baseResponseAnalysisStringsResponse.data) && Objects.equals(this.errors, baseResponseAnalysisStringsResponse.errors) && - Objects.equals(this.meta, baseResponseAnalysisStringsResponse.meta)&& + Objects.equals(this.message, baseResponseAnalysisStringsResponse.message) && + Objects.equals(this.meta, baseResponseAnalysisStringsResponse.meta) && + Objects.equals(this.status, baseResponseAnalysisStringsResponse.status)&& Objects.equals(this.additionalProperties, baseResponseAnalysisStringsResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAnalysisStringsResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AnalysisStringsResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAnalysisStringsStatusResponse.java b/src/main/java/ai/reveng/model/BaseResponseAnalysisStringsStatusResponse.java index 32e9b75..91c061f 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAnalysisStringsStatusResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseAnalysisStringsStatusResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAnalysisStringsStatusResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AnalysisStringsStatusResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAnalysisStringsStatusResponse() { - } - - public BaseResponseAnalysisStringsStatusResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAnalysisStringsStatusResponse() { } - public BaseResponseAnalysisStringsStatusResponse data(@javax.annotation.Nullable AnalysisStringsStatusResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AnalysisStringsStatusResponse dat } - public BaseResponseAnalysisStringsStatusResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAnalysisStringsStatusResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAnalysisStringsStatusResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAnalysisStringsStatusResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAnalysisStringsStatusResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAnalysisStringsStatusResponse baseResponseAnalysisStringsStatusResponse = (BaseResponseAnalysisStringsStatusResponse) o; - return Objects.equals(this.status, baseResponseAnalysisStringsStatusResponse.status) && - Objects.equals(this.data, baseResponseAnalysisStringsStatusResponse.data) && - Objects.equals(this.message, baseResponseAnalysisStringsStatusResponse.message) && + return Objects.equals(this.data, baseResponseAnalysisStringsStatusResponse.data) && Objects.equals(this.errors, baseResponseAnalysisStringsStatusResponse.errors) && - Objects.equals(this.meta, baseResponseAnalysisStringsStatusResponse.meta)&& + Objects.equals(this.message, baseResponseAnalysisStringsStatusResponse.message) && + Objects.equals(this.meta, baseResponseAnalysisStringsStatusResponse.meta) && + Objects.equals(this.status, baseResponseAnalysisStringsStatusResponse.status)&& Objects.equals(this.additionalProperties, baseResponseAnalysisStringsStatusResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAnalysisStringsStatusResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AnalysisStringsStatusResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAnalysisTags.java b/src/main/java/ai/reveng/model/BaseResponseAnalysisTags.java index 1373f91..6f24504 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAnalysisTags.java +++ b/src/main/java/ai/reveng/model/BaseResponseAnalysisTags.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAnalysisTags { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AnalysisTags data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAnalysisTags() { - } - - public BaseResponseAnalysisTags status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAnalysisTags() { } - public BaseResponseAnalysisTags data(@javax.annotation.Nullable AnalysisTags data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AnalysisTags data) { } - public BaseResponseAnalysisTags message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAnalysisTags errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAnalysisTags message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAnalysisTags meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAnalysisTags status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAnalysisTags baseResponseAnalysisTags = (BaseResponseAnalysisTags) o; - return Objects.equals(this.status, baseResponseAnalysisTags.status) && - Objects.equals(this.data, baseResponseAnalysisTags.data) && - Objects.equals(this.message, baseResponseAnalysisTags.message) && + return Objects.equals(this.data, baseResponseAnalysisTags.data) && Objects.equals(this.errors, baseResponseAnalysisTags.errors) && - Objects.equals(this.meta, baseResponseAnalysisTags.meta)&& + Objects.equals(this.message, baseResponseAnalysisTags.message) && + Objects.equals(this.meta, baseResponseAnalysisTags.meta) && + Objects.equals(this.status, baseResponseAnalysisTags.status)&& Objects.equals(this.additionalProperties, baseResponseAnalysisTags.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAnalysisTags {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AnalysisTags.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseAnalysisUpdateTagsResponse.java b/src/main/java/ai/reveng/model/BaseResponseAnalysisUpdateTagsResponse.java index da98f7e..075951f 100644 --- a/src/main/java/ai/reveng/model/BaseResponseAnalysisUpdateTagsResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseAnalysisUpdateTagsResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseAnalysisUpdateTagsResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AnalysisUpdateTagsResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseAnalysisUpdateTagsResponse() { - } - - public BaseResponseAnalysisUpdateTagsResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseAnalysisUpdateTagsResponse() { } - public BaseResponseAnalysisUpdateTagsResponse data(@javax.annotation.Nullable AnalysisUpdateTagsResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AnalysisUpdateTagsResponse data) } - public BaseResponseAnalysisUpdateTagsResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseAnalysisUpdateTagsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseAnalysisUpdateTagsResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseAnalysisUpdateTagsResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseAnalysisUpdateTagsResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseAnalysisUpdateTagsResponse baseResponseAnalysisUpdateTagsResponse = (BaseResponseAnalysisUpdateTagsResponse) o; - return Objects.equals(this.status, baseResponseAnalysisUpdateTagsResponse.status) && - Objects.equals(this.data, baseResponseAnalysisUpdateTagsResponse.data) && - Objects.equals(this.message, baseResponseAnalysisUpdateTagsResponse.message) && + return Objects.equals(this.data, baseResponseAnalysisUpdateTagsResponse.data) && Objects.equals(this.errors, baseResponseAnalysisUpdateTagsResponse.errors) && - Objects.equals(this.meta, baseResponseAnalysisUpdateTagsResponse.meta)&& + Objects.equals(this.message, baseResponseAnalysisUpdateTagsResponse.message) && + Objects.equals(this.meta, baseResponseAnalysisUpdateTagsResponse.meta) && + Objects.equals(this.status, baseResponseAnalysisUpdateTagsResponse.status)&& Objects.equals(this.additionalProperties, baseResponseAnalysisUpdateTagsResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseAnalysisUpdateTagsResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AnalysisUpdateTagsResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseBasic.java b/src/main/java/ai/reveng/model/BaseResponseBasic.java index 3550bc5..e2d5db5 100644 --- a/src/main/java/ai/reveng/model/BaseResponseBasic.java +++ b/src/main/java/ai/reveng/model/BaseResponseBasic.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseBasic { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Basic data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseBasic() { - } - - public BaseResponseBasic status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseBasic() { } - public BaseResponseBasic data(@javax.annotation.Nullable Basic data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable Basic data) { } - public BaseResponseBasic message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseBasic errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseBasic message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseBasic meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseBasic status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseBasic baseResponseBasic = (BaseResponseBasic) o; - return Objects.equals(this.status, baseResponseBasic.status) && - Objects.equals(this.data, baseResponseBasic.data) && - Objects.equals(this.message, baseResponseBasic.message) && + return Objects.equals(this.data, baseResponseBasic.data) && Objects.equals(this.errors, baseResponseBasic.errors) && - Objects.equals(this.meta, baseResponseBasic.meta)&& + Objects.equals(this.message, baseResponseBasic.message) && + Objects.equals(this.meta, baseResponseBasic.meta) && + Objects.equals(this.status, baseResponseBasic.status)&& Objects.equals(this.additionalProperties, baseResponseBasic.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseBasic {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { Basic.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseBinariesRelatedStatusResponse.java b/src/main/java/ai/reveng/model/BaseResponseBinariesRelatedStatusResponse.java index e47c056..c32eca7 100644 --- a/src/main/java/ai/reveng/model/BaseResponseBinariesRelatedStatusResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseBinariesRelatedStatusResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseBinariesRelatedStatusResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private BinariesRelatedStatusResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseBinariesRelatedStatusResponse() { - } - - public BaseResponseBinariesRelatedStatusResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseBinariesRelatedStatusResponse() { } - public BaseResponseBinariesRelatedStatusResponse data(@javax.annotation.Nullable BinariesRelatedStatusResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable BinariesRelatedStatusResponse dat } - public BaseResponseBinariesRelatedStatusResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseBinariesRelatedStatusResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseBinariesRelatedStatusResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseBinariesRelatedStatusResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseBinariesRelatedStatusResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseBinariesRelatedStatusResponse baseResponseBinariesRelatedStatusResponse = (BaseResponseBinariesRelatedStatusResponse) o; - return Objects.equals(this.status, baseResponseBinariesRelatedStatusResponse.status) && - Objects.equals(this.data, baseResponseBinariesRelatedStatusResponse.data) && - Objects.equals(this.message, baseResponseBinariesRelatedStatusResponse.message) && + return Objects.equals(this.data, baseResponseBinariesRelatedStatusResponse.data) && Objects.equals(this.errors, baseResponseBinariesRelatedStatusResponse.errors) && - Objects.equals(this.meta, baseResponseBinariesRelatedStatusResponse.meta)&& + Objects.equals(this.message, baseResponseBinariesRelatedStatusResponse.message) && + Objects.equals(this.meta, baseResponseBinariesRelatedStatusResponse.meta) && + Objects.equals(this.status, baseResponseBinariesRelatedStatusResponse.status)&& Objects.equals(this.additionalProperties, baseResponseBinariesRelatedStatusResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseBinariesRelatedStatusResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { BinariesRelatedStatusResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseBinaryAdditionalResponse.java b/src/main/java/ai/reveng/model/BaseResponseBinaryAdditionalResponse.java index eff5c18..1ff5adb 100644 --- a/src/main/java/ai/reveng/model/BaseResponseBinaryAdditionalResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseBinaryAdditionalResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseBinaryAdditionalResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private BinaryAdditionalResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseBinaryAdditionalResponse() { - } - - public BaseResponseBinaryAdditionalResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseBinaryAdditionalResponse() { } - public BaseResponseBinaryAdditionalResponse data(@javax.annotation.Nullable BinaryAdditionalResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable BinaryAdditionalResponse data) { } - public BaseResponseBinaryAdditionalResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseBinaryAdditionalResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseBinaryAdditionalResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseBinaryAdditionalResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseBinaryAdditionalResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseBinaryAdditionalResponse baseResponseBinaryAdditionalResponse = (BaseResponseBinaryAdditionalResponse) o; - return Objects.equals(this.status, baseResponseBinaryAdditionalResponse.status) && - Objects.equals(this.data, baseResponseBinaryAdditionalResponse.data) && - Objects.equals(this.message, baseResponseBinaryAdditionalResponse.message) && + return Objects.equals(this.data, baseResponseBinaryAdditionalResponse.data) && Objects.equals(this.errors, baseResponseBinaryAdditionalResponse.errors) && - Objects.equals(this.meta, baseResponseBinaryAdditionalResponse.meta)&& + Objects.equals(this.message, baseResponseBinaryAdditionalResponse.message) && + Objects.equals(this.meta, baseResponseBinaryAdditionalResponse.meta) && + Objects.equals(this.status, baseResponseBinaryAdditionalResponse.status)&& Objects.equals(this.additionalProperties, baseResponseBinaryAdditionalResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseBinaryAdditionalResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { BinaryAdditionalResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseBinaryDetailsResponse.java b/src/main/java/ai/reveng/model/BaseResponseBinaryDetailsResponse.java index fe99020..fabfb6d 100644 --- a/src/main/java/ai/reveng/model/BaseResponseBinaryDetailsResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseBinaryDetailsResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseBinaryDetailsResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private BinaryDetailsResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseBinaryDetailsResponse() { - } - - public BaseResponseBinaryDetailsResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseBinaryDetailsResponse() { } - public BaseResponseBinaryDetailsResponse data(@javax.annotation.Nullable BinaryDetailsResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable BinaryDetailsResponse data) { } - public BaseResponseBinaryDetailsResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseBinaryDetailsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseBinaryDetailsResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseBinaryDetailsResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseBinaryDetailsResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseBinaryDetailsResponse baseResponseBinaryDetailsResponse = (BaseResponseBinaryDetailsResponse) o; - return Objects.equals(this.status, baseResponseBinaryDetailsResponse.status) && - Objects.equals(this.data, baseResponseBinaryDetailsResponse.data) && - Objects.equals(this.message, baseResponseBinaryDetailsResponse.message) && + return Objects.equals(this.data, baseResponseBinaryDetailsResponse.data) && Objects.equals(this.errors, baseResponseBinaryDetailsResponse.errors) && - Objects.equals(this.meta, baseResponseBinaryDetailsResponse.meta)&& + Objects.equals(this.message, baseResponseBinaryDetailsResponse.message) && + Objects.equals(this.meta, baseResponseBinaryDetailsResponse.meta) && + Objects.equals(this.status, baseResponseBinaryDetailsResponse.status)&& Objects.equals(this.additionalProperties, baseResponseBinaryDetailsResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseBinaryDetailsResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { BinaryDetailsResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseBinaryExternalsResponse.java b/src/main/java/ai/reveng/model/BaseResponseBinaryExternalsResponse.java index 56040b1..1a2550b 100644 --- a/src/main/java/ai/reveng/model/BaseResponseBinaryExternalsResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseBinaryExternalsResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseBinaryExternalsResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private BinaryExternalsResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseBinaryExternalsResponse() { - } - - public BaseResponseBinaryExternalsResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseBinaryExternalsResponse() { } - public BaseResponseBinaryExternalsResponse data(@javax.annotation.Nullable BinaryExternalsResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable BinaryExternalsResponse data) { } - public BaseResponseBinaryExternalsResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseBinaryExternalsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseBinaryExternalsResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseBinaryExternalsResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseBinaryExternalsResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseBinaryExternalsResponse baseResponseBinaryExternalsResponse = (BaseResponseBinaryExternalsResponse) o; - return Objects.equals(this.status, baseResponseBinaryExternalsResponse.status) && - Objects.equals(this.data, baseResponseBinaryExternalsResponse.data) && - Objects.equals(this.message, baseResponseBinaryExternalsResponse.message) && + return Objects.equals(this.data, baseResponseBinaryExternalsResponse.data) && Objects.equals(this.errors, baseResponseBinaryExternalsResponse.errors) && - Objects.equals(this.meta, baseResponseBinaryExternalsResponse.meta)&& + Objects.equals(this.message, baseResponseBinaryExternalsResponse.message) && + Objects.equals(this.meta, baseResponseBinaryExternalsResponse.meta) && + Objects.equals(this.status, baseResponseBinaryExternalsResponse.status)&& Objects.equals(this.additionalProperties, baseResponseBinaryExternalsResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseBinaryExternalsResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { BinaryExternalsResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseBinarySearchResponse.java b/src/main/java/ai/reveng/model/BaseResponseBinarySearchResponse.java index b668d8e..e3e2ce5 100644 --- a/src/main/java/ai/reveng/model/BaseResponseBinarySearchResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseBinarySearchResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseBinarySearchResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private BinarySearchResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseBinarySearchResponse() { - } - - public BaseResponseBinarySearchResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseBinarySearchResponse() { } - public BaseResponseBinarySearchResponse data(@javax.annotation.Nullable BinarySearchResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable BinarySearchResponse data) { } - public BaseResponseBinarySearchResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseBinarySearchResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseBinarySearchResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseBinarySearchResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseBinarySearchResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseBinarySearchResponse baseResponseBinarySearchResponse = (BaseResponseBinarySearchResponse) o; - return Objects.equals(this.status, baseResponseBinarySearchResponse.status) && - Objects.equals(this.data, baseResponseBinarySearchResponse.data) && - Objects.equals(this.message, baseResponseBinarySearchResponse.message) && + return Objects.equals(this.data, baseResponseBinarySearchResponse.data) && Objects.equals(this.errors, baseResponseBinarySearchResponse.errors) && - Objects.equals(this.meta, baseResponseBinarySearchResponse.meta)&& + Objects.equals(this.message, baseResponseBinarySearchResponse.message) && + Objects.equals(this.meta, baseResponseBinarySearchResponse.meta) && + Objects.equals(this.status, baseResponseBinarySearchResponse.status)&& Objects.equals(this.additionalProperties, baseResponseBinarySearchResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseBinarySearchResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { BinarySearchResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseBlockCommentsGenerationForFunctionResponse.java b/src/main/java/ai/reveng/model/BaseResponseBlockCommentsGenerationForFunctionResponse.java index 68e2917..9d8e7af 100644 --- a/src/main/java/ai/reveng/model/BaseResponseBlockCommentsGenerationForFunctionResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseBlockCommentsGenerationForFunctionResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseBlockCommentsGenerationForFunctionResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private BlockCommentsGenerationForFunctionResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseBlockCommentsGenerationForFunctionResponse() { - } - - public BaseResponseBlockCommentsGenerationForFunctionResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseBlockCommentsGenerationForFunctionResponse() { } - public BaseResponseBlockCommentsGenerationForFunctionResponse data(@javax.annotation.Nullable BlockCommentsGenerationForFunctionResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable BlockCommentsGenerationForFunctio } - public BaseResponseBlockCommentsGenerationForFunctionResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseBlockCommentsGenerationForFunctionResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseBlockCommentsGenerationForFunctionResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseBlockCommentsGenerationForFunctionResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseBlockCommentsGenerationForFunctionResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseBlockCommentsGenerationForFunctionResponse baseResponseBlockCommentsGenerationForFunctionResponse = (BaseResponseBlockCommentsGenerationForFunctionResponse) o; - return Objects.equals(this.status, baseResponseBlockCommentsGenerationForFunctionResponse.status) && - Objects.equals(this.data, baseResponseBlockCommentsGenerationForFunctionResponse.data) && - Objects.equals(this.message, baseResponseBlockCommentsGenerationForFunctionResponse.message) && + return Objects.equals(this.data, baseResponseBlockCommentsGenerationForFunctionResponse.data) && Objects.equals(this.errors, baseResponseBlockCommentsGenerationForFunctionResponse.errors) && - Objects.equals(this.meta, baseResponseBlockCommentsGenerationForFunctionResponse.meta)&& + Objects.equals(this.message, baseResponseBlockCommentsGenerationForFunctionResponse.message) && + Objects.equals(this.meta, baseResponseBlockCommentsGenerationForFunctionResponse.meta) && + Objects.equals(this.status, baseResponseBlockCommentsGenerationForFunctionResponse.status)&& Objects.equals(this.additionalProperties, baseResponseBlockCommentsGenerationForFunctionResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseBlockCommentsGenerationForFunctionResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { BlockCommentsGenerationForFunctionResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseBlockCommentsOverviewGenerationResponse.java b/src/main/java/ai/reveng/model/BaseResponseBlockCommentsOverviewGenerationResponse.java index e5265fb..36f13dc 100644 --- a/src/main/java/ai/reveng/model/BaseResponseBlockCommentsOverviewGenerationResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseBlockCommentsOverviewGenerationResponse.java @@ -56,53 +56,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseBlockCommentsOverviewGenerationResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Object data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseBlockCommentsOverviewGenerationResponse() { - } - - public BaseResponseBlockCommentsOverviewGenerationResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseBlockCommentsOverviewGenerationResponse() { } - public BaseResponseBlockCommentsOverviewGenerationResponse data(@javax.annotation.Nullable Object data) { this.data = data; return this; @@ -122,25 +103,6 @@ public void setData(@javax.annotation.Nullable Object data) { } - public BaseResponseBlockCommentsOverviewGenerationResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseBlockCommentsOverviewGenerationResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -168,6 +130,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseBlockCommentsOverviewGenerationResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseBlockCommentsOverviewGenerationResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -186,6 +167,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseBlockCommentsOverviewGenerationResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -241,11 +241,11 @@ public boolean equals(Object o) { return false; } BaseResponseBlockCommentsOverviewGenerationResponse baseResponseBlockCommentsOverviewGenerationResponse = (BaseResponseBlockCommentsOverviewGenerationResponse) o; - return Objects.equals(this.status, baseResponseBlockCommentsOverviewGenerationResponse.status) && - Objects.equals(this.data, baseResponseBlockCommentsOverviewGenerationResponse.data) && - Objects.equals(this.message, baseResponseBlockCommentsOverviewGenerationResponse.message) && + return Objects.equals(this.data, baseResponseBlockCommentsOverviewGenerationResponse.data) && Objects.equals(this.errors, baseResponseBlockCommentsOverviewGenerationResponse.errors) && - Objects.equals(this.meta, baseResponseBlockCommentsOverviewGenerationResponse.meta)&& + Objects.equals(this.message, baseResponseBlockCommentsOverviewGenerationResponse.message) && + Objects.equals(this.meta, baseResponseBlockCommentsOverviewGenerationResponse.meta) && + Objects.equals(this.status, baseResponseBlockCommentsOverviewGenerationResponse.status)&& Objects.equals(this.additionalProperties, baseResponseBlockCommentsOverviewGenerationResponse.additionalProperties); } @@ -255,7 +255,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -269,11 +269,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseBlockCommentsOverviewGenerationResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -296,7 +296,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -315,9 +315,6 @@ 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -332,6 +329,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseBool.java b/src/main/java/ai/reveng/model/BaseResponseBool.java index 425ca50..6968705 100644 --- a/src/main/java/ai/reveng/model/BaseResponseBool.java +++ b/src/main/java/ai/reveng/model/BaseResponseBool.java @@ -56,53 +56,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseBool { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Boolean data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseBool() { - } - - public BaseResponseBool status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseBool() { } - public BaseResponseBool data(@javax.annotation.Nullable Boolean data) { this.data = data; return this; @@ -122,25 +103,6 @@ public void setData(@javax.annotation.Nullable Boolean data) { } - public BaseResponseBool message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseBool errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -168,6 +130,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseBool message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseBool meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -186,6 +167,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseBool status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -241,11 +241,11 @@ public boolean equals(Object o) { return false; } BaseResponseBool baseResponseBool = (BaseResponseBool) o; - return Objects.equals(this.status, baseResponseBool.status) && - Objects.equals(this.data, baseResponseBool.data) && - Objects.equals(this.message, baseResponseBool.message) && + return Objects.equals(this.data, baseResponseBool.data) && Objects.equals(this.errors, baseResponseBool.errors) && - Objects.equals(this.meta, baseResponseBool.meta)&& + Objects.equals(this.message, baseResponseBool.message) && + Objects.equals(this.meta, baseResponseBool.meta) && + Objects.equals(this.status, baseResponseBool.status)&& Objects.equals(this.additionalProperties, baseResponseBool.additionalProperties); } @@ -255,7 +255,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -269,11 +269,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseBool {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -296,7 +296,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -315,9 +315,6 @@ 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -332,6 +329,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseCalleesCallerFunctionsResponse.java b/src/main/java/ai/reveng/model/BaseResponseCalleesCallerFunctionsResponse.java index aaa4215..7d70ea3 100644 --- a/src/main/java/ai/reveng/model/BaseResponseCalleesCallerFunctionsResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseCalleesCallerFunctionsResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseCalleesCallerFunctionsResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private CalleesCallerFunctionsResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseCalleesCallerFunctionsResponse() { - } - - public BaseResponseCalleesCallerFunctionsResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseCalleesCallerFunctionsResponse() { } - public BaseResponseCalleesCallerFunctionsResponse data(@javax.annotation.Nullable CalleesCallerFunctionsResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable CalleesCallerFunctionsResponse da } - public BaseResponseCalleesCallerFunctionsResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseCalleesCallerFunctionsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseCalleesCallerFunctionsResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseCalleesCallerFunctionsResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseCalleesCallerFunctionsResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseCalleesCallerFunctionsResponse baseResponseCalleesCallerFunctionsResponse = (BaseResponseCalleesCallerFunctionsResponse) o; - return Objects.equals(this.status, baseResponseCalleesCallerFunctionsResponse.status) && - Objects.equals(this.data, baseResponseCalleesCallerFunctionsResponse.data) && - Objects.equals(this.message, baseResponseCalleesCallerFunctionsResponse.message) && + return Objects.equals(this.data, baseResponseCalleesCallerFunctionsResponse.data) && Objects.equals(this.errors, baseResponseCalleesCallerFunctionsResponse.errors) && - Objects.equals(this.meta, baseResponseCalleesCallerFunctionsResponse.meta)&& + Objects.equals(this.message, baseResponseCalleesCallerFunctionsResponse.message) && + Objects.equals(this.meta, baseResponseCalleesCallerFunctionsResponse.meta) && + Objects.equals(this.status, baseResponseCalleesCallerFunctionsResponse.status)&& Objects.equals(this.additionalProperties, baseResponseCalleesCallerFunctionsResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseCalleesCallerFunctionsResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { CalleesCallerFunctionsResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseCapabilities.java b/src/main/java/ai/reveng/model/BaseResponseCapabilities.java index bbfe481..3b41149 100644 --- a/src/main/java/ai/reveng/model/BaseResponseCapabilities.java +++ b/src/main/java/ai/reveng/model/BaseResponseCapabilities.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseCapabilities { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Capabilities data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseCapabilities() { - } - - public BaseResponseCapabilities status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseCapabilities() { } - public BaseResponseCapabilities data(@javax.annotation.Nullable Capabilities data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable Capabilities data) { } - public BaseResponseCapabilities message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseCapabilities errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseCapabilities message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseCapabilities meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseCapabilities status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseCapabilities baseResponseCapabilities = (BaseResponseCapabilities) o; - return Objects.equals(this.status, baseResponseCapabilities.status) && - Objects.equals(this.data, baseResponseCapabilities.data) && - Objects.equals(this.message, baseResponseCapabilities.message) && + return Objects.equals(this.data, baseResponseCapabilities.data) && Objects.equals(this.errors, baseResponseCapabilities.errors) && - Objects.equals(this.meta, baseResponseCapabilities.meta)&& + Objects.equals(this.message, baseResponseCapabilities.message) && + Objects.equals(this.meta, baseResponseCapabilities.meta) && + Objects.equals(this.status, baseResponseCapabilities.status)&& Objects.equals(this.additionalProperties, baseResponseCapabilities.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseCapabilities {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { Capabilities.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseCheckSecurityChecksTaskResponse.java b/src/main/java/ai/reveng/model/BaseResponseCheckSecurityChecksTaskResponse.java index b0367ba..838482e 100644 --- a/src/main/java/ai/reveng/model/BaseResponseCheckSecurityChecksTaskResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseCheckSecurityChecksTaskResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseCheckSecurityChecksTaskResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private CheckSecurityChecksTaskResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseCheckSecurityChecksTaskResponse() { - } - - public BaseResponseCheckSecurityChecksTaskResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseCheckSecurityChecksTaskResponse() { } - public BaseResponseCheckSecurityChecksTaskResponse data(@javax.annotation.Nullable CheckSecurityChecksTaskResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable CheckSecurityChecksTaskResponse d } - public BaseResponseCheckSecurityChecksTaskResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseCheckSecurityChecksTaskResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseCheckSecurityChecksTaskResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseCheckSecurityChecksTaskResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseCheckSecurityChecksTaskResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseCheckSecurityChecksTaskResponse baseResponseCheckSecurityChecksTaskResponse = (BaseResponseCheckSecurityChecksTaskResponse) o; - return Objects.equals(this.status, baseResponseCheckSecurityChecksTaskResponse.status) && - Objects.equals(this.data, baseResponseCheckSecurityChecksTaskResponse.data) && - Objects.equals(this.message, baseResponseCheckSecurityChecksTaskResponse.message) && + return Objects.equals(this.data, baseResponseCheckSecurityChecksTaskResponse.data) && Objects.equals(this.errors, baseResponseCheckSecurityChecksTaskResponse.errors) && - Objects.equals(this.meta, baseResponseCheckSecurityChecksTaskResponse.meta)&& + Objects.equals(this.message, baseResponseCheckSecurityChecksTaskResponse.message) && + Objects.equals(this.meta, baseResponseCheckSecurityChecksTaskResponse.meta) && + Objects.equals(this.status, baseResponseCheckSecurityChecksTaskResponse.status)&& Objects.equals(this.additionalProperties, baseResponseCheckSecurityChecksTaskResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseCheckSecurityChecksTaskResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { CheckSecurityChecksTaskResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseChildBinariesResponse.java b/src/main/java/ai/reveng/model/BaseResponseChildBinariesResponse.java index 4b76a93..e98e915 100644 --- a/src/main/java/ai/reveng/model/BaseResponseChildBinariesResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseChildBinariesResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseChildBinariesResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private ChildBinariesResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseChildBinariesResponse() { - } - - public BaseResponseChildBinariesResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseChildBinariesResponse() { } - public BaseResponseChildBinariesResponse data(@javax.annotation.Nullable ChildBinariesResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable ChildBinariesResponse data) { } - public BaseResponseChildBinariesResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseChildBinariesResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseChildBinariesResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseChildBinariesResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseChildBinariesResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseChildBinariesResponse baseResponseChildBinariesResponse = (BaseResponseChildBinariesResponse) o; - return Objects.equals(this.status, baseResponseChildBinariesResponse.status) && - Objects.equals(this.data, baseResponseChildBinariesResponse.data) && - Objects.equals(this.message, baseResponseChildBinariesResponse.message) && + return Objects.equals(this.data, baseResponseChildBinariesResponse.data) && Objects.equals(this.errors, baseResponseChildBinariesResponse.errors) && - Objects.equals(this.meta, baseResponseChildBinariesResponse.meta)&& + Objects.equals(this.message, baseResponseChildBinariesResponse.message) && + Objects.equals(this.meta, baseResponseChildBinariesResponse.meta) && + Objects.equals(this.status, baseResponseChildBinariesResponse.status)&& Objects.equals(this.additionalProperties, baseResponseChildBinariesResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseChildBinariesResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { ChildBinariesResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseCollectionBinariesUpdateResponse.java b/src/main/java/ai/reveng/model/BaseResponseCollectionBinariesUpdateResponse.java index 816130b..21cdb31 100644 --- a/src/main/java/ai/reveng/model/BaseResponseCollectionBinariesUpdateResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseCollectionBinariesUpdateResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseCollectionBinariesUpdateResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private CollectionBinariesUpdateResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseCollectionBinariesUpdateResponse() { - } - - public BaseResponseCollectionBinariesUpdateResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseCollectionBinariesUpdateResponse() { } - public BaseResponseCollectionBinariesUpdateResponse data(@javax.annotation.Nullable CollectionBinariesUpdateResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable CollectionBinariesUpdateResponse } - public BaseResponseCollectionBinariesUpdateResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseCollectionBinariesUpdateResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseCollectionBinariesUpdateResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseCollectionBinariesUpdateResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseCollectionBinariesUpdateResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseCollectionBinariesUpdateResponse baseResponseCollectionBinariesUpdateResponse = (BaseResponseCollectionBinariesUpdateResponse) o; - return Objects.equals(this.status, baseResponseCollectionBinariesUpdateResponse.status) && - Objects.equals(this.data, baseResponseCollectionBinariesUpdateResponse.data) && - Objects.equals(this.message, baseResponseCollectionBinariesUpdateResponse.message) && + return Objects.equals(this.data, baseResponseCollectionBinariesUpdateResponse.data) && Objects.equals(this.errors, baseResponseCollectionBinariesUpdateResponse.errors) && - Objects.equals(this.meta, baseResponseCollectionBinariesUpdateResponse.meta)&& + Objects.equals(this.message, baseResponseCollectionBinariesUpdateResponse.message) && + Objects.equals(this.meta, baseResponseCollectionBinariesUpdateResponse.meta) && + Objects.equals(this.status, baseResponseCollectionBinariesUpdateResponse.status)&& Objects.equals(this.additionalProperties, baseResponseCollectionBinariesUpdateResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseCollectionBinariesUpdateResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { CollectionBinariesUpdateResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseCollectionResponse.java b/src/main/java/ai/reveng/model/BaseResponseCollectionResponse.java index b8f75ca..b732de2 100644 --- a/src/main/java/ai/reveng/model/BaseResponseCollectionResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseCollectionResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseCollectionResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private CollectionResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseCollectionResponse() { - } - - public BaseResponseCollectionResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseCollectionResponse() { } - public BaseResponseCollectionResponse data(@javax.annotation.Nullable CollectionResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable CollectionResponse data) { } - public BaseResponseCollectionResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseCollectionResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseCollectionResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseCollectionResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseCollectionResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseCollectionResponse baseResponseCollectionResponse = (BaseResponseCollectionResponse) o; - return Objects.equals(this.status, baseResponseCollectionResponse.status) && - Objects.equals(this.data, baseResponseCollectionResponse.data) && - Objects.equals(this.message, baseResponseCollectionResponse.message) && + return Objects.equals(this.data, baseResponseCollectionResponse.data) && Objects.equals(this.errors, baseResponseCollectionResponse.errors) && - Objects.equals(this.meta, baseResponseCollectionResponse.meta)&& + Objects.equals(this.message, baseResponseCollectionResponse.message) && + Objects.equals(this.meta, baseResponseCollectionResponse.meta) && + Objects.equals(this.status, baseResponseCollectionResponse.status)&& Objects.equals(this.additionalProperties, baseResponseCollectionResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseCollectionResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { CollectionResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseCollectionSearchResponse.java b/src/main/java/ai/reveng/model/BaseResponseCollectionSearchResponse.java index 741a541..317d885 100644 --- a/src/main/java/ai/reveng/model/BaseResponseCollectionSearchResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseCollectionSearchResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseCollectionSearchResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private CollectionSearchResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseCollectionSearchResponse() { - } - - public BaseResponseCollectionSearchResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseCollectionSearchResponse() { } - public BaseResponseCollectionSearchResponse data(@javax.annotation.Nullable CollectionSearchResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable CollectionSearchResponse data) { } - public BaseResponseCollectionSearchResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseCollectionSearchResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseCollectionSearchResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseCollectionSearchResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseCollectionSearchResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseCollectionSearchResponse baseResponseCollectionSearchResponse = (BaseResponseCollectionSearchResponse) o; - return Objects.equals(this.status, baseResponseCollectionSearchResponse.status) && - Objects.equals(this.data, baseResponseCollectionSearchResponse.data) && - Objects.equals(this.message, baseResponseCollectionSearchResponse.message) && + return Objects.equals(this.data, baseResponseCollectionSearchResponse.data) && Objects.equals(this.errors, baseResponseCollectionSearchResponse.errors) && - Objects.equals(this.meta, baseResponseCollectionSearchResponse.meta)&& + Objects.equals(this.message, baseResponseCollectionSearchResponse.message) && + Objects.equals(this.meta, baseResponseCollectionSearchResponse.meta) && + Objects.equals(this.status, baseResponseCollectionSearchResponse.status)&& Objects.equals(this.additionalProperties, baseResponseCollectionSearchResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseCollectionSearchResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { CollectionSearchResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseCollectionTagsUpdateResponse.java b/src/main/java/ai/reveng/model/BaseResponseCollectionTagsUpdateResponse.java index b36ba93..1977e82 100644 --- a/src/main/java/ai/reveng/model/BaseResponseCollectionTagsUpdateResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseCollectionTagsUpdateResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseCollectionTagsUpdateResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private CollectionTagsUpdateResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseCollectionTagsUpdateResponse() { - } - - public BaseResponseCollectionTagsUpdateResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseCollectionTagsUpdateResponse() { } - public BaseResponseCollectionTagsUpdateResponse data(@javax.annotation.Nullable CollectionTagsUpdateResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable CollectionTagsUpdateResponse data } - public BaseResponseCollectionTagsUpdateResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseCollectionTagsUpdateResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseCollectionTagsUpdateResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseCollectionTagsUpdateResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseCollectionTagsUpdateResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseCollectionTagsUpdateResponse baseResponseCollectionTagsUpdateResponse = (BaseResponseCollectionTagsUpdateResponse) o; - return Objects.equals(this.status, baseResponseCollectionTagsUpdateResponse.status) && - Objects.equals(this.data, baseResponseCollectionTagsUpdateResponse.data) && - Objects.equals(this.message, baseResponseCollectionTagsUpdateResponse.message) && + return Objects.equals(this.data, baseResponseCollectionTagsUpdateResponse.data) && Objects.equals(this.errors, baseResponseCollectionTagsUpdateResponse.errors) && - Objects.equals(this.meta, baseResponseCollectionTagsUpdateResponse.meta)&& + Objects.equals(this.message, baseResponseCollectionTagsUpdateResponse.message) && + Objects.equals(this.meta, baseResponseCollectionTagsUpdateResponse.meta) && + Objects.equals(this.status, baseResponseCollectionTagsUpdateResponse.status)&& Objects.equals(this.additionalProperties, baseResponseCollectionTagsUpdateResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseCollectionTagsUpdateResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { CollectionTagsUpdateResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseCommentResponse.java b/src/main/java/ai/reveng/model/BaseResponseCommentResponse.java index 67805b5..d0b719d 100644 --- a/src/main/java/ai/reveng/model/BaseResponseCommentResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseCommentResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseCommentResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private CommentResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseCommentResponse() { - } - - public BaseResponseCommentResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseCommentResponse() { } - public BaseResponseCommentResponse data(@javax.annotation.Nullable CommentResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable CommentResponse data) { } - public BaseResponseCommentResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseCommentResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseCommentResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseCommentResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseCommentResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseCommentResponse baseResponseCommentResponse = (BaseResponseCommentResponse) o; - return Objects.equals(this.status, baseResponseCommentResponse.status) && - Objects.equals(this.data, baseResponseCommentResponse.data) && - Objects.equals(this.message, baseResponseCommentResponse.message) && + return Objects.equals(this.data, baseResponseCommentResponse.data) && Objects.equals(this.errors, baseResponseCommentResponse.errors) && - Objects.equals(this.meta, baseResponseCommentResponse.meta)&& + Objects.equals(this.message, baseResponseCommentResponse.message) && + Objects.equals(this.meta, baseResponseCommentResponse.meta) && + Objects.equals(this.status, baseResponseCommentResponse.status)&& Objects.equals(this.additionalProperties, baseResponseCommentResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseCommentResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { CommentResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseCommunities.java b/src/main/java/ai/reveng/model/BaseResponseCommunities.java index cbcd8b3..f345d98 100644 --- a/src/main/java/ai/reveng/model/BaseResponseCommunities.java +++ b/src/main/java/ai/reveng/model/BaseResponseCommunities.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseCommunities { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Communities data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseCommunities() { - } - - public BaseResponseCommunities status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseCommunities() { } - public BaseResponseCommunities data(@javax.annotation.Nullable Communities data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable Communities data) { } - public BaseResponseCommunities message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseCommunities errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseCommunities message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseCommunities meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseCommunities status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseCommunities baseResponseCommunities = (BaseResponseCommunities) o; - return Objects.equals(this.status, baseResponseCommunities.status) && - Objects.equals(this.data, baseResponseCommunities.data) && - Objects.equals(this.message, baseResponseCommunities.message) && + return Objects.equals(this.data, baseResponseCommunities.data) && Objects.equals(this.errors, baseResponseCommunities.errors) && - Objects.equals(this.meta, baseResponseCommunities.meta)&& + Objects.equals(this.message, baseResponseCommunities.message) && + Objects.equals(this.meta, baseResponseCommunities.meta) && + Objects.equals(this.status, baseResponseCommunities.status)&& Objects.equals(this.additionalProperties, baseResponseCommunities.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseCommunities {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { Communities.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseConfigResponse.java b/src/main/java/ai/reveng/model/BaseResponseConfigResponse.java index 9f70fa0..988bb5c 100644 --- a/src/main/java/ai/reveng/model/BaseResponseConfigResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseConfigResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseConfigResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private ConfigResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseConfigResponse() { - } - - public BaseResponseConfigResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseConfigResponse() { } - public BaseResponseConfigResponse data(@javax.annotation.Nullable ConfigResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable ConfigResponse data) { } - public BaseResponseConfigResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseConfigResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseConfigResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseConfigResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseConfigResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseConfigResponse baseResponseConfigResponse = (BaseResponseConfigResponse) o; - return Objects.equals(this.status, baseResponseConfigResponse.status) && - Objects.equals(this.data, baseResponseConfigResponse.data) && - Objects.equals(this.message, baseResponseConfigResponse.message) && + return Objects.equals(this.data, baseResponseConfigResponse.data) && Objects.equals(this.errors, baseResponseConfigResponse.errors) && - Objects.equals(this.meta, baseResponseConfigResponse.meta)&& + Objects.equals(this.message, baseResponseConfigResponse.message) && + Objects.equals(this.meta, baseResponseConfigResponse.meta) && + Objects.equals(this.status, baseResponseConfigResponse.status)&& Objects.equals(this.additionalProperties, baseResponseConfigResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseConfigResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { ConfigResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseCreated.java b/src/main/java/ai/reveng/model/BaseResponseCreated.java index 2facb29..e8af3da 100644 --- a/src/main/java/ai/reveng/model/BaseResponseCreated.java +++ b/src/main/java/ai/reveng/model/BaseResponseCreated.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseCreated { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Created data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseCreated() { - } - - public BaseResponseCreated status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseCreated() { } - public BaseResponseCreated data(@javax.annotation.Nullable Created data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable Created data) { } - public BaseResponseCreated message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseCreated errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseCreated message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseCreated meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseCreated status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseCreated baseResponseCreated = (BaseResponseCreated) o; - return Objects.equals(this.status, baseResponseCreated.status) && - Objects.equals(this.data, baseResponseCreated.data) && - Objects.equals(this.message, baseResponseCreated.message) && + return Objects.equals(this.data, baseResponseCreated.data) && Objects.equals(this.errors, baseResponseCreated.errors) && - Objects.equals(this.meta, baseResponseCreated.meta)&& + Objects.equals(this.message, baseResponseCreated.message) && + Objects.equals(this.meta, baseResponseCreated.meta) && + Objects.equals(this.status, baseResponseCreated.status)&& Objects.equals(this.additionalProperties, baseResponseCreated.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseCreated {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { Created.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseDict.java b/src/main/java/ai/reveng/model/BaseResponseDict.java index 08e3bee..f550a1d 100644 --- a/src/main/java/ai/reveng/model/BaseResponseDict.java +++ b/src/main/java/ai/reveng/model/BaseResponseDict.java @@ -58,53 +58,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseDict { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Map data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseDict() { - } - - public BaseResponseDict status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseDict() { } - public BaseResponseDict data(@javax.annotation.Nullable Map data) { this.data = data; return this; @@ -132,25 +113,6 @@ public void setData(@javax.annotation.Nullable Map data) { } - public BaseResponseDict message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseDict errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -178,6 +140,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseDict message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseDict meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -196,6 +177,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseDict status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -251,11 +251,11 @@ public boolean equals(Object o) { return false; } BaseResponseDict baseResponseDict = (BaseResponseDict) o; - return Objects.equals(this.status, baseResponseDict.status) && - Objects.equals(this.data, baseResponseDict.data) && - Objects.equals(this.message, baseResponseDict.message) && + return Objects.equals(this.data, baseResponseDict.data) && Objects.equals(this.errors, baseResponseDict.errors) && - Objects.equals(this.meta, baseResponseDict.meta)&& + Objects.equals(this.message, baseResponseDict.message) && + Objects.equals(this.meta, baseResponseDict.meta) && + Objects.equals(this.status, baseResponseDict.status)&& Objects.equals(this.additionalProperties, baseResponseDict.additionalProperties); } @@ -265,7 +265,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -279,11 +279,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseDict {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -306,7 +306,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -325,9 +325,6 @@ 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -342,6 +339,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseDynamicExecutionStatus.java b/src/main/java/ai/reveng/model/BaseResponseDynamicExecutionStatus.java index 1a9ad05..dcd6900 100644 --- a/src/main/java/ai/reveng/model/BaseResponseDynamicExecutionStatus.java +++ b/src/main/java/ai/reveng/model/BaseResponseDynamicExecutionStatus.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseDynamicExecutionStatus { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private AppServicesDynamicExecutionSchemasDynamicExecutionStatus data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseDynamicExecutionStatus() { - } - - public BaseResponseDynamicExecutionStatus status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseDynamicExecutionStatus() { } - public BaseResponseDynamicExecutionStatus data(@javax.annotation.Nullable AppServicesDynamicExecutionSchemasDynamicExecutionStatus data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable AppServicesDynamicExecutionSchema } - public BaseResponseDynamicExecutionStatus message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseDynamicExecutionStatus errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseDynamicExecutionStatus message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseDynamicExecutionStatus meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseDynamicExecutionStatus status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseDynamicExecutionStatus baseResponseDynamicExecutionStatus = (BaseResponseDynamicExecutionStatus) o; - return Objects.equals(this.status, baseResponseDynamicExecutionStatus.status) && - Objects.equals(this.data, baseResponseDynamicExecutionStatus.data) && - Objects.equals(this.message, baseResponseDynamicExecutionStatus.message) && + return Objects.equals(this.data, baseResponseDynamicExecutionStatus.data) && Objects.equals(this.errors, baseResponseDynamicExecutionStatus.errors) && - Objects.equals(this.meta, baseResponseDynamicExecutionStatus.meta)&& + Objects.equals(this.message, baseResponseDynamicExecutionStatus.message) && + Objects.equals(this.meta, baseResponseDynamicExecutionStatus.meta) && + Objects.equals(this.status, baseResponseDynamicExecutionStatus.status)&& Objects.equals(this.additionalProperties, baseResponseDynamicExecutionStatus.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseDynamicExecutionStatus {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { AppServicesDynamicExecutionSchemasDynamicExecutionStatus.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseExternalResponse.java b/src/main/java/ai/reveng/model/BaseResponseExternalResponse.java index dfdb2ce..570bb08 100644 --- a/src/main/java/ai/reveng/model/BaseResponseExternalResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseExternalResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseExternalResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private ExternalResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseExternalResponse() { - } - - public BaseResponseExternalResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseExternalResponse() { } - public BaseResponseExternalResponse data(@javax.annotation.Nullable ExternalResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable ExternalResponse data) { } - public BaseResponseExternalResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseExternalResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseExternalResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseExternalResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseExternalResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseExternalResponse baseResponseExternalResponse = (BaseResponseExternalResponse) o; - return Objects.equals(this.status, baseResponseExternalResponse.status) && - Objects.equals(this.data, baseResponseExternalResponse.data) && - Objects.equals(this.message, baseResponseExternalResponse.message) && + return Objects.equals(this.data, baseResponseExternalResponse.data) && Objects.equals(this.errors, baseResponseExternalResponse.errors) && - Objects.equals(this.meta, baseResponseExternalResponse.meta)&& + Objects.equals(this.message, baseResponseExternalResponse.message) && + Objects.equals(this.meta, baseResponseExternalResponse.meta) && + Objects.equals(this.status, baseResponseExternalResponse.status)&& Objects.equals(this.additionalProperties, baseResponseExternalResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseExternalResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { ExternalResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseFunctionBlocksResponse.java b/src/main/java/ai/reveng/model/BaseResponseFunctionBlocksResponse.java index f657ee7..c48e15a 100644 --- a/src/main/java/ai/reveng/model/BaseResponseFunctionBlocksResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseFunctionBlocksResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseFunctionBlocksResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private FunctionBlocksResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseFunctionBlocksResponse() { - } - - public BaseResponseFunctionBlocksResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseFunctionBlocksResponse() { } - public BaseResponseFunctionBlocksResponse data(@javax.annotation.Nullable FunctionBlocksResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable FunctionBlocksResponse data) { } - public BaseResponseFunctionBlocksResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseFunctionBlocksResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseFunctionBlocksResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseFunctionBlocksResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseFunctionBlocksResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseFunctionBlocksResponse baseResponseFunctionBlocksResponse = (BaseResponseFunctionBlocksResponse) o; - return Objects.equals(this.status, baseResponseFunctionBlocksResponse.status) && - Objects.equals(this.data, baseResponseFunctionBlocksResponse.data) && - Objects.equals(this.message, baseResponseFunctionBlocksResponse.message) && + return Objects.equals(this.data, baseResponseFunctionBlocksResponse.data) && Objects.equals(this.errors, baseResponseFunctionBlocksResponse.errors) && - Objects.equals(this.meta, baseResponseFunctionBlocksResponse.meta)&& + Objects.equals(this.message, baseResponseFunctionBlocksResponse.message) && + Objects.equals(this.meta, baseResponseFunctionBlocksResponse.meta) && + Objects.equals(this.status, baseResponseFunctionBlocksResponse.status)&& Objects.equals(this.additionalProperties, baseResponseFunctionBlocksResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseFunctionBlocksResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { FunctionBlocksResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseFunctionCapabilityResponse.java b/src/main/java/ai/reveng/model/BaseResponseFunctionCapabilityResponse.java index e577c45..87be826 100644 --- a/src/main/java/ai/reveng/model/BaseResponseFunctionCapabilityResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseFunctionCapabilityResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseFunctionCapabilityResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private FunctionCapabilityResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseFunctionCapabilityResponse() { - } - - public BaseResponseFunctionCapabilityResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseFunctionCapabilityResponse() { } - public BaseResponseFunctionCapabilityResponse data(@javax.annotation.Nullable FunctionCapabilityResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable FunctionCapabilityResponse data) } - public BaseResponseFunctionCapabilityResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseFunctionCapabilityResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseFunctionCapabilityResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseFunctionCapabilityResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseFunctionCapabilityResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseFunctionCapabilityResponse baseResponseFunctionCapabilityResponse = (BaseResponseFunctionCapabilityResponse) o; - return Objects.equals(this.status, baseResponseFunctionCapabilityResponse.status) && - Objects.equals(this.data, baseResponseFunctionCapabilityResponse.data) && - Objects.equals(this.message, baseResponseFunctionCapabilityResponse.message) && + return Objects.equals(this.data, baseResponseFunctionCapabilityResponse.data) && Objects.equals(this.errors, baseResponseFunctionCapabilityResponse.errors) && - Objects.equals(this.meta, baseResponseFunctionCapabilityResponse.meta)&& + Objects.equals(this.message, baseResponseFunctionCapabilityResponse.message) && + Objects.equals(this.meta, baseResponseFunctionCapabilityResponse.meta) && + Objects.equals(this.status, baseResponseFunctionCapabilityResponse.status)&& Objects.equals(this.additionalProperties, baseResponseFunctionCapabilityResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseFunctionCapabilityResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { FunctionCapabilityResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseFunctionDataTypes.java b/src/main/java/ai/reveng/model/BaseResponseFunctionDataTypes.java index 62c66e7..000fff9 100644 --- a/src/main/java/ai/reveng/model/BaseResponseFunctionDataTypes.java +++ b/src/main/java/ai/reveng/model/BaseResponseFunctionDataTypes.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseFunctionDataTypes { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private FunctionDataTypes data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseFunctionDataTypes() { - } - - public BaseResponseFunctionDataTypes status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseFunctionDataTypes() { } - public BaseResponseFunctionDataTypes data(@javax.annotation.Nullable FunctionDataTypes data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable FunctionDataTypes data) { } - public BaseResponseFunctionDataTypes message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseFunctionDataTypes errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseFunctionDataTypes message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseFunctionDataTypes meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseFunctionDataTypes status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseFunctionDataTypes baseResponseFunctionDataTypes = (BaseResponseFunctionDataTypes) o; - return Objects.equals(this.status, baseResponseFunctionDataTypes.status) && - Objects.equals(this.data, baseResponseFunctionDataTypes.data) && - Objects.equals(this.message, baseResponseFunctionDataTypes.message) && + return Objects.equals(this.data, baseResponseFunctionDataTypes.data) && Objects.equals(this.errors, baseResponseFunctionDataTypes.errors) && - Objects.equals(this.meta, baseResponseFunctionDataTypes.meta)&& + Objects.equals(this.message, baseResponseFunctionDataTypes.message) && + Objects.equals(this.meta, baseResponseFunctionDataTypes.meta) && + Objects.equals(this.status, baseResponseFunctionDataTypes.status)&& Objects.equals(this.additionalProperties, baseResponseFunctionDataTypes.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseFunctionDataTypes {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { FunctionDataTypes.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseFunctionDataTypesList.java b/src/main/java/ai/reveng/model/BaseResponseFunctionDataTypesList.java index f61948e..7f2422c 100644 --- a/src/main/java/ai/reveng/model/BaseResponseFunctionDataTypesList.java +++ b/src/main/java/ai/reveng/model/BaseResponseFunctionDataTypesList.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseFunctionDataTypesList { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private FunctionDataTypesList data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseFunctionDataTypesList() { - } - - public BaseResponseFunctionDataTypesList status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseFunctionDataTypesList() { } - public BaseResponseFunctionDataTypesList data(@javax.annotation.Nullable FunctionDataTypesList data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable FunctionDataTypesList data) { } - public BaseResponseFunctionDataTypesList message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseFunctionDataTypesList errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseFunctionDataTypesList message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseFunctionDataTypesList meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseFunctionDataTypesList status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseFunctionDataTypesList baseResponseFunctionDataTypesList = (BaseResponseFunctionDataTypesList) o; - return Objects.equals(this.status, baseResponseFunctionDataTypesList.status) && - Objects.equals(this.data, baseResponseFunctionDataTypesList.data) && - Objects.equals(this.message, baseResponseFunctionDataTypesList.message) && + return Objects.equals(this.data, baseResponseFunctionDataTypesList.data) && Objects.equals(this.errors, baseResponseFunctionDataTypesList.errors) && - Objects.equals(this.meta, baseResponseFunctionDataTypesList.meta)&& + Objects.equals(this.message, baseResponseFunctionDataTypesList.message) && + Objects.equals(this.meta, baseResponseFunctionDataTypesList.meta) && + Objects.equals(this.status, baseResponseFunctionDataTypesList.status)&& Objects.equals(this.additionalProperties, baseResponseFunctionDataTypesList.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseFunctionDataTypesList {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { FunctionDataTypesList.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseFunctionSearchResponse.java b/src/main/java/ai/reveng/model/BaseResponseFunctionSearchResponse.java index af80e19..90971d2 100644 --- a/src/main/java/ai/reveng/model/BaseResponseFunctionSearchResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseFunctionSearchResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseFunctionSearchResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private FunctionSearchResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseFunctionSearchResponse() { - } - - public BaseResponseFunctionSearchResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseFunctionSearchResponse() { } - public BaseResponseFunctionSearchResponse data(@javax.annotation.Nullable FunctionSearchResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable FunctionSearchResponse data) { } - public BaseResponseFunctionSearchResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseFunctionSearchResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseFunctionSearchResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseFunctionSearchResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseFunctionSearchResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseFunctionSearchResponse baseResponseFunctionSearchResponse = (BaseResponseFunctionSearchResponse) o; - return Objects.equals(this.status, baseResponseFunctionSearchResponse.status) && - Objects.equals(this.data, baseResponseFunctionSearchResponse.data) && - Objects.equals(this.message, baseResponseFunctionSearchResponse.message) && + return Objects.equals(this.data, baseResponseFunctionSearchResponse.data) && Objects.equals(this.errors, baseResponseFunctionSearchResponse.errors) && - Objects.equals(this.meta, baseResponseFunctionSearchResponse.meta)&& + Objects.equals(this.message, baseResponseFunctionSearchResponse.message) && + Objects.equals(this.meta, baseResponseFunctionSearchResponse.meta) && + Objects.equals(this.status, baseResponseFunctionSearchResponse.status)&& Objects.equals(this.additionalProperties, baseResponseFunctionSearchResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseFunctionSearchResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { FunctionSearchResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseFunctionStringsResponse.java b/src/main/java/ai/reveng/model/BaseResponseFunctionStringsResponse.java index 9b6c977..096716a 100644 --- a/src/main/java/ai/reveng/model/BaseResponseFunctionStringsResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseFunctionStringsResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseFunctionStringsResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private FunctionStringsResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseFunctionStringsResponse() { - } - - public BaseResponseFunctionStringsResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseFunctionStringsResponse() { } - public BaseResponseFunctionStringsResponse data(@javax.annotation.Nullable FunctionStringsResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable FunctionStringsResponse data) { } - public BaseResponseFunctionStringsResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseFunctionStringsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseFunctionStringsResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseFunctionStringsResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseFunctionStringsResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseFunctionStringsResponse baseResponseFunctionStringsResponse = (BaseResponseFunctionStringsResponse) o; - return Objects.equals(this.status, baseResponseFunctionStringsResponse.status) && - Objects.equals(this.data, baseResponseFunctionStringsResponse.data) && - Objects.equals(this.message, baseResponseFunctionStringsResponse.message) && + return Objects.equals(this.data, baseResponseFunctionStringsResponse.data) && Objects.equals(this.errors, baseResponseFunctionStringsResponse.errors) && - Objects.equals(this.meta, baseResponseFunctionStringsResponse.meta)&& + Objects.equals(this.message, baseResponseFunctionStringsResponse.message) && + Objects.equals(this.meta, baseResponseFunctionStringsResponse.meta) && + Objects.equals(this.status, baseResponseFunctionStringsResponse.status)&& Objects.equals(this.additionalProperties, baseResponseFunctionStringsResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseFunctionStringsResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { FunctionStringsResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseFunctionTaskResponse.java b/src/main/java/ai/reveng/model/BaseResponseFunctionTaskResponse.java index 8d2666c..34b7e9f 100644 --- a/src/main/java/ai/reveng/model/BaseResponseFunctionTaskResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseFunctionTaskResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseFunctionTaskResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private FunctionTaskResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseFunctionTaskResponse() { - } - - public BaseResponseFunctionTaskResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseFunctionTaskResponse() { } - public BaseResponseFunctionTaskResponse data(@javax.annotation.Nullable FunctionTaskResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable FunctionTaskResponse data) { } - public BaseResponseFunctionTaskResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseFunctionTaskResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseFunctionTaskResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseFunctionTaskResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseFunctionTaskResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseFunctionTaskResponse baseResponseFunctionTaskResponse = (BaseResponseFunctionTaskResponse) o; - return Objects.equals(this.status, baseResponseFunctionTaskResponse.status) && - Objects.equals(this.data, baseResponseFunctionTaskResponse.data) && - Objects.equals(this.message, baseResponseFunctionTaskResponse.message) && + return Objects.equals(this.data, baseResponseFunctionTaskResponse.data) && Objects.equals(this.errors, baseResponseFunctionTaskResponse.errors) && - Objects.equals(this.meta, baseResponseFunctionTaskResponse.meta)&& + Objects.equals(this.message, baseResponseFunctionTaskResponse.message) && + Objects.equals(this.meta, baseResponseFunctionTaskResponse.meta) && + Objects.equals(this.status, baseResponseFunctionTaskResponse.status)&& Objects.equals(this.additionalProperties, baseResponseFunctionTaskResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseFunctionTaskResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { FunctionTaskResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseFunctionsDetailResponse.java b/src/main/java/ai/reveng/model/BaseResponseFunctionsDetailResponse.java index 2d6b16c..8e299fd 100644 --- a/src/main/java/ai/reveng/model/BaseResponseFunctionsDetailResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseFunctionsDetailResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseFunctionsDetailResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private FunctionsDetailResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseFunctionsDetailResponse() { - } - - public BaseResponseFunctionsDetailResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseFunctionsDetailResponse() { } - public BaseResponseFunctionsDetailResponse data(@javax.annotation.Nullable FunctionsDetailResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable FunctionsDetailResponse data) { } - public BaseResponseFunctionsDetailResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseFunctionsDetailResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseFunctionsDetailResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseFunctionsDetailResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseFunctionsDetailResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseFunctionsDetailResponse baseResponseFunctionsDetailResponse = (BaseResponseFunctionsDetailResponse) o; - return Objects.equals(this.status, baseResponseFunctionsDetailResponse.status) && - Objects.equals(this.data, baseResponseFunctionsDetailResponse.data) && - Objects.equals(this.message, baseResponseFunctionsDetailResponse.message) && + return Objects.equals(this.data, baseResponseFunctionsDetailResponse.data) && Objects.equals(this.errors, baseResponseFunctionsDetailResponse.errors) && - Objects.equals(this.meta, baseResponseFunctionsDetailResponse.meta)&& + Objects.equals(this.message, baseResponseFunctionsDetailResponse.message) && + Objects.equals(this.meta, baseResponseFunctionsDetailResponse.meta) && + Objects.equals(this.status, baseResponseFunctionsDetailResponse.status)&& Objects.equals(this.additionalProperties, baseResponseFunctionsDetailResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseFunctionsDetailResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { FunctionsDetailResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseGenerateFunctionDataTypes.java b/src/main/java/ai/reveng/model/BaseResponseGenerateFunctionDataTypes.java index 87d03b5..79b3305 100644 --- a/src/main/java/ai/reveng/model/BaseResponseGenerateFunctionDataTypes.java +++ b/src/main/java/ai/reveng/model/BaseResponseGenerateFunctionDataTypes.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseGenerateFunctionDataTypes { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private GenerateFunctionDataTypes data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseGenerateFunctionDataTypes() { - } - - public BaseResponseGenerateFunctionDataTypes status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseGenerateFunctionDataTypes() { } - public BaseResponseGenerateFunctionDataTypes data(@javax.annotation.Nullable GenerateFunctionDataTypes data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable GenerateFunctionDataTypes data) { } - public BaseResponseGenerateFunctionDataTypes message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseGenerateFunctionDataTypes errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseGenerateFunctionDataTypes message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseGenerateFunctionDataTypes meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseGenerateFunctionDataTypes status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseGenerateFunctionDataTypes baseResponseGenerateFunctionDataTypes = (BaseResponseGenerateFunctionDataTypes) o; - return Objects.equals(this.status, baseResponseGenerateFunctionDataTypes.status) && - Objects.equals(this.data, baseResponseGenerateFunctionDataTypes.data) && - Objects.equals(this.message, baseResponseGenerateFunctionDataTypes.message) && + return Objects.equals(this.data, baseResponseGenerateFunctionDataTypes.data) && Objects.equals(this.errors, baseResponseGenerateFunctionDataTypes.errors) && - Objects.equals(this.meta, baseResponseGenerateFunctionDataTypes.meta)&& + Objects.equals(this.message, baseResponseGenerateFunctionDataTypes.message) && + Objects.equals(this.meta, baseResponseGenerateFunctionDataTypes.meta) && + Objects.equals(this.status, baseResponseGenerateFunctionDataTypes.status)&& Objects.equals(this.additionalProperties, baseResponseGenerateFunctionDataTypes.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseGenerateFunctionDataTypes {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { GenerateFunctionDataTypes.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseGenerationStatusList.java b/src/main/java/ai/reveng/model/BaseResponseGenerationStatusList.java index 9575178..915032f 100644 --- a/src/main/java/ai/reveng/model/BaseResponseGenerationStatusList.java +++ b/src/main/java/ai/reveng/model/BaseResponseGenerationStatusList.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseGenerationStatusList { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private GenerationStatusList data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseGenerationStatusList() { - } - - public BaseResponseGenerationStatusList status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseGenerationStatusList() { } - public BaseResponseGenerationStatusList data(@javax.annotation.Nullable GenerationStatusList data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable GenerationStatusList data) { } - public BaseResponseGenerationStatusList message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseGenerationStatusList errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseGenerationStatusList message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseGenerationStatusList meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseGenerationStatusList status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseGenerationStatusList baseResponseGenerationStatusList = (BaseResponseGenerationStatusList) o; - return Objects.equals(this.status, baseResponseGenerationStatusList.status) && - Objects.equals(this.data, baseResponseGenerationStatusList.data) && - Objects.equals(this.message, baseResponseGenerationStatusList.message) && + return Objects.equals(this.data, baseResponseGenerationStatusList.data) && Objects.equals(this.errors, baseResponseGenerationStatusList.errors) && - Objects.equals(this.meta, baseResponseGenerationStatusList.meta)&& + Objects.equals(this.message, baseResponseGenerationStatusList.message) && + Objects.equals(this.meta, baseResponseGenerationStatusList.meta) && + Objects.equals(this.status, baseResponseGenerationStatusList.status)&& Objects.equals(this.additionalProperties, baseResponseGenerationStatusList.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseGenerationStatusList {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { GenerationStatusList.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseGetAiDecompilationRatingResponse.java b/src/main/java/ai/reveng/model/BaseResponseGetAiDecompilationRatingResponse.java index 2698db4..e530001 100644 --- a/src/main/java/ai/reveng/model/BaseResponseGetAiDecompilationRatingResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseGetAiDecompilationRatingResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseGetAiDecompilationRatingResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private GetAiDecompilationRatingResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseGetAiDecompilationRatingResponse() { - } - - public BaseResponseGetAiDecompilationRatingResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseGetAiDecompilationRatingResponse() { } - public BaseResponseGetAiDecompilationRatingResponse data(@javax.annotation.Nullable GetAiDecompilationRatingResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable GetAiDecompilationRatingResponse } - public BaseResponseGetAiDecompilationRatingResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseGetAiDecompilationRatingResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseGetAiDecompilationRatingResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseGetAiDecompilationRatingResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseGetAiDecompilationRatingResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseGetAiDecompilationRatingResponse baseResponseGetAiDecompilationRatingResponse = (BaseResponseGetAiDecompilationRatingResponse) o; - return Objects.equals(this.status, baseResponseGetAiDecompilationRatingResponse.status) && - Objects.equals(this.data, baseResponseGetAiDecompilationRatingResponse.data) && - Objects.equals(this.message, baseResponseGetAiDecompilationRatingResponse.message) && + return Objects.equals(this.data, baseResponseGetAiDecompilationRatingResponse.data) && Objects.equals(this.errors, baseResponseGetAiDecompilationRatingResponse.errors) && - Objects.equals(this.meta, baseResponseGetAiDecompilationRatingResponse.meta)&& + Objects.equals(this.message, baseResponseGetAiDecompilationRatingResponse.message) && + Objects.equals(this.meta, baseResponseGetAiDecompilationRatingResponse.meta) && + Objects.equals(this.status, baseResponseGetAiDecompilationRatingResponse.status)&& Objects.equals(this.additionalProperties, baseResponseGetAiDecompilationRatingResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseGetAiDecompilationRatingResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { GetAiDecompilationRatingResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseGetAiDecompilationTask.java b/src/main/java/ai/reveng/model/BaseResponseGetAiDecompilationTask.java index 290abb1..3dd8257 100644 --- a/src/main/java/ai/reveng/model/BaseResponseGetAiDecompilationTask.java +++ b/src/main/java/ai/reveng/model/BaseResponseGetAiDecompilationTask.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseGetAiDecompilationTask { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private GetAiDecompilationTask data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseGetAiDecompilationTask() { - } - - public BaseResponseGetAiDecompilationTask status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseGetAiDecompilationTask() { } - public BaseResponseGetAiDecompilationTask data(@javax.annotation.Nullable GetAiDecompilationTask data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable GetAiDecompilationTask data) { } - public BaseResponseGetAiDecompilationTask message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseGetAiDecompilationTask errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseGetAiDecompilationTask message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseGetAiDecompilationTask meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseGetAiDecompilationTask status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseGetAiDecompilationTask baseResponseGetAiDecompilationTask = (BaseResponseGetAiDecompilationTask) o; - return Objects.equals(this.status, baseResponseGetAiDecompilationTask.status) && - Objects.equals(this.data, baseResponseGetAiDecompilationTask.data) && - Objects.equals(this.message, baseResponseGetAiDecompilationTask.message) && + return Objects.equals(this.data, baseResponseGetAiDecompilationTask.data) && Objects.equals(this.errors, baseResponseGetAiDecompilationTask.errors) && - Objects.equals(this.meta, baseResponseGetAiDecompilationTask.meta)&& + Objects.equals(this.message, baseResponseGetAiDecompilationTask.message) && + Objects.equals(this.meta, baseResponseGetAiDecompilationTask.meta) && + Objects.equals(this.status, baseResponseGetAiDecompilationTask.status)&& Objects.equals(this.additionalProperties, baseResponseGetAiDecompilationTask.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseGetAiDecompilationTask {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { GetAiDecompilationTask.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseGetMeResponse.java b/src/main/java/ai/reveng/model/BaseResponseGetMeResponse.java index 32208bb..4a1f959 100644 --- a/src/main/java/ai/reveng/model/BaseResponseGetMeResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseGetMeResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseGetMeResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private GetMeResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseGetMeResponse() { - } - - public BaseResponseGetMeResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseGetMeResponse() { } - public BaseResponseGetMeResponse data(@javax.annotation.Nullable GetMeResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable GetMeResponse data) { } - public BaseResponseGetMeResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseGetMeResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseGetMeResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseGetMeResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseGetMeResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseGetMeResponse baseResponseGetMeResponse = (BaseResponseGetMeResponse) o; - return Objects.equals(this.status, baseResponseGetMeResponse.status) && - Objects.equals(this.data, baseResponseGetMeResponse.data) && - Objects.equals(this.message, baseResponseGetMeResponse.message) && + return Objects.equals(this.data, baseResponseGetMeResponse.data) && Objects.equals(this.errors, baseResponseGetMeResponse.errors) && - Objects.equals(this.meta, baseResponseGetMeResponse.meta)&& + Objects.equals(this.message, baseResponseGetMeResponse.message) && + Objects.equals(this.meta, baseResponseGetMeResponse.meta) && + Objects.equals(this.status, baseResponseGetMeResponse.status)&& Objects.equals(this.additionalProperties, baseResponseGetMeResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseGetMeResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { GetMeResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseGetPublicUserResponse.java b/src/main/java/ai/reveng/model/BaseResponseGetPublicUserResponse.java index 44f01e8..529006b 100644 --- a/src/main/java/ai/reveng/model/BaseResponseGetPublicUserResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseGetPublicUserResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseGetPublicUserResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private GetPublicUserResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseGetPublicUserResponse() { - } - - public BaseResponseGetPublicUserResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseGetPublicUserResponse() { } - public BaseResponseGetPublicUserResponse data(@javax.annotation.Nullable GetPublicUserResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable GetPublicUserResponse data) { } - public BaseResponseGetPublicUserResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseGetPublicUserResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseGetPublicUserResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseGetPublicUserResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseGetPublicUserResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseGetPublicUserResponse baseResponseGetPublicUserResponse = (BaseResponseGetPublicUserResponse) o; - return Objects.equals(this.status, baseResponseGetPublicUserResponse.status) && - Objects.equals(this.data, baseResponseGetPublicUserResponse.data) && - Objects.equals(this.message, baseResponseGetPublicUserResponse.message) && + return Objects.equals(this.data, baseResponseGetPublicUserResponse.data) && Objects.equals(this.errors, baseResponseGetPublicUserResponse.errors) && - Objects.equals(this.meta, baseResponseGetPublicUserResponse.meta)&& + Objects.equals(this.message, baseResponseGetPublicUserResponse.message) && + Objects.equals(this.meta, baseResponseGetPublicUserResponse.meta) && + Objects.equals(this.status, baseResponseGetPublicUserResponse.status)&& Objects.equals(this.additionalProperties, baseResponseGetPublicUserResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseGetPublicUserResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { GetPublicUserResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseListCalleesCallerFunctionsResponse.java b/src/main/java/ai/reveng/model/BaseResponseListCalleesCallerFunctionsResponse.java index b03b034..7d8ac8f 100644 --- a/src/main/java/ai/reveng/model/BaseResponseListCalleesCallerFunctionsResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseListCalleesCallerFunctionsResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseListCalleesCallerFunctionsResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private List data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseListCalleesCallerFunctionsResponse() { - } - - public BaseResponseListCalleesCallerFunctionsResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseListCalleesCallerFunctionsResponse() { } - public BaseResponseListCalleesCallerFunctionsResponse data(@javax.annotation.Nullable List data) { this.data = data; return this; @@ -131,25 +112,6 @@ public void setData(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -177,6 +139,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseListCalleesCallerFunctionsResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseListCalleesCallerFunctionsResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -195,6 +176,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseListCalleesCallerFunctionsResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -250,11 +250,11 @@ public boolean equals(Object o) { return false; } BaseResponseListCalleesCallerFunctionsResponse baseResponseListCalleesCallerFunctionsResponse = (BaseResponseListCalleesCallerFunctionsResponse) o; - return Objects.equals(this.status, baseResponseListCalleesCallerFunctionsResponse.status) && - Objects.equals(this.data, baseResponseListCalleesCallerFunctionsResponse.data) && - Objects.equals(this.message, baseResponseListCalleesCallerFunctionsResponse.message) && + return Objects.equals(this.data, baseResponseListCalleesCallerFunctionsResponse.data) && Objects.equals(this.errors, baseResponseListCalleesCallerFunctionsResponse.errors) && - Objects.equals(this.meta, baseResponseListCalleesCallerFunctionsResponse.meta)&& + Objects.equals(this.message, baseResponseListCalleesCallerFunctionsResponse.message) && + Objects.equals(this.meta, baseResponseListCalleesCallerFunctionsResponse.meta) && + Objects.equals(this.status, baseResponseListCalleesCallerFunctionsResponse.status)&& Objects.equals(this.additionalProperties, baseResponseListCalleesCallerFunctionsResponse.additionalProperties); } @@ -264,7 +264,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -278,11 +278,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseListCalleesCallerFunctionsResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -305,7 +305,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -338,9 +338,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -355,6 +352,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseListCollectionResults.java b/src/main/java/ai/reveng/model/BaseResponseListCollectionResults.java index 03a969e..01f1bc5 100644 --- a/src/main/java/ai/reveng/model/BaseResponseListCollectionResults.java +++ b/src/main/java/ai/reveng/model/BaseResponseListCollectionResults.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseListCollectionResults { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private ListCollectionResults data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseListCollectionResults() { - } - - public BaseResponseListCollectionResults status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseListCollectionResults() { } - public BaseResponseListCollectionResults data(@javax.annotation.Nullable ListCollectionResults data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable ListCollectionResults data) { } - public BaseResponseListCollectionResults message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseListCollectionResults errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseListCollectionResults message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseListCollectionResults meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseListCollectionResults status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseListCollectionResults baseResponseListCollectionResults = (BaseResponseListCollectionResults) o; - return Objects.equals(this.status, baseResponseListCollectionResults.status) && - Objects.equals(this.data, baseResponseListCollectionResults.data) && - Objects.equals(this.message, baseResponseListCollectionResults.message) && + return Objects.equals(this.data, baseResponseListCollectionResults.data) && Objects.equals(this.errors, baseResponseListCollectionResults.errors) && - Objects.equals(this.meta, baseResponseListCollectionResults.meta)&& + Objects.equals(this.message, baseResponseListCollectionResults.message) && + Objects.equals(this.meta, baseResponseListCollectionResults.meta) && + Objects.equals(this.status, baseResponseListCollectionResults.status)&& Objects.equals(this.additionalProperties, baseResponseListCollectionResults.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseListCollectionResults {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { ListCollectionResults.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseListCommentResponse.java b/src/main/java/ai/reveng/model/BaseResponseListCommentResponse.java index 0bf87a5..e2e0b28 100644 --- a/src/main/java/ai/reveng/model/BaseResponseListCommentResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseListCommentResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseListCommentResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private List data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseListCommentResponse() { - } - - public BaseResponseListCommentResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseListCommentResponse() { } - public BaseResponseListCommentResponse data(@javax.annotation.Nullable List data) { this.data = data; return this; @@ -131,25 +112,6 @@ public void setData(@javax.annotation.Nullable List data) { } - public BaseResponseListCommentResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseListCommentResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -177,6 +139,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseListCommentResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseListCommentResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -195,6 +176,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseListCommentResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -250,11 +250,11 @@ public boolean equals(Object o) { return false; } BaseResponseListCommentResponse baseResponseListCommentResponse = (BaseResponseListCommentResponse) o; - return Objects.equals(this.status, baseResponseListCommentResponse.status) && - Objects.equals(this.data, baseResponseListCommentResponse.data) && - Objects.equals(this.message, baseResponseListCommentResponse.message) && + return Objects.equals(this.data, baseResponseListCommentResponse.data) && Objects.equals(this.errors, baseResponseListCommentResponse.errors) && - Objects.equals(this.meta, baseResponseListCommentResponse.meta)&& + Objects.equals(this.message, baseResponseListCommentResponse.message) && + Objects.equals(this.meta, baseResponseListCommentResponse.meta) && + Objects.equals(this.status, baseResponseListCommentResponse.status)&& Objects.equals(this.additionalProperties, baseResponseListCommentResponse.additionalProperties); } @@ -264,7 +264,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -278,11 +278,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseListCommentResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -305,7 +305,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -338,9 +338,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -355,6 +352,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseListDieMatch.java b/src/main/java/ai/reveng/model/BaseResponseListDieMatch.java index 1d91097..102c736 100644 --- a/src/main/java/ai/reveng/model/BaseResponseListDieMatch.java +++ b/src/main/java/ai/reveng/model/BaseResponseListDieMatch.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseListDieMatch { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private List data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseListDieMatch() { - } - - public BaseResponseListDieMatch status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseListDieMatch() { } - public BaseResponseListDieMatch data(@javax.annotation.Nullable List data) { this.data = data; return this; @@ -131,25 +112,6 @@ public void setData(@javax.annotation.Nullable List data) { } - public BaseResponseListDieMatch message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseListDieMatch errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -177,6 +139,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseListDieMatch message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseListDieMatch meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -195,6 +176,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseListDieMatch status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -250,11 +250,11 @@ public boolean equals(Object o) { return false; } BaseResponseListDieMatch baseResponseListDieMatch = (BaseResponseListDieMatch) o; - return Objects.equals(this.status, baseResponseListDieMatch.status) && - Objects.equals(this.data, baseResponseListDieMatch.data) && - Objects.equals(this.message, baseResponseListDieMatch.message) && + return Objects.equals(this.data, baseResponseListDieMatch.data) && Objects.equals(this.errors, baseResponseListDieMatch.errors) && - Objects.equals(this.meta, baseResponseListDieMatch.meta)&& + Objects.equals(this.message, baseResponseListDieMatch.message) && + Objects.equals(this.meta, baseResponseListDieMatch.meta) && + Objects.equals(this.status, baseResponseListDieMatch.status)&& Objects.equals(this.additionalProperties, baseResponseListDieMatch.additionalProperties); } @@ -264,7 +264,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -278,11 +278,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseListDieMatch {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -305,7 +305,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -338,9 +338,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -355,6 +352,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseListFunctionNameHistory.java b/src/main/java/ai/reveng/model/BaseResponseListFunctionNameHistory.java index ceb9d7f..f06ffcb 100644 --- a/src/main/java/ai/reveng/model/BaseResponseListFunctionNameHistory.java +++ b/src/main/java/ai/reveng/model/BaseResponseListFunctionNameHistory.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseListFunctionNameHistory { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private List data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseListFunctionNameHistory() { - } - - public BaseResponseListFunctionNameHistory status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseListFunctionNameHistory() { } - public BaseResponseListFunctionNameHistory data(@javax.annotation.Nullable List data) { this.data = data; return this; @@ -131,25 +112,6 @@ public void setData(@javax.annotation.Nullable List data) { } - public BaseResponseListFunctionNameHistory message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseListFunctionNameHistory errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -177,6 +139,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseListFunctionNameHistory message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseListFunctionNameHistory meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -195,6 +176,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseListFunctionNameHistory status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -250,11 +250,11 @@ public boolean equals(Object o) { return false; } BaseResponseListFunctionNameHistory baseResponseListFunctionNameHistory = (BaseResponseListFunctionNameHistory) o; - return Objects.equals(this.status, baseResponseListFunctionNameHistory.status) && - Objects.equals(this.data, baseResponseListFunctionNameHistory.data) && - Objects.equals(this.message, baseResponseListFunctionNameHistory.message) && + return Objects.equals(this.data, baseResponseListFunctionNameHistory.data) && Objects.equals(this.errors, baseResponseListFunctionNameHistory.errors) && - Objects.equals(this.meta, baseResponseListFunctionNameHistory.meta)&& + Objects.equals(this.message, baseResponseListFunctionNameHistory.message) && + Objects.equals(this.meta, baseResponseListFunctionNameHistory.meta) && + Objects.equals(this.status, baseResponseListFunctionNameHistory.status)&& Objects.equals(this.additionalProperties, baseResponseListFunctionNameHistory.additionalProperties); } @@ -264,7 +264,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -278,11 +278,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseListFunctionNameHistory {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -305,7 +305,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -338,9 +338,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -355,6 +352,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseListSBOM.java b/src/main/java/ai/reveng/model/BaseResponseListSBOM.java index 6ec5932..68befa3 100644 --- a/src/main/java/ai/reveng/model/BaseResponseListSBOM.java +++ b/src/main/java/ai/reveng/model/BaseResponseListSBOM.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseListSBOM { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private List data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseListSBOM() { - } - - public BaseResponseListSBOM status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseListSBOM() { } - public BaseResponseListSBOM data(@javax.annotation.Nullable List data) { this.data = data; return this; @@ -131,25 +112,6 @@ public void setData(@javax.annotation.Nullable List data) { } - public BaseResponseListSBOM message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseListSBOM errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -177,6 +139,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseListSBOM message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseListSBOM meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -195,6 +176,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseListSBOM status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -250,11 +250,11 @@ public boolean equals(Object o) { return false; } BaseResponseListSBOM baseResponseListSBOM = (BaseResponseListSBOM) o; - return Objects.equals(this.status, baseResponseListSBOM.status) && - Objects.equals(this.data, baseResponseListSBOM.data) && - Objects.equals(this.message, baseResponseListSBOM.message) && + return Objects.equals(this.data, baseResponseListSBOM.data) && Objects.equals(this.errors, baseResponseListSBOM.errors) && - Objects.equals(this.meta, baseResponseListSBOM.meta)&& + Objects.equals(this.message, baseResponseListSBOM.message) && + Objects.equals(this.meta, baseResponseListSBOM.meta) && + Objects.equals(this.status, baseResponseListSBOM.status)&& Objects.equals(this.additionalProperties, baseResponseListSBOM.additionalProperties); } @@ -264,7 +264,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -278,11 +278,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseListSBOM {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -305,7 +305,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -338,9 +338,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -355,6 +352,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseListUserActivityResponse.java b/src/main/java/ai/reveng/model/BaseResponseListUserActivityResponse.java index f8409a1..4221969 100644 --- a/src/main/java/ai/reveng/model/BaseResponseListUserActivityResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseListUserActivityResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseListUserActivityResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private List data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseListUserActivityResponse() { - } - - public BaseResponseListUserActivityResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseListUserActivityResponse() { } - public BaseResponseListUserActivityResponse data(@javax.annotation.Nullable List data) { this.data = data; return this; @@ -131,25 +112,6 @@ public void setData(@javax.annotation.Nullable List data) } - public BaseResponseListUserActivityResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseListUserActivityResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -177,6 +139,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseListUserActivityResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseListUserActivityResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -195,6 +176,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseListUserActivityResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -250,11 +250,11 @@ public boolean equals(Object o) { return false; } BaseResponseListUserActivityResponse baseResponseListUserActivityResponse = (BaseResponseListUserActivityResponse) o; - return Objects.equals(this.status, baseResponseListUserActivityResponse.status) && - Objects.equals(this.data, baseResponseListUserActivityResponse.data) && - Objects.equals(this.message, baseResponseListUserActivityResponse.message) && + return Objects.equals(this.data, baseResponseListUserActivityResponse.data) && Objects.equals(this.errors, baseResponseListUserActivityResponse.errors) && - Objects.equals(this.meta, baseResponseListUserActivityResponse.meta)&& + Objects.equals(this.message, baseResponseListUserActivityResponse.message) && + Objects.equals(this.meta, baseResponseListUserActivityResponse.meta) && + Objects.equals(this.status, baseResponseListUserActivityResponse.status)&& Objects.equals(this.additionalProperties, baseResponseListUserActivityResponse.additionalProperties); } @@ -264,7 +264,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -278,11 +278,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseListUserActivityResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -305,7 +305,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -338,9 +338,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -355,6 +352,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseLoginResponse.java b/src/main/java/ai/reveng/model/BaseResponseLoginResponse.java index 81ad616..325507b 100644 --- a/src/main/java/ai/reveng/model/BaseResponseLoginResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseLoginResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseLoginResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private LoginResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseLoginResponse() { - } - - public BaseResponseLoginResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseLoginResponse() { } - public BaseResponseLoginResponse data(@javax.annotation.Nullable LoginResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable LoginResponse data) { } - public BaseResponseLoginResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseLoginResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseLoginResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseLoginResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseLoginResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseLoginResponse baseResponseLoginResponse = (BaseResponseLoginResponse) o; - return Objects.equals(this.status, baseResponseLoginResponse.status) && - Objects.equals(this.data, baseResponseLoginResponse.data) && - Objects.equals(this.message, baseResponseLoginResponse.message) && + return Objects.equals(this.data, baseResponseLoginResponse.data) && Objects.equals(this.errors, baseResponseLoginResponse.errors) && - Objects.equals(this.meta, baseResponseLoginResponse.meta)&& + Objects.equals(this.message, baseResponseLoginResponse.message) && + Objects.equals(this.meta, baseResponseLoginResponse.meta) && + Objects.equals(this.status, baseResponseLoginResponse.status)&& Objects.equals(this.additionalProperties, baseResponseLoginResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseLoginResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { LoginResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseLogs.java b/src/main/java/ai/reveng/model/BaseResponseLogs.java index f6621f2..0614299 100644 --- a/src/main/java/ai/reveng/model/BaseResponseLogs.java +++ b/src/main/java/ai/reveng/model/BaseResponseLogs.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseLogs { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Logs data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseLogs() { - } - - public BaseResponseLogs status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseLogs() { } - public BaseResponseLogs data(@javax.annotation.Nullable Logs data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable Logs data) { } - public BaseResponseLogs message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseLogs errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseLogs message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseLogs meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseLogs status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseLogs baseResponseLogs = (BaseResponseLogs) o; - return Objects.equals(this.status, baseResponseLogs.status) && - Objects.equals(this.data, baseResponseLogs.data) && - Objects.equals(this.message, baseResponseLogs.message) && + return Objects.equals(this.data, baseResponseLogs.data) && Objects.equals(this.errors, baseResponseLogs.errors) && - Objects.equals(this.meta, baseResponseLogs.meta)&& + Objects.equals(this.message, baseResponseLogs.message) && + Objects.equals(this.meta, baseResponseLogs.meta) && + Objects.equals(this.status, baseResponseLogs.status)&& Objects.equals(this.additionalProperties, baseResponseLogs.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseLogs {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { Logs.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseModelsResponse.java b/src/main/java/ai/reveng/model/BaseResponseModelsResponse.java index c7de16a..fd55d85 100644 --- a/src/main/java/ai/reveng/model/BaseResponseModelsResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseModelsResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseModelsResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private ModelsResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseModelsResponse() { - } - - public BaseResponseModelsResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseModelsResponse() { } - public BaseResponseModelsResponse data(@javax.annotation.Nullable ModelsResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable ModelsResponse data) { } - public BaseResponseModelsResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseModelsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseModelsResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseModelsResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseModelsResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseModelsResponse baseResponseModelsResponse = (BaseResponseModelsResponse) o; - return Objects.equals(this.status, baseResponseModelsResponse.status) && - Objects.equals(this.data, baseResponseModelsResponse.data) && - Objects.equals(this.message, baseResponseModelsResponse.message) && + return Objects.equals(this.data, baseResponseModelsResponse.data) && Objects.equals(this.errors, baseResponseModelsResponse.errors) && - Objects.equals(this.meta, baseResponseModelsResponse.meta)&& + Objects.equals(this.message, baseResponseModelsResponse.message) && + Objects.equals(this.meta, baseResponseModelsResponse.meta) && + Objects.equals(this.status, baseResponseModelsResponse.status)&& Objects.equals(this.additionalProperties, baseResponseModelsResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseModelsResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { ModelsResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseNetworkOverviewResponse.java b/src/main/java/ai/reveng/model/BaseResponseNetworkOverviewResponse.java index 42d92e6..a6ee8b1 100644 --- a/src/main/java/ai/reveng/model/BaseResponseNetworkOverviewResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseNetworkOverviewResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseNetworkOverviewResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private NetworkOverviewResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseNetworkOverviewResponse() { - } - - public BaseResponseNetworkOverviewResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseNetworkOverviewResponse() { } - public BaseResponseNetworkOverviewResponse data(@javax.annotation.Nullable NetworkOverviewResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable NetworkOverviewResponse data) { } - public BaseResponseNetworkOverviewResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseNetworkOverviewResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseNetworkOverviewResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseNetworkOverviewResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseNetworkOverviewResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseNetworkOverviewResponse baseResponseNetworkOverviewResponse = (BaseResponseNetworkOverviewResponse) o; - return Objects.equals(this.status, baseResponseNetworkOverviewResponse.status) && - Objects.equals(this.data, baseResponseNetworkOverviewResponse.data) && - Objects.equals(this.message, baseResponseNetworkOverviewResponse.message) && + return Objects.equals(this.data, baseResponseNetworkOverviewResponse.data) && Objects.equals(this.errors, baseResponseNetworkOverviewResponse.errors) && - Objects.equals(this.meta, baseResponseNetworkOverviewResponse.meta)&& + Objects.equals(this.message, baseResponseNetworkOverviewResponse.message) && + Objects.equals(this.meta, baseResponseNetworkOverviewResponse.meta) && + Objects.equals(this.status, baseResponseNetworkOverviewResponse.status)&& Objects.equals(this.additionalProperties, baseResponseNetworkOverviewResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseNetworkOverviewResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { NetworkOverviewResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseParams.java b/src/main/java/ai/reveng/model/BaseResponseParams.java index ab4fb98..10a046b 100644 --- a/src/main/java/ai/reveng/model/BaseResponseParams.java +++ b/src/main/java/ai/reveng/model/BaseResponseParams.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseParams { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Params data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseParams() { - } - - public BaseResponseParams status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseParams() { } - public BaseResponseParams data(@javax.annotation.Nullable Params data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable Params data) { } - public BaseResponseParams message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseParams errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseParams message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseParams meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseParams status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseParams baseResponseParams = (BaseResponseParams) o; - return Objects.equals(this.status, baseResponseParams.status) && - Objects.equals(this.data, baseResponseParams.data) && - Objects.equals(this.message, baseResponseParams.message) && + return Objects.equals(this.data, baseResponseParams.data) && Objects.equals(this.errors, baseResponseParams.errors) && - Objects.equals(this.meta, baseResponseParams.meta)&& + Objects.equals(this.message, baseResponseParams.message) && + Objects.equals(this.meta, baseResponseParams.meta) && + Objects.equals(this.status, baseResponseParams.status)&& Objects.equals(this.additionalProperties, baseResponseParams.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseParams {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { Params.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponsePipelineStatusResponse.java b/src/main/java/ai/reveng/model/BaseResponsePipelineStatusResponse.java index 2e41aaa..35140dd 100644 --- a/src/main/java/ai/reveng/model/BaseResponsePipelineStatusResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponsePipelineStatusResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponsePipelineStatusResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private PipelineStatusResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponsePipelineStatusResponse() { - } - - public BaseResponsePipelineStatusResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponsePipelineStatusResponse() { } - public BaseResponsePipelineStatusResponse data(@javax.annotation.Nullable PipelineStatusResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable PipelineStatusResponse data) { } - public BaseResponsePipelineStatusResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponsePipelineStatusResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponsePipelineStatusResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponsePipelineStatusResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponsePipelineStatusResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponsePipelineStatusResponse baseResponsePipelineStatusResponse = (BaseResponsePipelineStatusResponse) o; - return Objects.equals(this.status, baseResponsePipelineStatusResponse.status) && - Objects.equals(this.data, baseResponsePipelineStatusResponse.data) && - Objects.equals(this.message, baseResponsePipelineStatusResponse.message) && + return Objects.equals(this.data, baseResponsePipelineStatusResponse.data) && Objects.equals(this.errors, baseResponsePipelineStatusResponse.errors) && - Objects.equals(this.meta, baseResponsePipelineStatusResponse.meta)&& + Objects.equals(this.message, baseResponsePipelineStatusResponse.message) && + Objects.equals(this.meta, baseResponsePipelineStatusResponse.meta) && + Objects.equals(this.status, baseResponsePipelineStatusResponse.status)&& Objects.equals(this.additionalProperties, baseResponsePipelineStatusResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponsePipelineStatusResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { PipelineStatusResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseProcessDumps.java b/src/main/java/ai/reveng/model/BaseResponseProcessDumps.java index 35a5471..1803c2d 100644 --- a/src/main/java/ai/reveng/model/BaseResponseProcessDumps.java +++ b/src/main/java/ai/reveng/model/BaseResponseProcessDumps.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseProcessDumps { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private ProcessDumps data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseProcessDumps() { - } - - public BaseResponseProcessDumps status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseProcessDumps() { } - public BaseResponseProcessDumps data(@javax.annotation.Nullable ProcessDumps data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable ProcessDumps data) { } - public BaseResponseProcessDumps message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseProcessDumps errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseProcessDumps message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseProcessDumps meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseProcessDumps status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseProcessDumps baseResponseProcessDumps = (BaseResponseProcessDumps) o; - return Objects.equals(this.status, baseResponseProcessDumps.status) && - Objects.equals(this.data, baseResponseProcessDumps.data) && - Objects.equals(this.message, baseResponseProcessDumps.message) && + return Objects.equals(this.data, baseResponseProcessDumps.data) && Objects.equals(this.errors, baseResponseProcessDumps.errors) && - Objects.equals(this.meta, baseResponseProcessDumps.meta)&& + Objects.equals(this.message, baseResponseProcessDumps.message) && + Objects.equals(this.meta, baseResponseProcessDumps.meta) && + Objects.equals(this.status, baseResponseProcessDumps.status)&& Objects.equals(this.additionalProperties, baseResponseProcessDumps.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseProcessDumps {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { ProcessDumps.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseProcessRegistry.java b/src/main/java/ai/reveng/model/BaseResponseProcessRegistry.java index c9704d3..8e34a14 100644 --- a/src/main/java/ai/reveng/model/BaseResponseProcessRegistry.java +++ b/src/main/java/ai/reveng/model/BaseResponseProcessRegistry.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseProcessRegistry { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private ProcessRegistry data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseProcessRegistry() { - } - - public BaseResponseProcessRegistry status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseProcessRegistry() { } - public BaseResponseProcessRegistry data(@javax.annotation.Nullable ProcessRegistry data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable ProcessRegistry data) { } - public BaseResponseProcessRegistry message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseProcessRegistry errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseProcessRegistry message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseProcessRegistry meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseProcessRegistry status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseProcessRegistry baseResponseProcessRegistry = (BaseResponseProcessRegistry) o; - return Objects.equals(this.status, baseResponseProcessRegistry.status) && - Objects.equals(this.data, baseResponseProcessRegistry.data) && - Objects.equals(this.message, baseResponseProcessRegistry.message) && + return Objects.equals(this.data, baseResponseProcessRegistry.data) && Objects.equals(this.errors, baseResponseProcessRegistry.errors) && - Objects.equals(this.meta, baseResponseProcessRegistry.meta)&& + Objects.equals(this.message, baseResponseProcessRegistry.message) && + Objects.equals(this.meta, baseResponseProcessRegistry.meta) && + Objects.equals(this.status, baseResponseProcessRegistry.status)&& Objects.equals(this.additionalProperties, baseResponseProcessRegistry.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseProcessRegistry {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { ProcessRegistry.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseProcessTree.java b/src/main/java/ai/reveng/model/BaseResponseProcessTree.java index 8cc1e97..829dd80 100644 --- a/src/main/java/ai/reveng/model/BaseResponseProcessTree.java +++ b/src/main/java/ai/reveng/model/BaseResponseProcessTree.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseProcessTree { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private ProcessTree data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseProcessTree() { - } - - public BaseResponseProcessTree status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseProcessTree() { } - public BaseResponseProcessTree data(@javax.annotation.Nullable ProcessTree data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable ProcessTree data) { } - public BaseResponseProcessTree message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseProcessTree errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseProcessTree message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseProcessTree meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseProcessTree status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseProcessTree baseResponseProcessTree = (BaseResponseProcessTree) o; - return Objects.equals(this.status, baseResponseProcessTree.status) && - Objects.equals(this.data, baseResponseProcessTree.data) && - Objects.equals(this.message, baseResponseProcessTree.message) && + return Objects.equals(this.data, baseResponseProcessTree.data) && Objects.equals(this.errors, baseResponseProcessTree.errors) && - Objects.equals(this.meta, baseResponseProcessTree.meta)&& + Objects.equals(this.message, baseResponseProcessTree.message) && + Objects.equals(this.meta, baseResponseProcessTree.meta) && + Objects.equals(this.status, baseResponseProcessTree.status)&& Objects.equals(this.additionalProperties, baseResponseProcessTree.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseProcessTree {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { ProcessTree.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseQueuedSecurityChecksTaskResponse.java b/src/main/java/ai/reveng/model/BaseResponseQueuedSecurityChecksTaskResponse.java index e4637fd..a1efba6 100644 --- a/src/main/java/ai/reveng/model/BaseResponseQueuedSecurityChecksTaskResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseQueuedSecurityChecksTaskResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseQueuedSecurityChecksTaskResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private QueuedSecurityChecksTaskResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseQueuedSecurityChecksTaskResponse() { - } - - public BaseResponseQueuedSecurityChecksTaskResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseQueuedSecurityChecksTaskResponse() { } - public BaseResponseQueuedSecurityChecksTaskResponse data(@javax.annotation.Nullable QueuedSecurityChecksTaskResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable QueuedSecurityChecksTaskResponse } - public BaseResponseQueuedSecurityChecksTaskResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseQueuedSecurityChecksTaskResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseQueuedSecurityChecksTaskResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseQueuedSecurityChecksTaskResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseQueuedSecurityChecksTaskResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseQueuedSecurityChecksTaskResponse baseResponseQueuedSecurityChecksTaskResponse = (BaseResponseQueuedSecurityChecksTaskResponse) o; - return Objects.equals(this.status, baseResponseQueuedSecurityChecksTaskResponse.status) && - Objects.equals(this.data, baseResponseQueuedSecurityChecksTaskResponse.data) && - Objects.equals(this.message, baseResponseQueuedSecurityChecksTaskResponse.message) && + return Objects.equals(this.data, baseResponseQueuedSecurityChecksTaskResponse.data) && Objects.equals(this.errors, baseResponseQueuedSecurityChecksTaskResponse.errors) && - Objects.equals(this.meta, baseResponseQueuedSecurityChecksTaskResponse.meta)&& + Objects.equals(this.message, baseResponseQueuedSecurityChecksTaskResponse.message) && + Objects.equals(this.meta, baseResponseQueuedSecurityChecksTaskResponse.meta) && + Objects.equals(this.status, baseResponseQueuedSecurityChecksTaskResponse.status)&& Objects.equals(this.additionalProperties, baseResponseQueuedSecurityChecksTaskResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseQueuedSecurityChecksTaskResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { QueuedSecurityChecksTaskResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseRecent.java b/src/main/java/ai/reveng/model/BaseResponseRecent.java index e9cb6cf..1c70321 100644 --- a/src/main/java/ai/reveng/model/BaseResponseRecent.java +++ b/src/main/java/ai/reveng/model/BaseResponseRecent.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseRecent { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Recent data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseRecent() { - } - - public BaseResponseRecent status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseRecent() { } - public BaseResponseRecent data(@javax.annotation.Nullable Recent data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable Recent data) { } - public BaseResponseRecent message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseRecent errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseRecent message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseRecent meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseRecent status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseRecent baseResponseRecent = (BaseResponseRecent) o; - return Objects.equals(this.status, baseResponseRecent.status) && - Objects.equals(this.data, baseResponseRecent.data) && - Objects.equals(this.message, baseResponseRecent.message) && + return Objects.equals(this.data, baseResponseRecent.data) && Objects.equals(this.errors, baseResponseRecent.errors) && - Objects.equals(this.meta, baseResponseRecent.meta)&& + Objects.equals(this.message, baseResponseRecent.message) && + Objects.equals(this.meta, baseResponseRecent.meta) && + Objects.equals(this.status, baseResponseRecent.status)&& Objects.equals(this.additionalProperties, baseResponseRecent.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseRecent {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { Recent.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseSecurityChecksResponse.java b/src/main/java/ai/reveng/model/BaseResponseSecurityChecksResponse.java index 30e9797..88b367d 100644 --- a/src/main/java/ai/reveng/model/BaseResponseSecurityChecksResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseSecurityChecksResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseSecurityChecksResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private SecurityChecksResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseSecurityChecksResponse() { - } - - public BaseResponseSecurityChecksResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseSecurityChecksResponse() { } - public BaseResponseSecurityChecksResponse data(@javax.annotation.Nullable SecurityChecksResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable SecurityChecksResponse data) { } - public BaseResponseSecurityChecksResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseSecurityChecksResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseSecurityChecksResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseSecurityChecksResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseSecurityChecksResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseSecurityChecksResponse baseResponseSecurityChecksResponse = (BaseResponseSecurityChecksResponse) o; - return Objects.equals(this.status, baseResponseSecurityChecksResponse.status) && - Objects.equals(this.data, baseResponseSecurityChecksResponse.data) && - Objects.equals(this.message, baseResponseSecurityChecksResponse.message) && + return Objects.equals(this.data, baseResponseSecurityChecksResponse.data) && Objects.equals(this.errors, baseResponseSecurityChecksResponse.errors) && - Objects.equals(this.meta, baseResponseSecurityChecksResponse.meta)&& + Objects.equals(this.message, baseResponseSecurityChecksResponse.message) && + Objects.equals(this.meta, baseResponseSecurityChecksResponse.meta) && + Objects.equals(this.status, baseResponseSecurityChecksResponse.status)&& Objects.equals(this.additionalProperties, baseResponseSecurityChecksResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseSecurityChecksResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { SecurityChecksResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseStatus.java b/src/main/java/ai/reveng/model/BaseResponseStatus.java index 7cb6f86..70e02f2 100644 --- a/src/main/java/ai/reveng/model/BaseResponseStatus.java +++ b/src/main/java/ai/reveng/model/BaseResponseStatus.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseStatus { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private StatusOutput data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseStatus() { - } - - public BaseResponseStatus status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseStatus() { } - public BaseResponseStatus data(@javax.annotation.Nullable StatusOutput data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable StatusOutput data) { } - public BaseResponseStatus message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseStatus errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseStatus message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseStatus meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseStatus status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseStatus baseResponseStatus = (BaseResponseStatus) o; - return Objects.equals(this.status, baseResponseStatus.status) && - Objects.equals(this.data, baseResponseStatus.data) && - Objects.equals(this.message, baseResponseStatus.message) && + return Objects.equals(this.data, baseResponseStatus.data) && Objects.equals(this.errors, baseResponseStatus.errors) && - Objects.equals(this.meta, baseResponseStatus.meta)&& + Objects.equals(this.message, baseResponseStatus.message) && + Objects.equals(this.meta, baseResponseStatus.meta) && + Objects.equals(this.status, baseResponseStatus.status)&& Objects.equals(this.additionalProperties, baseResponseStatus.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseStatus {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { StatusOutput.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseStr.java b/src/main/java/ai/reveng/model/BaseResponseStr.java index a0f9f09..e3e5038 100644 --- a/src/main/java/ai/reveng/model/BaseResponseStr.java +++ b/src/main/java/ai/reveng/model/BaseResponseStr.java @@ -56,53 +56,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseStr { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private String data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseStr() { - } - - public BaseResponseStr status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseStr() { } - public BaseResponseStr data(@javax.annotation.Nullable String data) { this.data = data; return this; @@ -122,25 +103,6 @@ public void setData(@javax.annotation.Nullable String data) { } - public BaseResponseStr message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseStr errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -168,6 +130,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseStr message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseStr meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -186,6 +167,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseStr status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -241,11 +241,11 @@ public boolean equals(Object o) { return false; } BaseResponseStr baseResponseStr = (BaseResponseStr) o; - return Objects.equals(this.status, baseResponseStr.status) && - Objects.equals(this.data, baseResponseStr.data) && - Objects.equals(this.message, baseResponseStr.message) && + return Objects.equals(this.data, baseResponseStr.data) && Objects.equals(this.errors, baseResponseStr.errors) && - Objects.equals(this.meta, baseResponseStr.meta)&& + Objects.equals(this.message, baseResponseStr.message) && + Objects.equals(this.meta, baseResponseStr.meta) && + Objects.equals(this.status, baseResponseStr.status)&& Objects.equals(this.additionalProperties, baseResponseStr.additionalProperties); } @@ -255,7 +255,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -269,11 +269,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseStr {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -296,7 +296,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -318,9 +318,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) && !jsonObj.get("data").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be a primitive type in the JSON string but got `%s`", jsonObj.get("data").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())); - } if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -335,6 +332,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseTTPS.java b/src/main/java/ai/reveng/model/BaseResponseTTPS.java index 3911ea2..c1865b1 100644 --- a/src/main/java/ai/reveng/model/BaseResponseTTPS.java +++ b/src/main/java/ai/reveng/model/BaseResponseTTPS.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseTTPS { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private TTPS data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseTTPS() { - } - - public BaseResponseTTPS status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseTTPS() { } - public BaseResponseTTPS data(@javax.annotation.Nullable TTPS data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable TTPS data) { } - public BaseResponseTTPS message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseTTPS errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseTTPS message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseTTPS meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseTTPS status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseTTPS baseResponseTTPS = (BaseResponseTTPS) o; - return Objects.equals(this.status, baseResponseTTPS.status) && - Objects.equals(this.data, baseResponseTTPS.data) && - Objects.equals(this.message, baseResponseTTPS.message) && + return Objects.equals(this.data, baseResponseTTPS.data) && Objects.equals(this.errors, baseResponseTTPS.errors) && - Objects.equals(this.meta, baseResponseTTPS.meta)&& + Objects.equals(this.message, baseResponseTTPS.message) && + Objects.equals(this.meta, baseResponseTTPS.meta) && + Objects.equals(this.status, baseResponseTTPS.status)&& Objects.equals(this.additionalProperties, baseResponseTTPS.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseTTPS {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { TTPS.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseTagSearchResponse.java b/src/main/java/ai/reveng/model/BaseResponseTagSearchResponse.java index 9721d4f..5be65db 100644 --- a/src/main/java/ai/reveng/model/BaseResponseTagSearchResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseTagSearchResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseTagSearchResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private TagSearchResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseTagSearchResponse() { - } - - public BaseResponseTagSearchResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseTagSearchResponse() { } - public BaseResponseTagSearchResponse data(@javax.annotation.Nullable TagSearchResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable TagSearchResponse data) { } - public BaseResponseTagSearchResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseTagSearchResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseTagSearchResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseTagSearchResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseTagSearchResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseTagSearchResponse baseResponseTagSearchResponse = (BaseResponseTagSearchResponse) o; - return Objects.equals(this.status, baseResponseTagSearchResponse.status) && - Objects.equals(this.data, baseResponseTagSearchResponse.data) && - Objects.equals(this.message, baseResponseTagSearchResponse.message) && + return Objects.equals(this.data, baseResponseTagSearchResponse.data) && Objects.equals(this.errors, baseResponseTagSearchResponse.errors) && - Objects.equals(this.meta, baseResponseTagSearchResponse.meta)&& + Objects.equals(this.message, baseResponseTagSearchResponse.message) && + Objects.equals(this.meta, baseResponseTagSearchResponse.meta) && + Objects.equals(this.status, baseResponseTagSearchResponse.status)&& Objects.equals(this.additionalProperties, baseResponseTagSearchResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseTagSearchResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { TagSearchResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseTaskResponse.java b/src/main/java/ai/reveng/model/BaseResponseTaskResponse.java index 233993e..eb05122 100644 --- a/src/main/java/ai/reveng/model/BaseResponseTaskResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseTaskResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseTaskResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private TaskResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseTaskResponse() { - } - - public BaseResponseTaskResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseTaskResponse() { } - public BaseResponseTaskResponse data(@javax.annotation.Nullable TaskResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable TaskResponse data) { } - public BaseResponseTaskResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseTaskResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseTaskResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseTaskResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseTaskResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseTaskResponse baseResponseTaskResponse = (BaseResponseTaskResponse) o; - return Objects.equals(this.status, baseResponseTaskResponse.status) && - Objects.equals(this.data, baseResponseTaskResponse.data) && - Objects.equals(this.message, baseResponseTaskResponse.message) && + return Objects.equals(this.data, baseResponseTaskResponse.data) && Objects.equals(this.errors, baseResponseTaskResponse.errors) && - Objects.equals(this.meta, baseResponseTaskResponse.meta)&& + Objects.equals(this.message, baseResponseTaskResponse.message) && + Objects.equals(this.meta, baseResponseTaskResponse.meta) && + Objects.equals(this.status, baseResponseTaskResponse.status)&& Objects.equals(this.additionalProperties, baseResponseTaskResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseTaskResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { TaskResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseUploadResponse.java b/src/main/java/ai/reveng/model/BaseResponseUploadResponse.java index 4a0da46..68e7899 100644 --- a/src/main/java/ai/reveng/model/BaseResponseUploadResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseUploadResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseUploadResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private UploadResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseUploadResponse() { - } - - public BaseResponseUploadResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseUploadResponse() { } - public BaseResponseUploadResponse data(@javax.annotation.Nullable UploadResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable UploadResponse data) { } - public BaseResponseUploadResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseUploadResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseUploadResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseUploadResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseUploadResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseUploadResponse baseResponseUploadResponse = (BaseResponseUploadResponse) o; - return Objects.equals(this.status, baseResponseUploadResponse.status) && - Objects.equals(this.data, baseResponseUploadResponse.data) && - Objects.equals(this.message, baseResponseUploadResponse.message) && + return Objects.equals(this.data, baseResponseUploadResponse.data) && Objects.equals(this.errors, baseResponseUploadResponse.errors) && - Objects.equals(this.meta, baseResponseUploadResponse.meta)&& + Objects.equals(this.message, baseResponseUploadResponse.message) && + Objects.equals(this.meta, baseResponseUploadResponse.meta) && + Objects.equals(this.status, baseResponseUploadResponse.status)&& Objects.equals(this.additionalProperties, baseResponseUploadResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseUploadResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { UploadResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseVulnerabilities.java b/src/main/java/ai/reveng/model/BaseResponseVulnerabilities.java index f3030c4..85bd565 100644 --- a/src/main/java/ai/reveng/model/BaseResponseVulnerabilities.java +++ b/src/main/java/ai/reveng/model/BaseResponseVulnerabilities.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseVulnerabilities { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private Vulnerabilities data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseVulnerabilities() { - } - - public BaseResponseVulnerabilities status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseVulnerabilities() { } - public BaseResponseVulnerabilities data(@javax.annotation.Nullable Vulnerabilities data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable Vulnerabilities data) { } - public BaseResponseVulnerabilities message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseVulnerabilities errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseVulnerabilities message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseVulnerabilities meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseVulnerabilities status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseVulnerabilities baseResponseVulnerabilities = (BaseResponseVulnerabilities) o; - return Objects.equals(this.status, baseResponseVulnerabilities.status) && - Objects.equals(this.data, baseResponseVulnerabilities.data) && - Objects.equals(this.message, baseResponseVulnerabilities.message) && + return Objects.equals(this.data, baseResponseVulnerabilities.data) && Objects.equals(this.errors, baseResponseVulnerabilities.errors) && - Objects.equals(this.meta, baseResponseVulnerabilities.meta)&& + Objects.equals(this.message, baseResponseVulnerabilities.message) && + Objects.equals(this.meta, baseResponseVulnerabilities.meta) && + Objects.equals(this.status, baseResponseVulnerabilities.status)&& Objects.equals(this.additionalProperties, baseResponseVulnerabilities.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseVulnerabilities {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { Vulnerabilities.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/BaseResponseXrefResponse.java b/src/main/java/ai/reveng/model/BaseResponseXrefResponse.java index 3ab0e7e..1afc738 100644 --- a/src/main/java/ai/reveng/model/BaseResponseXrefResponse.java +++ b/src/main/java/ai/reveng/model/BaseResponseXrefResponse.java @@ -57,53 +57,34 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BaseResponseXrefResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private Boolean status = true; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nullable private XrefResponse data; - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; - public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_META = "meta"; @SerializedName(SERIALIZED_NAME_META) @javax.annotation.Nullable private MetaModel meta; - public BaseResponseXrefResponse() { - } - - public BaseResponseXrefResponse status(@javax.annotation.Nullable Boolean status) { - this.status = status; - return this; - } - - /** - * Response status on whether the request succeeded - * @return status - */ + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable - public Boolean getStatus() { - return status; - } + private Boolean status = true; - public void setStatus(@javax.annotation.Nullable Boolean status) { - this.status = status; + public BaseResponseXrefResponse() { } - public BaseResponseXrefResponse data(@javax.annotation.Nullable XrefResponse data) { this.data = data; return this; @@ -123,25 +104,6 @@ public void setData(@javax.annotation.Nullable XrefResponse data) { } - public BaseResponseXrefResponse message(@javax.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - */ - @javax.annotation.Nullable - public String getMessage() { - return message; - } - - public void setMessage(@javax.annotation.Nullable String message) { - this.message = message; - } - - public BaseResponseXrefResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; return this; @@ -169,6 +131,25 @@ public void setErrors(@javax.annotation.Nullable List errors) { } + public BaseResponseXrefResponse message(@javax.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @javax.annotation.Nullable + public String getMessage() { + return message; + } + + public void setMessage(@javax.annotation.Nullable String message) { + this.message = message; + } + + public BaseResponseXrefResponse meta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; return this; @@ -187,6 +168,25 @@ public void setMeta(@javax.annotation.Nullable MetaModel meta) { this.meta = meta; } + + public BaseResponseXrefResponse status(@javax.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Response status on whether the request succeeded + * @return status + */ + @javax.annotation.Nullable + public Boolean getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable Boolean status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -242,11 +242,11 @@ public boolean equals(Object o) { return false; } BaseResponseXrefResponse baseResponseXrefResponse = (BaseResponseXrefResponse) o; - return Objects.equals(this.status, baseResponseXrefResponse.status) && - Objects.equals(this.data, baseResponseXrefResponse.data) && - Objects.equals(this.message, baseResponseXrefResponse.message) && + return Objects.equals(this.data, baseResponseXrefResponse.data) && Objects.equals(this.errors, baseResponseXrefResponse.errors) && - Objects.equals(this.meta, baseResponseXrefResponse.meta)&& + Objects.equals(this.message, baseResponseXrefResponse.message) && + Objects.equals(this.meta, baseResponseXrefResponse.meta) && + Objects.equals(this.status, baseResponseXrefResponse.status)&& Objects.equals(this.additionalProperties, baseResponseXrefResponse.additionalProperties); } @@ -256,7 +256,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, data, message, errors, meta, additionalProperties); + return Objects.hash(data, errors, message, meta, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -270,11 +270,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseResponseXrefResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -297,7 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "data", "message", "errors", "meta")); + openapiFields = new HashSet(Arrays.asList("data", "errors", "message", "meta", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -320,9 +320,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { XrefResponse.validateJsonElement(jsonObj.get("data")); } - 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("errors") != null && !jsonObj.get("errors").isJsonNull()) { JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); if (jsonArrayerrors != null) { @@ -337,6 +334,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + 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())); + } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { MetaModel.validateJsonElement(jsonObj.get("meta")); diff --git a/src/main/java/ai/reveng/model/Basic.java b/src/main/java/ai/reveng/model/Basic.java index e512b68..4ac90ec 100644 --- a/src/main/java/ai/reveng/model/Basic.java +++ b/src/main/java/ai/reveng/model/Basic.java @@ -53,6 +53,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Basic { + public static final String SERIALIZED_NAME_ANALYSIS_SCOPE = "analysis_scope"; + @SerializedName(SERIALIZED_NAME_ANALYSIS_SCOPE) + @javax.annotation.Nonnull + private String analysisScope; + + public static final String SERIALIZED_NAME_BASE_ADDRESS = "base_address"; + @SerializedName(SERIALIZED_NAME_BASE_ADDRESS) + @javax.annotation.Nullable + private Integer baseAddress; + public static final String SERIALIZED_NAME_BINARY_ID = "binary_id"; @SerializedName(SERIALIZED_NAME_BINARY_ID) @javax.annotation.Nonnull @@ -68,79 +78,107 @@ public class Basic { @javax.annotation.Nonnull private Integer binarySize; + public static final String SERIALIZED_NAME_BINARY_UUID = "binary_uuid"; + @SerializedName(SERIALIZED_NAME_BINARY_UUID) + @javax.annotation.Nullable + private String binaryUuid; + public static final String SERIALIZED_NAME_CREATION = "creation"; @SerializedName(SERIALIZED_NAME_CREATION) @javax.annotation.Nonnull private OffsetDateTime creation; - public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash"; - @SerializedName(SERIALIZED_NAME_SHA256_HASH) + public static final String SERIALIZED_NAME_DEBUG = "debug"; + @SerializedName(SERIALIZED_NAME_DEBUG) @javax.annotation.Nonnull - private String sha256Hash; + private Boolean debug; - public static final String SERIALIZED_NAME_MODEL_NAME = "model_name"; - @SerializedName(SERIALIZED_NAME_MODEL_NAME) + public static final String SERIALIZED_NAME_FUNCTION_COUNT = "function_count"; + @SerializedName(SERIALIZED_NAME_FUNCTION_COUNT) @javax.annotation.Nonnull - private String modelName; + private Integer functionCount; - public static final String SERIALIZED_NAME_MODEL_ID = "model_id"; - @SerializedName(SERIALIZED_NAME_MODEL_ID) + public static final String SERIALIZED_NAME_IS_ADVANCED = "is_advanced"; + @SerializedName(SERIALIZED_NAME_IS_ADVANCED) @javax.annotation.Nonnull - private Integer modelId; + private Boolean isAdvanced; - public static final String SERIALIZED_NAME_OWNER_USERNAME = "owner_username"; - @SerializedName(SERIALIZED_NAME_OWNER_USERNAME) + public static final String SERIALIZED_NAME_IS_OWNER = "is_owner"; + @SerializedName(SERIALIZED_NAME_IS_OWNER) @javax.annotation.Nonnull - private String ownerUsername; + private Boolean isOwner; public static final String SERIALIZED_NAME_IS_SYSTEM = "is_system"; @SerializedName(SERIALIZED_NAME_IS_SYSTEM) @javax.annotation.Nonnull private Boolean isSystem; - public static final String SERIALIZED_NAME_ANALYSIS_SCOPE = "analysis_scope"; - @SerializedName(SERIALIZED_NAME_ANALYSIS_SCOPE) + public static final String SERIALIZED_NAME_MODEL_ID = "model_id"; + @SerializedName(SERIALIZED_NAME_MODEL_ID) @javax.annotation.Nonnull - private String analysisScope; + private Integer modelId; - public static final String SERIALIZED_NAME_IS_OWNER = "is_owner"; - @SerializedName(SERIALIZED_NAME_IS_OWNER) + public static final String SERIALIZED_NAME_MODEL_NAME = "model_name"; + @SerializedName(SERIALIZED_NAME_MODEL_NAME) @javax.annotation.Nonnull - private Boolean isOwner; + private String modelName; - public static final String SERIALIZED_NAME_DEBUG = "debug"; - @SerializedName(SERIALIZED_NAME_DEBUG) + public static final String SERIALIZED_NAME_OWNER_USERNAME = "owner_username"; + @SerializedName(SERIALIZED_NAME_OWNER_USERNAME) @javax.annotation.Nonnull - private Boolean debug; + private String ownerUsername; - public static final String SERIALIZED_NAME_FUNCTION_COUNT = "function_count"; - @SerializedName(SERIALIZED_NAME_FUNCTION_COUNT) + public static final String SERIALIZED_NAME_SEQUENCER_VERSION = "sequencer_version"; + @SerializedName(SERIALIZED_NAME_SEQUENCER_VERSION) + @javax.annotation.Nullable + private String sequencerVersion; + + public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash"; + @SerializedName(SERIALIZED_NAME_SHA256_HASH) @javax.annotation.Nonnull - private Integer functionCount; + private String sha256Hash; - public static final String SERIALIZED_NAME_IS_ADVANCED = "is_advanced"; - @SerializedName(SERIALIZED_NAME_IS_ADVANCED) + public Basic() { + } + + public Basic analysisScope(@javax.annotation.Nonnull String analysisScope) { + this.analysisScope = analysisScope; + return this; + } + + /** + * The scope of the analysis + * @return analysisScope + */ @javax.annotation.Nonnull - private Boolean isAdvanced; + public String getAnalysisScope() { + return analysisScope; + } - public static final String SERIALIZED_NAME_BASE_ADDRESS = "base_address"; - @SerializedName(SERIALIZED_NAME_BASE_ADDRESS) - @javax.annotation.Nullable - private Integer baseAddress; + public void setAnalysisScope(@javax.annotation.Nonnull String analysisScope) { + this.analysisScope = analysisScope; + } - public static final String SERIALIZED_NAME_BINARY_UUID = "binary_uuid"; - @SerializedName(SERIALIZED_NAME_BINARY_UUID) - @javax.annotation.Nullable - private String binaryUuid; - public static final String SERIALIZED_NAME_SEQUENCER_VERSION = "sequencer_version"; - @SerializedName(SERIALIZED_NAME_SEQUENCER_VERSION) + public Basic baseAddress(@javax.annotation.Nullable Integer baseAddress) { + this.baseAddress = baseAddress; + return this; + } + + /** + * Get baseAddress + * @return baseAddress + */ @javax.annotation.Nullable - private String sequencerVersion; + public Integer getBaseAddress() { + return baseAddress; + } - public Basic() { + public void setBaseAddress(@javax.annotation.Nullable Integer baseAddress) { + this.baseAddress = baseAddress; } + public Basic binaryId(@javax.annotation.Nonnull Integer binaryId) { this.binaryId = binaryId; return this; @@ -198,136 +236,98 @@ public void setBinarySize(@javax.annotation.Nonnull Integer binarySize) { } - public Basic creation(@javax.annotation.Nonnull OffsetDateTime creation) { - this.creation = creation; - return this; - } - - /** - * When the binary was uploaded - * @return creation - */ - @javax.annotation.Nonnull - public OffsetDateTime getCreation() { - return creation; - } - - public void setCreation(@javax.annotation.Nonnull OffsetDateTime creation) { - this.creation = creation; - } - - - public Basic sha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; - return this; - } - - /** - * The hash of the binary uploaded - * @return sha256Hash - */ - @javax.annotation.Nonnull - public String getSha256Hash() { - return sha256Hash; - } - - public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; - } - - - public Basic modelName(@javax.annotation.Nonnull String modelName) { - this.modelName = modelName; + public Basic binaryUuid(@javax.annotation.Nullable String binaryUuid) { + this.binaryUuid = binaryUuid; return this; } /** - * The model name used for analysis - * @return modelName + * Get binaryUuid + * @return binaryUuid */ - @javax.annotation.Nonnull - public String getModelName() { - return modelName; + @javax.annotation.Nullable + public String getBinaryUuid() { + return binaryUuid; } - public void setModelName(@javax.annotation.Nonnull String modelName) { - this.modelName = modelName; + public void setBinaryUuid(@javax.annotation.Nullable String binaryUuid) { + this.binaryUuid = binaryUuid; } - public Basic modelId(@javax.annotation.Nonnull Integer modelId) { - this.modelId = modelId; + public Basic creation(@javax.annotation.Nonnull OffsetDateTime creation) { + this.creation = creation; return this; } /** - * The model ID used for analysis - * @return modelId + * When the binary was uploaded + * @return creation */ @javax.annotation.Nonnull - public Integer getModelId() { - return modelId; + public OffsetDateTime getCreation() { + return creation; } - public void setModelId(@javax.annotation.Nonnull Integer modelId) { - this.modelId = modelId; + public void setCreation(@javax.annotation.Nonnull OffsetDateTime creation) { + this.creation = creation; } - public Basic ownerUsername(@javax.annotation.Nonnull String ownerUsername) { - this.ownerUsername = ownerUsername; + public Basic debug(@javax.annotation.Nonnull Boolean debug) { + this.debug = debug; return this; } /** - * The name of the owner of the binary - * @return ownerUsername + * Whether the current analysis was analysed with debug symbols + * @return debug */ @javax.annotation.Nonnull - public String getOwnerUsername() { - return ownerUsername; + public Boolean getDebug() { + return debug; } - public void setOwnerUsername(@javax.annotation.Nonnull String ownerUsername) { - this.ownerUsername = ownerUsername; + public void setDebug(@javax.annotation.Nonnull Boolean debug) { + this.debug = debug; } - public Basic isSystem(@javax.annotation.Nonnull Boolean isSystem) { - this.isSystem = isSystem; + public Basic functionCount(@javax.annotation.Nonnull Integer functionCount) { + this.functionCount = functionCount; return this; } /** - * Whether the analysis is a system analysis - * @return isSystem + * The number of functions in the binary + * @return functionCount */ @javax.annotation.Nonnull - public Boolean getIsSystem() { - return isSystem; + public Integer getFunctionCount() { + return functionCount; } - public void setIsSystem(@javax.annotation.Nonnull Boolean isSystem) { - this.isSystem = isSystem; + public void setFunctionCount(@javax.annotation.Nonnull Integer functionCount) { + this.functionCount = functionCount; } - public Basic analysisScope(@javax.annotation.Nonnull String analysisScope) { - this.analysisScope = analysisScope; + public Basic isAdvanced(@javax.annotation.Nonnull Boolean isAdvanced) { + this.isAdvanced = isAdvanced; return this; } /** - * The scope of the analysis - * @return analysisScope + * Whether the analysis was advanced + * @return isAdvanced */ @javax.annotation.Nonnull - public String getAnalysisScope() { - return analysisScope; + public Boolean getIsAdvanced() { + return isAdvanced; } - public void setAnalysisScope(@javax.annotation.Nonnull String analysisScope) { - this.analysisScope = analysisScope; + public void setIsAdvanced(@javax.annotation.Nonnull Boolean isAdvanced) { + this.isAdvanced = isAdvanced; } @@ -350,117 +350,117 @@ public void setIsOwner(@javax.annotation.Nonnull Boolean isOwner) { } - public Basic debug(@javax.annotation.Nonnull Boolean debug) { - this.debug = debug; + public Basic isSystem(@javax.annotation.Nonnull Boolean isSystem) { + this.isSystem = isSystem; return this; } /** - * Whether the current analysis was analysed with debug symbols - * @return debug + * Whether the analysis is a system analysis + * @return isSystem */ @javax.annotation.Nonnull - public Boolean getDebug() { - return debug; + public Boolean getIsSystem() { + return isSystem; } - public void setDebug(@javax.annotation.Nonnull Boolean debug) { - this.debug = debug; + public void setIsSystem(@javax.annotation.Nonnull Boolean isSystem) { + this.isSystem = isSystem; } - public Basic functionCount(@javax.annotation.Nonnull Integer functionCount) { - this.functionCount = functionCount; + public Basic modelId(@javax.annotation.Nonnull Integer modelId) { + this.modelId = modelId; return this; } /** - * The number of functions in the binary - * @return functionCount + * The model ID used for analysis + * @return modelId */ @javax.annotation.Nonnull - public Integer getFunctionCount() { - return functionCount; + public Integer getModelId() { + return modelId; } - public void setFunctionCount(@javax.annotation.Nonnull Integer functionCount) { - this.functionCount = functionCount; + public void setModelId(@javax.annotation.Nonnull Integer modelId) { + this.modelId = modelId; } - public Basic isAdvanced(@javax.annotation.Nonnull Boolean isAdvanced) { - this.isAdvanced = isAdvanced; + public Basic modelName(@javax.annotation.Nonnull String modelName) { + this.modelName = modelName; return this; } /** - * Whether the analysis was advanced - * @return isAdvanced + * The model name used for analysis + * @return modelName */ @javax.annotation.Nonnull - public Boolean getIsAdvanced() { - return isAdvanced; + public String getModelName() { + return modelName; } - public void setIsAdvanced(@javax.annotation.Nonnull Boolean isAdvanced) { - this.isAdvanced = isAdvanced; + public void setModelName(@javax.annotation.Nonnull String modelName) { + this.modelName = modelName; } - public Basic baseAddress(@javax.annotation.Nullable Integer baseAddress) { - this.baseAddress = baseAddress; + public Basic ownerUsername(@javax.annotation.Nonnull String ownerUsername) { + this.ownerUsername = ownerUsername; return this; } /** - * Get baseAddress - * @return baseAddress + * The name of the owner of the binary + * @return ownerUsername */ - @javax.annotation.Nullable - public Integer getBaseAddress() { - return baseAddress; + @javax.annotation.Nonnull + public String getOwnerUsername() { + return ownerUsername; } - public void setBaseAddress(@javax.annotation.Nullable Integer baseAddress) { - this.baseAddress = baseAddress; + public void setOwnerUsername(@javax.annotation.Nonnull String ownerUsername) { + this.ownerUsername = ownerUsername; } - public Basic binaryUuid(@javax.annotation.Nullable String binaryUuid) { - this.binaryUuid = binaryUuid; + public Basic sequencerVersion(@javax.annotation.Nullable String sequencerVersion) { + this.sequencerVersion = sequencerVersion; return this; } /** - * Get binaryUuid - * @return binaryUuid + * Get sequencerVersion + * @return sequencerVersion */ @javax.annotation.Nullable - public String getBinaryUuid() { - return binaryUuid; + public String getSequencerVersion() { + return sequencerVersion; } - public void setBinaryUuid(@javax.annotation.Nullable String binaryUuid) { - this.binaryUuid = binaryUuid; + public void setSequencerVersion(@javax.annotation.Nullable String sequencerVersion) { + this.sequencerVersion = sequencerVersion; } - public Basic sequencerVersion(@javax.annotation.Nullable String sequencerVersion) { - this.sequencerVersion = sequencerVersion; + public Basic sha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; return this; } /** - * Get sequencerVersion - * @return sequencerVersion + * The hash of the binary uploaded + * @return sha256Hash */ - @javax.annotation.Nullable - public String getSequencerVersion() { - return sequencerVersion; + @javax.annotation.Nonnull + public String getSha256Hash() { + return sha256Hash; } - public void setSequencerVersion(@javax.annotation.Nullable String sequencerVersion) { - this.sequencerVersion = sequencerVersion; + public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; } /** @@ -518,23 +518,23 @@ public boolean equals(Object o) { return false; } Basic basic = (Basic) o; - return Objects.equals(this.binaryId, basic.binaryId) && + return Objects.equals(this.analysisScope, basic.analysisScope) && + Objects.equals(this.baseAddress, basic.baseAddress) && + Objects.equals(this.binaryId, basic.binaryId) && Objects.equals(this.binaryName, basic.binaryName) && Objects.equals(this.binarySize, basic.binarySize) && + Objects.equals(this.binaryUuid, basic.binaryUuid) && Objects.equals(this.creation, basic.creation) && - Objects.equals(this.sha256Hash, basic.sha256Hash) && - Objects.equals(this.modelName, basic.modelName) && - Objects.equals(this.modelId, basic.modelId) && - Objects.equals(this.ownerUsername, basic.ownerUsername) && - Objects.equals(this.isSystem, basic.isSystem) && - Objects.equals(this.analysisScope, basic.analysisScope) && - Objects.equals(this.isOwner, basic.isOwner) && Objects.equals(this.debug, basic.debug) && Objects.equals(this.functionCount, basic.functionCount) && Objects.equals(this.isAdvanced, basic.isAdvanced) && - Objects.equals(this.baseAddress, basic.baseAddress) && - Objects.equals(this.binaryUuid, basic.binaryUuid) && - Objects.equals(this.sequencerVersion, basic.sequencerVersion)&& + Objects.equals(this.isOwner, basic.isOwner) && + Objects.equals(this.isSystem, basic.isSystem) && + Objects.equals(this.modelId, basic.modelId) && + Objects.equals(this.modelName, basic.modelName) && + Objects.equals(this.ownerUsername, basic.ownerUsername) && + Objects.equals(this.sequencerVersion, basic.sequencerVersion) && + Objects.equals(this.sha256Hash, basic.sha256Hash)&& Objects.equals(this.additionalProperties, basic.additionalProperties); } @@ -544,7 +544,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(binaryId, binaryName, binarySize, creation, sha256Hash, modelName, modelId, ownerUsername, isSystem, analysisScope, isOwner, debug, functionCount, isAdvanced, baseAddress, binaryUuid, sequencerVersion, additionalProperties); + return Objects.hash(analysisScope, baseAddress, binaryId, binaryName, binarySize, binaryUuid, creation, debug, functionCount, isAdvanced, isOwner, isSystem, modelId, modelName, ownerUsername, sequencerVersion, sha256Hash, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -558,23 +558,23 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Basic {\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(" binaryName: ").append(toIndentedString(binaryName)).append("\n"); sb.append(" binarySize: ").append(toIndentedString(binarySize)).append("\n"); + sb.append(" binaryUuid: ").append(toIndentedString(binaryUuid)).append("\n"); sb.append(" creation: ").append(toIndentedString(creation)).append("\n"); - sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); - sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); - sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); - sb.append(" ownerUsername: ").append(toIndentedString(ownerUsername)).append("\n"); - sb.append(" isSystem: ").append(toIndentedString(isSystem)).append("\n"); - sb.append(" analysisScope: ").append(toIndentedString(analysisScope)).append("\n"); - sb.append(" isOwner: ").append(toIndentedString(isOwner)).append("\n"); sb.append(" debug: ").append(toIndentedString(debug)).append("\n"); sb.append(" functionCount: ").append(toIndentedString(functionCount)).append("\n"); sb.append(" isAdvanced: ").append(toIndentedString(isAdvanced)).append("\n"); - sb.append(" baseAddress: ").append(toIndentedString(baseAddress)).append("\n"); - sb.append(" binaryUuid: ").append(toIndentedString(binaryUuid)).append("\n"); + sb.append(" isOwner: ").append(toIndentedString(isOwner)).append("\n"); + sb.append(" isSystem: ").append(toIndentedString(isSystem)).append("\n"); + sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); + sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); + sb.append(" ownerUsername: ").append(toIndentedString(ownerUsername)).append("\n"); sb.append(" sequencerVersion: ").append(toIndentedString(sequencerVersion)).append("\n"); + sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -597,10 +597,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("binary_id", "binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address", "binary_uuid", "sequencer_version")); + openapiFields = new HashSet(Arrays.asList("analysis_scope", "base_address", "binary_id", "binary_name", "binary_size", "binary_uuid", "creation", "debug", "function_count", "is_advanced", "is_owner", "is_system", "model_id", "model_name", "owner_username", "sequencer_version", "sha_256_hash")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("binary_id", "binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address")); + openapiRequiredFields = new HashSet(Arrays.asList("analysis_scope", "base_address", "binary_id", "binary_name", "binary_size", "creation", "debug", "function_count", "is_advanced", "is_owner", "is_system", "model_id", "model_name", "owner_username", "sha_256_hash")); } /** @@ -623,11 +623,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + 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("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())); + if ((jsonObj.get("binary_uuid") != null && !jsonObj.get("binary_uuid").isJsonNull()) && !jsonObj.get("binary_uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binary_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binary_uuid").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())); @@ -635,15 +638,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("owner_username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `owner_username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("owner_username").toString())); } - 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("binary_uuid") != null && !jsonObj.get("binary_uuid").isJsonNull()) && !jsonObj.get("binary_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binary_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binary_uuid").toString())); - } if ((jsonObj.get("sequencer_version") != null && !jsonObj.get("sequencer_version").isJsonNull()) && !jsonObj.get("sequencer_version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sequencer_version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sequencer_version").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())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/BinaryAdditionalDetailsDataResponse.java b/src/main/java/ai/reveng/model/BinaryAdditionalDetailsDataResponse.java index 3acb32a..be1bf52 100644 --- a/src/main/java/ai/reveng/model/BinaryAdditionalDetailsDataResponse.java +++ b/src/main/java/ai/reveng/model/BinaryAdditionalDetailsDataResponse.java @@ -55,6 +55,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BinaryAdditionalDetailsDataResponse { + public static final String SERIALIZED_NAME_ELF = "elf"; + @SerializedName(SERIALIZED_NAME_ELF) + @javax.annotation.Nullable + private ELFModel elf; + public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) @javax.annotation.Nonnull @@ -65,14 +70,28 @@ public class BinaryAdditionalDetailsDataResponse { @javax.annotation.Nullable private PEModel pe; - public static final String SERIALIZED_NAME_ELF = "elf"; - @SerializedName(SERIALIZED_NAME_ELF) + public BinaryAdditionalDetailsDataResponse() { + } + + public BinaryAdditionalDetailsDataResponse elf(@javax.annotation.Nullable ELFModel elf) { + this.elf = elf; + return this; + } + + /** + * Get elf + * @return elf + */ @javax.annotation.Nullable - private ELFModel elf; + public ELFModel getElf() { + return elf; + } - public BinaryAdditionalDetailsDataResponse() { + public void setElf(@javax.annotation.Nullable ELFModel elf) { + this.elf = elf; } + public BinaryAdditionalDetailsDataResponse _file(@javax.annotation.Nonnull FileMetadata _file) { this._file = _file; return this; @@ -110,25 +129,6 @@ public void setPe(@javax.annotation.Nullable PEModel pe) { this.pe = pe; } - - public BinaryAdditionalDetailsDataResponse elf(@javax.annotation.Nullable ELFModel elf) { - this.elf = elf; - return this; - } - - /** - * Get elf - * @return elf - */ - @javax.annotation.Nullable - public ELFModel getElf() { - return elf; - } - - public void setElf(@javax.annotation.Nullable ELFModel elf) { - this.elf = elf; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -184,9 +184,9 @@ public boolean equals(Object o) { return false; } BinaryAdditionalDetailsDataResponse binaryAdditionalDetailsDataResponse = (BinaryAdditionalDetailsDataResponse) o; - return Objects.equals(this._file, binaryAdditionalDetailsDataResponse._file) && - Objects.equals(this.pe, binaryAdditionalDetailsDataResponse.pe) && - Objects.equals(this.elf, binaryAdditionalDetailsDataResponse.elf)&& + return Objects.equals(this.elf, binaryAdditionalDetailsDataResponse.elf) && + Objects.equals(this._file, binaryAdditionalDetailsDataResponse._file) && + Objects.equals(this.pe, binaryAdditionalDetailsDataResponse.pe)&& Objects.equals(this.additionalProperties, binaryAdditionalDetailsDataResponse.additionalProperties); } @@ -196,7 +196,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(_file, pe, elf, additionalProperties); + return Objects.hash(elf, _file, pe, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -210,9 +210,9 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BinaryAdditionalDetailsDataResponse {\n"); + sb.append(" elf: ").append(toIndentedString(elf)).append("\n"); sb.append(" _file: ").append(toIndentedString(_file)).append("\n"); sb.append(" pe: ").append(toIndentedString(pe)).append("\n"); - sb.append(" elf: ").append(toIndentedString(elf)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -235,7 +235,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("file", "pe", "elf")); + openapiFields = new HashSet(Arrays.asList("elf", "file", "pe")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("file")); @@ -261,16 +261,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `elf` + if (jsonObj.get("elf") != null && !jsonObj.get("elf").isJsonNull()) { + ELFModel.validateJsonElement(jsonObj.get("elf")); + } // validate the required field `file` FileMetadata.validateJsonElement(jsonObj.get("file")); // validate the optional field `pe` if (jsonObj.get("pe") != null && !jsonObj.get("pe").isJsonNull()) { PEModel.validateJsonElement(jsonObj.get("pe")); } - // validate the optional field `elf` - if (jsonObj.get("elf") != null && !jsonObj.get("elf").isJsonNull()) { - ELFModel.validateJsonElement(jsonObj.get("elf")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/BinaryAdditionalResponse.java b/src/main/java/ai/reveng/model/BinaryAdditionalResponse.java index 58fd104..8c2c68d 100644 --- a/src/main/java/ai/reveng/model/BinaryAdditionalResponse.java +++ b/src/main/java/ai/reveng/model/BinaryAdditionalResponse.java @@ -59,16 +59,16 @@ public class BinaryAdditionalResponse { @javax.annotation.Nonnull private Integer binaryId; - public static final String SERIALIZED_NAME_DETAILS = "details"; - @SerializedName(SERIALIZED_NAME_DETAILS) - @javax.annotation.Nullable - private BinaryAdditionalDetailsDataResponse details; - public static final String SERIALIZED_NAME_CREATION = "creation"; @SerializedName(SERIALIZED_NAME_CREATION) @javax.annotation.Nullable private OffsetDateTime creation; + public static final String SERIALIZED_NAME_DETAILS = "details"; + @SerializedName(SERIALIZED_NAME_DETAILS) + @javax.annotation.Nullable + private BinaryAdditionalDetailsDataResponse details; + public BinaryAdditionalResponse() { } @@ -91,41 +91,41 @@ public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) { } - public BinaryAdditionalResponse details(@javax.annotation.Nullable BinaryAdditionalDetailsDataResponse details) { - this.details = details; + public BinaryAdditionalResponse creation(@javax.annotation.Nullable OffsetDateTime creation) { + this.creation = creation; return this; } /** - * Get details - * @return details + * Get creation + * @return creation */ @javax.annotation.Nullable - public BinaryAdditionalDetailsDataResponse getDetails() { - return details; + public OffsetDateTime getCreation() { + return creation; } - public void setDetails(@javax.annotation.Nullable BinaryAdditionalDetailsDataResponse details) { - this.details = details; + public void setCreation(@javax.annotation.Nullable OffsetDateTime creation) { + this.creation = creation; } - public BinaryAdditionalResponse creation(@javax.annotation.Nullable OffsetDateTime creation) { - this.creation = creation; + public BinaryAdditionalResponse details(@javax.annotation.Nullable BinaryAdditionalDetailsDataResponse details) { + this.details = details; return this; } /** - * Get creation - * @return creation + * Get details + * @return details */ @javax.annotation.Nullable - public OffsetDateTime getCreation() { - return creation; + public BinaryAdditionalDetailsDataResponse getDetails() { + return details; } - public void setCreation(@javax.annotation.Nullable OffsetDateTime creation) { - this.creation = creation; + public void setDetails(@javax.annotation.Nullable BinaryAdditionalDetailsDataResponse details) { + this.details = details; } /** @@ -184,8 +184,8 @@ public boolean equals(Object o) { } BinaryAdditionalResponse binaryAdditionalResponse = (BinaryAdditionalResponse) o; return Objects.equals(this.binaryId, binaryAdditionalResponse.binaryId) && - Objects.equals(this.details, binaryAdditionalResponse.details) && - Objects.equals(this.creation, binaryAdditionalResponse.creation)&& + Objects.equals(this.creation, binaryAdditionalResponse.creation) && + Objects.equals(this.details, binaryAdditionalResponse.details)&& Objects.equals(this.additionalProperties, binaryAdditionalResponse.additionalProperties); } @@ -195,7 +195,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(binaryId, details, creation, additionalProperties); + return Objects.hash(binaryId, creation, details, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -210,8 +210,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BinaryAdditionalResponse {\n"); sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n"); - sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append(" creation: ").append(toIndentedString(creation)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -234,7 +234,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("binary_id", "details", "creation")); + openapiFields = new HashSet(Arrays.asList("binary_id", "creation", "details")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("binary_id", "details")); diff --git a/src/main/java/ai/reveng/model/BinaryConfig.java b/src/main/java/ai/reveng/model/BinaryConfig.java index 50405c0..a81e536 100644 --- a/src/main/java/ai/reveng/model/BinaryConfig.java +++ b/src/main/java/ai/reveng/model/BinaryConfig.java @@ -55,6 +55,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BinaryConfig { + public static final String SERIALIZED_NAME_FILE_FORMAT = "file_format"; + @SerializedName(SERIALIZED_NAME_FILE_FORMAT) + @javax.annotation.Nullable + private FileFormat fileFormat; + public static final String SERIALIZED_NAME_ISA = "isa"; @SerializedName(SERIALIZED_NAME_ISA) @javax.annotation.Nullable @@ -65,14 +70,28 @@ public class BinaryConfig { @javax.annotation.Nullable private Platform platform; - public static final String SERIALIZED_NAME_FILE_FORMAT = "file_format"; - @SerializedName(SERIALIZED_NAME_FILE_FORMAT) + public BinaryConfig() { + } + + public BinaryConfig fileFormat(@javax.annotation.Nullable FileFormat fileFormat) { + this.fileFormat = fileFormat; + return this; + } + + /** + * Get fileFormat + * @return fileFormat + */ @javax.annotation.Nullable - private FileFormat fileFormat; + public FileFormat getFileFormat() { + return fileFormat; + } - public BinaryConfig() { + public void setFileFormat(@javax.annotation.Nullable FileFormat fileFormat) { + this.fileFormat = fileFormat; } + public BinaryConfig isa(@javax.annotation.Nullable ISA isa) { this.isa = isa; return this; @@ -110,25 +129,6 @@ public void setPlatform(@javax.annotation.Nullable Platform platform) { this.platform = platform; } - - public BinaryConfig fileFormat(@javax.annotation.Nullable FileFormat fileFormat) { - this.fileFormat = fileFormat; - return this; - } - - /** - * Get fileFormat - * @return fileFormat - */ - @javax.annotation.Nullable - public FileFormat getFileFormat() { - return fileFormat; - } - - public void setFileFormat(@javax.annotation.Nullable FileFormat fileFormat) { - this.fileFormat = fileFormat; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -184,9 +184,9 @@ public boolean equals(Object o) { return false; } BinaryConfig binaryConfig = (BinaryConfig) o; - return Objects.equals(this.isa, binaryConfig.isa) && - Objects.equals(this.platform, binaryConfig.platform) && - Objects.equals(this.fileFormat, binaryConfig.fileFormat)&& + return Objects.equals(this.fileFormat, binaryConfig.fileFormat) && + Objects.equals(this.isa, binaryConfig.isa) && + Objects.equals(this.platform, binaryConfig.platform)&& Objects.equals(this.additionalProperties, binaryConfig.additionalProperties); } @@ -196,7 +196,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(isa, platform, fileFormat, additionalProperties); + return Objects.hash(fileFormat, isa, platform, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -210,9 +210,9 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BinaryConfig {\n"); + sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); sb.append(" isa: ").append(toIndentedString(isa)).append("\n"); sb.append(" platform: ").append(toIndentedString(platform)).append("\n"); - sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -235,7 +235,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("isa", "platform", "file_format")); + openapiFields = new HashSet(Arrays.asList("file_format", "isa", "platform")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -254,6 +254,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `file_format` + if (jsonObj.get("file_format") != null && !jsonObj.get("file_format").isJsonNull()) { + FileFormat.validateJsonElement(jsonObj.get("file_format")); + } // validate the optional field `isa` if (jsonObj.get("isa") != null && !jsonObj.get("isa").isJsonNull()) { ISA.validateJsonElement(jsonObj.get("isa")); @@ -262,10 +266,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("platform") != null && !jsonObj.get("platform").isJsonNull()) { Platform.validateJsonElement(jsonObj.get("platform")); } - // validate the optional field `file_format` - if (jsonObj.get("file_format") != null && !jsonObj.get("file_format").isJsonNull()) { - FileFormat.validateJsonElement(jsonObj.get("file_format")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/BinaryDetailsResponse.java b/src/main/java/ai/reveng/model/BinaryDetailsResponse.java index 52c68d7..f73b745 100644 --- a/src/main/java/ai/reveng/model/BinaryDetailsResponse.java +++ b/src/main/java/ai/reveng/model/BinaryDetailsResponse.java @@ -53,6 +53,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BinaryDetailsResponse { + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "Class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nonnull + private String propertyClass; + public static final String SERIALIZED_NAME_ARCH = "arch"; @SerializedName(SERIALIZED_NAME_ARCH) @javax.annotation.Nonnull @@ -68,10 +73,10 @@ public class BinaryDetailsResponse { @javax.annotation.Nonnull private String crc32; - public static final String SERIALIZED_NAME_PROPERTY_CLASS = "Class"; - @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + public static final String SERIALIZED_NAME_DEBUG = "debug"; + @SerializedName(SERIALIZED_NAME_DEBUG) @javax.annotation.Nonnull - private String propertyClass; + private Boolean debug; public static final String SERIALIZED_NAME_ENTROPY = "entropy"; @SerializedName(SERIALIZED_NAME_ENTROPY) @@ -83,21 +88,26 @@ public class BinaryDetailsResponse { @javax.annotation.Nonnull private Integer fileSize; + public static final String SERIALIZED_NAME_FIRST_SEEN = "first_seen"; + @SerializedName(SERIALIZED_NAME_FIRST_SEEN) + @javax.annotation.Nonnull + private OffsetDateTime firstSeen; + public static final String SERIALIZED_NAME_LANGUAGE = "language"; @SerializedName(SERIALIZED_NAME_LANGUAGE) @javax.annotation.Nonnull private String language; - public static final String SERIALIZED_NAME_MD5 = "md5"; - @SerializedName(SERIALIZED_NAME_MD5) - @javax.annotation.Nonnull - private String md5; - public static final String SERIALIZED_NAME_MACHINE = "machine"; @SerializedName(SERIALIZED_NAME_MACHINE) @javax.annotation.Nonnull private String machine; + public static final String SERIALIZED_NAME_MD5 = "md5"; + @SerializedName(SERIALIZED_NAME_MD5) + @javax.annotation.Nonnull + private String md5; + public static final String SERIALIZED_NAME_OS = "os"; @SerializedName(SERIALIZED_NAME_OS) @javax.annotation.Nonnull @@ -143,19 +153,28 @@ public class BinaryDetailsResponse { @javax.annotation.Nonnull private String type; - public static final String SERIALIZED_NAME_DEBUG = "debug"; - @SerializedName(SERIALIZED_NAME_DEBUG) - @javax.annotation.Nonnull - private Boolean debug; + public BinaryDetailsResponse() { + } - public static final String SERIALIZED_NAME_FIRST_SEEN = "first_seen"; - @SerializedName(SERIALIZED_NAME_FIRST_SEEN) + public BinaryDetailsResponse propertyClass(@javax.annotation.Nonnull String propertyClass) { + this.propertyClass = propertyClass; + return this; + } + + /** + * Get propertyClass + * @return propertyClass + */ @javax.annotation.Nonnull - private OffsetDateTime firstSeen; + public String getPropertyClass() { + return propertyClass; + } - public BinaryDetailsResponse() { + public void setPropertyClass(@javax.annotation.Nonnull String propertyClass) { + this.propertyClass = propertyClass; } + public BinaryDetailsResponse arch(@javax.annotation.Nonnull String arch) { this.arch = arch; return this; @@ -213,22 +232,22 @@ public void setCrc32(@javax.annotation.Nonnull String crc32) { } - public BinaryDetailsResponse propertyClass(@javax.annotation.Nonnull String propertyClass) { - this.propertyClass = propertyClass; + public BinaryDetailsResponse debug(@javax.annotation.Nonnull Boolean debug) { + this.debug = debug; return this; } /** - * Get propertyClass - * @return propertyClass + * Get debug + * @return debug */ @javax.annotation.Nonnull - public String getPropertyClass() { - return propertyClass; + public Boolean getDebug() { + return debug; } - public void setPropertyClass(@javax.annotation.Nonnull String propertyClass) { - this.propertyClass = propertyClass; + public void setDebug(@javax.annotation.Nonnull Boolean debug) { + this.debug = debug; } @@ -270,41 +289,41 @@ public void setFileSize(@javax.annotation.Nonnull Integer fileSize) { } - public BinaryDetailsResponse language(@javax.annotation.Nonnull String language) { - this.language = language; + public BinaryDetailsResponse firstSeen(@javax.annotation.Nonnull OffsetDateTime firstSeen) { + this.firstSeen = firstSeen; return this; } /** - * - * @return language + * Get firstSeen + * @return firstSeen */ @javax.annotation.Nonnull - public String getLanguage() { - return language; + public OffsetDateTime getFirstSeen() { + return firstSeen; } - public void setLanguage(@javax.annotation.Nonnull String language) { - this.language = language; + public void setFirstSeen(@javax.annotation.Nonnull OffsetDateTime firstSeen) { + this.firstSeen = firstSeen; } - public BinaryDetailsResponse md5(@javax.annotation.Nonnull String md5) { - this.md5 = md5; + public BinaryDetailsResponse language(@javax.annotation.Nonnull String language) { + this.language = language; return this; } /** - * Get md5 - * @return md5 + * + * @return language */ @javax.annotation.Nonnull - public String getMd5() { - return md5; + public String getLanguage() { + return language; } - public void setMd5(@javax.annotation.Nonnull String md5) { - this.md5 = md5; + public void setLanguage(@javax.annotation.Nonnull String language) { + this.language = language; } @@ -327,6 +346,25 @@ public void setMachine(@javax.annotation.Nonnull String machine) { } + public BinaryDetailsResponse md5(@javax.annotation.Nonnull String md5) { + this.md5 = md5; + return this; + } + + /** + * Get md5 + * @return md5 + */ + @javax.annotation.Nonnull + public String getMd5() { + return md5; + } + + public void setMd5(@javax.annotation.Nonnull String md5) { + this.md5 = md5; + } + + public BinaryDetailsResponse os(@javax.annotation.Nonnull String os) { this.os = os; return this; @@ -497,44 +535,6 @@ public void setType(@javax.annotation.Nonnull String type) { this.type = type; } - - public BinaryDetailsResponse debug(@javax.annotation.Nonnull Boolean debug) { - this.debug = debug; - return this; - } - - /** - * Get debug - * @return debug - */ - @javax.annotation.Nonnull - public Boolean getDebug() { - return debug; - } - - public void setDebug(@javax.annotation.Nonnull Boolean debug) { - this.debug = debug; - } - - - public BinaryDetailsResponse firstSeen(@javax.annotation.Nonnull OffsetDateTime firstSeen) { - this.firstSeen = firstSeen; - return this; - } - - /** - * Get firstSeen - * @return firstSeen - */ - @javax.annotation.Nonnull - public OffsetDateTime getFirstSeen() { - return firstSeen; - } - - public void setFirstSeen(@javax.annotation.Nonnull OffsetDateTime firstSeen) { - this.firstSeen = firstSeen; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -590,15 +590,17 @@ public boolean equals(Object o) { return false; } BinaryDetailsResponse binaryDetailsResponse = (BinaryDetailsResponse) o; - return Objects.equals(this.arch, binaryDetailsResponse.arch) && + return Objects.equals(this.propertyClass, binaryDetailsResponse.propertyClass) && + Objects.equals(this.arch, binaryDetailsResponse.arch) && Objects.equals(this.bits, binaryDetailsResponse.bits) && Objects.equals(this.crc32, binaryDetailsResponse.crc32) && - Objects.equals(this.propertyClass, binaryDetailsResponse.propertyClass) && + Objects.equals(this.debug, binaryDetailsResponse.debug) && Objects.equals(this.entropy, binaryDetailsResponse.entropy) && Objects.equals(this.fileSize, binaryDetailsResponse.fileSize) && + Objects.equals(this.firstSeen, binaryDetailsResponse.firstSeen) && Objects.equals(this.language, binaryDetailsResponse.language) && - Objects.equals(this.md5, binaryDetailsResponse.md5) && Objects.equals(this.machine, binaryDetailsResponse.machine) && + Objects.equals(this.md5, binaryDetailsResponse.md5) && Objects.equals(this.os, binaryDetailsResponse.os) && Objects.equals(this.sha1, binaryDetailsResponse.sha1) && Objects.equals(this.sha256, binaryDetailsResponse.sha256) && @@ -607,30 +609,30 @@ public boolean equals(Object o) { Objects.equals(this.stripped, binaryDetailsResponse.stripped) && Objects.equals(this.subSys, binaryDetailsResponse.subSys) && Objects.equals(this.tlsh, binaryDetailsResponse.tlsh) && - Objects.equals(this.type, binaryDetailsResponse.type) && - Objects.equals(this.debug, binaryDetailsResponse.debug) && - Objects.equals(this.firstSeen, binaryDetailsResponse.firstSeen)&& + Objects.equals(this.type, binaryDetailsResponse.type)&& Objects.equals(this.additionalProperties, binaryDetailsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(arch, bits, crc32, propertyClass, entropy, fileSize, language, md5, machine, os, sha1, sha256, ssdeep, _static, stripped, subSys, tlsh, type, debug, firstSeen, additionalProperties); + return Objects.hash(propertyClass, arch, bits, crc32, debug, entropy, fileSize, firstSeen, language, machine, md5, os, sha1, sha256, ssdeep, _static, stripped, subSys, tlsh, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BinaryDetailsResponse {\n"); + sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n"); sb.append(" arch: ").append(toIndentedString(arch)).append("\n"); sb.append(" bits: ").append(toIndentedString(bits)).append("\n"); sb.append(" crc32: ").append(toIndentedString(crc32)).append("\n"); - sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n"); + sb.append(" debug: ").append(toIndentedString(debug)).append("\n"); sb.append(" entropy: ").append(toIndentedString(entropy)).append("\n"); sb.append(" fileSize: ").append(toIndentedString(fileSize)).append("\n"); + sb.append(" firstSeen: ").append(toIndentedString(firstSeen)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); - sb.append(" md5: ").append(toIndentedString(md5)).append("\n"); sb.append(" machine: ").append(toIndentedString(machine)).append("\n"); + sb.append(" md5: ").append(toIndentedString(md5)).append("\n"); sb.append(" os: ").append(toIndentedString(os)).append("\n"); sb.append(" sha1: ").append(toIndentedString(sha1)).append("\n"); sb.append(" sha256: ").append(toIndentedString(sha256)).append("\n"); @@ -640,8 +642,6 @@ public String toString() { sb.append(" subSys: ").append(toIndentedString(subSys)).append("\n"); sb.append(" tlsh: ").append(toIndentedString(tlsh)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" debug: ").append(toIndentedString(debug)).append("\n"); - sb.append(" firstSeen: ").append(toIndentedString(firstSeen)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -664,10 +664,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("arch", "bits", "crc32", "Class", "entropy", "file_size", "language", "md5", "machine", "os", "sha1", "sha256", "ssdeep", "static", "stripped", "sub_sys", "tlsh", "type", "debug", "first_seen")); + openapiFields = new HashSet(Arrays.asList("Class", "arch", "bits", "crc32", "debug", "entropy", "file_size", "first_seen", "language", "machine", "md5", "os", "sha1", "sha256", "ssdeep", "static", "stripped", "sub_sys", "tlsh", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("arch", "bits", "crc32", "Class", "entropy", "file_size", "language", "md5", "machine", "os", "sha1", "sha256", "ssdeep", "static", "stripped", "sub_sys", "tlsh", "type", "debug", "first_seen")); + openapiRequiredFields = new HashSet(Arrays.asList("Class", "arch", "bits", "crc32", "debug", "entropy", "file_size", "first_seen", "language", "machine", "md5", "os", "sha1", "sha256", "ssdeep", "static", "stripped", "sub_sys", "tlsh", "type")); } /** @@ -690,24 +690,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("Class").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `Class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("Class").toString())); + } if (!jsonObj.get("arch").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `arch` to be a primitive type in the JSON string but got `%s`", jsonObj.get("arch").toString())); } if (!jsonObj.get("crc32").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `crc32` to be a primitive type in the JSON string but got `%s`", jsonObj.get("crc32").toString())); } - if (!jsonObj.get("Class").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `Class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("Class").toString())); - } if (!jsonObj.get("language").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `language` to be a primitive type in the JSON string but got `%s`", jsonObj.get("language").toString())); } - if (!jsonObj.get("md5").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `md5` to be a primitive type in the JSON string but got `%s`", jsonObj.get("md5").toString())); - } if (!jsonObj.get("machine").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `machine` to be a primitive type in the JSON string but got `%s`", jsonObj.get("machine").toString())); } + if (!jsonObj.get("md5").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `md5` to be a primitive type in the JSON string but got `%s`", jsonObj.get("md5").toString())); + } if (!jsonObj.get("os").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `os` to be a primitive type in the JSON string but got `%s`", jsonObj.get("os").toString())); } diff --git a/src/main/java/ai/reveng/model/BinaryExternalsResponse.java b/src/main/java/ai/reveng/model/BinaryExternalsResponse.java index af6c75b..4645d29 100644 --- a/src/main/java/ai/reveng/model/BinaryExternalsResponse.java +++ b/src/main/java/ai/reveng/model/BinaryExternalsResponse.java @@ -54,6 +54,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BinaryExternalsResponse { + public static final String SERIALIZED_NAME_MB = "mb"; + @SerializedName(SERIALIZED_NAME_MB) + @javax.annotation.Nonnull + private Map mb = new HashMap<>(); + + public static final String SERIALIZED_NAME_MB_LAST_UPDATED = "mb_last_updated"; + @SerializedName(SERIALIZED_NAME_MB_LAST_UPDATED) + @javax.annotation.Nonnull + private OffsetDateTime mbLastUpdated; + public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash"; @SerializedName(SERIALIZED_NAME_SHA256_HASH) @javax.annotation.Nonnull @@ -69,19 +79,55 @@ public class BinaryExternalsResponse { @javax.annotation.Nonnull private OffsetDateTime vtLastUpdated; - public static final String SERIALIZED_NAME_MB = "mb"; - @SerializedName(SERIALIZED_NAME_MB) + public BinaryExternalsResponse() { + } + + public BinaryExternalsResponse mb(@javax.annotation.Nonnull Map mb) { + this.mb = mb; + return this; + } + + public BinaryExternalsResponse putMbItem(String key, Object mbItem) { + if (this.mb == null) { + this.mb = new HashMap<>(); + } + this.mb.put(key, mbItem); + return this; + } + + /** + * MalwareBazaar information + * @return mb + */ @javax.annotation.Nonnull - private Map mb = new HashMap<>(); + public Map getMb() { + return mb; + } - public static final String SERIALIZED_NAME_MB_LAST_UPDATED = "mb_last_updated"; - @SerializedName(SERIALIZED_NAME_MB_LAST_UPDATED) + public void setMb(@javax.annotation.Nonnull Map mb) { + this.mb = mb; + } + + + public BinaryExternalsResponse mbLastUpdated(@javax.annotation.Nonnull OffsetDateTime mbLastUpdated) { + this.mbLastUpdated = mbLastUpdated; + return this; + } + + /** + * MalwareBazaar last updated date + * @return mbLastUpdated + */ @javax.annotation.Nonnull - private OffsetDateTime mbLastUpdated; + public OffsetDateTime getMbLastUpdated() { + return mbLastUpdated; + } - public BinaryExternalsResponse() { + public void setMbLastUpdated(@javax.annotation.Nonnull OffsetDateTime mbLastUpdated) { + this.mbLastUpdated = mbLastUpdated; } + public BinaryExternalsResponse sha256Hash(@javax.annotation.Nonnull String sha256Hash) { this.sha256Hash = sha256Hash; return this; @@ -146,52 +192,6 @@ public void setVtLastUpdated(@javax.annotation.Nonnull OffsetDateTime vtLastUpda this.vtLastUpdated = vtLastUpdated; } - - public BinaryExternalsResponse mb(@javax.annotation.Nonnull Map mb) { - this.mb = mb; - return this; - } - - public BinaryExternalsResponse putMbItem(String key, Object mbItem) { - if (this.mb == null) { - this.mb = new HashMap<>(); - } - this.mb.put(key, mbItem); - return this; - } - - /** - * MalwareBazaar information - * @return mb - */ - @javax.annotation.Nonnull - public Map getMb() { - return mb; - } - - public void setMb(@javax.annotation.Nonnull Map mb) { - this.mb = mb; - } - - - public BinaryExternalsResponse mbLastUpdated(@javax.annotation.Nonnull OffsetDateTime mbLastUpdated) { - this.mbLastUpdated = mbLastUpdated; - return this; - } - - /** - * MalwareBazaar last updated date - * @return mbLastUpdated - */ - @javax.annotation.Nonnull - public OffsetDateTime getMbLastUpdated() { - return mbLastUpdated; - } - - public void setMbLastUpdated(@javax.annotation.Nonnull OffsetDateTime mbLastUpdated) { - this.mbLastUpdated = mbLastUpdated; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -247,28 +247,28 @@ public boolean equals(Object o) { return false; } BinaryExternalsResponse binaryExternalsResponse = (BinaryExternalsResponse) o; - return Objects.equals(this.sha256Hash, binaryExternalsResponse.sha256Hash) && + return Objects.equals(this.mb, binaryExternalsResponse.mb) && + Objects.equals(this.mbLastUpdated, binaryExternalsResponse.mbLastUpdated) && + Objects.equals(this.sha256Hash, binaryExternalsResponse.sha256Hash) && Objects.equals(this.vt, binaryExternalsResponse.vt) && - Objects.equals(this.vtLastUpdated, binaryExternalsResponse.vtLastUpdated) && - Objects.equals(this.mb, binaryExternalsResponse.mb) && - Objects.equals(this.mbLastUpdated, binaryExternalsResponse.mbLastUpdated)&& + Objects.equals(this.vtLastUpdated, binaryExternalsResponse.vtLastUpdated)&& Objects.equals(this.additionalProperties, binaryExternalsResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(sha256Hash, vt, vtLastUpdated, mb, mbLastUpdated, additionalProperties); + return Objects.hash(mb, mbLastUpdated, sha256Hash, vt, vtLastUpdated, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BinaryExternalsResponse {\n"); + sb.append(" mb: ").append(toIndentedString(mb)).append("\n"); + sb.append(" mbLastUpdated: ").append(toIndentedString(mbLastUpdated)).append("\n"); sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); sb.append(" vt: ").append(toIndentedString(vt)).append("\n"); sb.append(" vtLastUpdated: ").append(toIndentedString(vtLastUpdated)).append("\n"); - sb.append(" mb: ").append(toIndentedString(mb)).append("\n"); - sb.append(" mbLastUpdated: ").append(toIndentedString(mbLastUpdated)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -291,10 +291,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("sha_256_hash", "vt", "vt_last_updated", "mb", "mb_last_updated")); + openapiFields = new HashSet(Arrays.asList("mb", "mb_last_updated", "sha_256_hash", "vt", "vt_last_updated")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("sha_256_hash", "vt", "vt_last_updated", "mb", "mb_last_updated")); + openapiRequiredFields = new HashSet(Arrays.asList("mb", "mb_last_updated", "sha_256_hash", "vt", "vt_last_updated")); } /** diff --git a/src/main/java/ai/reveng/model/BinarySearchResult.java b/src/main/java/ai/reveng/model/BinarySearchResult.java index e678069..e9576c3 100644 --- a/src/main/java/ai/reveng/model/BinarySearchResult.java +++ b/src/main/java/ai/reveng/model/BinarySearchResult.java @@ -54,6 +54,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BinarySearchResult { + public static final String SERIALIZED_NAME_ANALYSIS_ID = "analysis_id"; + @SerializedName(SERIALIZED_NAME_ANALYSIS_ID) + @javax.annotation.Nonnull + private Integer analysisId; + public static final String SERIALIZED_NAME_BINARY_ID = "binary_id"; @SerializedName(SERIALIZED_NAME_BINARY_ID) @javax.annotation.Nonnull @@ -64,21 +69,6 @@ public class BinarySearchResult { @javax.annotation.Nonnull private String binaryName; - public static final String SERIALIZED_NAME_ANALYSIS_ID = "analysis_id"; - @SerializedName(SERIALIZED_NAME_ANALYSIS_ID) - @javax.annotation.Nonnull - private Integer analysisId; - - 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) - @javax.annotation.Nullable - private List tags; - public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @javax.annotation.Nonnull @@ -99,47 +89,19 @@ public class BinarySearchResult { @javax.annotation.Nonnull private String ownedBy; - public BinarySearchResult() { - } - - public BinarySearchResult binaryId(@javax.annotation.Nonnull Integer binaryId) { - this.binaryId = binaryId; - return this; - } - - /** - * The binary ID - * @return binaryId - */ + public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash"; + @SerializedName(SERIALIZED_NAME_SHA256_HASH) @javax.annotation.Nonnull - public Integer getBinaryId() { - return binaryId; - } - - public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) { - this.binaryId = binaryId; - } - - - public BinarySearchResult binaryName(@javax.annotation.Nonnull String binaryName) { - this.binaryName = binaryName; - return this; - } + private String sha256Hash; - /** - * The name of the binary - * @return binaryName - */ - @javax.annotation.Nonnull - public String getBinaryName() { - return binaryName; - } + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable + private List tags; - public void setBinaryName(@javax.annotation.Nonnull String binaryName) { - this.binaryName = binaryName; + public BinarySearchResult() { } - public BinarySearchResult analysisId(@javax.annotation.Nonnull Integer analysisId) { this.analysisId = analysisId; return this; @@ -159,49 +121,41 @@ public void setAnalysisId(@javax.annotation.Nonnull Integer analysisId) { } - public BinarySearchResult sha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; + public BinarySearchResult binaryId(@javax.annotation.Nonnull Integer binaryId) { + this.binaryId = binaryId; return this; } /** - * The SHA-256 hash of the binary - * @return sha256Hash + * The binary ID + * @return binaryId */ @javax.annotation.Nonnull - public String getSha256Hash() { - return sha256Hash; + public Integer getBinaryId() { + return binaryId; } - public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; + public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) { + this.binaryId = binaryId; } - public BinarySearchResult tags(@javax.annotation.Nullable List tags) { - this.tags = tags; - return this; - } - - public BinarySearchResult addTagsItem(String tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } - this.tags.add(tagsItem); + public BinarySearchResult binaryName(@javax.annotation.Nonnull String binaryName) { + this.binaryName = binaryName; return this; } /** - * Get tags - * @return tags + * The name of the binary + * @return binaryName */ - @javax.annotation.Nullable - public List getTags() { - return tags; + @javax.annotation.Nonnull + public String getBinaryName() { + return binaryName; } - public void setTags(@javax.annotation.Nullable List tags) { - this.tags = tags; + public void setBinaryName(@javax.annotation.Nonnull String binaryName) { + this.binaryName = binaryName; } @@ -280,6 +234,52 @@ public void setOwnedBy(@javax.annotation.Nonnull String ownedBy) { this.ownedBy = ownedBy; } + + public BinarySearchResult sha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; + return this; + } + + /** + * The SHA-256 hash of the binary + * @return sha256Hash + */ + @javax.annotation.Nonnull + public String getSha256Hash() { + return sha256Hash; + } + + public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; + } + + + public BinarySearchResult tags(@javax.annotation.Nullable List tags) { + this.tags = tags; + return this; + } + + public BinarySearchResult addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * Get tags + * @return tags + */ + @javax.annotation.Nullable + public List getTags() { + return tags; + } + + public void setTags(@javax.annotation.Nullable List tags) { + this.tags = tags; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -335,36 +335,36 @@ public boolean equals(Object o) { return false; } BinarySearchResult binarySearchResult = (BinarySearchResult) o; - return Objects.equals(this.binaryId, binarySearchResult.binaryId) && + return Objects.equals(this.analysisId, binarySearchResult.analysisId) && + Objects.equals(this.binaryId, binarySearchResult.binaryId) && Objects.equals(this.binaryName, binarySearchResult.binaryName) && - Objects.equals(this.analysisId, binarySearchResult.analysisId) && - Objects.equals(this.sha256Hash, binarySearchResult.sha256Hash) && - Objects.equals(this.tags, binarySearchResult.tags) && Objects.equals(this.createdAt, binarySearchResult.createdAt) && Objects.equals(this.modelId, binarySearchResult.modelId) && Objects.equals(this.modelName, binarySearchResult.modelName) && - Objects.equals(this.ownedBy, binarySearchResult.ownedBy)&& + Objects.equals(this.ownedBy, binarySearchResult.ownedBy) && + Objects.equals(this.sha256Hash, binarySearchResult.sha256Hash) && + Objects.equals(this.tags, binarySearchResult.tags)&& Objects.equals(this.additionalProperties, binarySearchResult.additionalProperties); } @Override public int hashCode() { - return Objects.hash(binaryId, binaryName, analysisId, sha256Hash, tags, createdAt, modelId, modelName, ownedBy, additionalProperties); + return Objects.hash(analysisId, binaryId, binaryName, createdAt, modelId, modelName, ownedBy, sha256Hash, tags, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BinarySearchResult {\n"); + sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n"); sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n"); sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n"); - sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n"); - sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); sb.append(" ownedBy: ").append(toIndentedString(ownedBy)).append("\n"); + sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -387,10 +387,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("binary_id", "binary_name", "analysis_id", "sha_256_hash", "tags", "created_at", "model_id", "model_name", "owned_by")); + openapiFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "created_at", "model_id", "model_name", "owned_by", "sha_256_hash", "tags")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("binary_id", "binary_name", "analysis_id", "sha_256_hash", "tags", "created_at", "model_id", "model_name", "owned_by")); + openapiRequiredFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "created_at", "model_id", "model_name", "owned_by", "sha_256_hash", "tags")); } /** @@ -416,6 +416,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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("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("owned_by").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `owned_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("owned_by").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())); } @@ -425,12 +431,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } 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())); } - 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("owned_by").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `owned_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("owned_by").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/CalleeFunctionInfo.java b/src/main/java/ai/reveng/model/CalleeFunctionInfo.java index 88d351e..baf76a9 100644 --- a/src/main/java/ai/reveng/model/CalleeFunctionInfo.java +++ b/src/main/java/ai/reveng/model/CalleeFunctionInfo.java @@ -51,74 +51,74 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CalleeFunctionInfo { - public static final String SERIALIZED_NAME_FUNCTION_ID = "function_id"; - @SerializedName(SERIALIZED_NAME_FUNCTION_ID) + public static final String SERIALIZED_NAME_CALLEE_NAME = "callee_name"; + @SerializedName(SERIALIZED_NAME_CALLEE_NAME) @javax.annotation.Nonnull - private Long functionId; + private String calleeName; - public static final String SERIALIZED_NAME_MATCHED_FUNCTION_ID = "matched_function_id"; - @SerializedName(SERIALIZED_NAME_MATCHED_FUNCTION_ID) - @javax.annotation.Nullable - private Integer matchedFunctionId; + public static final String SERIALIZED_NAME_CALLEE_VADDR = "callee_vaddr"; + @SerializedName(SERIALIZED_NAME_CALLEE_VADDR) + @javax.annotation.Nonnull + private String calleeVaddr; public static final String SERIALIZED_NAME_DASHBOARD_URL = "dashboard_url"; @SerializedName(SERIALIZED_NAME_DASHBOARD_URL) @javax.annotation.Nullable private String dashboardUrl; + 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_IS_EXTERNAL = "is_external"; @SerializedName(SERIALIZED_NAME_IS_EXTERNAL) @javax.annotation.Nullable private Boolean isExternal = false; - public static final String SERIALIZED_NAME_CALLEE_NAME = "callee_name"; - @SerializedName(SERIALIZED_NAME_CALLEE_NAME) - @javax.annotation.Nonnull - private String calleeName; - - public static final String SERIALIZED_NAME_CALLEE_VADDR = "callee_vaddr"; - @SerializedName(SERIALIZED_NAME_CALLEE_VADDR) - @javax.annotation.Nonnull - private String calleeVaddr; + public static final String SERIALIZED_NAME_MATCHED_FUNCTION_ID = "matched_function_id"; + @SerializedName(SERIALIZED_NAME_MATCHED_FUNCTION_ID) + @javax.annotation.Nullable + private Integer matchedFunctionId; public CalleeFunctionInfo() { } - public CalleeFunctionInfo functionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; + public CalleeFunctionInfo calleeName(@javax.annotation.Nonnull String calleeName) { + this.calleeName = calleeName; return this; } /** - * Unique identifier of the function - * @return functionId + * Name of the called function + * @return calleeName */ @javax.annotation.Nonnull - public Long getFunctionId() { - return functionId; + public String getCalleeName() { + return calleeName; } - public void setFunctionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; + public void setCalleeName(@javax.annotation.Nonnull String calleeName) { + this.calleeName = calleeName; } - public CalleeFunctionInfo matchedFunctionId(@javax.annotation.Nullable Integer matchedFunctionId) { - this.matchedFunctionId = matchedFunctionId; + public CalleeFunctionInfo calleeVaddr(@javax.annotation.Nonnull String calleeVaddr) { + this.calleeVaddr = calleeVaddr; return this; } /** - * Get matchedFunctionId - * @return matchedFunctionId + * Virtual address of the called function + * @return calleeVaddr */ - @javax.annotation.Nullable - public Integer getMatchedFunctionId() { - return matchedFunctionId; + @javax.annotation.Nonnull + public String getCalleeVaddr() { + return calleeVaddr; } - public void setMatchedFunctionId(@javax.annotation.Nullable Integer matchedFunctionId) { - this.matchedFunctionId = matchedFunctionId; + public void setCalleeVaddr(@javax.annotation.Nonnull String calleeVaddr) { + this.calleeVaddr = calleeVaddr; } @@ -141,60 +141,60 @@ public void setDashboardUrl(@javax.annotation.Nullable String dashboardUrl) { } - public CalleeFunctionInfo isExternal(@javax.annotation.Nullable Boolean isExternal) { - this.isExternal = isExternal; + public CalleeFunctionInfo functionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; return this; } /** - * Indicates if the function is external - * @return isExternal + * Unique identifier of the function + * @return functionId */ - @javax.annotation.Nullable - public Boolean getIsExternal() { - return isExternal; + @javax.annotation.Nonnull + public Long getFunctionId() { + return functionId; } - public void setIsExternal(@javax.annotation.Nullable Boolean isExternal) { - this.isExternal = isExternal; + public void setFunctionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; } - public CalleeFunctionInfo calleeName(@javax.annotation.Nonnull String calleeName) { - this.calleeName = calleeName; + public CalleeFunctionInfo isExternal(@javax.annotation.Nullable Boolean isExternal) { + this.isExternal = isExternal; return this; } /** - * Name of the called function - * @return calleeName + * Indicates if the function is external + * @return isExternal */ - @javax.annotation.Nonnull - public String getCalleeName() { - return calleeName; + @javax.annotation.Nullable + public Boolean getIsExternal() { + return isExternal; } - public void setCalleeName(@javax.annotation.Nonnull String calleeName) { - this.calleeName = calleeName; + public void setIsExternal(@javax.annotation.Nullable Boolean isExternal) { + this.isExternal = isExternal; } - public CalleeFunctionInfo calleeVaddr(@javax.annotation.Nonnull String calleeVaddr) { - this.calleeVaddr = calleeVaddr; + public CalleeFunctionInfo matchedFunctionId(@javax.annotation.Nullable Integer matchedFunctionId) { + this.matchedFunctionId = matchedFunctionId; return this; } /** - * Virtual address of the called function - * @return calleeVaddr + * Get matchedFunctionId + * @return matchedFunctionId */ - @javax.annotation.Nonnull - public String getCalleeVaddr() { - return calleeVaddr; + @javax.annotation.Nullable + public Integer getMatchedFunctionId() { + return matchedFunctionId; } - public void setCalleeVaddr(@javax.annotation.Nonnull String calleeVaddr) { - this.calleeVaddr = calleeVaddr; + public void setMatchedFunctionId(@javax.annotation.Nullable Integer matchedFunctionId) { + this.matchedFunctionId = matchedFunctionId; } /** @@ -252,30 +252,30 @@ public boolean equals(Object o) { return false; } CalleeFunctionInfo calleeFunctionInfo = (CalleeFunctionInfo) o; - return Objects.equals(this.functionId, calleeFunctionInfo.functionId) && - Objects.equals(this.matchedFunctionId, calleeFunctionInfo.matchedFunctionId) && + return Objects.equals(this.calleeName, calleeFunctionInfo.calleeName) && + Objects.equals(this.calleeVaddr, calleeFunctionInfo.calleeVaddr) && Objects.equals(this.dashboardUrl, calleeFunctionInfo.dashboardUrl) && + Objects.equals(this.functionId, calleeFunctionInfo.functionId) && Objects.equals(this.isExternal, calleeFunctionInfo.isExternal) && - Objects.equals(this.calleeName, calleeFunctionInfo.calleeName) && - Objects.equals(this.calleeVaddr, calleeFunctionInfo.calleeVaddr)&& + Objects.equals(this.matchedFunctionId, calleeFunctionInfo.matchedFunctionId)&& Objects.equals(this.additionalProperties, calleeFunctionInfo.additionalProperties); } @Override public int hashCode() { - return Objects.hash(functionId, matchedFunctionId, dashboardUrl, isExternal, calleeName, calleeVaddr, additionalProperties); + return Objects.hash(calleeName, calleeVaddr, dashboardUrl, functionId, isExternal, matchedFunctionId, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CalleeFunctionInfo {\n"); - sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); - sb.append(" matchedFunctionId: ").append(toIndentedString(matchedFunctionId)).append("\n"); - sb.append(" dashboardUrl: ").append(toIndentedString(dashboardUrl)).append("\n"); - sb.append(" isExternal: ").append(toIndentedString(isExternal)).append("\n"); sb.append(" calleeName: ").append(toIndentedString(calleeName)).append("\n"); sb.append(" calleeVaddr: ").append(toIndentedString(calleeVaddr)).append("\n"); + sb.append(" dashboardUrl: ").append(toIndentedString(dashboardUrl)).append("\n"); + sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); + sb.append(" isExternal: ").append(toIndentedString(isExternal)).append("\n"); + sb.append(" matchedFunctionId: ").append(toIndentedString(matchedFunctionId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -298,10 +298,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("function_id", "matched_function_id", "dashboard_url", "is_external", "callee_name", "callee_vaddr")); + openapiFields = new HashSet(Arrays.asList("callee_name", "callee_vaddr", "dashboard_url", "function_id", "is_external", "matched_function_id")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("function_id", "matched_function_id", "dashboard_url", "callee_name", "callee_vaddr")); + openapiRequiredFields = new HashSet(Arrays.asList("callee_name", "callee_vaddr", "dashboard_url", "function_id", "matched_function_id")); } /** @@ -324,15 +324,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("dashboard_url") != null && !jsonObj.get("dashboard_url").isJsonNull()) && !jsonObj.get("dashboard_url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dashboard_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dashboard_url").toString())); - } if (!jsonObj.get("callee_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `callee_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callee_name").toString())); } if (!jsonObj.get("callee_vaddr").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `callee_vaddr` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callee_vaddr").toString())); } + if ((jsonObj.get("dashboard_url") != null && !jsonObj.get("dashboard_url").isJsonNull()) && !jsonObj.get("dashboard_url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dashboard_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dashboard_url").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/CallerFunctionInfo.java b/src/main/java/ai/reveng/model/CallerFunctionInfo.java index dc4e1cf..b89383b 100644 --- a/src/main/java/ai/reveng/model/CallerFunctionInfo.java +++ b/src/main/java/ai/reveng/model/CallerFunctionInfo.java @@ -51,74 +51,74 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CallerFunctionInfo { - public static final String SERIALIZED_NAME_FUNCTION_ID = "function_id"; - @SerializedName(SERIALIZED_NAME_FUNCTION_ID) + public static final String SERIALIZED_NAME_CALLER_NAME = "caller_name"; + @SerializedName(SERIALIZED_NAME_CALLER_NAME) @javax.annotation.Nonnull - private Long functionId; + private String callerName; - public static final String SERIALIZED_NAME_MATCHED_FUNCTION_ID = "matched_function_id"; - @SerializedName(SERIALIZED_NAME_MATCHED_FUNCTION_ID) - @javax.annotation.Nullable - private Integer matchedFunctionId; + public static final String SERIALIZED_NAME_CALLER_VADDR = "caller_vaddr"; + @SerializedName(SERIALIZED_NAME_CALLER_VADDR) + @javax.annotation.Nonnull + private String callerVaddr; public static final String SERIALIZED_NAME_DASHBOARD_URL = "dashboard_url"; @SerializedName(SERIALIZED_NAME_DASHBOARD_URL) @javax.annotation.Nullable private String dashboardUrl; + 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_IS_EXTERNAL = "is_external"; @SerializedName(SERIALIZED_NAME_IS_EXTERNAL) @javax.annotation.Nullable private Boolean isExternal = false; - public static final String SERIALIZED_NAME_CALLER_NAME = "caller_name"; - @SerializedName(SERIALIZED_NAME_CALLER_NAME) - @javax.annotation.Nonnull - private String callerName; - - public static final String SERIALIZED_NAME_CALLER_VADDR = "caller_vaddr"; - @SerializedName(SERIALIZED_NAME_CALLER_VADDR) - @javax.annotation.Nonnull - private String callerVaddr; + public static final String SERIALIZED_NAME_MATCHED_FUNCTION_ID = "matched_function_id"; + @SerializedName(SERIALIZED_NAME_MATCHED_FUNCTION_ID) + @javax.annotation.Nullable + private Integer matchedFunctionId; public CallerFunctionInfo() { } - public CallerFunctionInfo functionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; + public CallerFunctionInfo callerName(@javax.annotation.Nonnull String callerName) { + this.callerName = callerName; return this; } /** - * Unique identifier of the function - * @return functionId + * Name of the calling function + * @return callerName */ @javax.annotation.Nonnull - public Long getFunctionId() { - return functionId; + public String getCallerName() { + return callerName; } - public void setFunctionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; + public void setCallerName(@javax.annotation.Nonnull String callerName) { + this.callerName = callerName; } - public CallerFunctionInfo matchedFunctionId(@javax.annotation.Nullable Integer matchedFunctionId) { - this.matchedFunctionId = matchedFunctionId; + public CallerFunctionInfo callerVaddr(@javax.annotation.Nonnull String callerVaddr) { + this.callerVaddr = callerVaddr; return this; } /** - * Get matchedFunctionId - * @return matchedFunctionId + * Virtual address of the calling function + * @return callerVaddr */ - @javax.annotation.Nullable - public Integer getMatchedFunctionId() { - return matchedFunctionId; + @javax.annotation.Nonnull + public String getCallerVaddr() { + return callerVaddr; } - public void setMatchedFunctionId(@javax.annotation.Nullable Integer matchedFunctionId) { - this.matchedFunctionId = matchedFunctionId; + public void setCallerVaddr(@javax.annotation.Nonnull String callerVaddr) { + this.callerVaddr = callerVaddr; } @@ -141,60 +141,60 @@ public void setDashboardUrl(@javax.annotation.Nullable String dashboardUrl) { } - public CallerFunctionInfo isExternal(@javax.annotation.Nullable Boolean isExternal) { - this.isExternal = isExternal; + public CallerFunctionInfo functionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; return this; } /** - * Indicates if the function is external - * @return isExternal + * Unique identifier of the function + * @return functionId */ - @javax.annotation.Nullable - public Boolean getIsExternal() { - return isExternal; + @javax.annotation.Nonnull + public Long getFunctionId() { + return functionId; } - public void setIsExternal(@javax.annotation.Nullable Boolean isExternal) { - this.isExternal = isExternal; + public void setFunctionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; } - public CallerFunctionInfo callerName(@javax.annotation.Nonnull String callerName) { - this.callerName = callerName; + public CallerFunctionInfo isExternal(@javax.annotation.Nullable Boolean isExternal) { + this.isExternal = isExternal; return this; } /** - * Name of the calling function - * @return callerName + * Indicates if the function is external + * @return isExternal */ - @javax.annotation.Nonnull - public String getCallerName() { - return callerName; + @javax.annotation.Nullable + public Boolean getIsExternal() { + return isExternal; } - public void setCallerName(@javax.annotation.Nonnull String callerName) { - this.callerName = callerName; + public void setIsExternal(@javax.annotation.Nullable Boolean isExternal) { + this.isExternal = isExternal; } - public CallerFunctionInfo callerVaddr(@javax.annotation.Nonnull String callerVaddr) { - this.callerVaddr = callerVaddr; + public CallerFunctionInfo matchedFunctionId(@javax.annotation.Nullable Integer matchedFunctionId) { + this.matchedFunctionId = matchedFunctionId; return this; } /** - * Virtual address of the calling function - * @return callerVaddr + * Get matchedFunctionId + * @return matchedFunctionId */ - @javax.annotation.Nonnull - public String getCallerVaddr() { - return callerVaddr; + @javax.annotation.Nullable + public Integer getMatchedFunctionId() { + return matchedFunctionId; } - public void setCallerVaddr(@javax.annotation.Nonnull String callerVaddr) { - this.callerVaddr = callerVaddr; + public void setMatchedFunctionId(@javax.annotation.Nullable Integer matchedFunctionId) { + this.matchedFunctionId = matchedFunctionId; } /** @@ -252,30 +252,30 @@ public boolean equals(Object o) { return false; } CallerFunctionInfo callerFunctionInfo = (CallerFunctionInfo) o; - return Objects.equals(this.functionId, callerFunctionInfo.functionId) && - Objects.equals(this.matchedFunctionId, callerFunctionInfo.matchedFunctionId) && + return Objects.equals(this.callerName, callerFunctionInfo.callerName) && + Objects.equals(this.callerVaddr, callerFunctionInfo.callerVaddr) && Objects.equals(this.dashboardUrl, callerFunctionInfo.dashboardUrl) && + Objects.equals(this.functionId, callerFunctionInfo.functionId) && Objects.equals(this.isExternal, callerFunctionInfo.isExternal) && - Objects.equals(this.callerName, callerFunctionInfo.callerName) && - Objects.equals(this.callerVaddr, callerFunctionInfo.callerVaddr)&& + Objects.equals(this.matchedFunctionId, callerFunctionInfo.matchedFunctionId)&& Objects.equals(this.additionalProperties, callerFunctionInfo.additionalProperties); } @Override public int hashCode() { - return Objects.hash(functionId, matchedFunctionId, dashboardUrl, isExternal, callerName, callerVaddr, additionalProperties); + return Objects.hash(callerName, callerVaddr, dashboardUrl, functionId, isExternal, matchedFunctionId, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CallerFunctionInfo {\n"); - sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); - sb.append(" matchedFunctionId: ").append(toIndentedString(matchedFunctionId)).append("\n"); - sb.append(" dashboardUrl: ").append(toIndentedString(dashboardUrl)).append("\n"); - sb.append(" isExternal: ").append(toIndentedString(isExternal)).append("\n"); sb.append(" callerName: ").append(toIndentedString(callerName)).append("\n"); sb.append(" callerVaddr: ").append(toIndentedString(callerVaddr)).append("\n"); + sb.append(" dashboardUrl: ").append(toIndentedString(dashboardUrl)).append("\n"); + sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); + sb.append(" isExternal: ").append(toIndentedString(isExternal)).append("\n"); + sb.append(" matchedFunctionId: ").append(toIndentedString(matchedFunctionId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -298,10 +298,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("function_id", "matched_function_id", "dashboard_url", "is_external", "caller_name", "caller_vaddr")); + openapiFields = new HashSet(Arrays.asList("caller_name", "caller_vaddr", "dashboard_url", "function_id", "is_external", "matched_function_id")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("function_id", "matched_function_id", "dashboard_url", "caller_name", "caller_vaddr")); + openapiRequiredFields = new HashSet(Arrays.asList("caller_name", "caller_vaddr", "dashboard_url", "function_id", "matched_function_id")); } /** @@ -324,15 +324,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("dashboard_url") != null && !jsonObj.get("dashboard_url").isJsonNull()) && !jsonObj.get("dashboard_url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dashboard_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dashboard_url").toString())); - } if (!jsonObj.get("caller_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caller_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("caller_name").toString())); } if (!jsonObj.get("caller_vaddr").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caller_vaddr` to be a primitive type in the JSON string but got `%s`", jsonObj.get("caller_vaddr").toString())); } + if ((jsonObj.get("dashboard_url") != null && !jsonObj.get("dashboard_url").isJsonNull()) && !jsonObj.get("dashboard_url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dashboard_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dashboard_url").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/Capability.java b/src/main/java/ai/reveng/model/Capability.java index 4792de5..76ac17b 100644 --- a/src/main/java/ai/reveng/model/Capability.java +++ b/src/main/java/ai/reveng/model/Capability.java @@ -53,6 +53,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Capability { + public static final String SERIALIZED_NAME_CAPABILITIES = "capabilities"; + @SerializedName(SERIALIZED_NAME_CAPABILITIES) + @javax.annotation.Nonnull + private List capabilities = new ArrayList<>(); + public static final String SERIALIZED_NAME_FUNCTION_NAME = "function_name"; @SerializedName(SERIALIZED_NAME_FUNCTION_NAME) @javax.annotation.Nonnull @@ -63,14 +68,36 @@ public class Capability { @javax.annotation.Nonnull private Long functionVaddr; - public static final String SERIALIZED_NAME_CAPABILITIES = "capabilities"; - @SerializedName(SERIALIZED_NAME_CAPABILITIES) + public Capability() { + } + + public Capability capabilities(@javax.annotation.Nonnull List capabilities) { + this.capabilities = capabilities; + return this; + } + + public Capability addCapabilitiesItem(String capabilitiesItem) { + if (this.capabilities == null) { + this.capabilities = new ArrayList<>(); + } + this.capabilities.add(capabilitiesItem); + return this; + } + + /** + * The list of capabilities associated with the function + * @return capabilities + */ @javax.annotation.Nonnull - private List capabilities = new ArrayList<>(); + public List getCapabilities() { + return capabilities; + } - public Capability() { + public void setCapabilities(@javax.annotation.Nonnull List capabilities) { + this.capabilities = capabilities; } + public Capability functionName(@javax.annotation.Nonnull String functionName) { this.functionName = functionName; return this; @@ -108,33 +135,6 @@ public void setFunctionVaddr(@javax.annotation.Nonnull Long functionVaddr) { this.functionVaddr = functionVaddr; } - - public Capability capabilities(@javax.annotation.Nonnull List capabilities) { - this.capabilities = capabilities; - return this; - } - - public Capability addCapabilitiesItem(String capabilitiesItem) { - if (this.capabilities == null) { - this.capabilities = new ArrayList<>(); - } - this.capabilities.add(capabilitiesItem); - return this; - } - - /** - * The list of capabilities associated with the function - * @return capabilities - */ - @javax.annotation.Nonnull - public List getCapabilities() { - return capabilities; - } - - public void setCapabilities(@javax.annotation.Nonnull List capabilities) { - this.capabilities = capabilities; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -190,24 +190,24 @@ public boolean equals(Object o) { return false; } Capability capability = (Capability) o; - return Objects.equals(this.functionName, capability.functionName) && - Objects.equals(this.functionVaddr, capability.functionVaddr) && - Objects.equals(this.capabilities, capability.capabilities)&& + return Objects.equals(this.capabilities, capability.capabilities) && + Objects.equals(this.functionName, capability.functionName) && + Objects.equals(this.functionVaddr, capability.functionVaddr)&& Objects.equals(this.additionalProperties, capability.additionalProperties); } @Override public int hashCode() { - return Objects.hash(functionName, functionVaddr, capabilities, additionalProperties); + return Objects.hash(capabilities, functionName, functionVaddr, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Capability {\n"); + sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n"); sb.append(" functionVaddr: ").append(toIndentedString(functionVaddr)).append("\n"); - sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -230,10 +230,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("function_name", "function_vaddr", "capabilities")); + openapiFields = new HashSet(Arrays.asList("capabilities", "function_name", "function_vaddr")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("function_name", "function_vaddr", "capabilities")); + openapiRequiredFields = new HashSet(Arrays.asList("capabilities", "function_name", "function_vaddr")); } /** @@ -256,15 +256,15 @@ 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())); - } // ensure the required json array is present if (jsonObj.get("capabilities") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("capabilities").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `capabilities` to be an array in the JSON string but got `%s`", jsonObj.get("capabilities").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())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/CodeSignatureModel.java b/src/main/java/ai/reveng/model/CodeSignatureModel.java index a5468a8..3f866f4 100644 --- a/src/main/java/ai/reveng/model/CodeSignatureModel.java +++ b/src/main/java/ai/reveng/model/CodeSignatureModel.java @@ -54,6 +54,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CodeSignatureModel { + public static final String SERIALIZED_NAME_SIGNATURES = "signatures"; + @SerializedName(SERIALIZED_NAME_SIGNATURES) + @javax.annotation.Nonnull + private List signatures = new ArrayList<>(); + public static final String SERIALIZED_NAME_SIGNED = "signed"; @SerializedName(SERIALIZED_NAME_SIGNED) @javax.annotation.Nonnull @@ -64,14 +69,36 @@ public class CodeSignatureModel { @javax.annotation.Nonnull private Boolean validSignature; - public static final String SERIALIZED_NAME_SIGNATURES = "signatures"; - @SerializedName(SERIALIZED_NAME_SIGNATURES) + public CodeSignatureModel() { + } + + public CodeSignatureModel signatures(@javax.annotation.Nonnull List signatures) { + this.signatures = signatures; + return this; + } + + public CodeSignatureModel addSignaturesItem(SingleCodeSignatureModel signaturesItem) { + if (this.signatures == null) { + this.signatures = new ArrayList<>(); + } + this.signatures.add(signaturesItem); + return this; + } + + /** + * Get signatures + * @return signatures + */ @javax.annotation.Nonnull - private List signatures = new ArrayList<>(); + public List getSignatures() { + return signatures; + } - public CodeSignatureModel() { + public void setSignatures(@javax.annotation.Nonnull List signatures) { + this.signatures = signatures; } + public CodeSignatureModel signed(@javax.annotation.Nonnull Boolean signed) { this.signed = signed; return this; @@ -109,33 +136,6 @@ public void setValidSignature(@javax.annotation.Nonnull Boolean validSignature) this.validSignature = validSignature; } - - public CodeSignatureModel signatures(@javax.annotation.Nonnull List signatures) { - this.signatures = signatures; - return this; - } - - public CodeSignatureModel addSignaturesItem(SingleCodeSignatureModel signaturesItem) { - if (this.signatures == null) { - this.signatures = new ArrayList<>(); - } - this.signatures.add(signaturesItem); - return this; - } - - /** - * Get signatures - * @return signatures - */ - @javax.annotation.Nonnull - public List getSignatures() { - return signatures; - } - - public void setSignatures(@javax.annotation.Nonnull List signatures) { - this.signatures = signatures; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -191,24 +191,24 @@ public boolean equals(Object o) { return false; } CodeSignatureModel codeSignatureModel = (CodeSignatureModel) o; - return Objects.equals(this.signed, codeSignatureModel.signed) && - Objects.equals(this.validSignature, codeSignatureModel.validSignature) && - Objects.equals(this.signatures, codeSignatureModel.signatures)&& + return Objects.equals(this.signatures, codeSignatureModel.signatures) && + Objects.equals(this.signed, codeSignatureModel.signed) && + Objects.equals(this.validSignature, codeSignatureModel.validSignature)&& Objects.equals(this.additionalProperties, codeSignatureModel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(signed, validSignature, signatures, additionalProperties); + return Objects.hash(signatures, signed, validSignature, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CodeSignatureModel {\n"); + sb.append(" signatures: ").append(toIndentedString(signatures)).append("\n"); sb.append(" signed: ").append(toIndentedString(signed)).append("\n"); sb.append(" validSignature: ").append(toIndentedString(validSignature)).append("\n"); - sb.append(" signatures: ").append(toIndentedString(signatures)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -231,10 +231,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("signed", "valid_signature", "signatures")); + openapiFields = new HashSet(Arrays.asList("signatures", "signed", "valid_signature")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("signed", "valid_signature", "signatures")); + openapiRequiredFields = new HashSet(Arrays.asList("signatures", "signed", "valid_signature")); } /** diff --git a/src/main/java/ai/reveng/model/CollectionBinaryResponse.java b/src/main/java/ai/reveng/model/CollectionBinaryResponse.java index c05cc4d..c886c40 100644 --- a/src/main/java/ai/reveng/model/CollectionBinaryResponse.java +++ b/src/main/java/ai/reveng/model/CollectionBinaryResponse.java @@ -67,16 +67,6 @@ public class CollectionBinaryResponse { @javax.annotation.Nonnull private String binaryName; - public static final String SERIALIZED_NAME_OWNER_ID = "owner_id"; - @SerializedName(SERIALIZED_NAME_OWNER_ID) - @javax.annotation.Nonnull - private Integer ownerId; - - 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_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @javax.annotation.Nonnull @@ -87,6 +77,16 @@ public class CollectionBinaryResponse { @javax.annotation.Nonnull private Boolean isSystemAnalysis; + public static final String SERIALIZED_NAME_OWNER_ID = "owner_id"; + @SerializedName(SERIALIZED_NAME_OWNER_ID) + @javax.annotation.Nonnull + private Integer ownerId; + + public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash"; + @SerializedName(SERIALIZED_NAME_SHA256_HASH) + @javax.annotation.Nonnull + private String sha256Hash; + public CollectionBinaryResponse() { } @@ -147,79 +147,79 @@ public void setBinaryName(@javax.annotation.Nonnull String binaryName) { } - public CollectionBinaryResponse ownerId(@javax.annotation.Nonnull Integer ownerId) { - this.ownerId = ownerId; + public CollectionBinaryResponse createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; return this; } /** - * Binary owner - * @return ownerId + * Binary creation date + * @return createdAt */ @javax.annotation.Nonnull - public Integer getOwnerId() { - return ownerId; + public OffsetDateTime getCreatedAt() { + return createdAt; } - public void setOwnerId(@javax.annotation.Nonnull Integer ownerId) { - this.ownerId = ownerId; + public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; } - public CollectionBinaryResponse sha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; + public CollectionBinaryResponse isSystemAnalysis(@javax.annotation.Nonnull Boolean isSystemAnalysis) { + this.isSystemAnalysis = isSystemAnalysis; return this; } /** - * Binary SHA-256 hash - * @return sha256Hash + * Is the analysis owned by a RevEng.AI account + * @return isSystemAnalysis */ @javax.annotation.Nonnull - public String getSha256Hash() { - return sha256Hash; + public Boolean getIsSystemAnalysis() { + return isSystemAnalysis; } - public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; + public void setIsSystemAnalysis(@javax.annotation.Nonnull Boolean isSystemAnalysis) { + this.isSystemAnalysis = isSystemAnalysis; } - public CollectionBinaryResponse createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CollectionBinaryResponse ownerId(@javax.annotation.Nonnull Integer ownerId) { + this.ownerId = ownerId; return this; } /** - * Binary creation date - * @return createdAt + * Binary owner + * @return ownerId */ @javax.annotation.Nonnull - public OffsetDateTime getCreatedAt() { - return createdAt; + public Integer getOwnerId() { + return ownerId; } - public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; + public void setOwnerId(@javax.annotation.Nonnull Integer ownerId) { + this.ownerId = ownerId; } - public CollectionBinaryResponse isSystemAnalysis(@javax.annotation.Nonnull Boolean isSystemAnalysis) { - this.isSystemAnalysis = isSystemAnalysis; + public CollectionBinaryResponse sha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; return this; } /** - * Is the analysis owned by a RevEng.AI account - * @return isSystemAnalysis + * Binary SHA-256 hash + * @return sha256Hash */ @javax.annotation.Nonnull - public Boolean getIsSystemAnalysis() { - return isSystemAnalysis; + public String getSha256Hash() { + return sha256Hash; } - public void setIsSystemAnalysis(@javax.annotation.Nonnull Boolean isSystemAnalysis) { - this.isSystemAnalysis = isSystemAnalysis; + public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; } /** @@ -280,16 +280,16 @@ public boolean equals(Object o) { return Objects.equals(this.analysisId, collectionBinaryResponse.analysisId) && Objects.equals(this.binaryId, collectionBinaryResponse.binaryId) && Objects.equals(this.binaryName, collectionBinaryResponse.binaryName) && - Objects.equals(this.ownerId, collectionBinaryResponse.ownerId) && - Objects.equals(this.sha256Hash, collectionBinaryResponse.sha256Hash) && Objects.equals(this.createdAt, collectionBinaryResponse.createdAt) && - Objects.equals(this.isSystemAnalysis, collectionBinaryResponse.isSystemAnalysis)&& + Objects.equals(this.isSystemAnalysis, collectionBinaryResponse.isSystemAnalysis) && + Objects.equals(this.ownerId, collectionBinaryResponse.ownerId) && + Objects.equals(this.sha256Hash, collectionBinaryResponse.sha256Hash)&& Objects.equals(this.additionalProperties, collectionBinaryResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(analysisId, binaryId, binaryName, ownerId, sha256Hash, createdAt, isSystemAnalysis, additionalProperties); + return Objects.hash(analysisId, binaryId, binaryName, createdAt, isSystemAnalysis, ownerId, sha256Hash, additionalProperties); } @Override @@ -299,10 +299,10 @@ public String toString() { sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n"); sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n"); sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n"); - sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n"); - sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" isSystemAnalysis: ").append(toIndentedString(isSystemAnalysis)).append("\n"); + sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n"); + sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -325,10 +325,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at", "is_system_analysis")); + openapiFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "created_at", "is_system_analysis", "owner_id", "sha_256_hash")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "owner_id", "sha_256_hash", "created_at", "is_system_analysis")); + openapiRequiredFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "created_at", "is_system_analysis", "owner_id", "sha_256_hash")); } /** diff --git a/src/main/java/ai/reveng/model/CollectionCreateRequest.java b/src/main/java/ai/reveng/model/CollectionCreateRequest.java index 4f5ea2f..771840a 100644 --- a/src/main/java/ai/reveng/model/CollectionCreateRequest.java +++ b/src/main/java/ai/reveng/model/CollectionCreateRequest.java @@ -55,39 +55,66 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CollectionCreateRequest { + public static final String SERIALIZED_NAME_BINARIES = "binaries"; + @SerializedName(SERIALIZED_NAME_BINARIES) + @javax.annotation.Nullable + private List binaries; + public static final String SERIALIZED_NAME_COLLECTION_NAME = "collection_name"; @SerializedName(SERIALIZED_NAME_COLLECTION_NAME) @javax.annotation.Nonnull private String collectionName; + public static final String SERIALIZED_NAME_COLLECTION_SCOPE = "collection_scope"; + @SerializedName(SERIALIZED_NAME_COLLECTION_SCOPE) + @javax.annotation.Nullable + private CollectionScope collectionScope; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @javax.annotation.Nonnull private String description; - public static final String SERIALIZED_NAME_COLLECTION_SCOPE = "collection_scope"; - @SerializedName(SERIALIZED_NAME_COLLECTION_SCOPE) - @javax.annotation.Nullable - private CollectionScope collectionScope; + 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_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @javax.annotation.Nullable private List tags; - public static final String SERIALIZED_NAME_BINARIES = "binaries"; - @SerializedName(SERIALIZED_NAME_BINARIES) - @javax.annotation.Nullable - private List binaries; + public CollectionCreateRequest() { + } - public static final String SERIALIZED_NAME_MODEL_ID = "model_id"; - @SerializedName(SERIALIZED_NAME_MODEL_ID) - @javax.annotation.Nonnull - private Integer modelId; + public CollectionCreateRequest binaries(@javax.annotation.Nullable List binaries) { + this.binaries = binaries; + return this; + } - public CollectionCreateRequest() { + public CollectionCreateRequest addBinariesItem(Integer binariesItem) { + if (this.binaries == null) { + this.binaries = new ArrayList<>(); + } + this.binaries.add(binariesItem); + return this; } + /** + * Get binaries + * @return binaries + */ + @javax.annotation.Nullable + public List getBinaries() { + return binaries; + } + + public void setBinaries(@javax.annotation.Nullable List binaries) { + this.binaries = binaries; + } + + public CollectionCreateRequest collectionName(@javax.annotation.Nonnull String collectionName) { this.collectionName = collectionName; return this; @@ -107,6 +134,25 @@ public void setCollectionName(@javax.annotation.Nonnull String collectionName) { } + public CollectionCreateRequest collectionScope(@javax.annotation.Nullable CollectionScope collectionScope) { + this.collectionScope = collectionScope; + return this; + } + + /** + * Get collectionScope + * @return collectionScope + */ + @javax.annotation.Nullable + public CollectionScope getCollectionScope() { + return collectionScope; + } + + public void setCollectionScope(@javax.annotation.Nullable CollectionScope collectionScope) { + this.collectionScope = collectionScope; + } + + public CollectionCreateRequest description(@javax.annotation.Nonnull String description) { this.description = description; return this; @@ -126,22 +172,22 @@ public void setDescription(@javax.annotation.Nonnull String description) { } - public CollectionCreateRequest collectionScope(@javax.annotation.Nullable CollectionScope collectionScope) { - this.collectionScope = collectionScope; + public CollectionCreateRequest modelId(@javax.annotation.Nonnull Integer modelId) { + this.modelId = modelId; return this; } /** - * Get collectionScope - * @return collectionScope + * Get modelId + * @return modelId */ - @javax.annotation.Nullable - public CollectionScope getCollectionScope() { - return collectionScope; + @javax.annotation.Nonnull + public Integer getModelId() { + return modelId; } - public void setCollectionScope(@javax.annotation.Nullable CollectionScope collectionScope) { - this.collectionScope = collectionScope; + public void setModelId(@javax.annotation.Nonnull Integer modelId) { + this.modelId = modelId; } @@ -171,52 +217,6 @@ public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - - public CollectionCreateRequest binaries(@javax.annotation.Nullable List binaries) { - this.binaries = binaries; - return this; - } - - public CollectionCreateRequest addBinariesItem(Integer binariesItem) { - if (this.binaries == null) { - this.binaries = new ArrayList<>(); - } - this.binaries.add(binariesItem); - return this; - } - - /** - * Get binaries - * @return binaries - */ - @javax.annotation.Nullable - public List getBinaries() { - return binaries; - } - - public void setBinaries(@javax.annotation.Nullable List binaries) { - this.binaries = binaries; - } - - - public CollectionCreateRequest modelId(@javax.annotation.Nonnull Integer modelId) { - this.modelId = modelId; - return this; - } - - /** - * Get modelId - * @return modelId - */ - @javax.annotation.Nonnull - public Integer getModelId() { - return modelId; - } - - public void setModelId(@javax.annotation.Nonnull Integer modelId) { - this.modelId = modelId; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -272,12 +272,12 @@ public boolean equals(Object o) { return false; } CollectionCreateRequest collectionCreateRequest = (CollectionCreateRequest) o; - return Objects.equals(this.collectionName, collectionCreateRequest.collectionName) && - Objects.equals(this.description, collectionCreateRequest.description) && + return Objects.equals(this.binaries, collectionCreateRequest.binaries) && + Objects.equals(this.collectionName, collectionCreateRequest.collectionName) && Objects.equals(this.collectionScope, collectionCreateRequest.collectionScope) && - Objects.equals(this.tags, collectionCreateRequest.tags) && - Objects.equals(this.binaries, collectionCreateRequest.binaries) && - Objects.equals(this.modelId, collectionCreateRequest.modelId)&& + Objects.equals(this.description, collectionCreateRequest.description) && + Objects.equals(this.modelId, collectionCreateRequest.modelId) && + Objects.equals(this.tags, collectionCreateRequest.tags)&& Objects.equals(this.additionalProperties, collectionCreateRequest.additionalProperties); } @@ -287,7 +287,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(collectionName, description, collectionScope, tags, binaries, modelId, additionalProperties); + return Objects.hash(binaries, collectionName, collectionScope, description, modelId, tags, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -301,12 +301,12 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CollectionCreateRequest {\n"); + sb.append(" binaries: ").append(toIndentedString(binaries)).append("\n"); sb.append(" collectionName: ").append(toIndentedString(collectionName)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" collectionScope: ").append(toIndentedString(collectionScope)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" binaries: ").append(toIndentedString(binaries)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -329,7 +329,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("collection_name", "description", "collection_scope", "tags", "binaries", "model_id")); + openapiFields = new HashSet(Arrays.asList("binaries", "collection_name", "collection_scope", "description", "model_id", "tags")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("collection_name", "description", "model_id")); @@ -355,24 +355,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("binaries") != null && !jsonObj.get("binaries").isJsonNull() && !jsonObj.get("binaries").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binaries` to be an array in the JSON string but got `%s`", jsonObj.get("binaries").toString())); + } if (!jsonObj.get("collection_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `collection_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("collection_name").toString())); } - if (!jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } // validate the optional field `collection_scope` if (jsonObj.get("collection_scope") != null && !jsonObj.get("collection_scope").isJsonNull()) { CollectionScope.validateJsonElement(jsonObj.get("collection_scope")); } + if (!jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } // ensure the optional json data is an array if present if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !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 optional json data is an array if present - if (jsonObj.get("binaries") != null && !jsonObj.get("binaries").isJsonNull() && !jsonObj.get("binaries").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binaries` to be an array in the JSON string but got `%s`", jsonObj.get("binaries").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/CollectionListItem.java b/src/main/java/ai/reveng/model/CollectionListItem.java index c5e131f..bdbb441 100644 --- a/src/main/java/ai/reveng/model/CollectionListItem.java +++ b/src/main/java/ai/reveng/model/CollectionListItem.java @@ -55,56 +55,56 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CollectionListItem { + public static final String SERIALIZED_NAME_COLLECTION_ID = "collection_id"; + @SerializedName(SERIALIZED_NAME_COLLECTION_ID) + @javax.annotation.Nonnull + private Integer collectionId; + public static final String SERIALIZED_NAME_COLLECTION_NAME = "collection_name"; @SerializedName(SERIALIZED_NAME_COLLECTION_NAME) @javax.annotation.Nonnull private String collectionName; - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) + public static final String SERIALIZED_NAME_COLLECTION_OWNER = "collection_owner"; + @SerializedName(SERIALIZED_NAME_COLLECTION_OWNER) @javax.annotation.Nonnull - private String description; + private String collectionOwner; public static final String SERIALIZED_NAME_COLLECTION_SCOPE = "collection_scope"; @SerializedName(SERIALIZED_NAME_COLLECTION_SCOPE) @javax.annotation.Nonnull private String collectionScope; - public static final String SERIALIZED_NAME_COLLECTION_OWNER = "collection_owner"; - @SerializedName(SERIALIZED_NAME_COLLECTION_OWNER) - @javax.annotation.Nonnull - private String collectionOwner; - - public static final String SERIALIZED_NAME_OFFICIAL_COLLECTION = "official_collection"; - @SerializedName(SERIALIZED_NAME_OFFICIAL_COLLECTION) + public static final String SERIALIZED_NAME_COLLECTION_SIZE = "collection_size"; + @SerializedName(SERIALIZED_NAME_COLLECTION_SIZE) @javax.annotation.Nonnull - private Boolean officialCollection; + private Integer collectionSize; public static final String SERIALIZED_NAME_COLLECTION_TAGS = "collection_tags"; @SerializedName(SERIALIZED_NAME_COLLECTION_TAGS) @javax.annotation.Nullable private List collectionTags = new ArrayList<>(); - public static final String SERIALIZED_NAME_COLLECTION_SIZE = "collection_size"; - @SerializedName(SERIALIZED_NAME_COLLECTION_SIZE) - @javax.annotation.Nonnull - private Integer collectionSize; - - public static final String SERIALIZED_NAME_COLLECTION_ID = "collection_id"; - @SerializedName(SERIALIZED_NAME_COLLECTION_ID) - @javax.annotation.Nonnull - private Integer collectionId; - public static final String SERIALIZED_NAME_CREATION = "creation"; @SerializedName(SERIALIZED_NAME_CREATION) @javax.annotation.Nonnull private OffsetDateTime creation; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nonnull + private String description; + 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_OFFICIAL_COLLECTION = "official_collection"; + @SerializedName(SERIALIZED_NAME_OFFICIAL_COLLECTION) + @javax.annotation.Nonnull + private Boolean officialCollection; + public static final String SERIALIZED_NAME_TEAM_ID = "team_id"; @SerializedName(SERIALIZED_NAME_TEAM_ID) @javax.annotation.Nullable @@ -113,6 +113,25 @@ public class CollectionListItem { public CollectionListItem() { } + public CollectionListItem collectionId(@javax.annotation.Nonnull Integer collectionId) { + this.collectionId = collectionId; + return this; + } + + /** + * The ID of the collection + * @return collectionId + */ + @javax.annotation.Nonnull + public Integer getCollectionId() { + return collectionId; + } + + public void setCollectionId(@javax.annotation.Nonnull Integer collectionId) { + this.collectionId = collectionId; + } + + public CollectionListItem collectionName(@javax.annotation.Nonnull String collectionName) { this.collectionName = collectionName; return this; @@ -132,22 +151,22 @@ public void setCollectionName(@javax.annotation.Nonnull String collectionName) { } - public CollectionListItem description(@javax.annotation.Nonnull String description) { - this.description = description; + public CollectionListItem collectionOwner(@javax.annotation.Nonnull String collectionOwner) { + this.collectionOwner = collectionOwner; return this; } /** - * The description of the collection - * @return description + * The owner of the collection + * @return collectionOwner */ @javax.annotation.Nonnull - public String getDescription() { - return description; + public String getCollectionOwner() { + return collectionOwner; } - public void setDescription(@javax.annotation.Nonnull String description) { - this.description = description; + public void setCollectionOwner(@javax.annotation.Nonnull String collectionOwner) { + this.collectionOwner = collectionOwner; } @@ -170,41 +189,22 @@ public void setCollectionScope(@javax.annotation.Nonnull String collectionScope) } - public CollectionListItem collectionOwner(@javax.annotation.Nonnull String collectionOwner) { - this.collectionOwner = collectionOwner; - return this; - } - - /** - * The owner of the collection - * @return collectionOwner - */ - @javax.annotation.Nonnull - public String getCollectionOwner() { - return collectionOwner; - } - - public void setCollectionOwner(@javax.annotation.Nonnull String collectionOwner) { - this.collectionOwner = collectionOwner; - } - - - public CollectionListItem officialCollection(@javax.annotation.Nonnull Boolean officialCollection) { - this.officialCollection = officialCollection; + public CollectionListItem collectionSize(@javax.annotation.Nonnull Integer collectionSize) { + this.collectionSize = collectionSize; return this; } /** - * Whether the collection is maintained by RevEng.AI - * @return officialCollection + * The size of the collection + * @return collectionSize */ @javax.annotation.Nonnull - public Boolean getOfficialCollection() { - return officialCollection; + public Integer getCollectionSize() { + return collectionSize; } - public void setOfficialCollection(@javax.annotation.Nonnull Boolean officialCollection) { - this.officialCollection = officialCollection; + public void setCollectionSize(@javax.annotation.Nonnull Integer collectionSize) { + this.collectionSize = collectionSize; } @@ -235,79 +235,79 @@ public void setCollectionTags(@javax.annotation.Nullable List collection } - public CollectionListItem collectionSize(@javax.annotation.Nonnull Integer collectionSize) { - this.collectionSize = collectionSize; + public CollectionListItem creation(@javax.annotation.Nonnull OffsetDateTime creation) { + this.creation = creation; return this; } /** - * The size of the collection - * @return collectionSize + * The datetime of when the collection was created + * @return creation */ @javax.annotation.Nonnull - public Integer getCollectionSize() { - return collectionSize; + public OffsetDateTime getCreation() { + return creation; } - public void setCollectionSize(@javax.annotation.Nonnull Integer collectionSize) { - this.collectionSize = collectionSize; + public void setCreation(@javax.annotation.Nonnull OffsetDateTime creation) { + this.creation = creation; } - public CollectionListItem collectionId(@javax.annotation.Nonnull Integer collectionId) { - this.collectionId = collectionId; + public CollectionListItem description(@javax.annotation.Nonnull String description) { + this.description = description; return this; } /** - * The ID of the collection - * @return collectionId + * The description of the collection + * @return description */ @javax.annotation.Nonnull - public Integer getCollectionId() { - return collectionId; + public String getDescription() { + return description; } - public void setCollectionId(@javax.annotation.Nonnull Integer collectionId) { - this.collectionId = collectionId; + public void setDescription(@javax.annotation.Nonnull String description) { + this.description = description; } - public CollectionListItem creation(@javax.annotation.Nonnull OffsetDateTime creation) { - this.creation = creation; + public CollectionListItem modelName(@javax.annotation.Nonnull String modelName) { + this.modelName = modelName; return this; } /** - * The datetime of when the collection was created - * @return creation + * The model being used for the collection + * @return modelName */ @javax.annotation.Nonnull - public OffsetDateTime getCreation() { - return creation; + public String getModelName() { + return modelName; } - public void setCreation(@javax.annotation.Nonnull OffsetDateTime creation) { - this.creation = creation; + public void setModelName(@javax.annotation.Nonnull String modelName) { + this.modelName = modelName; } - public CollectionListItem modelName(@javax.annotation.Nonnull String modelName) { - this.modelName = modelName; + public CollectionListItem officialCollection(@javax.annotation.Nonnull Boolean officialCollection) { + this.officialCollection = officialCollection; return this; } /** - * The model being used for the collection - * @return modelName + * Whether the collection is maintained by RevEng.AI + * @return officialCollection */ @javax.annotation.Nonnull - public String getModelName() { - return modelName; + public Boolean getOfficialCollection() { + return officialCollection; } - public void setModelName(@javax.annotation.Nonnull String modelName) { - this.modelName = modelName; + public void setOfficialCollection(@javax.annotation.Nonnull Boolean officialCollection) { + this.officialCollection = officialCollection; } @@ -384,16 +384,16 @@ public boolean equals(Object o) { return false; } CollectionListItem collectionListItem = (CollectionListItem) o; - return Objects.equals(this.collectionName, collectionListItem.collectionName) && - Objects.equals(this.description, collectionListItem.description) && - Objects.equals(this.collectionScope, collectionListItem.collectionScope) && + return Objects.equals(this.collectionId, collectionListItem.collectionId) && + Objects.equals(this.collectionName, collectionListItem.collectionName) && Objects.equals(this.collectionOwner, collectionListItem.collectionOwner) && - Objects.equals(this.officialCollection, collectionListItem.officialCollection) && - Objects.equals(this.collectionTags, collectionListItem.collectionTags) && + Objects.equals(this.collectionScope, collectionListItem.collectionScope) && Objects.equals(this.collectionSize, collectionListItem.collectionSize) && - Objects.equals(this.collectionId, collectionListItem.collectionId) && + Objects.equals(this.collectionTags, collectionListItem.collectionTags) && Objects.equals(this.creation, collectionListItem.creation) && + Objects.equals(this.description, collectionListItem.description) && Objects.equals(this.modelName, collectionListItem.modelName) && + Objects.equals(this.officialCollection, collectionListItem.officialCollection) && Objects.equals(this.teamId, collectionListItem.teamId)&& Objects.equals(this.additionalProperties, collectionListItem.additionalProperties); } @@ -404,7 +404,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(collectionName, description, collectionScope, collectionOwner, officialCollection, collectionTags, collectionSize, collectionId, creation, modelName, teamId, additionalProperties); + return Objects.hash(collectionId, collectionName, collectionOwner, collectionScope, collectionSize, collectionTags, creation, description, modelName, officialCollection, teamId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -418,16 +418,16 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CollectionListItem {\n"); + sb.append(" collectionId: ").append(toIndentedString(collectionId)).append("\n"); sb.append(" collectionName: ").append(toIndentedString(collectionName)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" collectionScope: ").append(toIndentedString(collectionScope)).append("\n"); sb.append(" collectionOwner: ").append(toIndentedString(collectionOwner)).append("\n"); - sb.append(" officialCollection: ").append(toIndentedString(officialCollection)).append("\n"); - sb.append(" collectionTags: ").append(toIndentedString(collectionTags)).append("\n"); + sb.append(" collectionScope: ").append(toIndentedString(collectionScope)).append("\n"); sb.append(" collectionSize: ").append(toIndentedString(collectionSize)).append("\n"); - sb.append(" collectionId: ").append(toIndentedString(collectionId)).append("\n"); + sb.append(" collectionTags: ").append(toIndentedString(collectionTags)).append("\n"); sb.append(" creation: ").append(toIndentedString(creation)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); + sb.append(" officialCollection: ").append(toIndentedString(officialCollection)).append("\n"); sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -451,10 +451,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("collection_name", "description", "collection_scope", "collection_owner", "official_collection", "collection_tags", "collection_size", "collection_id", "creation", "model_name", "team_id")); + openapiFields = new HashSet(Arrays.asList("collection_id", "collection_name", "collection_owner", "collection_scope", "collection_size", "collection_tags", "creation", "description", "model_name", "official_collection", "team_id")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("collection_name", "description", "collection_scope", "collection_owner", "official_collection", "collection_size", "collection_id", "creation", "model_name")); + openapiRequiredFields = new HashSet(Arrays.asList("collection_id", "collection_name", "collection_owner", "collection_scope", "collection_size", "creation", "description", "model_name", "official_collection")); } /** @@ -480,19 +480,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("collection_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `collection_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("collection_name").toString())); } - if (!jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + if (!jsonObj.get("collection_owner").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `collection_owner` to be a primitive type in the JSON string but got `%s`", jsonObj.get("collection_owner").toString())); } if (!jsonObj.get("collection_scope").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `collection_scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("collection_scope").toString())); } - if (!jsonObj.get("collection_owner").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `collection_owner` to be a primitive type in the JSON string but got `%s`", jsonObj.get("collection_owner").toString())); - } // ensure the optional json data is an array if present if (jsonObj.get("collection_tags") != null && !jsonObj.get("collection_tags").isJsonNull() && !jsonObj.get("collection_tags").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `collection_tags` to be an array in the JSON string but got `%s`", jsonObj.get("collection_tags").toString())); } + if (!jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").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())); } diff --git a/src/main/java/ai/reveng/model/CollectionResponse.java b/src/main/java/ai/reveng/model/CollectionResponse.java index 06b8997..4b95592 100644 --- a/src/main/java/ai/reveng/model/CollectionResponse.java +++ b/src/main/java/ai/reveng/model/CollectionResponse.java @@ -57,6 +57,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CollectionResponse { + public static final String SERIALIZED_NAME_BINARIES = "binaries"; + @SerializedName(SERIALIZED_NAME_BINARIES) + @javax.annotation.Nullable + private List binaries; + public static final String SERIALIZED_NAME_COLLECTION_ID = "collection_id"; @SerializedName(SERIALIZED_NAME_COLLECTION_ID) @javax.annotation.Nonnull @@ -67,6 +72,16 @@ public class CollectionResponse { @javax.annotation.Nonnull private String collectionName; + public static final String SERIALIZED_NAME_COLLECTION_SCOPE = "collection_scope"; + @SerializedName(SERIALIZED_NAME_COLLECTION_SCOPE) + @javax.annotation.Nonnull + private CollectionScope collectionScope; + + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + @javax.annotation.Nonnull + private OffsetDateTime createdAt; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @javax.annotation.Nonnull @@ -77,44 +92,56 @@ public class CollectionResponse { @javax.annotation.Nonnull private Integer modelId; - public static final String SERIALIZED_NAME_USER_ID = "user_id"; - @SerializedName(SERIALIZED_NAME_USER_ID) - @javax.annotation.Nonnull - private Integer userId; + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable + private List tags; public static final String SERIALIZED_NAME_TEAM_ID = "team_id"; @SerializedName(SERIALIZED_NAME_TEAM_ID) @javax.annotation.Nullable private Integer teamId; - public static final String SERIALIZED_NAME_COLLECTION_SCOPE = "collection_scope"; - @SerializedName(SERIALIZED_NAME_COLLECTION_SCOPE) - @javax.annotation.Nonnull - private CollectionScope collectionScope; - - public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; - @SerializedName(SERIALIZED_NAME_CREATED_AT) - @javax.annotation.Nonnull - private OffsetDateTime createdAt; - public static final String SERIALIZED_NAME_UPDATED_AT = "updated_at"; @SerializedName(SERIALIZED_NAME_UPDATED_AT) @javax.annotation.Nonnull private OffsetDateTime updatedAt; - public static final String SERIALIZED_NAME_TAGS = "tags"; - @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags; + public static final String SERIALIZED_NAME_USER_ID = "user_id"; + @SerializedName(SERIALIZED_NAME_USER_ID) + @javax.annotation.Nonnull + private Integer userId; - public static final String SERIALIZED_NAME_BINARIES = "binaries"; - @SerializedName(SERIALIZED_NAME_BINARIES) + public CollectionResponse() { + } + + public CollectionResponse binaries(@javax.annotation.Nullable List binaries) { + this.binaries = binaries; + return this; + } + + public CollectionResponse addBinariesItem(CollectionResponseBinariesInner binariesItem) { + if (this.binaries == null) { + this.binaries = new ArrayList<>(); + } + this.binaries.add(binariesItem); + return this; + } + + /** + * Get binaries + * @return binaries + */ @javax.annotation.Nullable - private List binaries; + public List getBinaries() { + return binaries; + } - public CollectionResponse() { + public void setBinaries(@javax.annotation.Nullable List binaries) { + this.binaries = binaries; } + public CollectionResponse collectionId(@javax.annotation.Nonnull Integer collectionId) { this.collectionId = collectionId; return this; @@ -153,6 +180,44 @@ public void setCollectionName(@javax.annotation.Nonnull String collectionName) { } + public CollectionResponse collectionScope(@javax.annotation.Nonnull CollectionScope collectionScope) { + this.collectionScope = collectionScope; + return this; + } + + /** + * Collection public status + * @return collectionScope + */ + @javax.annotation.Nonnull + public CollectionScope getCollectionScope() { + return collectionScope; + } + + public void setCollectionScope(@javax.annotation.Nonnull CollectionScope collectionScope) { + this.collectionScope = collectionScope; + } + + + public CollectionResponse createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Collection creation date + * @return createdAt + */ + @javax.annotation.Nonnull + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + public CollectionResponse description(@javax.annotation.Nonnull String description) { this.description = description; return this; @@ -191,22 +256,30 @@ public void setModelId(@javax.annotation.Nonnull Integer modelId) { } - public CollectionResponse userId(@javax.annotation.Nonnull Integer userId) { - this.userId = userId; + public CollectionResponse tags(@javax.annotation.Nullable List tags) { + this.tags = tags; + return this; + } + + public CollectionResponse addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); return this; } /** - * Collection user ID - * @return userId + * Get tags + * @return tags */ - @javax.annotation.Nonnull - public Integer getUserId() { - return userId; + @javax.annotation.Nullable + public List getTags() { + return tags; } - public void setUserId(@javax.annotation.Nonnull Integer userId) { - this.userId = userId; + public void setTags(@javax.annotation.Nullable List tags) { + this.tags = tags; } @@ -229,44 +302,6 @@ public void setTeamId(@javax.annotation.Nullable Integer teamId) { } - public CollectionResponse collectionScope(@javax.annotation.Nonnull CollectionScope collectionScope) { - this.collectionScope = collectionScope; - return this; - } - - /** - * Collection public status - * @return collectionScope - */ - @javax.annotation.Nonnull - public CollectionScope getCollectionScope() { - return collectionScope; - } - - public void setCollectionScope(@javax.annotation.Nonnull CollectionScope collectionScope) { - this.collectionScope = collectionScope; - } - - - public CollectionResponse createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * Collection creation date - * @return createdAt - */ - @javax.annotation.Nonnull - public OffsetDateTime getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; - } - - public CollectionResponse updatedAt(@javax.annotation.Nonnull OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; @@ -286,57 +321,22 @@ public void setUpdatedAt(@javax.annotation.Nonnull OffsetDateTime updatedAt) { } - public CollectionResponse tags(@javax.annotation.Nullable List tags) { - this.tags = tags; - return this; - } - - public CollectionResponse addTagsItem(String tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } - this.tags.add(tagsItem); - return this; - } - - /** - * Get tags - * @return tags - */ - @javax.annotation.Nullable - public List getTags() { - return tags; - } - - public void setTags(@javax.annotation.Nullable List tags) { - this.tags = tags; - } - - - public CollectionResponse binaries(@javax.annotation.Nullable List binaries) { - this.binaries = binaries; - return this; - } - - public CollectionResponse addBinariesItem(CollectionResponseBinariesInner binariesItem) { - if (this.binaries == null) { - this.binaries = new ArrayList<>(); - } - this.binaries.add(binariesItem); + public CollectionResponse userId(@javax.annotation.Nonnull Integer userId) { + this.userId = userId; return this; } /** - * Get binaries - * @return binaries + * Collection user ID + * @return userId */ - @javax.annotation.Nullable - public List getBinaries() { - return binaries; + @javax.annotation.Nonnull + public Integer getUserId() { + return userId; } - public void setBinaries(@javax.annotation.Nullable List binaries) { - this.binaries = binaries; + public void setUserId(@javax.annotation.Nonnull Integer userId) { + this.userId = userId; } /** @@ -394,17 +394,17 @@ public boolean equals(Object o) { return false; } CollectionResponse collectionResponse = (CollectionResponse) o; - return Objects.equals(this.collectionId, collectionResponse.collectionId) && + return Objects.equals(this.binaries, collectionResponse.binaries) && + Objects.equals(this.collectionId, collectionResponse.collectionId) && Objects.equals(this.collectionName, collectionResponse.collectionName) && + Objects.equals(this.collectionScope, collectionResponse.collectionScope) && + Objects.equals(this.createdAt, collectionResponse.createdAt) && Objects.equals(this.description, collectionResponse.description) && Objects.equals(this.modelId, collectionResponse.modelId) && - Objects.equals(this.userId, collectionResponse.userId) && + Objects.equals(this.tags, collectionResponse.tags) && Objects.equals(this.teamId, collectionResponse.teamId) && - Objects.equals(this.collectionScope, collectionResponse.collectionScope) && - Objects.equals(this.createdAt, collectionResponse.createdAt) && Objects.equals(this.updatedAt, collectionResponse.updatedAt) && - Objects.equals(this.tags, collectionResponse.tags) && - Objects.equals(this.binaries, collectionResponse.binaries)&& + Objects.equals(this.userId, collectionResponse.userId)&& Objects.equals(this.additionalProperties, collectionResponse.additionalProperties); } @@ -414,7 +414,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(collectionId, collectionName, description, modelId, userId, teamId, collectionScope, createdAt, updatedAt, tags, binaries, additionalProperties); + return Objects.hash(binaries, collectionId, collectionName, collectionScope, createdAt, description, modelId, tags, teamId, updatedAt, userId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -428,17 +428,17 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CollectionResponse {\n"); + sb.append(" binaries: ").append(toIndentedString(binaries)).append("\n"); sb.append(" collectionId: ").append(toIndentedString(collectionId)).append("\n"); sb.append(" collectionName: ").append(toIndentedString(collectionName)).append("\n"); + sb.append(" collectionScope: ").append(toIndentedString(collectionScope)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); - sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n"); - sb.append(" collectionScope: ").append(toIndentedString(collectionScope)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" binaries: ").append(toIndentedString(binaries)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -461,10 +461,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("collection_id", "collection_name", "description", "model_id", "user_id", "team_id", "collection_scope", "created_at", "updated_at", "tags", "binaries")); + openapiFields = new HashSet(Arrays.asList("binaries", "collection_id", "collection_name", "collection_scope", "created_at", "description", "model_id", "tags", "team_id", "updated_at", "user_id")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("collection_id", "collection_name", "description", "model_id", "user_id", "collection_scope", "created_at", "updated_at")); + openapiRequiredFields = new HashSet(Arrays.asList("collection_id", "collection_name", "collection_scope", "created_at", "description", "model_id", "updated_at", "user_id")); } /** @@ -487,18 +487,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("collection_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `collection_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("collection_name").toString())); - } - if (!jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the required field `collection_scope` - CollectionScope.validateJsonElement(jsonObj.get("collection_scope")); - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !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())); - } if (jsonObj.get("binaries") != null && !jsonObj.get("binaries").isJsonNull()) { JsonArray jsonArraybinaries = jsonObj.getAsJsonArray("binaries"); if (jsonArraybinaries != null) { @@ -513,6 +501,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + if (!jsonObj.get("collection_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `collection_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("collection_name").toString())); + } + // validate the required field `collection_scope` + CollectionScope.validateJsonElement(jsonObj.get("collection_scope")); + if (!jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !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/CollectionSearchResult.java b/src/main/java/ai/reveng/model/CollectionSearchResult.java index f6ab08a..4f3661b 100644 --- a/src/main/java/ai/reveng/model/CollectionSearchResult.java +++ b/src/main/java/ai/reveng/model/CollectionSearchResult.java @@ -65,21 +65,21 @@ public class CollectionSearchResult { @javax.annotation.Nonnull private String collectionName; - public static final String SERIALIZED_NAME_SCOPE = "scope"; - @SerializedName(SERIALIZED_NAME_SCOPE) + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) @javax.annotation.Nonnull - private String scope; + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nonnull + private String description; public static final String SERIALIZED_NAME_LAST_UPDATED_AT = "last_updated_at"; @SerializedName(SERIALIZED_NAME_LAST_UPDATED_AT) @javax.annotation.Nonnull private OffsetDateTime lastUpdatedAt; - public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; - @SerializedName(SERIALIZED_NAME_CREATED_AT) - @javax.annotation.Nonnull - private OffsetDateTime createdAt; - public static final String SERIALIZED_NAME_MODEL_ID = "model_id"; @SerializedName(SERIALIZED_NAME_MODEL_ID) @javax.annotation.Nonnull @@ -95,20 +95,20 @@ public class CollectionSearchResult { @javax.annotation.Nonnull private String ownedBy; - public static final String SERIALIZED_NAME_TAGS = "tags"; - @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags; + public static final String SERIALIZED_NAME_SCOPE = "scope"; + @SerializedName(SERIALIZED_NAME_SCOPE) + @javax.annotation.Nonnull + private String scope; public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) @javax.annotation.Nullable private Integer size; - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - @javax.annotation.Nonnull - private String description; + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable + private List tags; public static final String SERIALIZED_NAME_TEAM_ID = "team_id"; @SerializedName(SERIALIZED_NAME_TEAM_ID) @@ -156,60 +156,60 @@ public void setCollectionName(@javax.annotation.Nonnull String collectionName) { } - public CollectionSearchResult scope(@javax.annotation.Nonnull String scope) { - this.scope = scope; + public CollectionSearchResult createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; return this; } /** - * The scope of the collection - * @return scope + * The creation date of the collection + * @return createdAt */ @javax.annotation.Nonnull - public String getScope() { - return scope; + public OffsetDateTime getCreatedAt() { + return createdAt; } - public void setScope(@javax.annotation.Nonnull String scope) { - this.scope = scope; + public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; } - public CollectionSearchResult lastUpdatedAt(@javax.annotation.Nonnull OffsetDateTime lastUpdatedAt) { - this.lastUpdatedAt = lastUpdatedAt; + public CollectionSearchResult description(@javax.annotation.Nonnull String description) { + this.description = description; return this; } /** - * The last update date of the collection - * @return lastUpdatedAt + * The description of the collection + * @return description */ @javax.annotation.Nonnull - public OffsetDateTime getLastUpdatedAt() { - return lastUpdatedAt; + public String getDescription() { + return description; } - public void setLastUpdatedAt(@javax.annotation.Nonnull OffsetDateTime lastUpdatedAt) { - this.lastUpdatedAt = lastUpdatedAt; + public void setDescription(@javax.annotation.Nonnull String description) { + this.description = description; } - public CollectionSearchResult createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CollectionSearchResult lastUpdatedAt(@javax.annotation.Nonnull OffsetDateTime lastUpdatedAt) { + this.lastUpdatedAt = lastUpdatedAt; return this; } /** - * The creation date of the collection - * @return createdAt + * The last update date of the collection + * @return lastUpdatedAt */ @javax.annotation.Nonnull - public OffsetDateTime getCreatedAt() { - return createdAt; + public OffsetDateTime getLastUpdatedAt() { + return lastUpdatedAt; } - public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; + public void setLastUpdatedAt(@javax.annotation.Nonnull OffsetDateTime lastUpdatedAt) { + this.lastUpdatedAt = lastUpdatedAt; } @@ -270,30 +270,22 @@ public void setOwnedBy(@javax.annotation.Nonnull String ownedBy) { } - public CollectionSearchResult tags(@javax.annotation.Nullable List tags) { - this.tags = tags; - return this; - } - - public CollectionSearchResult addTagsItem(String tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } - this.tags.add(tagsItem); + public CollectionSearchResult scope(@javax.annotation.Nonnull String scope) { + this.scope = scope; return this; } /** - * Get tags - * @return tags + * The scope of the collection + * @return scope */ - @javax.annotation.Nullable - public List getTags() { - return tags; + @javax.annotation.Nonnull + public String getScope() { + return scope; } - public void setTags(@javax.annotation.Nullable List tags) { - this.tags = tags; + public void setScope(@javax.annotation.Nonnull String scope) { + this.scope = scope; } @@ -316,22 +308,30 @@ public void setSize(@javax.annotation.Nullable Integer size) { } - public CollectionSearchResult description(@javax.annotation.Nonnull String description) { - this.description = description; + public CollectionSearchResult tags(@javax.annotation.Nullable List tags) { + this.tags = tags; + return this; + } + + public CollectionSearchResult addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); return this; } /** - * The description of the collection - * @return description + * Get tags + * @return tags */ - @javax.annotation.Nonnull - public String getDescription() { - return description; + @javax.annotation.Nullable + public List getTags() { + return tags; } - public void setDescription(@javax.annotation.Nonnull String description) { - this.description = description; + public void setTags(@javax.annotation.Nullable List tags) { + this.tags = tags; } @@ -410,15 +410,15 @@ public boolean equals(Object o) { CollectionSearchResult collectionSearchResult = (CollectionSearchResult) o; return Objects.equals(this.collectionId, collectionSearchResult.collectionId) && Objects.equals(this.collectionName, collectionSearchResult.collectionName) && - Objects.equals(this.scope, collectionSearchResult.scope) && - Objects.equals(this.lastUpdatedAt, collectionSearchResult.lastUpdatedAt) && Objects.equals(this.createdAt, collectionSearchResult.createdAt) && + Objects.equals(this.description, collectionSearchResult.description) && + Objects.equals(this.lastUpdatedAt, collectionSearchResult.lastUpdatedAt) && Objects.equals(this.modelId, collectionSearchResult.modelId) && Objects.equals(this.modelName, collectionSearchResult.modelName) && Objects.equals(this.ownedBy, collectionSearchResult.ownedBy) && - Objects.equals(this.tags, collectionSearchResult.tags) && + Objects.equals(this.scope, collectionSearchResult.scope) && Objects.equals(this.size, collectionSearchResult.size) && - Objects.equals(this.description, collectionSearchResult.description) && + Objects.equals(this.tags, collectionSearchResult.tags) && Objects.equals(this.teamId, collectionSearchResult.teamId)&& Objects.equals(this.additionalProperties, collectionSearchResult.additionalProperties); } @@ -429,7 +429,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(collectionId, collectionName, scope, lastUpdatedAt, createdAt, modelId, modelName, ownedBy, tags, size, description, teamId, additionalProperties); + return Objects.hash(collectionId, collectionName, createdAt, description, lastUpdatedAt, modelId, modelName, ownedBy, scope, size, tags, teamId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -445,15 +445,15 @@ public String toString() { sb.append("class CollectionSearchResult {\n"); sb.append(" collectionId: ").append(toIndentedString(collectionId)).append("\n"); sb.append(" collectionName: ").append(toIndentedString(collectionName)).append("\n"); - sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); - sb.append(" lastUpdatedAt: ").append(toIndentedString(lastUpdatedAt)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" lastUpdatedAt: ").append(toIndentedString(lastUpdatedAt)).append("\n"); sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); sb.append(" ownedBy: ").append(toIndentedString(ownedBy)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -477,10 +477,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("collection_id", "collection_name", "scope", "last_updated_at", "created_at", "model_id", "model_name", "owned_by", "tags", "size", "description", "team_id")); + openapiFields = new HashSet(Arrays.asList("collection_id", "collection_name", "created_at", "description", "last_updated_at", "model_id", "model_name", "owned_by", "scope", "size", "tags", "team_id")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("collection_id", "collection_name", "scope", "last_updated_at", "created_at", "model_id", "model_name", "owned_by", "description")); + openapiRequiredFields = new HashSet(Arrays.asList("collection_id", "collection_name", "created_at", "description", "last_updated_at", "model_id", "model_name", "owned_by", "scope")); } /** @@ -506,8 +506,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("collection_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `collection_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("collection_name").toString())); } - if (!jsonObj.get("scope").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); + if (!jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").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())); @@ -515,13 +515,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("owned_by").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `owned_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("owned_by").toString())); } + if (!jsonObj.get("scope").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); + } // ensure the optional json data is an array if present if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !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())); } - if (!jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/CollectionUpdateRequest.java b/src/main/java/ai/reveng/model/CollectionUpdateRequest.java index a5a3194..01203d7 100644 --- a/src/main/java/ai/reveng/model/CollectionUpdateRequest.java +++ b/src/main/java/ai/reveng/model/CollectionUpdateRequest.java @@ -58,16 +58,16 @@ public class CollectionUpdateRequest { @javax.annotation.Nullable private String collectionName; - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - @javax.annotation.Nullable - private String description; - public static final String SERIALIZED_NAME_COLLECTION_SCOPE = "collection_scope"; @SerializedName(SERIALIZED_NAME_COLLECTION_SCOPE) @javax.annotation.Nullable private CollectionScope collectionScope; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nullable + private String description; + public CollectionUpdateRequest() { } @@ -90,41 +90,41 @@ public void setCollectionName(@javax.annotation.Nullable String collectionName) } - public CollectionUpdateRequest description(@javax.annotation.Nullable String description) { - this.description = description; + public CollectionUpdateRequest collectionScope(@javax.annotation.Nullable CollectionScope collectionScope) { + this.collectionScope = collectionScope; return this; } /** - * Get description - * @return description + * Get collectionScope + * @return collectionScope */ @javax.annotation.Nullable - public String getDescription() { - return description; + public CollectionScope getCollectionScope() { + return collectionScope; } - public void setDescription(@javax.annotation.Nullable String description) { - this.description = description; + public void setCollectionScope(@javax.annotation.Nullable CollectionScope collectionScope) { + this.collectionScope = collectionScope; } - public CollectionUpdateRequest collectionScope(@javax.annotation.Nullable CollectionScope collectionScope) { - this.collectionScope = collectionScope; + public CollectionUpdateRequest description(@javax.annotation.Nullable String description) { + this.description = description; return this; } /** - * Get collectionScope - * @return collectionScope + * Get description + * @return description */ @javax.annotation.Nullable - public CollectionScope getCollectionScope() { - return collectionScope; + public String getDescription() { + return description; } - public void setCollectionScope(@javax.annotation.Nullable CollectionScope collectionScope) { - this.collectionScope = collectionScope; + public void setDescription(@javax.annotation.Nullable String description) { + this.description = description; } /** @@ -183,8 +183,8 @@ public boolean equals(Object o) { } CollectionUpdateRequest collectionUpdateRequest = (CollectionUpdateRequest) o; return Objects.equals(this.collectionName, collectionUpdateRequest.collectionName) && - Objects.equals(this.description, collectionUpdateRequest.description) && - Objects.equals(this.collectionScope, collectionUpdateRequest.collectionScope)&& + Objects.equals(this.collectionScope, collectionUpdateRequest.collectionScope) && + Objects.equals(this.description, collectionUpdateRequest.description)&& Objects.equals(this.additionalProperties, collectionUpdateRequest.additionalProperties); } @@ -194,7 +194,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(collectionName, description, collectionScope, additionalProperties); + return Objects.hash(collectionName, collectionScope, description, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -209,8 +209,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CollectionUpdateRequest {\n"); sb.append(" collectionName: ").append(toIndentedString(collectionName)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" collectionScope: ").append(toIndentedString(collectionScope)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -233,7 +233,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("collection_name", "description", "collection_scope")); + openapiFields = new HashSet(Arrays.asList("collection_name", "collection_scope", "description")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -255,13 +255,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("collection_name") != null && !jsonObj.get("collection_name").isJsonNull()) && !jsonObj.get("collection_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `collection_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("collection_name").toString())); } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } // validate the optional field `collection_scope` if (jsonObj.get("collection_scope") != null && !jsonObj.get("collection_scope").isJsonNull()) { CollectionScope.validateJsonElement(jsonObj.get("collection_scope")); } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/CommentResponse.java b/src/main/java/ai/reveng/model/CommentResponse.java index b424003..2bf0302 100644 --- a/src/main/java/ai/reveng/model/CommentResponse.java +++ b/src/main/java/ai/reveng/model/CommentResponse.java @@ -59,41 +59,41 @@ public class CommentResponse { @javax.annotation.Nonnull private String content; - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nonnull - private Integer id; + public static final String SERIALIZED_NAME_CONTEXT = "context"; + @SerializedName(SERIALIZED_NAME_CONTEXT) + @javax.annotation.Nullable + private Context context; - public static final String SERIALIZED_NAME_USER_ID = "user_id"; - @SerializedName(SERIALIZED_NAME_USER_ID) + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) @javax.annotation.Nonnull - private Integer userId; + private OffsetDateTime createdAt; - public static final String SERIALIZED_NAME_RESOURCE_TYPE = "resource_type"; - @SerializedName(SERIALIZED_NAME_RESOURCE_TYPE) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) @javax.annotation.Nonnull - private String resourceType; + private Integer id; public static final String SERIALIZED_NAME_RESOURCE_ID = "resource_id"; @SerializedName(SERIALIZED_NAME_RESOURCE_ID) @javax.annotation.Nonnull private String resourceId; - public static final String SERIALIZED_NAME_CONTEXT = "context"; - @SerializedName(SERIALIZED_NAME_CONTEXT) - @javax.annotation.Nullable - private Context context; - - public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; - @SerializedName(SERIALIZED_NAME_CREATED_AT) + public static final String SERIALIZED_NAME_RESOURCE_TYPE = "resource_type"; + @SerializedName(SERIALIZED_NAME_RESOURCE_TYPE) @javax.annotation.Nonnull - private OffsetDateTime createdAt; + private String resourceType; public static final String SERIALIZED_NAME_UPDATED_AT = "updated_at"; @SerializedName(SERIALIZED_NAME_UPDATED_AT) @javax.annotation.Nonnull private OffsetDateTime updatedAt; + public static final String SERIALIZED_NAME_USER_ID = "user_id"; + @SerializedName(SERIALIZED_NAME_USER_ID) + @javax.annotation.Nonnull + private Integer userId; + public CommentResponse() { } @@ -116,60 +116,60 @@ public void setContent(@javax.annotation.Nonnull String content) { } - public CommentResponse id(@javax.annotation.Nonnull Integer id) { - this.id = id; + public CommentResponse context(@javax.annotation.Nullable Context context) { + this.context = context; return this; } /** - * Get id - * @return id + * Get context + * @return context */ - @javax.annotation.Nonnull - public Integer getId() { - return id; + @javax.annotation.Nullable + public Context getContext() { + return context; } - public void setId(@javax.annotation.Nonnull Integer id) { - this.id = id; + public void setContext(@javax.annotation.Nullable Context context) { + this.context = context; } - public CommentResponse userId(@javax.annotation.Nonnull Integer userId) { - this.userId = userId; + public CommentResponse createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; return this; } /** - * Get userId - * @return userId + * Get createdAt + * @return createdAt */ @javax.annotation.Nonnull - public Integer getUserId() { - return userId; + public OffsetDateTime getCreatedAt() { + return createdAt; } - public void setUserId(@javax.annotation.Nonnull Integer userId) { - this.userId = userId; + public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; } - public CommentResponse resourceType(@javax.annotation.Nonnull String resourceType) { - this.resourceType = resourceType; + public CommentResponse id(@javax.annotation.Nonnull Integer id) { + this.id = id; return this; } /** - * Get resourceType - * @return resourceType + * Get id + * @return id */ @javax.annotation.Nonnull - public String getResourceType() { - return resourceType; + public Integer getId() { + return id; } - public void setResourceType(@javax.annotation.Nonnull String resourceType) { - this.resourceType = resourceType; + public void setId(@javax.annotation.Nonnull Integer id) { + this.id = id; } @@ -192,60 +192,60 @@ public void setResourceId(@javax.annotation.Nonnull String resourceId) { } - public CommentResponse context(@javax.annotation.Nullable Context context) { - this.context = context; + public CommentResponse resourceType(@javax.annotation.Nonnull String resourceType) { + this.resourceType = resourceType; return this; } /** - * Get context - * @return context + * Get resourceType + * @return resourceType */ - @javax.annotation.Nullable - public Context getContext() { - return context; + @javax.annotation.Nonnull + public String getResourceType() { + return resourceType; } - public void setContext(@javax.annotation.Nullable Context context) { - this.context = context; + public void setResourceType(@javax.annotation.Nonnull String resourceType) { + this.resourceType = resourceType; } - public CommentResponse createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CommentResponse updatedAt(@javax.annotation.Nonnull OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; return this; } /** - * Get createdAt - * @return createdAt + * Get updatedAt + * @return updatedAt */ @javax.annotation.Nonnull - public OffsetDateTime getCreatedAt() { - return createdAt; + public OffsetDateTime getUpdatedAt() { + return updatedAt; } - public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; + public void setUpdatedAt(@javax.annotation.Nonnull OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; } - public CommentResponse updatedAt(@javax.annotation.Nonnull OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public CommentResponse userId(@javax.annotation.Nonnull Integer userId) { + this.userId = userId; return this; } /** - * Get updatedAt - * @return updatedAt + * Get userId + * @return userId */ @javax.annotation.Nonnull - public OffsetDateTime getUpdatedAt() { - return updatedAt; + public Integer getUserId() { + return userId; } - public void setUpdatedAt(@javax.annotation.Nonnull OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public void setUserId(@javax.annotation.Nonnull Integer userId) { + this.userId = userId; } /** @@ -304,13 +304,13 @@ public boolean equals(Object o) { } CommentResponse commentResponse = (CommentResponse) o; return Objects.equals(this.content, commentResponse.content) && - Objects.equals(this.id, commentResponse.id) && - Objects.equals(this.userId, commentResponse.userId) && - Objects.equals(this.resourceType, commentResponse.resourceType) && - Objects.equals(this.resourceId, commentResponse.resourceId) && Objects.equals(this.context, commentResponse.context) && Objects.equals(this.createdAt, commentResponse.createdAt) && - Objects.equals(this.updatedAt, commentResponse.updatedAt)&& + Objects.equals(this.id, commentResponse.id) && + Objects.equals(this.resourceId, commentResponse.resourceId) && + Objects.equals(this.resourceType, commentResponse.resourceType) && + Objects.equals(this.updatedAt, commentResponse.updatedAt) && + Objects.equals(this.userId, commentResponse.userId)&& Objects.equals(this.additionalProperties, commentResponse.additionalProperties); } @@ -320,7 +320,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(content, id, userId, resourceType, resourceId, context, createdAt, updatedAt, additionalProperties); + return Objects.hash(content, context, createdAt, id, resourceId, resourceType, updatedAt, userId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -335,13 +335,13 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CommentResponse {\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); - sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); - sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -364,10 +364,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("content", "id", "user_id", "resource_type", "resource_id", "context", "created_at", "updated_at")); + openapiFields = new HashSet(Arrays.asList("content", "context", "created_at", "id", "resource_id", "resource_type", "updated_at", "user_id")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("content", "id", "user_id", "resource_type", "resource_id", "created_at", "updated_at")); + openapiRequiredFields = new HashSet(Arrays.asList("content", "created_at", "id", "resource_id", "resource_type", "updated_at", "user_id")); } /** @@ -393,15 +393,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("content").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); } - if (!jsonObj.get("resource_type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resource_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_type").toString())); + // validate the optional field `context` + if (jsonObj.get("context") != null && !jsonObj.get("context").isJsonNull()) { + Context.validateJsonElement(jsonObj.get("context")); } if (!jsonObj.get("resource_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resource_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_id").toString())); } - // validate the optional field `context` - if (jsonObj.get("context") != null && !jsonObj.get("context").isJsonNull()) { - Context.validateJsonElement(jsonObj.get("context")); + if (!jsonObj.get("resource_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resource_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_type").toString())); } } diff --git a/src/main/java/ai/reveng/model/Communities.java b/src/main/java/ai/reveng/model/Communities.java index 8da5653..3cf2e7d 100644 --- a/src/main/java/ai/reveng/model/Communities.java +++ b/src/main/java/ai/reveng/model/Communities.java @@ -55,16 +55,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Communities { - public static final String SERIALIZED_NAME_TOTAL_FUNCTIONS = "total_functions"; - @SerializedName(SERIALIZED_NAME_TOTAL_FUNCTIONS) - @javax.annotation.Nonnull - private Integer totalFunctions; - - public static final String SERIALIZED_NAME_TOTAL_MATCHED_FUNCTIONS = "total_matched_functions"; - @SerializedName(SERIALIZED_NAME_TOTAL_MATCHED_FUNCTIONS) - @javax.annotation.Nonnull - private Integer totalMatchedFunctions; - public static final String SERIALIZED_NAME_DIRECT_COMMUNITY_MATCH_PERCENTAGES = "direct_community_match_percentages"; @SerializedName(SERIALIZED_NAME_DIRECT_COMMUNITY_MATCH_PERCENTAGES) @javax.annotation.Nonnull @@ -75,47 +65,19 @@ public class Communities { @javax.annotation.Nonnull private List> topComponents = new ArrayList<>(); - public Communities() { - } - - public Communities totalFunctions(@javax.annotation.Nonnull Integer totalFunctions) { - this.totalFunctions = totalFunctions; - return this; - } - - /** - * The total number of matched community functions - * @return totalFunctions - */ + public static final String SERIALIZED_NAME_TOTAL_FUNCTIONS = "total_functions"; + @SerializedName(SERIALIZED_NAME_TOTAL_FUNCTIONS) @javax.annotation.Nonnull - public Integer getTotalFunctions() { - return totalFunctions; - } - - public void setTotalFunctions(@javax.annotation.Nonnull Integer totalFunctions) { - this.totalFunctions = totalFunctions; - } - - - public Communities totalMatchedFunctions(@javax.annotation.Nonnull Integer totalMatchedFunctions) { - this.totalMatchedFunctions = totalMatchedFunctions; - return this; - } + private Integer totalFunctions; - /** - * The total number of functions in the binary - * @return totalMatchedFunctions - */ + public static final String SERIALIZED_NAME_TOTAL_MATCHED_FUNCTIONS = "total_matched_functions"; + @SerializedName(SERIALIZED_NAME_TOTAL_MATCHED_FUNCTIONS) @javax.annotation.Nonnull - public Integer getTotalMatchedFunctions() { - return totalMatchedFunctions; - } + private Integer totalMatchedFunctions; - public void setTotalMatchedFunctions(@javax.annotation.Nonnull Integer totalMatchedFunctions) { - this.totalMatchedFunctions = totalMatchedFunctions; + public Communities() { } - public Communities directCommunityMatchPercentages(@javax.annotation.Nonnull List directCommunityMatchPercentages) { this.directCommunityMatchPercentages = directCommunityMatchPercentages; return this; @@ -169,6 +131,44 @@ public void setTopComponents(@javax.annotation.Nonnull List> this.topComponents = topComponents; } + + public Communities totalFunctions(@javax.annotation.Nonnull Integer totalFunctions) { + this.totalFunctions = totalFunctions; + return this; + } + + /** + * The total number of matched community functions + * @return totalFunctions + */ + @javax.annotation.Nonnull + public Integer getTotalFunctions() { + return totalFunctions; + } + + public void setTotalFunctions(@javax.annotation.Nonnull Integer totalFunctions) { + this.totalFunctions = totalFunctions; + } + + + public Communities totalMatchedFunctions(@javax.annotation.Nonnull Integer totalMatchedFunctions) { + this.totalMatchedFunctions = totalMatchedFunctions; + return this; + } + + /** + * The total number of functions in the binary + * @return totalMatchedFunctions + */ + @javax.annotation.Nonnull + public Integer getTotalMatchedFunctions() { + return totalMatchedFunctions; + } + + public void setTotalMatchedFunctions(@javax.annotation.Nonnull Integer totalMatchedFunctions) { + this.totalMatchedFunctions = totalMatchedFunctions; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -224,26 +224,26 @@ public boolean equals(Object o) { return false; } Communities communities = (Communities) o; - return Objects.equals(this.totalFunctions, communities.totalFunctions) && - Objects.equals(this.totalMatchedFunctions, communities.totalMatchedFunctions) && - Objects.equals(this.directCommunityMatchPercentages, communities.directCommunityMatchPercentages) && - Objects.equals(this.topComponents, communities.topComponents)&& + return Objects.equals(this.directCommunityMatchPercentages, communities.directCommunityMatchPercentages) && + Objects.equals(this.topComponents, communities.topComponents) && + Objects.equals(this.totalFunctions, communities.totalFunctions) && + Objects.equals(this.totalMatchedFunctions, communities.totalMatchedFunctions)&& Objects.equals(this.additionalProperties, communities.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totalFunctions, totalMatchedFunctions, directCommunityMatchPercentages, topComponents, additionalProperties); + return Objects.hash(directCommunityMatchPercentages, topComponents, totalFunctions, totalMatchedFunctions, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Communities {\n"); - sb.append(" totalFunctions: ").append(toIndentedString(totalFunctions)).append("\n"); - sb.append(" totalMatchedFunctions: ").append(toIndentedString(totalMatchedFunctions)).append("\n"); sb.append(" directCommunityMatchPercentages: ").append(toIndentedString(directCommunityMatchPercentages)).append("\n"); sb.append(" topComponents: ").append(toIndentedString(topComponents)).append("\n"); + sb.append(" totalFunctions: ").append(toIndentedString(totalFunctions)).append("\n"); + sb.append(" totalMatchedFunctions: ").append(toIndentedString(totalMatchedFunctions)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -266,10 +266,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("total_functions", "total_matched_functions", "direct_community_match_percentages", "top_components")); + openapiFields = new HashSet(Arrays.asList("direct_community_match_percentages", "top_components", "total_functions", "total_matched_functions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("total_functions", "total_matched_functions", "direct_community_match_percentages", "top_components")); + openapiRequiredFields = new HashSet(Arrays.asList("direct_community_match_percentages", "top_components", "total_functions", "total_matched_functions")); } /** diff --git a/src/main/java/ai/reveng/model/CommunityMatchPercentages.java b/src/main/java/ai/reveng/model/CommunityMatchPercentages.java index 1cc77b3..343a3d7 100644 --- a/src/main/java/ai/reveng/model/CommunityMatchPercentages.java +++ b/src/main/java/ai/reveng/model/CommunityMatchPercentages.java @@ -52,16 +52,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CommunityMatchPercentages { - 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_BINARY_ID = "binary_id"; @SerializedName(SERIALIZED_NAME_BINARY_ID) @javax.annotation.Nonnull private Integer binaryId; + 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_MATCHED_COMMUNITIES_PERCENT = "matched_communities_percent"; @SerializedName(SERIALIZED_NAME_MATCHED_COMMUNITIES_PERCENT) @javax.annotation.Nonnull @@ -75,41 +75,41 @@ public class CommunityMatchPercentages { public CommunityMatchPercentages() { } - public CommunityMatchPercentages binaryName(@javax.annotation.Nonnull String binaryName) { - this.binaryName = binaryName; + public CommunityMatchPercentages binaryId(@javax.annotation.Nonnull Integer binaryId) { + this.binaryId = binaryId; return this; } /** - * Get binaryName - * @return binaryName + * Get binaryId + * @return binaryId */ @javax.annotation.Nonnull - public String getBinaryName() { - return binaryName; + public Integer getBinaryId() { + return binaryId; } - public void setBinaryName(@javax.annotation.Nonnull String binaryName) { - this.binaryName = binaryName; + public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) { + this.binaryId = binaryId; } - public CommunityMatchPercentages binaryId(@javax.annotation.Nonnull Integer binaryId) { - this.binaryId = binaryId; + public CommunityMatchPercentages binaryName(@javax.annotation.Nonnull String binaryName) { + this.binaryName = binaryName; return this; } /** - * Get binaryId - * @return binaryId + * Get binaryName + * @return binaryName */ @javax.annotation.Nonnull - public Integer getBinaryId() { - return binaryId; + public String getBinaryName() { + return binaryName; } - public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) { - this.binaryId = binaryId; + public void setBinaryName(@javax.annotation.Nonnull String binaryName) { + this.binaryName = binaryName; } @@ -205,8 +205,8 @@ public boolean equals(Object o) { return false; } CommunityMatchPercentages communityMatchPercentages = (CommunityMatchPercentages) o; - return Objects.equals(this.binaryName, communityMatchPercentages.binaryName) && - Objects.equals(this.binaryId, communityMatchPercentages.binaryId) && + return Objects.equals(this.binaryId, communityMatchPercentages.binaryId) && + Objects.equals(this.binaryName, communityMatchPercentages.binaryName) && Objects.equals(this.matchedCommunitiesPercent, communityMatchPercentages.matchedCommunitiesPercent) && Objects.equals(this.unmatchedCommunitiesPercent, communityMatchPercentages.unmatchedCommunitiesPercent)&& Objects.equals(this.additionalProperties, communityMatchPercentages.additionalProperties); @@ -214,15 +214,15 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(binaryName, binaryId, matchedCommunitiesPercent, unmatchedCommunitiesPercent, additionalProperties); + return Objects.hash(binaryId, binaryName, matchedCommunitiesPercent, unmatchedCommunitiesPercent, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CommunityMatchPercentages {\n"); - sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n"); sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n"); + sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n"); sb.append(" matchedCommunitiesPercent: ").append(toIndentedString(matchedCommunitiesPercent)).append("\n"); sb.append(" unmatchedCommunitiesPercent: ").append(toIndentedString(unmatchedCommunitiesPercent)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -247,10 +247,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("binary_name", "binary_id", "matched_communities_percent", "unmatched_communities_percent")); + openapiFields = new HashSet(Arrays.asList("binary_id", "binary_name", "matched_communities_percent", "unmatched_communities_percent")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("binary_name", "binary_id", "matched_communities_percent", "unmatched_communities_percent")); + openapiRequiredFields = new HashSet(Arrays.asList("binary_id", "binary_name", "matched_communities_percent", "unmatched_communities_percent")); } /** diff --git a/src/main/java/ai/reveng/model/ConfigResponse.java b/src/main/java/ai/reveng/model/ConfigResponse.java index 0d59c41..6679376 100644 --- a/src/main/java/ai/reveng/model/ConfigResponse.java +++ b/src/main/java/ai/reveng/model/ConfigResponse.java @@ -53,6 +53,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ConfigResponse { + public static final String SERIALIZED_NAME_AI_DECOMPILER_SUPPORTED_MODELS = "ai_decompiler_supported_models"; + @SerializedName(SERIALIZED_NAME_AI_DECOMPILER_SUPPORTED_MODELS) + @javax.annotation.Nonnull + private List aiDecompilerSupportedModels = new ArrayList<>(); + + public static final String SERIALIZED_NAME_AI_DECOMPILER_UNSUPPORTED_LANGUAGES = "ai_decompiler_unsupported_languages"; + @SerializedName(SERIALIZED_NAME_AI_DECOMPILER_UNSUPPORTED_LANGUAGES) + @javax.annotation.Nonnull + private List aiDecompilerUnsupportedLanguages = new ArrayList<>(); + public static final String SERIALIZED_NAME_DASHBOARD_URL = "dashboard_url"; @SerializedName(SERIALIZED_NAME_DASHBOARD_URL) @javax.annotation.Nullable @@ -63,54 +73,33 @@ public class ConfigResponse { @javax.annotation.Nonnull private Integer maxFileSizeBytes; - public static final String SERIALIZED_NAME_AI_DECOMPILER_UNSUPPORTED_LANGUAGES = "ai_decompiler_unsupported_languages"; - @SerializedName(SERIALIZED_NAME_AI_DECOMPILER_UNSUPPORTED_LANGUAGES) - @javax.annotation.Nonnull - private List aiDecompilerUnsupportedLanguages = new ArrayList<>(); - - public static final String SERIALIZED_NAME_AI_DECOMPILER_SUPPORTED_MODELS = "ai_decompiler_supported_models"; - @SerializedName(SERIALIZED_NAME_AI_DECOMPILER_SUPPORTED_MODELS) - @javax.annotation.Nonnull - private List aiDecompilerSupportedModels = new ArrayList<>(); - public ConfigResponse() { } - public ConfigResponse dashboardUrl(@javax.annotation.Nullable String dashboardUrl) { - this.dashboardUrl = dashboardUrl; + public ConfigResponse aiDecompilerSupportedModels(@javax.annotation.Nonnull List aiDecompilerSupportedModels) { + this.aiDecompilerSupportedModels = aiDecompilerSupportedModels; return this; } - /** - * The domain of the RevEng.AI platform you are connected to - * @return dashboardUrl - */ - @javax.annotation.Nullable - public String getDashboardUrl() { - return dashboardUrl; - } - - public void setDashboardUrl(@javax.annotation.Nullable String dashboardUrl) { - this.dashboardUrl = dashboardUrl; - } - - - public ConfigResponse maxFileSizeBytes(@javax.annotation.Nonnull Integer maxFileSizeBytes) { - this.maxFileSizeBytes = maxFileSizeBytes; + public ConfigResponse addAiDecompilerSupportedModelsItem(String aiDecompilerSupportedModelsItem) { + if (this.aiDecompilerSupportedModels == null) { + this.aiDecompilerSupportedModels = new ArrayList<>(); + } + this.aiDecompilerSupportedModels.add(aiDecompilerSupportedModelsItem); return this; } /** - * Maximum file size (in bytes) that can be uploaded for analysis - * @return maxFileSizeBytes + * List of models that support AI decompilation + * @return aiDecompilerSupportedModels */ @javax.annotation.Nonnull - public Integer getMaxFileSizeBytes() { - return maxFileSizeBytes; + public List getAiDecompilerSupportedModels() { + return aiDecompilerSupportedModels; } - public void setMaxFileSizeBytes(@javax.annotation.Nonnull Integer maxFileSizeBytes) { - this.maxFileSizeBytes = maxFileSizeBytes; + public void setAiDecompilerSupportedModels(@javax.annotation.Nonnull List aiDecompilerSupportedModels) { + this.aiDecompilerSupportedModels = aiDecompilerSupportedModels; } @@ -141,30 +130,41 @@ public void setAiDecompilerUnsupportedLanguages(@javax.annotation.Nonnull List aiDecompilerSupportedModels) { - this.aiDecompilerSupportedModels = aiDecompilerSupportedModels; + public ConfigResponse dashboardUrl(@javax.annotation.Nullable String dashboardUrl) { + this.dashboardUrl = dashboardUrl; return this; } - public ConfigResponse addAiDecompilerSupportedModelsItem(String aiDecompilerSupportedModelsItem) { - if (this.aiDecompilerSupportedModels == null) { - this.aiDecompilerSupportedModels = new ArrayList<>(); - } - this.aiDecompilerSupportedModels.add(aiDecompilerSupportedModelsItem); + /** + * The domain of the RevEng.AI platform you are connected to + * @return dashboardUrl + */ + @javax.annotation.Nullable + public String getDashboardUrl() { + return dashboardUrl; + } + + public void setDashboardUrl(@javax.annotation.Nullable String dashboardUrl) { + this.dashboardUrl = dashboardUrl; + } + + + public ConfigResponse maxFileSizeBytes(@javax.annotation.Nonnull Integer maxFileSizeBytes) { + this.maxFileSizeBytes = maxFileSizeBytes; return this; } /** - * List of models that support AI decompilation - * @return aiDecompilerSupportedModels + * Maximum file size (in bytes) that can be uploaded for analysis + * @return maxFileSizeBytes */ @javax.annotation.Nonnull - public List getAiDecompilerSupportedModels() { - return aiDecompilerSupportedModels; + public Integer getMaxFileSizeBytes() { + return maxFileSizeBytes; } - public void setAiDecompilerSupportedModels(@javax.annotation.Nonnull List aiDecompilerSupportedModels) { - this.aiDecompilerSupportedModels = aiDecompilerSupportedModels; + public void setMaxFileSizeBytes(@javax.annotation.Nonnull Integer maxFileSizeBytes) { + this.maxFileSizeBytes = maxFileSizeBytes; } /** @@ -222,26 +222,26 @@ public boolean equals(Object o) { return false; } ConfigResponse configResponse = (ConfigResponse) o; - return Objects.equals(this.dashboardUrl, configResponse.dashboardUrl) && - Objects.equals(this.maxFileSizeBytes, configResponse.maxFileSizeBytes) && + return Objects.equals(this.aiDecompilerSupportedModels, configResponse.aiDecompilerSupportedModels) && Objects.equals(this.aiDecompilerUnsupportedLanguages, configResponse.aiDecompilerUnsupportedLanguages) && - Objects.equals(this.aiDecompilerSupportedModels, configResponse.aiDecompilerSupportedModels)&& + Objects.equals(this.dashboardUrl, configResponse.dashboardUrl) && + Objects.equals(this.maxFileSizeBytes, configResponse.maxFileSizeBytes)&& Objects.equals(this.additionalProperties, configResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dashboardUrl, maxFileSizeBytes, aiDecompilerUnsupportedLanguages, aiDecompilerSupportedModels, additionalProperties); + return Objects.hash(aiDecompilerSupportedModels, aiDecompilerUnsupportedLanguages, dashboardUrl, maxFileSizeBytes, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConfigResponse {\n"); + sb.append(" aiDecompilerSupportedModels: ").append(toIndentedString(aiDecompilerSupportedModels)).append("\n"); + sb.append(" aiDecompilerUnsupportedLanguages: ").append(toIndentedString(aiDecompilerUnsupportedLanguages)).append("\n"); sb.append(" dashboardUrl: ").append(toIndentedString(dashboardUrl)).append("\n"); sb.append(" maxFileSizeBytes: ").append(toIndentedString(maxFileSizeBytes)).append("\n"); - sb.append(" aiDecompilerUnsupportedLanguages: ").append(toIndentedString(aiDecompilerUnsupportedLanguages)).append("\n"); - sb.append(" aiDecompilerSupportedModels: ").append(toIndentedString(aiDecompilerSupportedModels)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -264,10 +264,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("dashboard_url", "max_file_size_bytes", "ai_decompiler_unsupported_languages", "ai_decompiler_supported_models")); + openapiFields = new HashSet(Arrays.asList("ai_decompiler_supported_models", "ai_decompiler_unsupported_languages", "dashboard_url", "max_file_size_bytes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("max_file_size_bytes", "ai_decompiler_unsupported_languages", "ai_decompiler_supported_models")); + openapiRequiredFields = new HashSet(Arrays.asList("ai_decompiler_supported_models", "ai_decompiler_unsupported_languages", "max_file_size_bytes")); } /** @@ -290,8 +290,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("dashboard_url") != null && !jsonObj.get("dashboard_url").isJsonNull()) && !jsonObj.get("dashboard_url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dashboard_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dashboard_url").toString())); + // ensure the required json array is present + if (jsonObj.get("ai_decompiler_supported_models") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("ai_decompiler_supported_models").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ai_decompiler_supported_models` to be an array in the JSON string but got `%s`", jsonObj.get("ai_decompiler_supported_models").toString())); } // ensure the required json array is present if (jsonObj.get("ai_decompiler_unsupported_languages") == null) { @@ -299,11 +302,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } else if (!jsonObj.get("ai_decompiler_unsupported_languages").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ai_decompiler_unsupported_languages` to be an array in the JSON string but got `%s`", jsonObj.get("ai_decompiler_unsupported_languages").toString())); } - // ensure the required json array is present - if (jsonObj.get("ai_decompiler_supported_models") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("ai_decompiler_supported_models").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ai_decompiler_supported_models` to be an array in the JSON string but got `%s`", jsonObj.get("ai_decompiler_supported_models").toString())); + if ((jsonObj.get("dashboard_url") != null && !jsonObj.get("dashboard_url").isJsonNull()) && !jsonObj.get("dashboard_url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dashboard_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dashboard_url").toString())); } } diff --git a/src/main/java/ai/reveng/model/DecompilationCommentContext.java b/src/main/java/ai/reveng/model/DecompilationCommentContext.java index 0f3473f..d74e482 100644 --- a/src/main/java/ai/reveng/model/DecompilationCommentContext.java +++ b/src/main/java/ai/reveng/model/DecompilationCommentContext.java @@ -51,54 +51,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DecompilationCommentContext { - public static final String SERIALIZED_NAME_START_LINE = "start_line"; - @SerializedName(SERIALIZED_NAME_START_LINE) - @javax.annotation.Nullable - private Integer startLine; - public static final String SERIALIZED_NAME_END_LINE = "end_line"; @SerializedName(SERIALIZED_NAME_END_LINE) @javax.annotation.Nullable private Integer endLine; + public static final String SERIALIZED_NAME_START_LINE = "start_line"; + @SerializedName(SERIALIZED_NAME_START_LINE) + @javax.annotation.Nullable + private Integer startLine; + public DecompilationCommentContext() { } - public DecompilationCommentContext startLine(@javax.annotation.Nullable Integer startLine) { - this.startLine = startLine; + public DecompilationCommentContext endLine(@javax.annotation.Nullable Integer endLine) { + this.endLine = endLine; return this; } /** - * Get startLine - * @return startLine + * Get endLine + * @return endLine */ @javax.annotation.Nullable - public Integer getStartLine() { - return startLine; + public Integer getEndLine() { + return endLine; } - public void setStartLine(@javax.annotation.Nullable Integer startLine) { - this.startLine = startLine; + public void setEndLine(@javax.annotation.Nullable Integer endLine) { + this.endLine = endLine; } - public DecompilationCommentContext endLine(@javax.annotation.Nullable Integer endLine) { - this.endLine = endLine; + public DecompilationCommentContext startLine(@javax.annotation.Nullable Integer startLine) { + this.startLine = startLine; return this; } /** - * Get endLine - * @return endLine + * Get startLine + * @return startLine */ @javax.annotation.Nullable - public Integer getEndLine() { - return endLine; + public Integer getStartLine() { + return startLine; } - public void setEndLine(@javax.annotation.Nullable Integer endLine) { - this.endLine = endLine; + public void setStartLine(@javax.annotation.Nullable Integer startLine) { + this.startLine = startLine; } /** @@ -156,22 +156,22 @@ public boolean equals(Object o) { return false; } DecompilationCommentContext decompilationCommentContext = (DecompilationCommentContext) o; - return Objects.equals(this.startLine, decompilationCommentContext.startLine) && - Objects.equals(this.endLine, decompilationCommentContext.endLine)&& + return Objects.equals(this.endLine, decompilationCommentContext.endLine) && + Objects.equals(this.startLine, decompilationCommentContext.startLine)&& Objects.equals(this.additionalProperties, decompilationCommentContext.additionalProperties); } @Override public int hashCode() { - return Objects.hash(startLine, endLine, additionalProperties); + return Objects.hash(endLine, startLine, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DecompilationCommentContext {\n"); - sb.append(" startLine: ").append(toIndentedString(startLine)).append("\n"); sb.append(" endLine: ").append(toIndentedString(endLine)).append("\n"); + sb.append(" startLine: ").append(toIndentedString(startLine)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -194,10 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("start_line", "end_line")); + openapiFields = new HashSet(Arrays.asList("end_line", "start_line")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("start_line", "end_line")); + openapiRequiredFields = new HashSet(Arrays.asList("end_line", "start_line")); } /** diff --git a/src/main/java/ai/reveng/model/DieMatch.java b/src/main/java/ai/reveng/model/DieMatch.java index f34097d..81fe976 100644 --- a/src/main/java/ai/reveng/model/DieMatch.java +++ b/src/main/java/ai/reveng/model/DieMatch.java @@ -51,6 +51,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DieMatch { + public static final String SERIALIZED_NAME_DISPLAY = "display"; + @SerializedName(SERIALIZED_NAME_DISPLAY) + @javax.annotation.Nonnull + private String display; + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull @@ -61,11 +66,6 @@ public class DieMatch { @javax.annotation.Nonnull private String type; - public static final String SERIALIZED_NAME_DISPLAY = "display"; - @SerializedName(SERIALIZED_NAME_DISPLAY) - @javax.annotation.Nonnull - private String display; - public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) @javax.annotation.Nonnull @@ -74,6 +74,25 @@ public class DieMatch { public DieMatch() { } + public DieMatch display(@javax.annotation.Nonnull String display) { + this.display = display; + return this; + } + + /** + * Human-readable description from DIE's 'string' field; suitable for UI/logs, not for parsing. + * @return display + */ + @javax.annotation.Nonnull + public String getDisplay() { + return display; + } + + public void setDisplay(@javax.annotation.Nonnull String display) { + this.display = display; + } + + public DieMatch name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -112,25 +131,6 @@ public void setType(@javax.annotation.Nonnull String type) { } - public DieMatch display(@javax.annotation.Nonnull String display) { - this.display = display; - return this; - } - - /** - * Human-readable description from DIE's 'string' field; suitable for UI/logs, not for parsing. - * @return display - */ - @javax.annotation.Nonnull - public String getDisplay() { - return display; - } - - public void setDisplay(@javax.annotation.Nonnull String display) { - this.display = display; - } - - public DieMatch version(@javax.annotation.Nonnull String version) { this.version = version; return this; @@ -204,25 +204,25 @@ public boolean equals(Object o) { return false; } DieMatch dieMatch = (DieMatch) o; - return Objects.equals(this.name, dieMatch.name) && + return Objects.equals(this.display, dieMatch.display) && + Objects.equals(this.name, dieMatch.name) && Objects.equals(this.type, dieMatch.type) && - Objects.equals(this.display, dieMatch.display) && Objects.equals(this.version, dieMatch.version)&& Objects.equals(this.additionalProperties, dieMatch.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, type, display, version, additionalProperties); + return Objects.hash(display, name, type, version, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DieMatch {\n"); + sb.append(" display: ").append(toIndentedString(display)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" display: ").append(toIndentedString(display)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -246,10 +246,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "type", "display", "version")); + openapiFields = new HashSet(Arrays.asList("display", "name", "type", "version")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "type", "display", "version")); + openapiRequiredFields = new HashSet(Arrays.asList("display", "name", "type", "version")); } /** @@ -272,15 +272,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("display").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `display` to be a primitive type in the JSON string but got `%s`", jsonObj.get("display").toString())); + } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - if (!jsonObj.get("display").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `display` to be a primitive type in the JSON string but got `%s`", jsonObj.get("display").toString())); - } if (!jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } diff --git a/src/main/java/ai/reveng/model/ELFImportModel.java b/src/main/java/ai/reveng/model/ELFImportModel.java index 89f535a..179bd98 100644 --- a/src/main/java/ai/reveng/model/ELFImportModel.java +++ b/src/main/java/ai/reveng/model/ELFImportModel.java @@ -53,38 +53,19 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ELFImportModel { - public static final String SERIALIZED_NAME_NUMBER_OF_IMPORTS = "number_of_imports"; - @SerializedName(SERIALIZED_NAME_NUMBER_OF_IMPORTS) - @javax.annotation.Nonnull - private Integer numberOfImports; - public static final String SERIALIZED_NAME_IMPORTS = "imports"; @SerializedName(SERIALIZED_NAME_IMPORTS) @javax.annotation.Nonnull private List imports = new ArrayList<>(); - public ELFImportModel() { - } - - public ELFImportModel numberOfImports(@javax.annotation.Nonnull Integer numberOfImports) { - this.numberOfImports = numberOfImports; - return this; - } - - /** - * Get numberOfImports - * @return numberOfImports - */ + public static final String SERIALIZED_NAME_NUMBER_OF_IMPORTS = "number_of_imports"; + @SerializedName(SERIALIZED_NAME_NUMBER_OF_IMPORTS) @javax.annotation.Nonnull - public Integer getNumberOfImports() { - return numberOfImports; - } + private Integer numberOfImports; - public void setNumberOfImports(@javax.annotation.Nonnull Integer numberOfImports) { - this.numberOfImports = numberOfImports; + public ELFImportModel() { } - public ELFImportModel imports(@javax.annotation.Nonnull List imports) { this.imports = imports; return this; @@ -111,6 +92,25 @@ public void setImports(@javax.annotation.Nonnull List imports) { this.imports = imports; } + + public ELFImportModel numberOfImports(@javax.annotation.Nonnull Integer numberOfImports) { + this.numberOfImports = numberOfImports; + return this; + } + + /** + * Get numberOfImports + * @return numberOfImports + */ + @javax.annotation.Nonnull + public Integer getNumberOfImports() { + return numberOfImports; + } + + public void setNumberOfImports(@javax.annotation.Nonnull Integer numberOfImports) { + this.numberOfImports = numberOfImports; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -166,22 +166,22 @@ public boolean equals(Object o) { return false; } ELFImportModel elFImportModel = (ELFImportModel) o; - return Objects.equals(this.numberOfImports, elFImportModel.numberOfImports) && - Objects.equals(this.imports, elFImportModel.imports)&& + return Objects.equals(this.imports, elFImportModel.imports) && + Objects.equals(this.numberOfImports, elFImportModel.numberOfImports)&& Objects.equals(this.additionalProperties, elFImportModel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(numberOfImports, imports, additionalProperties); + return Objects.hash(imports, numberOfImports, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ELFImportModel {\n"); - sb.append(" numberOfImports: ").append(toIndentedString(numberOfImports)).append("\n"); sb.append(" imports: ").append(toIndentedString(imports)).append("\n"); + sb.append(" numberOfImports: ").append(toIndentedString(numberOfImports)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -204,10 +204,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("number_of_imports", "imports")); + openapiFields = new HashSet(Arrays.asList("imports", "number_of_imports")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("number_of_imports", "imports")); + openapiRequiredFields = new HashSet(Arrays.asList("imports", "number_of_imports")); } /** diff --git a/src/main/java/ai/reveng/model/ELFModel.java b/src/main/java/ai/reveng/model/ELFModel.java index 227a27a..624c13f 100644 --- a/src/main/java/ai/reveng/model/ELFModel.java +++ b/src/main/java/ai/reveng/model/ELFModel.java @@ -62,16 +62,31 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ELFModel { - public static final String SERIALIZED_NAME_FILE_TYPE = "file_type"; - @SerializedName(SERIALIZED_NAME_FILE_TYPE) - @javax.annotation.Nonnull - private String fileType; - public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; @SerializedName(SERIALIZED_NAME_ARCHITECTURE) @javax.annotation.Nonnull private String architecture; + public static final String SERIALIZED_NAME_BUILD_ID = "build_id"; + @SerializedName(SERIALIZED_NAME_BUILD_ID) + @javax.annotation.Nonnull + private String buildId; + + public static final String SERIALIZED_NAME_DEBUG_INFO = "debug_info"; + @SerializedName(SERIALIZED_NAME_DEBUG_INFO) + @javax.annotation.Nonnull + private Map debugInfo = new HashMap<>(); + + public static final String SERIALIZED_NAME_DYNAMIC_ENTRIES = "dynamic_entries"; + @SerializedName(SERIALIZED_NAME_DYNAMIC_ENTRIES) + @javax.annotation.Nonnull + private List dynamicEntries = new ArrayList<>(); + + public static final String SERIALIZED_NAME_DYNAMIC_SYMBOLS = "dynamic_symbols"; + @SerializedName(SERIALIZED_NAME_DYNAMIC_SYMBOLS) + @javax.annotation.Nonnull + private List dynamicSymbols = new ArrayList<>(); + public static final String SERIALIZED_NAME_ENDIANNESS = "endianness"; @SerializedName(SERIALIZED_NAME_ENDIANNESS) @javax.annotation.Nonnull @@ -87,31 +102,51 @@ public class ELFModel { @javax.annotation.Nonnull private String entryPointBytes; + public static final String SERIALIZED_NAME_EXPORT_HASH = "export_hash"; + @SerializedName(SERIALIZED_NAME_EXPORT_HASH) + @javax.annotation.Nonnull + private String exportHash; + + public static final String SERIALIZED_NAME_EXPORTED_FUNCTIONS = "exported_functions"; + @SerializedName(SERIALIZED_NAME_EXPORTED_FUNCTIONS) + @javax.annotation.Nonnull + private List exportedFunctions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_FILE_TYPE = "file_type"; + @SerializedName(SERIALIZED_NAME_FILE_TYPE) + @javax.annotation.Nonnull + private String fileType; + public static final String SERIALIZED_NAME_IMPORT_HASH = "import_hash"; @SerializedName(SERIALIZED_NAME_IMPORT_HASH) @javax.annotation.Nonnull private String importHash; - public static final String SERIALIZED_NAME_EXPORT_HASH = "export_hash"; - @SerializedName(SERIALIZED_NAME_EXPORT_HASH) + public static final String SERIALIZED_NAME_IMPORTS = "imports"; + @SerializedName(SERIALIZED_NAME_IMPORTS) @javax.annotation.Nonnull - private String exportHash; + private ELFImportModel imports; - public static final String SERIALIZED_NAME_BUILD_ID = "build_id"; - @SerializedName(SERIALIZED_NAME_BUILD_ID) + public static final String SERIALIZED_NAME_NOTES = "notes"; + @SerializedName(SERIALIZED_NAME_NOTES) @javax.annotation.Nonnull - private String buildId; + private List> notes = new ArrayList<>(); - public static final String SERIALIZED_NAME_SECURITY = "security"; - @SerializedName(SERIALIZED_NAME_SECURITY) + public static final String SERIALIZED_NAME_RELOCATIONS = "relocations"; + @SerializedName(SERIALIZED_NAME_RELOCATIONS) @javax.annotation.Nonnull - private ELFSecurity security; + private List relocations = new ArrayList<>(); public static final String SERIALIZED_NAME_SECTIONS = "sections"; @SerializedName(SERIALIZED_NAME_SECTIONS) @javax.annotation.Nonnull private List sections = new ArrayList<>(); + public static final String SERIALIZED_NAME_SECURITY = "security"; + @SerializedName(SERIALIZED_NAME_SECURITY) + @javax.annotation.Nonnull + private ELFSecurity security; + public static final String SERIALIZED_NAME_SEGMENTS = "segments"; @SerializedName(SERIALIZED_NAME_SEGMENTS) @javax.annotation.Nonnull @@ -122,84 +157,130 @@ public class ELFModel { @javax.annotation.Nonnull private List symbols = new ArrayList<>(); - public static final String SERIALIZED_NAME_DYNAMIC_SYMBOLS = "dynamic_symbols"; - @SerializedName(SERIALIZED_NAME_DYNAMIC_SYMBOLS) + public static final String SERIALIZED_NAME_VERSION_INFO = "version_info"; + @SerializedName(SERIALIZED_NAME_VERSION_INFO) @javax.annotation.Nonnull - private List dynamicSymbols = new ArrayList<>(); + private Map versionInfo = new HashMap<>(); - public static final String SERIALIZED_NAME_RELOCATIONS = "relocations"; - @SerializedName(SERIALIZED_NAME_RELOCATIONS) - @javax.annotation.Nonnull - private List relocations = new ArrayList<>(); + public ELFModel() { + } - public static final String SERIALIZED_NAME_IMPORTS = "imports"; - @SerializedName(SERIALIZED_NAME_IMPORTS) - @javax.annotation.Nonnull - private ELFImportModel imports; + public ELFModel architecture(@javax.annotation.Nonnull String architecture) { + this.architecture = architecture; + return this; + } - public static final String SERIALIZED_NAME_EXPORTED_FUNCTIONS = "exported_functions"; - @SerializedName(SERIALIZED_NAME_EXPORTED_FUNCTIONS) + /** + * Get architecture + * @return architecture + */ @javax.annotation.Nonnull - private List exportedFunctions = new ArrayList<>(); + public String getArchitecture() { + return architecture; + } - public static final String SERIALIZED_NAME_DYNAMIC_ENTRIES = "dynamic_entries"; - @SerializedName(SERIALIZED_NAME_DYNAMIC_ENTRIES) - @javax.annotation.Nonnull - private List dynamicEntries = new ArrayList<>(); + public void setArchitecture(@javax.annotation.Nonnull String architecture) { + this.architecture = architecture; + } - public static final String SERIALIZED_NAME_NOTES = "notes"; - @SerializedName(SERIALIZED_NAME_NOTES) - @javax.annotation.Nonnull - private List> notes = new ArrayList<>(); - public static final String SERIALIZED_NAME_DEBUG_INFO = "debug_info"; - @SerializedName(SERIALIZED_NAME_DEBUG_INFO) + public ELFModel buildId(@javax.annotation.Nonnull String buildId) { + this.buildId = buildId; + return this; + } + + /** + * Get buildId + * @return buildId + */ @javax.annotation.Nonnull - private Map debugInfo = new HashMap<>(); + public String getBuildId() { + return buildId; + } - public static final String SERIALIZED_NAME_VERSION_INFO = "version_info"; - @SerializedName(SERIALIZED_NAME_VERSION_INFO) + public void setBuildId(@javax.annotation.Nonnull String buildId) { + this.buildId = buildId; + } + + + public ELFModel debugInfo(@javax.annotation.Nonnull Map debugInfo) { + this.debugInfo = debugInfo; + return this; + } + + public ELFModel putDebugInfoItem(String key, Object debugInfoItem) { + if (this.debugInfo == null) { + this.debugInfo = new HashMap<>(); + } + this.debugInfo.put(key, debugInfoItem); + return this; + } + + /** + * Get debugInfo + * @return debugInfo + */ @javax.annotation.Nonnull - private Map versionInfo = new HashMap<>(); + public Map getDebugInfo() { + return debugInfo; + } - public ELFModel() { + public void setDebugInfo(@javax.annotation.Nonnull Map debugInfo) { + this.debugInfo = debugInfo; } - public ELFModel fileType(@javax.annotation.Nonnull String fileType) { - this.fileType = fileType; + + public ELFModel dynamicEntries(@javax.annotation.Nonnull List dynamicEntries) { + this.dynamicEntries = dynamicEntries; + return this; + } + + public ELFModel addDynamicEntriesItem(ElfDynamicEntry dynamicEntriesItem) { + if (this.dynamicEntries == null) { + this.dynamicEntries = new ArrayList<>(); + } + this.dynamicEntries.add(dynamicEntriesItem); return this; } /** - * Get fileType - * @return fileType + * Get dynamicEntries + * @return dynamicEntries */ @javax.annotation.Nonnull - public String getFileType() { - return fileType; + public List getDynamicEntries() { + return dynamicEntries; } - public void setFileType(@javax.annotation.Nonnull String fileType) { - this.fileType = fileType; + public void setDynamicEntries(@javax.annotation.Nonnull List dynamicEntries) { + this.dynamicEntries = dynamicEntries; } - public ELFModel architecture(@javax.annotation.Nonnull String architecture) { - this.architecture = architecture; + public ELFModel dynamicSymbols(@javax.annotation.Nonnull List dynamicSymbols) { + this.dynamicSymbols = dynamicSymbols; + return this; + } + + public ELFModel addDynamicSymbolsItem(ELFSymbol dynamicSymbolsItem) { + if (this.dynamicSymbols == null) { + this.dynamicSymbols = new ArrayList<>(); + } + this.dynamicSymbols.add(dynamicSymbolsItem); return this; } /** - * Get architecture - * @return architecture + * Get dynamicSymbols + * @return dynamicSymbols */ @javax.annotation.Nonnull - public String getArchitecture() { - return architecture; + public List getDynamicSymbols() { + return dynamicSymbols; } - public void setArchitecture(@javax.annotation.Nonnull String architecture) { - this.architecture = architecture; + public void setDynamicSymbols(@javax.annotation.Nonnull List dynamicSymbols) { + this.dynamicSymbols = dynamicSymbols; } @@ -260,25 +341,6 @@ public void setEntryPointBytes(@javax.annotation.Nonnull String entryPointBytes) } - public ELFModel importHash(@javax.annotation.Nonnull String importHash) { - this.importHash = importHash; - return this; - } - - /** - * Get importHash - * @return importHash - */ - @javax.annotation.Nonnull - public String getImportHash() { - return importHash; - } - - public void setImportHash(@javax.annotation.Nonnull String importHash) { - this.importHash = importHash; - } - - public ELFModel exportHash(@javax.annotation.Nonnull String exportHash) { this.exportHash = exportHash; return this; @@ -298,149 +360,114 @@ public void setExportHash(@javax.annotation.Nonnull String exportHash) { } - public ELFModel buildId(@javax.annotation.Nonnull String buildId) { - this.buildId = buildId; + public ELFModel exportedFunctions(@javax.annotation.Nonnull List exportedFunctions) { + this.exportedFunctions = exportedFunctions; return this; } - /** - * Get buildId - * @return buildId - */ - @javax.annotation.Nonnull - public String getBuildId() { - return buildId; - } - - public void setBuildId(@javax.annotation.Nonnull String buildId) { - this.buildId = buildId; - } - - - public ELFModel security(@javax.annotation.Nonnull ELFSecurity security) { - this.security = security; + public ELFModel addExportedFunctionsItem(String exportedFunctionsItem) { + if (this.exportedFunctions == null) { + this.exportedFunctions = new ArrayList<>(); + } + this.exportedFunctions.add(exportedFunctionsItem); return this; } /** - * Get security - * @return security + * Get exportedFunctions + * @return exportedFunctions */ @javax.annotation.Nonnull - public ELFSecurity getSecurity() { - return security; + public List getExportedFunctions() { + return exportedFunctions; } - public void setSecurity(@javax.annotation.Nonnull ELFSecurity security) { - this.security = security; + public void setExportedFunctions(@javax.annotation.Nonnull List exportedFunctions) { + this.exportedFunctions = exportedFunctions; } - public ELFModel sections(@javax.annotation.Nonnull List sections) { - this.sections = sections; - return this; - } - - public ELFModel addSectionsItem(ELFSection sectionsItem) { - if (this.sections == null) { - this.sections = new ArrayList<>(); - } - this.sections.add(sectionsItem); + public ELFModel fileType(@javax.annotation.Nonnull String fileType) { + this.fileType = fileType; return this; } /** - * Get sections - * @return sections + * Get fileType + * @return fileType */ @javax.annotation.Nonnull - public List getSections() { - return sections; + public String getFileType() { + return fileType; } - public void setSections(@javax.annotation.Nonnull List sections) { - this.sections = sections; + public void setFileType(@javax.annotation.Nonnull String fileType) { + this.fileType = fileType; } - public ELFModel segments(@javax.annotation.Nonnull List segments) { - this.segments = segments; - return this; - } - - public ELFModel addSegmentsItem(ELFSegment segmentsItem) { - if (this.segments == null) { - this.segments = new ArrayList<>(); - } - this.segments.add(segmentsItem); + public ELFModel importHash(@javax.annotation.Nonnull String importHash) { + this.importHash = importHash; return this; } /** - * Get segments - * @return segments + * Get importHash + * @return importHash */ @javax.annotation.Nonnull - public List getSegments() { - return segments; + public String getImportHash() { + return importHash; } - public void setSegments(@javax.annotation.Nonnull List segments) { - this.segments = segments; + public void setImportHash(@javax.annotation.Nonnull String importHash) { + this.importHash = importHash; } - public ELFModel symbols(@javax.annotation.Nonnull List symbols) { - this.symbols = symbols; - return this; - } - - public ELFModel addSymbolsItem(ELFSymbol symbolsItem) { - if (this.symbols == null) { - this.symbols = new ArrayList<>(); - } - this.symbols.add(symbolsItem); + public ELFModel imports(@javax.annotation.Nonnull ELFImportModel imports) { + this.imports = imports; return this; } /** - * Get symbols - * @return symbols + * Get imports + * @return imports */ @javax.annotation.Nonnull - public List getSymbols() { - return symbols; + public ELFImportModel getImports() { + return imports; } - public void setSymbols(@javax.annotation.Nonnull List symbols) { - this.symbols = symbols; + public void setImports(@javax.annotation.Nonnull ELFImportModel imports) { + this.imports = imports; } - public ELFModel dynamicSymbols(@javax.annotation.Nonnull List dynamicSymbols) { - this.dynamicSymbols = dynamicSymbols; + public ELFModel notes(@javax.annotation.Nonnull List> notes) { + this.notes = notes; return this; } - public ELFModel addDynamicSymbolsItem(ELFSymbol dynamicSymbolsItem) { - if (this.dynamicSymbols == null) { - this.dynamicSymbols = new ArrayList<>(); + public ELFModel addNotesItem(Map notesItem) { + if (this.notes == null) { + this.notes = new ArrayList<>(); } - this.dynamicSymbols.add(dynamicSymbolsItem); + this.notes.add(notesItem); return this; } /** - * Get dynamicSymbols - * @return dynamicSymbols + * Get notes + * @return notes */ @javax.annotation.Nonnull - public List getDynamicSymbols() { - return dynamicSymbols; + public List> getNotes() { + return notes; } - public void setDynamicSymbols(@javax.annotation.Nonnull List dynamicSymbols) { - this.dynamicSymbols = dynamicSymbols; + public void setNotes(@javax.annotation.Nonnull List> notes) { + this.notes = notes; } @@ -458,143 +485,116 @@ public ELFModel addRelocationsItem(ELFRelocation relocationsItem) { } /** - * Get relocations - * @return relocations - */ - @javax.annotation.Nonnull - public List getRelocations() { - return relocations; - } - - public void setRelocations(@javax.annotation.Nonnull List relocations) { - this.relocations = relocations; - } - - - public ELFModel imports(@javax.annotation.Nonnull ELFImportModel imports) { - this.imports = imports; - return this; - } - - /** - * Get imports - * @return imports + * Get relocations + * @return relocations */ @javax.annotation.Nonnull - public ELFImportModel getImports() { - return imports; + public List getRelocations() { + return relocations; } - public void setImports(@javax.annotation.Nonnull ELFImportModel imports) { - this.imports = imports; + public void setRelocations(@javax.annotation.Nonnull List relocations) { + this.relocations = relocations; } - public ELFModel exportedFunctions(@javax.annotation.Nonnull List exportedFunctions) { - this.exportedFunctions = exportedFunctions; + public ELFModel sections(@javax.annotation.Nonnull List sections) { + this.sections = sections; return this; } - public ELFModel addExportedFunctionsItem(String exportedFunctionsItem) { - if (this.exportedFunctions == null) { - this.exportedFunctions = new ArrayList<>(); + public ELFModel addSectionsItem(ELFSection sectionsItem) { + if (this.sections == null) { + this.sections = new ArrayList<>(); } - this.exportedFunctions.add(exportedFunctionsItem); + this.sections.add(sectionsItem); return this; } /** - * Get exportedFunctions - * @return exportedFunctions + * Get sections + * @return sections */ @javax.annotation.Nonnull - public List getExportedFunctions() { - return exportedFunctions; + public List getSections() { + return sections; } - public void setExportedFunctions(@javax.annotation.Nonnull List exportedFunctions) { - this.exportedFunctions = exportedFunctions; + public void setSections(@javax.annotation.Nonnull List sections) { + this.sections = sections; } - public ELFModel dynamicEntries(@javax.annotation.Nonnull List dynamicEntries) { - this.dynamicEntries = dynamicEntries; - return this; - } - - public ELFModel addDynamicEntriesItem(ElfDynamicEntry dynamicEntriesItem) { - if (this.dynamicEntries == null) { - this.dynamicEntries = new ArrayList<>(); - } - this.dynamicEntries.add(dynamicEntriesItem); + public ELFModel security(@javax.annotation.Nonnull ELFSecurity security) { + this.security = security; return this; } /** - * Get dynamicEntries - * @return dynamicEntries + * Get security + * @return security */ @javax.annotation.Nonnull - public List getDynamicEntries() { - return dynamicEntries; + public ELFSecurity getSecurity() { + return security; } - public void setDynamicEntries(@javax.annotation.Nonnull List dynamicEntries) { - this.dynamicEntries = dynamicEntries; + public void setSecurity(@javax.annotation.Nonnull ELFSecurity security) { + this.security = security; } - public ELFModel notes(@javax.annotation.Nonnull List> notes) { - this.notes = notes; + public ELFModel segments(@javax.annotation.Nonnull List segments) { + this.segments = segments; return this; } - public ELFModel addNotesItem(Map notesItem) { - if (this.notes == null) { - this.notes = new ArrayList<>(); + public ELFModel addSegmentsItem(ELFSegment segmentsItem) { + if (this.segments == null) { + this.segments = new ArrayList<>(); } - this.notes.add(notesItem); + this.segments.add(segmentsItem); return this; } /** - * Get notes - * @return notes + * Get segments + * @return segments */ @javax.annotation.Nonnull - public List> getNotes() { - return notes; + public List getSegments() { + return segments; } - public void setNotes(@javax.annotation.Nonnull List> notes) { - this.notes = notes; + public void setSegments(@javax.annotation.Nonnull List segments) { + this.segments = segments; } - public ELFModel debugInfo(@javax.annotation.Nonnull Map debugInfo) { - this.debugInfo = debugInfo; + public ELFModel symbols(@javax.annotation.Nonnull List symbols) { + this.symbols = symbols; return this; } - public ELFModel putDebugInfoItem(String key, Object debugInfoItem) { - if (this.debugInfo == null) { - this.debugInfo = new HashMap<>(); + public ELFModel addSymbolsItem(ELFSymbol symbolsItem) { + if (this.symbols == null) { + this.symbols = new ArrayList<>(); } - this.debugInfo.put(key, debugInfoItem); + this.symbols.add(symbolsItem); return this; } /** - * Get debugInfo - * @return debugInfo + * Get symbols + * @return symbols */ @javax.annotation.Nonnull - public Map getDebugInfo() { - return debugInfo; + public List getSymbols() { + return symbols; } - public void setDebugInfo(@javax.annotation.Nonnull Map debugInfo) { - this.debugInfo = debugInfo; + public void setSymbols(@javax.annotation.Nonnull List symbols) { + this.symbols = symbols; } @@ -679,57 +679,57 @@ public boolean equals(Object o) { return false; } ELFModel elFModel = (ELFModel) o; - return Objects.equals(this.fileType, elFModel.fileType) && - Objects.equals(this.architecture, elFModel.architecture) && + return Objects.equals(this.architecture, elFModel.architecture) && + Objects.equals(this.buildId, elFModel.buildId) && + Objects.equals(this.debugInfo, elFModel.debugInfo) && + Objects.equals(this.dynamicEntries, elFModel.dynamicEntries) && + Objects.equals(this.dynamicSymbols, elFModel.dynamicSymbols) && Objects.equals(this.endianness, elFModel.endianness) && Objects.equals(this.entryPoint, elFModel.entryPoint) && Objects.equals(this.entryPointBytes, elFModel.entryPointBytes) && - Objects.equals(this.importHash, elFModel.importHash) && Objects.equals(this.exportHash, elFModel.exportHash) && - Objects.equals(this.buildId, elFModel.buildId) && - Objects.equals(this.security, elFModel.security) && + Objects.equals(this.exportedFunctions, elFModel.exportedFunctions) && + Objects.equals(this.fileType, elFModel.fileType) && + Objects.equals(this.importHash, elFModel.importHash) && + Objects.equals(this.imports, elFModel.imports) && + Objects.equals(this.notes, elFModel.notes) && + Objects.equals(this.relocations, elFModel.relocations) && Objects.equals(this.sections, elFModel.sections) && + Objects.equals(this.security, elFModel.security) && Objects.equals(this.segments, elFModel.segments) && Objects.equals(this.symbols, elFModel.symbols) && - Objects.equals(this.dynamicSymbols, elFModel.dynamicSymbols) && - Objects.equals(this.relocations, elFModel.relocations) && - Objects.equals(this.imports, elFModel.imports) && - Objects.equals(this.exportedFunctions, elFModel.exportedFunctions) && - Objects.equals(this.dynamicEntries, elFModel.dynamicEntries) && - Objects.equals(this.notes, elFModel.notes) && - Objects.equals(this.debugInfo, elFModel.debugInfo) && Objects.equals(this.versionInfo, elFModel.versionInfo)&& Objects.equals(this.additionalProperties, elFModel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(fileType, architecture, endianness, entryPoint, entryPointBytes, importHash, exportHash, buildId, security, sections, segments, symbols, dynamicSymbols, relocations, imports, exportedFunctions, dynamicEntries, notes, debugInfo, versionInfo, additionalProperties); + return Objects.hash(architecture, buildId, debugInfo, dynamicEntries, dynamicSymbols, endianness, entryPoint, entryPointBytes, exportHash, exportedFunctions, fileType, importHash, imports, notes, relocations, sections, security, segments, symbols, versionInfo, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ELFModel {\n"); - sb.append(" fileType: ").append(toIndentedString(fileType)).append("\n"); sb.append(" architecture: ").append(toIndentedString(architecture)).append("\n"); + sb.append(" buildId: ").append(toIndentedString(buildId)).append("\n"); + sb.append(" debugInfo: ").append(toIndentedString(debugInfo)).append("\n"); + sb.append(" dynamicEntries: ").append(toIndentedString(dynamicEntries)).append("\n"); + sb.append(" dynamicSymbols: ").append(toIndentedString(dynamicSymbols)).append("\n"); sb.append(" endianness: ").append(toIndentedString(endianness)).append("\n"); sb.append(" entryPoint: ").append(toIndentedString(entryPoint)).append("\n"); sb.append(" entryPointBytes: ").append(toIndentedString(entryPointBytes)).append("\n"); - sb.append(" importHash: ").append(toIndentedString(importHash)).append("\n"); sb.append(" exportHash: ").append(toIndentedString(exportHash)).append("\n"); - sb.append(" buildId: ").append(toIndentedString(buildId)).append("\n"); - sb.append(" security: ").append(toIndentedString(security)).append("\n"); + sb.append(" exportedFunctions: ").append(toIndentedString(exportedFunctions)).append("\n"); + sb.append(" fileType: ").append(toIndentedString(fileType)).append("\n"); + sb.append(" importHash: ").append(toIndentedString(importHash)).append("\n"); + sb.append(" imports: ").append(toIndentedString(imports)).append("\n"); + sb.append(" notes: ").append(toIndentedString(notes)).append("\n"); + sb.append(" relocations: ").append(toIndentedString(relocations)).append("\n"); sb.append(" sections: ").append(toIndentedString(sections)).append("\n"); + sb.append(" security: ").append(toIndentedString(security)).append("\n"); sb.append(" segments: ").append(toIndentedString(segments)).append("\n"); sb.append(" symbols: ").append(toIndentedString(symbols)).append("\n"); - sb.append(" dynamicSymbols: ").append(toIndentedString(dynamicSymbols)).append("\n"); - sb.append(" relocations: ").append(toIndentedString(relocations)).append("\n"); - sb.append(" imports: ").append(toIndentedString(imports)).append("\n"); - sb.append(" exportedFunctions: ").append(toIndentedString(exportedFunctions)).append("\n"); - sb.append(" dynamicEntries: ").append(toIndentedString(dynamicEntries)).append("\n"); - sb.append(" notes: ").append(toIndentedString(notes)).append("\n"); - sb.append(" debugInfo: ").append(toIndentedString(debugInfo)).append("\n"); sb.append(" versionInfo: ").append(toIndentedString(versionInfo)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -753,10 +753,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("file_type", "architecture", "endianness", "entry_point", "entry_point_bytes", "import_hash", "export_hash", "build_id", "security", "sections", "segments", "symbols", "dynamic_symbols", "relocations", "imports", "exported_functions", "dynamic_entries", "notes", "debug_info", "version_info")); + openapiFields = new HashSet(Arrays.asList("architecture", "build_id", "debug_info", "dynamic_entries", "dynamic_symbols", "endianness", "entry_point", "entry_point_bytes", "export_hash", "exported_functions", "file_type", "import_hash", "imports", "notes", "relocations", "sections", "security", "segments", "symbols", "version_info")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("file_type", "architecture", "endianness", "entry_point", "entry_point_bytes", "import_hash", "export_hash", "build_id", "security", "sections", "segments", "symbols", "dynamic_symbols", "relocations", "imports", "exported_functions", "dynamic_entries", "notes", "debug_info", "version_info")); + openapiRequiredFields = new HashSet(Arrays.asList("architecture", "build_id", "debug_info", "dynamic_entries", "dynamic_symbols", "endianness", "entry_point", "entry_point_bytes", "export_hash", "exported_functions", "file_type", "import_hash", "imports", "notes", "relocations", "sections", "security", "segments", "symbols", "version_info")); } /** @@ -779,29 +779,71 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("file_type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `file_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("file_type").toString())); - } 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())); } + if (!jsonObj.get("build_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `build_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("build_id").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("dynamic_entries").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dynamic_entries` to be an array in the JSON string but got `%s`", jsonObj.get("dynamic_entries").toString())); + } + + JsonArray jsonArraydynamicEntries = jsonObj.getAsJsonArray("dynamic_entries"); + // validate the required field `dynamic_entries` (array) + for (int i = 0; i < jsonArraydynamicEntries.size(); i++) { + ElfDynamicEntry.validateJsonElement(jsonArraydynamicEntries.get(i)); + }; + // ensure the json data is an array + if (!jsonObj.get("dynamic_symbols").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dynamic_symbols` to be an array in the JSON string but got `%s`", jsonObj.get("dynamic_symbols").toString())); + } + + JsonArray jsonArraydynamicSymbols = jsonObj.getAsJsonArray("dynamic_symbols"); + // validate the required field `dynamic_symbols` (array) + for (int i = 0; i < jsonArraydynamicSymbols.size(); i++) { + ELFSymbol.validateJsonElement(jsonArraydynamicSymbols.get(i)); + }; if (!jsonObj.get("endianness").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endianness` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endianness").toString())); } if (!jsonObj.get("entry_point_bytes").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entry_point_bytes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entry_point_bytes").toString())); } + if (!jsonObj.get("export_hash").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `export_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("export_hash").toString())); + } + // ensure the required json array is present + if (jsonObj.get("exported_functions") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("exported_functions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `exported_functions` to be an array in the JSON string but got `%s`", jsonObj.get("exported_functions").toString())); + } + if (!jsonObj.get("file_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `file_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("file_type").toString())); + } if (!jsonObj.get("import_hash").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `import_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("import_hash").toString())); } - if (!jsonObj.get("export_hash").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `export_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("export_hash").toString())); + // validate the required field `imports` + ELFImportModel.validateJsonElement(jsonObj.get("imports")); + // ensure the required json array is present + if (jsonObj.get("notes") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("notes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notes` to be an array in the JSON string but got `%s`", jsonObj.get("notes").toString())); } - if (!jsonObj.get("build_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `build_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("build_id").toString())); + // ensure the json data is an array + if (!jsonObj.get("relocations").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `relocations` to be an array in the JSON string but got `%s`", jsonObj.get("relocations").toString())); } - // validate the required field `security` - ELFSecurity.validateJsonElement(jsonObj.get("security")); + + JsonArray jsonArrayrelocations = jsonObj.getAsJsonArray("relocations"); + // validate the required field `relocations` (array) + for (int i = 0; i < jsonArrayrelocations.size(); i++) { + ELFRelocation.validateJsonElement(jsonArrayrelocations.get(i)); + }; // ensure the json data is an array if (!jsonObj.get("sections").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sections` to be an array in the JSON string but got `%s`", jsonObj.get("sections").toString())); @@ -812,6 +854,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArraysections.size(); i++) { ELFSection.validateJsonElement(jsonArraysections.get(i)); }; + // validate the required field `security` + ELFSecurity.validateJsonElement(jsonObj.get("security")); // ensure the json data is an array if (!jsonObj.get("segments").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `segments` to be an array in the JSON string but got `%s`", jsonObj.get("segments").toString())); @@ -832,50 +876,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArraysymbols.size(); i++) { ELFSymbol.validateJsonElement(jsonArraysymbols.get(i)); }; - // ensure the json data is an array - if (!jsonObj.get("dynamic_symbols").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dynamic_symbols` to be an array in the JSON string but got `%s`", jsonObj.get("dynamic_symbols").toString())); - } - - JsonArray jsonArraydynamicSymbols = jsonObj.getAsJsonArray("dynamic_symbols"); - // validate the required field `dynamic_symbols` (array) - for (int i = 0; i < jsonArraydynamicSymbols.size(); i++) { - ELFSymbol.validateJsonElement(jsonArraydynamicSymbols.get(i)); - }; - // ensure the json data is an array - if (!jsonObj.get("relocations").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `relocations` to be an array in the JSON string but got `%s`", jsonObj.get("relocations").toString())); - } - - JsonArray jsonArrayrelocations = jsonObj.getAsJsonArray("relocations"); - // validate the required field `relocations` (array) - for (int i = 0; i < jsonArrayrelocations.size(); i++) { - ELFRelocation.validateJsonElement(jsonArrayrelocations.get(i)); - }; - // validate the required field `imports` - ELFImportModel.validateJsonElement(jsonObj.get("imports")); - // ensure the required json array is present - if (jsonObj.get("exported_functions") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("exported_functions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `exported_functions` to be an array in the JSON string but got `%s`", jsonObj.get("exported_functions").toString())); - } - // ensure the json data is an array - if (!jsonObj.get("dynamic_entries").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dynamic_entries` to be an array in the JSON string but got `%s`", jsonObj.get("dynamic_entries").toString())); - } - - JsonArray jsonArraydynamicEntries = jsonObj.getAsJsonArray("dynamic_entries"); - // validate the required field `dynamic_entries` (array) - for (int i = 0; i < jsonArraydynamicEntries.size(); i++) { - ElfDynamicEntry.validateJsonElement(jsonArraydynamicEntries.get(i)); - }; - // ensure the required json array is present - if (jsonObj.get("notes") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("notes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notes` to be an array in the JSON string but got `%s`", jsonObj.get("notes").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/ELFRelocation.java b/src/main/java/ai/reveng/model/ELFRelocation.java index 8d26a75..334ddb9 100644 --- a/src/main/java/ai/reveng/model/ELFRelocation.java +++ b/src/main/java/ai/reveng/model/ELFRelocation.java @@ -51,44 +51,63 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ELFRelocation { + public static final String SERIALIZED_NAME_ADDEND = "addend"; + @SerializedName(SERIALIZED_NAME_ADDEND) + @javax.annotation.Nonnull + private Integer addend; + public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) @javax.annotation.Nonnull private Integer address; - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) + public static final String SERIALIZED_NAME_IS_DYNAMIC = "is_dynamic"; + @SerializedName(SERIALIZED_NAME_IS_DYNAMIC) @javax.annotation.Nonnull - private String type; + private Boolean isDynamic; + + public static final String SERIALIZED_NAME_IS_PLTGOT = "is_pltgot"; + @SerializedName(SERIALIZED_NAME_IS_PLTGOT) + @javax.annotation.Nonnull + private Boolean isPltgot; public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) @javax.annotation.Nonnull private Integer size; - public static final String SERIALIZED_NAME_ADDEND = "addend"; - @SerializedName(SERIALIZED_NAME_ADDEND) - @javax.annotation.Nonnull - private Integer addend; - public static final String SERIALIZED_NAME_SYMBOL_NAME = "symbol_name"; @SerializedName(SERIALIZED_NAME_SYMBOL_NAME) @javax.annotation.Nonnull private String symbolName; - public static final String SERIALIZED_NAME_IS_DYNAMIC = "is_dynamic"; - @SerializedName(SERIALIZED_NAME_IS_DYNAMIC) + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull - private Boolean isDynamic; + private String type; - public static final String SERIALIZED_NAME_IS_PLTGOT = "is_pltgot"; - @SerializedName(SERIALIZED_NAME_IS_PLTGOT) + public ELFRelocation() { + } + + public ELFRelocation addend(@javax.annotation.Nonnull Integer addend) { + this.addend = addend; + return this; + } + + /** + * Get addend + * @return addend + */ @javax.annotation.Nonnull - private Boolean isPltgot; + public Integer getAddend() { + return addend; + } - public ELFRelocation() { + public void setAddend(@javax.annotation.Nonnull Integer addend) { + this.addend = addend; } + public ELFRelocation address(@javax.annotation.Nonnull Integer address) { this.address = address; return this; @@ -108,60 +127,60 @@ public void setAddress(@javax.annotation.Nonnull Integer address) { } - public ELFRelocation type(@javax.annotation.Nonnull String type) { - this.type = type; + public ELFRelocation isDynamic(@javax.annotation.Nonnull Boolean isDynamic) { + this.isDynamic = isDynamic; return this; } /** - * Get type - * @return type + * Get isDynamic + * @return isDynamic */ @javax.annotation.Nonnull - public String getType() { - return type; + public Boolean getIsDynamic() { + return isDynamic; } - public void setType(@javax.annotation.Nonnull String type) { - this.type = type; + public void setIsDynamic(@javax.annotation.Nonnull Boolean isDynamic) { + this.isDynamic = isDynamic; } - public ELFRelocation size(@javax.annotation.Nonnull Integer size) { - this.size = size; + public ELFRelocation isPltgot(@javax.annotation.Nonnull Boolean isPltgot) { + this.isPltgot = isPltgot; return this; } /** - * Get size - * @return size + * Get isPltgot + * @return isPltgot */ @javax.annotation.Nonnull - public Integer getSize() { - return size; + public Boolean getIsPltgot() { + return isPltgot; } - public void setSize(@javax.annotation.Nonnull Integer size) { - this.size = size; + public void setIsPltgot(@javax.annotation.Nonnull Boolean isPltgot) { + this.isPltgot = isPltgot; } - public ELFRelocation addend(@javax.annotation.Nonnull Integer addend) { - this.addend = addend; + public ELFRelocation size(@javax.annotation.Nonnull Integer size) { + this.size = size; return this; } /** - * Get addend - * @return addend + * Get size + * @return size */ @javax.annotation.Nonnull - public Integer getAddend() { - return addend; + public Integer getSize() { + return size; } - public void setAddend(@javax.annotation.Nonnull Integer addend) { - this.addend = addend; + public void setSize(@javax.annotation.Nonnull Integer size) { + this.size = size; } @@ -184,41 +203,22 @@ public void setSymbolName(@javax.annotation.Nonnull String symbolName) { } - public ELFRelocation isDynamic(@javax.annotation.Nonnull Boolean isDynamic) { - this.isDynamic = isDynamic; - return this; - } - - /** - * Get isDynamic - * @return isDynamic - */ - @javax.annotation.Nonnull - public Boolean getIsDynamic() { - return isDynamic; - } - - public void setIsDynamic(@javax.annotation.Nonnull Boolean isDynamic) { - this.isDynamic = isDynamic; - } - - - public ELFRelocation isPltgot(@javax.annotation.Nonnull Boolean isPltgot) { - this.isPltgot = isPltgot; + public ELFRelocation type(@javax.annotation.Nonnull String type) { + this.type = type; return this; } /** - * Get isPltgot - * @return isPltgot + * Get type + * @return type */ @javax.annotation.Nonnull - public Boolean getIsPltgot() { - return isPltgot; + public String getType() { + return type; } - public void setIsPltgot(@javax.annotation.Nonnull Boolean isPltgot) { - this.isPltgot = isPltgot; + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; } /** @@ -276,32 +276,32 @@ public boolean equals(Object o) { return false; } ELFRelocation elFRelocation = (ELFRelocation) o; - return Objects.equals(this.address, elFRelocation.address) && - Objects.equals(this.type, elFRelocation.type) && + return Objects.equals(this.addend, elFRelocation.addend) && + Objects.equals(this.address, elFRelocation.address) && + Objects.equals(this.isDynamic, elFRelocation.isDynamic) && + Objects.equals(this.isPltgot, elFRelocation.isPltgot) && Objects.equals(this.size, elFRelocation.size) && - Objects.equals(this.addend, elFRelocation.addend) && Objects.equals(this.symbolName, elFRelocation.symbolName) && - Objects.equals(this.isDynamic, elFRelocation.isDynamic) && - Objects.equals(this.isPltgot, elFRelocation.isPltgot)&& + Objects.equals(this.type, elFRelocation.type)&& Objects.equals(this.additionalProperties, elFRelocation.additionalProperties); } @Override public int hashCode() { - return Objects.hash(address, type, size, addend, symbolName, isDynamic, isPltgot, additionalProperties); + return Objects.hash(addend, address, isDynamic, isPltgot, size, symbolName, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ELFRelocation {\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" addend: ").append(toIndentedString(addend)).append("\n"); - sb.append(" symbolName: ").append(toIndentedString(symbolName)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" isDynamic: ").append(toIndentedString(isDynamic)).append("\n"); sb.append(" isPltgot: ").append(toIndentedString(isPltgot)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" symbolName: ").append(toIndentedString(symbolName)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -324,10 +324,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("address", "type", "size", "addend", "symbol_name", "is_dynamic", "is_pltgot")); + openapiFields = new HashSet(Arrays.asList("addend", "address", "is_dynamic", "is_pltgot", "size", "symbol_name", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("address", "type", "size", "addend", "symbol_name", "is_dynamic", "is_pltgot")); + openapiRequiredFields = new HashSet(Arrays.asList("addend", "address", "is_dynamic", "is_pltgot", "size", "symbol_name", "type")); } /** @@ -350,12 +350,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } if (!jsonObj.get("symbol_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `symbol_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol_name").toString())); } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/ELFSection.java b/src/main/java/ai/reveng/model/ELFSection.java index cfde1bb..ceafe55 100644 --- a/src/main/java/ai/reveng/model/ELFSection.java +++ b/src/main/java/ai/reveng/model/ELFSection.java @@ -52,30 +52,15 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ELFSection { - 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) - @javax.annotation.Nonnull - private String type; - - public static final String SERIALIZED_NAME_VIRTUAL_ADDRESS = "virtual_address"; - @SerializedName(SERIALIZED_NAME_VIRTUAL_ADDRESS) - @javax.annotation.Nonnull - private Integer virtualAddress; - - public static final String SERIALIZED_NAME_VIRTUAL_SIZE = "virtual_size"; - @SerializedName(SERIALIZED_NAME_VIRTUAL_SIZE) + public static final String SERIALIZED_NAME_ALIGNMENT = "alignment"; + @SerializedName(SERIALIZED_NAME_ALIGNMENT) @javax.annotation.Nonnull - private Integer virtualSize; + private Integer alignment; - public static final String SERIALIZED_NAME_RAW_SIZE = "raw_size"; - @SerializedName(SERIALIZED_NAME_RAW_SIZE) + public static final String SERIALIZED_NAME_ENTROPY = "entropy"; + @SerializedName(SERIALIZED_NAME_ENTROPY) @javax.annotation.Nonnull - private Integer rawSize; + private BigDecimal entropy; public static final String SERIALIZED_NAME_FILE_OFFSET = "file_offset"; @SerializedName(SERIALIZED_NAME_FILE_OFFSET) @@ -92,206 +77,221 @@ public class ELFSection { @javax.annotation.Nonnull private Integer flagsRaw; - public static final String SERIALIZED_NAME_ENTROPY = "entropy"; - @SerializedName(SERIALIZED_NAME_ENTROPY) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull - private BigDecimal entropy; + private String name; - public static final String SERIALIZED_NAME_ALIGNMENT = "alignment"; - @SerializedName(SERIALIZED_NAME_ALIGNMENT) + public static final String SERIALIZED_NAME_RAW_SIZE = "raw_size"; + @SerializedName(SERIALIZED_NAME_RAW_SIZE) @javax.annotation.Nonnull - private Integer alignment; + private Integer rawSize; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull + private String type; + + public static final String SERIALIZED_NAME_VIRTUAL_ADDRESS = "virtual_address"; + @SerializedName(SERIALIZED_NAME_VIRTUAL_ADDRESS) + @javax.annotation.Nonnull + private Integer virtualAddress; + + public static final String SERIALIZED_NAME_VIRTUAL_SIZE = "virtual_size"; + @SerializedName(SERIALIZED_NAME_VIRTUAL_SIZE) + @javax.annotation.Nonnull + private Integer virtualSize; public ELFSection() { } - public ELFSection name(@javax.annotation.Nonnull String name) { - this.name = name; + public ELFSection alignment(@javax.annotation.Nonnull Integer alignment) { + this.alignment = alignment; return this; } /** - * Get name - * @return name + * Get alignment + * @return alignment */ @javax.annotation.Nonnull - public String getName() { - return name; + public Integer getAlignment() { + return alignment; } - public void setName(@javax.annotation.Nonnull String name) { - this.name = name; + public void setAlignment(@javax.annotation.Nonnull Integer alignment) { + this.alignment = alignment; } - public ELFSection type(@javax.annotation.Nonnull String type) { - this.type = type; + public ELFSection entropy(@javax.annotation.Nonnull BigDecimal entropy) { + this.entropy = entropy; return this; } /** - * Get type - * @return type + * Get entropy + * @return entropy */ @javax.annotation.Nonnull - public String getType() { - return type; + public BigDecimal getEntropy() { + return entropy; } - public void setType(@javax.annotation.Nonnull String type) { - this.type = type; + public void setEntropy(@javax.annotation.Nonnull BigDecimal entropy) { + this.entropy = entropy; } - public ELFSection virtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { - this.virtualAddress = virtualAddress; + public ELFSection fileOffset(@javax.annotation.Nonnull Integer fileOffset) { + this.fileOffset = fileOffset; return this; } /** - * Get virtualAddress - * @return virtualAddress + * Get fileOffset + * @return fileOffset */ @javax.annotation.Nonnull - public Integer getVirtualAddress() { - return virtualAddress; + public Integer getFileOffset() { + return fileOffset; } - public void setVirtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { - this.virtualAddress = virtualAddress; + public void setFileOffset(@javax.annotation.Nonnull Integer fileOffset) { + this.fileOffset = fileOffset; } - public ELFSection virtualSize(@javax.annotation.Nonnull Integer virtualSize) { - this.virtualSize = virtualSize; + public ELFSection flags(@javax.annotation.Nonnull String flags) { + this.flags = flags; return this; } /** - * Get virtualSize - * @return virtualSize + * Get flags + * @return flags */ @javax.annotation.Nonnull - public Integer getVirtualSize() { - return virtualSize; + public String getFlags() { + return flags; } - public void setVirtualSize(@javax.annotation.Nonnull Integer virtualSize) { - this.virtualSize = virtualSize; + public void setFlags(@javax.annotation.Nonnull String flags) { + this.flags = flags; } - public ELFSection rawSize(@javax.annotation.Nonnull Integer rawSize) { - this.rawSize = rawSize; + public ELFSection flagsRaw(@javax.annotation.Nonnull Integer flagsRaw) { + this.flagsRaw = flagsRaw; return this; } /** - * Get rawSize - * @return rawSize + * Get flagsRaw + * @return flagsRaw */ @javax.annotation.Nonnull - public Integer getRawSize() { - return rawSize; + public Integer getFlagsRaw() { + return flagsRaw; } - public void setRawSize(@javax.annotation.Nonnull Integer rawSize) { - this.rawSize = rawSize; + public void setFlagsRaw(@javax.annotation.Nonnull Integer flagsRaw) { + this.flagsRaw = flagsRaw; } - public ELFSection fileOffset(@javax.annotation.Nonnull Integer fileOffset) { - this.fileOffset = fileOffset; + public ELFSection name(@javax.annotation.Nonnull String name) { + this.name = name; return this; } /** - * Get fileOffset - * @return fileOffset + * Get name + * @return name */ @javax.annotation.Nonnull - public Integer getFileOffset() { - return fileOffset; + public String getName() { + return name; } - public void setFileOffset(@javax.annotation.Nonnull Integer fileOffset) { - this.fileOffset = fileOffset; + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; } - public ELFSection flags(@javax.annotation.Nonnull String flags) { - this.flags = flags; + public ELFSection rawSize(@javax.annotation.Nonnull Integer rawSize) { + this.rawSize = rawSize; return this; } /** - * Get flags - * @return flags + * Get rawSize + * @return rawSize */ @javax.annotation.Nonnull - public String getFlags() { - return flags; + public Integer getRawSize() { + return rawSize; } - public void setFlags(@javax.annotation.Nonnull String flags) { - this.flags = flags; + public void setRawSize(@javax.annotation.Nonnull Integer rawSize) { + this.rawSize = rawSize; } - public ELFSection flagsRaw(@javax.annotation.Nonnull Integer flagsRaw) { - this.flagsRaw = flagsRaw; + public ELFSection type(@javax.annotation.Nonnull String type) { + this.type = type; return this; } /** - * Get flagsRaw - * @return flagsRaw + * Get type + * @return type */ @javax.annotation.Nonnull - public Integer getFlagsRaw() { - return flagsRaw; + public String getType() { + return type; } - public void setFlagsRaw(@javax.annotation.Nonnull Integer flagsRaw) { - this.flagsRaw = flagsRaw; + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; } - public ELFSection entropy(@javax.annotation.Nonnull BigDecimal entropy) { - this.entropy = entropy; + public ELFSection virtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { + this.virtualAddress = virtualAddress; return this; } /** - * Get entropy - * @return entropy + * Get virtualAddress + * @return virtualAddress */ @javax.annotation.Nonnull - public BigDecimal getEntropy() { - return entropy; + public Integer getVirtualAddress() { + return virtualAddress; } - public void setEntropy(@javax.annotation.Nonnull BigDecimal entropy) { - this.entropy = entropy; + public void setVirtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { + this.virtualAddress = virtualAddress; } - public ELFSection alignment(@javax.annotation.Nonnull Integer alignment) { - this.alignment = alignment; + public ELFSection virtualSize(@javax.annotation.Nonnull Integer virtualSize) { + this.virtualSize = virtualSize; return this; } /** - * Get alignment - * @return alignment + * Get virtualSize + * @return virtualSize */ @javax.annotation.Nonnull - public Integer getAlignment() { - return alignment; + public Integer getVirtualSize() { + return virtualSize; } - public void setAlignment(@javax.annotation.Nonnull Integer alignment) { - this.alignment = alignment; + public void setVirtualSize(@javax.annotation.Nonnull Integer virtualSize) { + this.virtualSize = virtualSize; } /** @@ -349,38 +349,38 @@ public boolean equals(Object o) { return false; } ELFSection elFSection = (ELFSection) o; - return Objects.equals(this.name, elFSection.name) && - Objects.equals(this.type, elFSection.type) && - Objects.equals(this.virtualAddress, elFSection.virtualAddress) && - Objects.equals(this.virtualSize, elFSection.virtualSize) && - Objects.equals(this.rawSize, elFSection.rawSize) && + return Objects.equals(this.alignment, elFSection.alignment) && + Objects.equals(this.entropy, elFSection.entropy) && Objects.equals(this.fileOffset, elFSection.fileOffset) && Objects.equals(this.flags, elFSection.flags) && Objects.equals(this.flagsRaw, elFSection.flagsRaw) && - Objects.equals(this.entropy, elFSection.entropy) && - Objects.equals(this.alignment, elFSection.alignment)&& + Objects.equals(this.name, elFSection.name) && + Objects.equals(this.rawSize, elFSection.rawSize) && + Objects.equals(this.type, elFSection.type) && + Objects.equals(this.virtualAddress, elFSection.virtualAddress) && + Objects.equals(this.virtualSize, elFSection.virtualSize)&& Objects.equals(this.additionalProperties, elFSection.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, type, virtualAddress, virtualSize, rawSize, fileOffset, flags, flagsRaw, entropy, alignment, additionalProperties); + return Objects.hash(alignment, entropy, fileOffset, flags, flagsRaw, name, rawSize, type, virtualAddress, virtualSize, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ELFSection {\n"); + sb.append(" alignment: ").append(toIndentedString(alignment)).append("\n"); + sb.append(" entropy: ").append(toIndentedString(entropy)).append("\n"); + sb.append(" fileOffset: ").append(toIndentedString(fileOffset)).append("\n"); + sb.append(" flags: ").append(toIndentedString(flags)).append("\n"); + sb.append(" flagsRaw: ").append(toIndentedString(flagsRaw)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" rawSize: ").append(toIndentedString(rawSize)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" virtualAddress: ").append(toIndentedString(virtualAddress)).append("\n"); sb.append(" virtualSize: ").append(toIndentedString(virtualSize)).append("\n"); - sb.append(" rawSize: ").append(toIndentedString(rawSize)).append("\n"); - sb.append(" fileOffset: ").append(toIndentedString(fileOffset)).append("\n"); - sb.append(" flags: ").append(toIndentedString(flags)).append("\n"); - sb.append(" flagsRaw: ").append(toIndentedString(flagsRaw)).append("\n"); - sb.append(" entropy: ").append(toIndentedString(entropy)).append("\n"); - sb.append(" alignment: ").append(toIndentedString(alignment)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -403,10 +403,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "type", "virtual_address", "virtual_size", "raw_size", "file_offset", "flags", "flags_raw", "entropy", "alignment")); + openapiFields = new HashSet(Arrays.asList("alignment", "entropy", "file_offset", "flags", "flags_raw", "name", "raw_size", "type", "virtual_address", "virtual_size")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "type", "virtual_address", "virtual_size", "raw_size", "file_offset", "flags", "flags_raw", "entropy", "alignment")); + openapiRequiredFields = new HashSet(Arrays.asList("alignment", "entropy", "file_offset", "flags", "flags_raw", "name", "raw_size", "type", "virtual_address", "virtual_size")); } /** @@ -429,15 +429,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("flags").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `flags` to be a primitive type in the JSON string but got `%s`", jsonObj.get("flags").toString())); + } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - if (!jsonObj.get("flags").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `flags` to be a primitive type in the JSON string but got `%s`", jsonObj.get("flags").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/ELFSecurity.java b/src/main/java/ai/reveng/model/ELFSecurity.java index 90c279e..35832dd 100644 --- a/src/main/java/ai/reveng/model/ELFSecurity.java +++ b/src/main/java/ai/reveng/model/ELFSecurity.java @@ -51,16 +51,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ELFSecurity { - public static final String SERIALIZED_NAME_PIE = "pie"; - @SerializedName(SERIALIZED_NAME_PIE) - @javax.annotation.Nonnull - private Boolean pie; - - public static final String SERIALIZED_NAME_STRIPPED = "stripped"; - @SerializedName(SERIALIZED_NAME_STRIPPED) - @javax.annotation.Nonnull - private Boolean stripped; - public static final String SERIALIZED_NAME_CANARY = "canary"; @SerializedName(SERIALIZED_NAME_CANARY) @javax.annotation.Nonnull @@ -71,52 +61,24 @@ public class ELFSecurity { @javax.annotation.Nonnull private Boolean nx; + public static final String SERIALIZED_NAME_PIE = "pie"; + @SerializedName(SERIALIZED_NAME_PIE) + @javax.annotation.Nonnull + private Boolean pie; + public static final String SERIALIZED_NAME_RELO = "relo"; @SerializedName(SERIALIZED_NAME_RELO) @javax.annotation.Nonnull private Boolean relo; - public ELFSecurity() { - } - - public ELFSecurity pie(@javax.annotation.Nonnull Boolean pie) { - this.pie = pie; - return this; - } - - /** - * Get pie - * @return pie - */ - @javax.annotation.Nonnull - public Boolean getPie() { - return pie; - } - - public void setPie(@javax.annotation.Nonnull Boolean pie) { - this.pie = pie; - } - - - public ELFSecurity stripped(@javax.annotation.Nonnull Boolean stripped) { - this.stripped = stripped; - return this; - } - - /** - * Get stripped - * @return stripped - */ + public static final String SERIALIZED_NAME_STRIPPED = "stripped"; + @SerializedName(SERIALIZED_NAME_STRIPPED) @javax.annotation.Nonnull - public Boolean getStripped() { - return stripped; - } + private Boolean stripped; - public void setStripped(@javax.annotation.Nonnull Boolean stripped) { - this.stripped = stripped; + public ELFSecurity() { } - public ELFSecurity canary(@javax.annotation.Nonnull Boolean canary) { this.canary = canary; return this; @@ -155,6 +117,25 @@ public void setNx(@javax.annotation.Nonnull Boolean nx) { } + public ELFSecurity pie(@javax.annotation.Nonnull Boolean pie) { + this.pie = pie; + return this; + } + + /** + * Get pie + * @return pie + */ + @javax.annotation.Nonnull + public Boolean getPie() { + return pie; + } + + public void setPie(@javax.annotation.Nonnull Boolean pie) { + this.pie = pie; + } + + public ELFSecurity relo(@javax.annotation.Nonnull Boolean relo) { this.relo = relo; return this; @@ -173,6 +154,25 @@ public void setRelo(@javax.annotation.Nonnull Boolean relo) { this.relo = relo; } + + public ELFSecurity stripped(@javax.annotation.Nonnull Boolean stripped) { + this.stripped = stripped; + return this; + } + + /** + * Get stripped + * @return stripped + */ + @javax.annotation.Nonnull + public Boolean getStripped() { + return stripped; + } + + public void setStripped(@javax.annotation.Nonnull Boolean stripped) { + this.stripped = stripped; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -228,28 +228,28 @@ public boolean equals(Object o) { return false; } ELFSecurity elFSecurity = (ELFSecurity) o; - return Objects.equals(this.pie, elFSecurity.pie) && - Objects.equals(this.stripped, elFSecurity.stripped) && - Objects.equals(this.canary, elFSecurity.canary) && + return Objects.equals(this.canary, elFSecurity.canary) && Objects.equals(this.nx, elFSecurity.nx) && - Objects.equals(this.relo, elFSecurity.relo)&& + Objects.equals(this.pie, elFSecurity.pie) && + Objects.equals(this.relo, elFSecurity.relo) && + Objects.equals(this.stripped, elFSecurity.stripped)&& Objects.equals(this.additionalProperties, elFSecurity.additionalProperties); } @Override public int hashCode() { - return Objects.hash(pie, stripped, canary, nx, relo, additionalProperties); + return Objects.hash(canary, nx, pie, relo, stripped, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ELFSecurity {\n"); - sb.append(" pie: ").append(toIndentedString(pie)).append("\n"); - sb.append(" stripped: ").append(toIndentedString(stripped)).append("\n"); sb.append(" canary: ").append(toIndentedString(canary)).append("\n"); sb.append(" nx: ").append(toIndentedString(nx)).append("\n"); + sb.append(" pie: ").append(toIndentedString(pie)).append("\n"); sb.append(" relo: ").append(toIndentedString(relo)).append("\n"); + sb.append(" stripped: ").append(toIndentedString(stripped)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -272,10 +272,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("pie", "stripped", "canary", "nx", "relo")); + openapiFields = new HashSet(Arrays.asList("canary", "nx", "pie", "relo", "stripped")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("pie", "stripped", "canary", "nx", "relo")); + openapiRequiredFields = new HashSet(Arrays.asList("canary", "nx", "pie", "relo", "stripped")); } /** diff --git a/src/main/java/ai/reveng/model/ELFSegment.java b/src/main/java/ai/reveng/model/ELFSegment.java index 8ff78d7..fd966f8 100644 --- a/src/main/java/ai/reveng/model/ELFSegment.java +++ b/src/main/java/ai/reveng/model/ELFSegment.java @@ -51,20 +51,25 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ELFSegment { - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) + public static final String SERIALIZED_NAME_ALIGNMENT = "alignment"; + @SerializedName(SERIALIZED_NAME_ALIGNMENT) @javax.annotation.Nonnull - private String type; + private Integer alignment; - public static final String SERIALIZED_NAME_VIRTUAL_ADDRESS = "virtual_address"; - @SerializedName(SERIALIZED_NAME_VIRTUAL_ADDRESS) + public static final String SERIALIZED_NAME_FILE_OFFSET = "file_offset"; + @SerializedName(SERIALIZED_NAME_FILE_OFFSET) @javax.annotation.Nonnull - private Integer virtualAddress; + private Integer fileOffset; - public static final String SERIALIZED_NAME_VIRTUAL_SIZE = "virtual_size"; - @SerializedName(SERIALIZED_NAME_VIRTUAL_SIZE) + public static final String SERIALIZED_NAME_FLAGS = "flags"; + @SerializedName(SERIALIZED_NAME_FLAGS) @javax.annotation.Nonnull - private Integer virtualSize; + private String flags; + + public static final String SERIALIZED_NAME_FLAGS_RAW = "flags_raw"; + @SerializedName(SERIALIZED_NAME_FLAGS_RAW) + @javax.annotation.Nonnull + private Integer flagsRaw; public static final String SERIALIZED_NAME_PHYSICAL_ADDRESS = "physical_address"; @SerializedName(SERIALIZED_NAME_PHYSICAL_ADDRESS) @@ -76,83 +81,97 @@ public class ELFSegment { @javax.annotation.Nonnull private Integer physicalSize; - public static final String SERIALIZED_NAME_FILE_OFFSET = "file_offset"; - @SerializedName(SERIALIZED_NAME_FILE_OFFSET) + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull - private Integer fileOffset; + private String type; - public static final String SERIALIZED_NAME_FLAGS = "flags"; - @SerializedName(SERIALIZED_NAME_FLAGS) + public static final String SERIALIZED_NAME_VIRTUAL_ADDRESS = "virtual_address"; + @SerializedName(SERIALIZED_NAME_VIRTUAL_ADDRESS) @javax.annotation.Nonnull - private String flags; + private Integer virtualAddress; - public static final String SERIALIZED_NAME_FLAGS_RAW = "flags_raw"; - @SerializedName(SERIALIZED_NAME_FLAGS_RAW) + public static final String SERIALIZED_NAME_VIRTUAL_SIZE = "virtual_size"; + @SerializedName(SERIALIZED_NAME_VIRTUAL_SIZE) @javax.annotation.Nonnull - private Integer flagsRaw; + private Integer virtualSize; - public static final String SERIALIZED_NAME_ALIGNMENT = "alignment"; - @SerializedName(SERIALIZED_NAME_ALIGNMENT) + public ELFSegment() { + } + + public ELFSegment alignment(@javax.annotation.Nonnull Integer alignment) { + this.alignment = alignment; + return this; + } + + /** + * Get alignment + * @return alignment + */ @javax.annotation.Nonnull - private Integer alignment; + public Integer getAlignment() { + return alignment; + } - public ELFSegment() { + public void setAlignment(@javax.annotation.Nonnull Integer alignment) { + this.alignment = alignment; } - public ELFSegment type(@javax.annotation.Nonnull String type) { - this.type = type; + + public ELFSegment fileOffset(@javax.annotation.Nonnull Integer fileOffset) { + this.fileOffset = fileOffset; return this; } /** - * Get type - * @return type + * Get fileOffset + * @return fileOffset */ @javax.annotation.Nonnull - public String getType() { - return type; + public Integer getFileOffset() { + return fileOffset; } - public void setType(@javax.annotation.Nonnull String type) { - this.type = type; + public void setFileOffset(@javax.annotation.Nonnull Integer fileOffset) { + this.fileOffset = fileOffset; } - public ELFSegment virtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { - this.virtualAddress = virtualAddress; + public ELFSegment flags(@javax.annotation.Nonnull String flags) { + this.flags = flags; return this; } /** - * Get virtualAddress - * @return virtualAddress + * Get flags + * @return flags */ @javax.annotation.Nonnull - public Integer getVirtualAddress() { - return virtualAddress; + public String getFlags() { + return flags; } - public void setVirtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { - this.virtualAddress = virtualAddress; + public void setFlags(@javax.annotation.Nonnull String flags) { + this.flags = flags; } - public ELFSegment virtualSize(@javax.annotation.Nonnull Integer virtualSize) { - this.virtualSize = virtualSize; + public ELFSegment flagsRaw(@javax.annotation.Nonnull Integer flagsRaw) { + this.flagsRaw = flagsRaw; return this; } /** - * Get virtualSize - * @return virtualSize + * Get flagsRaw + * @return flagsRaw */ @javax.annotation.Nonnull - public Integer getVirtualSize() { - return virtualSize; + public Integer getFlagsRaw() { + return flagsRaw; } - public void setVirtualSize(@javax.annotation.Nonnull Integer virtualSize) { - this.virtualSize = virtualSize; + public void setFlagsRaw(@javax.annotation.Nonnull Integer flagsRaw) { + this.flagsRaw = flagsRaw; } @@ -194,79 +213,60 @@ public void setPhysicalSize(@javax.annotation.Nonnull Integer physicalSize) { } - public ELFSegment fileOffset(@javax.annotation.Nonnull Integer fileOffset) { - this.fileOffset = fileOffset; - return this; - } - - /** - * Get fileOffset - * @return fileOffset - */ - @javax.annotation.Nonnull - public Integer getFileOffset() { - return fileOffset; - } - - public void setFileOffset(@javax.annotation.Nonnull Integer fileOffset) { - this.fileOffset = fileOffset; - } - - - public ELFSegment flags(@javax.annotation.Nonnull String flags) { - this.flags = flags; + public ELFSegment type(@javax.annotation.Nonnull String type) { + this.type = type; return this; } /** - * Get flags - * @return flags + * Get type + * @return type */ @javax.annotation.Nonnull - public String getFlags() { - return flags; + public String getType() { + return type; } - public void setFlags(@javax.annotation.Nonnull String flags) { - this.flags = flags; + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; } - public ELFSegment flagsRaw(@javax.annotation.Nonnull Integer flagsRaw) { - this.flagsRaw = flagsRaw; + public ELFSegment virtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { + this.virtualAddress = virtualAddress; return this; } /** - * Get flagsRaw - * @return flagsRaw + * Get virtualAddress + * @return virtualAddress */ @javax.annotation.Nonnull - public Integer getFlagsRaw() { - return flagsRaw; + public Integer getVirtualAddress() { + return virtualAddress; } - public void setFlagsRaw(@javax.annotation.Nonnull Integer flagsRaw) { - this.flagsRaw = flagsRaw; + public void setVirtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { + this.virtualAddress = virtualAddress; } - public ELFSegment alignment(@javax.annotation.Nonnull Integer alignment) { - this.alignment = alignment; + public ELFSegment virtualSize(@javax.annotation.Nonnull Integer virtualSize) { + this.virtualSize = virtualSize; return this; } /** - * Get alignment - * @return alignment + * Get virtualSize + * @return virtualSize */ @javax.annotation.Nonnull - public Integer getAlignment() { - return alignment; + public Integer getVirtualSize() { + return virtualSize; } - public void setAlignment(@javax.annotation.Nonnull Integer alignment) { - this.alignment = alignment; + public void setVirtualSize(@javax.annotation.Nonnull Integer virtualSize) { + this.virtualSize = virtualSize; } /** @@ -324,36 +324,36 @@ public boolean equals(Object o) { return false; } ELFSegment elFSegment = (ELFSegment) o; - return Objects.equals(this.type, elFSegment.type) && - Objects.equals(this.virtualAddress, elFSegment.virtualAddress) && - Objects.equals(this.virtualSize, elFSegment.virtualSize) && - Objects.equals(this.physicalAddress, elFSegment.physicalAddress) && - Objects.equals(this.physicalSize, elFSegment.physicalSize) && + return Objects.equals(this.alignment, elFSegment.alignment) && Objects.equals(this.fileOffset, elFSegment.fileOffset) && Objects.equals(this.flags, elFSegment.flags) && Objects.equals(this.flagsRaw, elFSegment.flagsRaw) && - Objects.equals(this.alignment, elFSegment.alignment)&& + Objects.equals(this.physicalAddress, elFSegment.physicalAddress) && + Objects.equals(this.physicalSize, elFSegment.physicalSize) && + Objects.equals(this.type, elFSegment.type) && + Objects.equals(this.virtualAddress, elFSegment.virtualAddress) && + Objects.equals(this.virtualSize, elFSegment.virtualSize)&& Objects.equals(this.additionalProperties, elFSegment.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, virtualAddress, virtualSize, physicalAddress, physicalSize, fileOffset, flags, flagsRaw, alignment, additionalProperties); + return Objects.hash(alignment, fileOffset, flags, flagsRaw, physicalAddress, physicalSize, type, virtualAddress, virtualSize, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ELFSegment {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" virtualAddress: ").append(toIndentedString(virtualAddress)).append("\n"); - sb.append(" virtualSize: ").append(toIndentedString(virtualSize)).append("\n"); - sb.append(" physicalAddress: ").append(toIndentedString(physicalAddress)).append("\n"); - sb.append(" physicalSize: ").append(toIndentedString(physicalSize)).append("\n"); + sb.append(" alignment: ").append(toIndentedString(alignment)).append("\n"); sb.append(" fileOffset: ").append(toIndentedString(fileOffset)).append("\n"); sb.append(" flags: ").append(toIndentedString(flags)).append("\n"); sb.append(" flagsRaw: ").append(toIndentedString(flagsRaw)).append("\n"); - sb.append(" alignment: ").append(toIndentedString(alignment)).append("\n"); + sb.append(" physicalAddress: ").append(toIndentedString(physicalAddress)).append("\n"); + sb.append(" physicalSize: ").append(toIndentedString(physicalSize)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" virtualAddress: ").append(toIndentedString(virtualAddress)).append("\n"); + sb.append(" virtualSize: ").append(toIndentedString(virtualSize)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -376,10 +376,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("type", "virtual_address", "virtual_size", "physical_address", "physical_size", "file_offset", "flags", "flags_raw", "alignment")); + openapiFields = new HashSet(Arrays.asList("alignment", "file_offset", "flags", "flags_raw", "physical_address", "physical_size", "type", "virtual_address", "virtual_size")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("type", "virtual_address", "virtual_size", "physical_address", "physical_size", "file_offset", "flags", "flags_raw", "alignment")); + openapiRequiredFields = new HashSet(Arrays.asList("alignment", "file_offset", "flags", "flags_raw", "physical_address", "physical_size", "type", "virtual_address", "virtual_size")); } /** @@ -402,12 +402,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } if (!jsonObj.get("flags").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `flags` to be a primitive type in the JSON string but got `%s`", jsonObj.get("flags").toString())); } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/ELFSymbol.java b/src/main/java/ai/reveng/model/ELFSymbol.java index 543a831..dc9ed54 100644 --- a/src/main/java/ai/reveng/model/ELFSymbol.java +++ b/src/main/java/ai/reveng/model/ELFSymbol.java @@ -51,15 +51,20 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ELFSymbol { + public static final String SERIALIZED_NAME_BINDING = "binding"; + @SerializedName(SERIALIZED_NAME_BINDING) + @javax.annotation.Nonnull + private String binding; + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull private String name; - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) + public static final String SERIALIZED_NAME_SECTION_INDEX = "section_index"; + @SerializedName(SERIALIZED_NAME_SECTION_INDEX) @javax.annotation.Nonnull - private Integer value; + private Integer sectionIndex; public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) @@ -71,24 +76,38 @@ public class ELFSymbol { @javax.annotation.Nonnull private String type; - public static final String SERIALIZED_NAME_BINDING = "binding"; - @SerializedName(SERIALIZED_NAME_BINDING) + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) @javax.annotation.Nonnull - private String binding; + private Integer value; public static final String SERIALIZED_NAME_VISIBILITY = "visibility"; @SerializedName(SERIALIZED_NAME_VISIBILITY) @javax.annotation.Nonnull private String visibility; - public static final String SERIALIZED_NAME_SECTION_INDEX = "section_index"; - @SerializedName(SERIALIZED_NAME_SECTION_INDEX) + public ELFSymbol() { + } + + public ELFSymbol binding(@javax.annotation.Nonnull String binding) { + this.binding = binding; + return this; + } + + /** + * Get binding + * @return binding + */ @javax.annotation.Nonnull - private Integer sectionIndex; + public String getBinding() { + return binding; + } - public ELFSymbol() { + public void setBinding(@javax.annotation.Nonnull String binding) { + this.binding = binding; } + public ELFSymbol name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -108,22 +127,22 @@ public void setName(@javax.annotation.Nonnull String name) { } - public ELFSymbol value(@javax.annotation.Nonnull Integer value) { - this.value = value; + public ELFSymbol sectionIndex(@javax.annotation.Nonnull Integer sectionIndex) { + this.sectionIndex = sectionIndex; return this; } /** - * Get value - * @return value + * Get sectionIndex + * @return sectionIndex */ @javax.annotation.Nonnull - public Integer getValue() { - return value; + public Integer getSectionIndex() { + return sectionIndex; } - public void setValue(@javax.annotation.Nonnull Integer value) { - this.value = value; + public void setSectionIndex(@javax.annotation.Nonnull Integer sectionIndex) { + this.sectionIndex = sectionIndex; } @@ -165,22 +184,22 @@ public void setType(@javax.annotation.Nonnull String type) { } - public ELFSymbol binding(@javax.annotation.Nonnull String binding) { - this.binding = binding; + public ELFSymbol value(@javax.annotation.Nonnull Integer value) { + this.value = value; return this; } /** - * Get binding - * @return binding + * Get value + * @return value */ @javax.annotation.Nonnull - public String getBinding() { - return binding; + public Integer getValue() { + return value; } - public void setBinding(@javax.annotation.Nonnull String binding) { - this.binding = binding; + public void setValue(@javax.annotation.Nonnull Integer value) { + this.value = value; } @@ -202,25 +221,6 @@ public void setVisibility(@javax.annotation.Nonnull String visibility) { this.visibility = visibility; } - - public ELFSymbol sectionIndex(@javax.annotation.Nonnull Integer sectionIndex) { - this.sectionIndex = sectionIndex; - return this; - } - - /** - * Get sectionIndex - * @return sectionIndex - */ - @javax.annotation.Nonnull - public Integer getSectionIndex() { - return sectionIndex; - } - - public void setSectionIndex(@javax.annotation.Nonnull Integer sectionIndex) { - this.sectionIndex = sectionIndex; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -276,32 +276,32 @@ public boolean equals(Object o) { return false; } ELFSymbol elFSymbol = (ELFSymbol) o; - return Objects.equals(this.name, elFSymbol.name) && - Objects.equals(this.value, elFSymbol.value) && + return Objects.equals(this.binding, elFSymbol.binding) && + Objects.equals(this.name, elFSymbol.name) && + Objects.equals(this.sectionIndex, elFSymbol.sectionIndex) && Objects.equals(this.size, elFSymbol.size) && Objects.equals(this.type, elFSymbol.type) && - Objects.equals(this.binding, elFSymbol.binding) && - Objects.equals(this.visibility, elFSymbol.visibility) && - Objects.equals(this.sectionIndex, elFSymbol.sectionIndex)&& + Objects.equals(this.value, elFSymbol.value) && + Objects.equals(this.visibility, elFSymbol.visibility)&& Objects.equals(this.additionalProperties, elFSymbol.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, value, size, type, binding, visibility, sectionIndex, additionalProperties); + return Objects.hash(binding, name, sectionIndex, size, type, value, visibility, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ELFSymbol {\n"); + sb.append(" binding: ").append(toIndentedString(binding)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" sectionIndex: ").append(toIndentedString(sectionIndex)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" binding: ").append(toIndentedString(binding)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" visibility: ").append(toIndentedString(visibility)).append("\n"); - sb.append(" sectionIndex: ").append(toIndentedString(sectionIndex)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -324,10 +324,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "value", "size", "type", "binding", "visibility", "section_index")); + openapiFields = new HashSet(Arrays.asList("binding", "name", "section_index", "size", "type", "value", "visibility")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "value", "size", "type", "binding", "visibility", "section_index")); + openapiRequiredFields = new HashSet(Arrays.asList("binding", "name", "section_index", "size", "type", "value", "visibility")); } /** @@ -350,15 +350,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("binding").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binding` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binding").toString())); + } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - if (!jsonObj.get("binding").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binding` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binding").toString())); - } if (!jsonObj.get("visibility").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `visibility` to be a primitive type in the JSON string but got `%s`", jsonObj.get("visibility").toString())); } diff --git a/src/main/java/ai/reveng/model/Enumeration.java b/src/main/java/ai/reveng/model/Enumeration.java index 576fd74..e0b810d 100644 --- a/src/main/java/ai/reveng/model/Enumeration.java +++ b/src/main/java/ai/reveng/model/Enumeration.java @@ -54,64 +54,64 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Enumeration { + public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; + @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) + @javax.annotation.Nullable + private String artifactType; + public static final String SERIALIZED_NAME_LAST_CHANGE = "last_change"; @SerializedName(SERIALIZED_NAME_LAST_CHANGE) @javax.annotation.Nullable private String lastChange; - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; - public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) @javax.annotation.Nonnull private Map members = new HashMap<>(); - public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; - @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) - @javax.annotation.Nullable - private String artifactType; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; public Enumeration() { } - public Enumeration lastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; + public Enumeration artifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; return this; } /** - * Get lastChange - * @return lastChange + * Type of artifact that the enumeration is associated with + * @return artifactType */ @javax.annotation.Nullable - public String getLastChange() { - return lastChange; + public String getArtifactType() { + return artifactType; } - public void setLastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; + public void setArtifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; } - public Enumeration name(@javax.annotation.Nonnull String name) { - this.name = name; + public Enumeration lastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; return this; } /** - * Name of the enumeration - * @return name + * Get lastChange + * @return lastChange */ - @javax.annotation.Nonnull - public String getName() { - return name; + @javax.annotation.Nullable + public String getLastChange() { + return lastChange; } - public void setName(@javax.annotation.Nonnull String name) { - this.name = name; + public void setLastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; } @@ -142,22 +142,22 @@ public void setMembers(@javax.annotation.Nonnull Map members) { } - public Enumeration artifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; + public Enumeration name(@javax.annotation.Nonnull String name) { + this.name = name; return this; } /** - * Type of artifact that the enumeration is associated with - * @return artifactType + * Name of the enumeration + * @return name */ - @javax.annotation.Nullable - public String getArtifactType() { - return artifactType; + @javax.annotation.Nonnull + public String getName() { + return name; } - public void setArtifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; } /** @@ -215,10 +215,10 @@ public boolean equals(Object o) { return false; } Enumeration enumeration = (Enumeration) o; - return Objects.equals(this.lastChange, enumeration.lastChange) && - Objects.equals(this.name, enumeration.name) && + return Objects.equals(this.artifactType, enumeration.artifactType) && + Objects.equals(this.lastChange, enumeration.lastChange) && Objects.equals(this.members, enumeration.members) && - Objects.equals(this.artifactType, enumeration.artifactType)&& + Objects.equals(this.name, enumeration.name)&& Objects.equals(this.additionalProperties, enumeration.additionalProperties); } @@ -228,7 +228,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lastChange, name, members, artifactType, additionalProperties); + return Objects.hash(artifactType, lastChange, members, name, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -242,10 +242,10 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Enumeration {\n"); + sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" members: ").append(toIndentedString(members)).append("\n"); - sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -268,10 +268,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("last_change", "name", "members", "artifact_type")); + openapiFields = new HashSet(Arrays.asList("artifact_type", "last_change", "members", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "members")); + openapiRequiredFields = new HashSet(Arrays.asList("members", "name")); } /** @@ -294,15 +294,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); + } if ((jsonObj.get("last_change") != null && !jsonObj.get("last_change").isJsonNull()) && !jsonObj.get("last_change").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `last_change` to be a primitive type in the JSON string but got `%s`", jsonObj.get("last_change").toString())); } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/ExportModel.java b/src/main/java/ai/reveng/model/ExportModel.java index d69af3f..e6baa1d 100644 --- a/src/main/java/ai/reveng/model/ExportModel.java +++ b/src/main/java/ai/reveng/model/ExportModel.java @@ -54,38 +54,19 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ExportModel { - public static final String SERIALIZED_NAME_NUMBER_OF_EXPORTS = "number_of_exports"; - @SerializedName(SERIALIZED_NAME_NUMBER_OF_EXPORTS) - @javax.annotation.Nonnull - private Integer numberOfExports; - public static final String SERIALIZED_NAME_EXPORTS = "exports"; @SerializedName(SERIALIZED_NAME_EXPORTS) @javax.annotation.Nonnull private List> exports = new ArrayList<>(); - public ExportModel() { - } - - public ExportModel numberOfExports(@javax.annotation.Nonnull Integer numberOfExports) { - this.numberOfExports = numberOfExports; - return this; - } - - /** - * Get numberOfExports - * @return numberOfExports - */ + public static final String SERIALIZED_NAME_NUMBER_OF_EXPORTS = "number_of_exports"; + @SerializedName(SERIALIZED_NAME_NUMBER_OF_EXPORTS) @javax.annotation.Nonnull - public Integer getNumberOfExports() { - return numberOfExports; - } + private Integer numberOfExports; - public void setNumberOfExports(@javax.annotation.Nonnull Integer numberOfExports) { - this.numberOfExports = numberOfExports; + public ExportModel() { } - public ExportModel exports(@javax.annotation.Nonnull List> exports) { this.exports = exports; return this; @@ -112,6 +93,25 @@ public void setExports(@javax.annotation.Nonnull List> expo this.exports = exports; } + + public ExportModel numberOfExports(@javax.annotation.Nonnull Integer numberOfExports) { + this.numberOfExports = numberOfExports; + return this; + } + + /** + * Get numberOfExports + * @return numberOfExports + */ + @javax.annotation.Nonnull + public Integer getNumberOfExports() { + return numberOfExports; + } + + public void setNumberOfExports(@javax.annotation.Nonnull Integer numberOfExports) { + this.numberOfExports = numberOfExports; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -167,22 +167,22 @@ public boolean equals(Object o) { return false; } ExportModel exportModel = (ExportModel) o; - return Objects.equals(this.numberOfExports, exportModel.numberOfExports) && - Objects.equals(this.exports, exportModel.exports)&& + return Objects.equals(this.exports, exportModel.exports) && + Objects.equals(this.numberOfExports, exportModel.numberOfExports)&& Objects.equals(this.additionalProperties, exportModel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(numberOfExports, exports, additionalProperties); + return Objects.hash(exports, numberOfExports, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExportModel {\n"); - sb.append(" numberOfExports: ").append(toIndentedString(numberOfExports)).append("\n"); sb.append(" exports: ").append(toIndentedString(exports)).append("\n"); + sb.append(" numberOfExports: ").append(toIndentedString(numberOfExports)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -205,10 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("number_of_exports", "exports")); + openapiFields = new HashSet(Arrays.asList("exports", "number_of_exports")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("number_of_exports", "exports")); + openapiRequiredFields = new HashSet(Arrays.asList("exports", "number_of_exports")); } /** diff --git a/src/main/java/ai/reveng/model/ExternalResponse.java b/src/main/java/ai/reveng/model/ExternalResponse.java index 7917d54..ebc91bc 100644 --- a/src/main/java/ai/reveng/model/ExternalResponse.java +++ b/src/main/java/ai/reveng/model/ExternalResponse.java @@ -54,11 +54,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ExternalResponse { - 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_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nonnull @@ -69,28 +64,14 @@ public class ExternalResponse { @javax.annotation.Nonnull private OffsetDateTime lastUpdated; - public ExternalResponse() { - } - - public ExternalResponse sha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; - return this; - } - - /** - * Get sha256Hash - * @return sha256Hash - */ + public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash"; + @SerializedName(SERIALIZED_NAME_SHA256_HASH) @javax.annotation.Nonnull - public String getSha256Hash() { - return sha256Hash; - } + private String sha256Hash; - public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; + public ExternalResponse() { } - public ExternalResponse data(@javax.annotation.Nonnull Map data) { this.data = data; return this; @@ -136,6 +117,25 @@ public void setLastUpdated(@javax.annotation.Nonnull OffsetDateTime lastUpdated) this.lastUpdated = lastUpdated; } + + public ExternalResponse sha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; + return this; + } + + /** + * Get sha256Hash + * @return sha256Hash + */ + @javax.annotation.Nonnull + public String getSha256Hash() { + return sha256Hash; + } + + public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -191,24 +191,24 @@ public boolean equals(Object o) { return false; } ExternalResponse externalResponse = (ExternalResponse) o; - return Objects.equals(this.sha256Hash, externalResponse.sha256Hash) && - Objects.equals(this.data, externalResponse.data) && - Objects.equals(this.lastUpdated, externalResponse.lastUpdated)&& + return Objects.equals(this.data, externalResponse.data) && + Objects.equals(this.lastUpdated, externalResponse.lastUpdated) && + Objects.equals(this.sha256Hash, externalResponse.sha256Hash)&& Objects.equals(this.additionalProperties, externalResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(sha256Hash, data, lastUpdated, additionalProperties); + return Objects.hash(data, lastUpdated, sha256Hash, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExternalResponse {\n"); - sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" lastUpdated: ").append(toIndentedString(lastUpdated)).append("\n"); + sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -231,10 +231,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("sha_256_hash", "data", "last_updated")); + openapiFields = new HashSet(Arrays.asList("data", "last_updated", "sha_256_hash")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("sha_256_hash", "data", "last_updated")); + openapiRequiredFields = new HashSet(Arrays.asList("data", "last_updated", "sha_256_hash")); } /** diff --git a/src/main/java/ai/reveng/model/FileHashes.java b/src/main/java/ai/reveng/model/FileHashes.java index d42d3ed..dce5ac8 100644 --- a/src/main/java/ai/reveng/model/FileHashes.java +++ b/src/main/java/ai/reveng/model/FileHashes.java @@ -66,11 +66,6 @@ public class FileHashes { @javax.annotation.Nullable private String sha256; - public static final String SERIALIZED_NAME_SHA512 = "sha512"; - @SerializedName(SERIALIZED_NAME_SHA512) - @javax.annotation.Nullable - private String sha512; - public static final String SERIALIZED_NAME_SHA3224 = "sha3_224"; @SerializedName(SERIALIZED_NAME_SHA3224) @javax.annotation.Nullable @@ -91,6 +86,11 @@ public class FileHashes { @javax.annotation.Nullable private String sha3512; + public static final String SERIALIZED_NAME_SHA512 = "sha512"; + @SerializedName(SERIALIZED_NAME_SHA512) + @javax.annotation.Nullable + private String sha512; + public FileHashes() { } @@ -151,25 +151,6 @@ public void setSha256(@javax.annotation.Nullable String sha256) { } - public FileHashes sha512(@javax.annotation.Nullable String sha512) { - this.sha512 = sha512; - return this; - } - - /** - * Get sha512 - * @return sha512 - */ - @javax.annotation.Nullable - public String getSha512() { - return sha512; - } - - public void setSha512(@javax.annotation.Nullable String sha512) { - this.sha512 = sha512; - } - - public FileHashes sha3224(@javax.annotation.Nullable String sha3224) { this.sha3224 = sha3224; return this; @@ -245,6 +226,25 @@ public void setSha3512(@javax.annotation.Nullable String sha3512) { this.sha3512 = sha3512; } + + public FileHashes sha512(@javax.annotation.Nullable String sha512) { + this.sha512 = sha512; + return this; + } + + /** + * Get sha512 + * @return sha512 + */ + @javax.annotation.Nullable + public String getSha512() { + return sha512; + } + + public void setSha512(@javax.annotation.Nullable String sha512) { + this.sha512 = sha512; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -303,17 +303,17 @@ public boolean equals(Object o) { return Objects.equals(this.md5, fileHashes.md5) && Objects.equals(this.sha1, fileHashes.sha1) && Objects.equals(this.sha256, fileHashes.sha256) && - Objects.equals(this.sha512, fileHashes.sha512) && Objects.equals(this.sha3224, fileHashes.sha3224) && Objects.equals(this.sha3256, fileHashes.sha3256) && Objects.equals(this.sha3384, fileHashes.sha3384) && - Objects.equals(this.sha3512, fileHashes.sha3512)&& + Objects.equals(this.sha3512, fileHashes.sha3512) && + Objects.equals(this.sha512, fileHashes.sha512)&& Objects.equals(this.additionalProperties, fileHashes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(md5, sha1, sha256, sha512, sha3224, sha3256, sha3384, sha3512, additionalProperties); + return Objects.hash(md5, sha1, sha256, sha3224, sha3256, sha3384, sha3512, sha512, additionalProperties); } @Override @@ -323,11 +323,11 @@ public String toString() { sb.append(" md5: ").append(toIndentedString(md5)).append("\n"); sb.append(" sha1: ").append(toIndentedString(sha1)).append("\n"); sb.append(" sha256: ").append(toIndentedString(sha256)).append("\n"); - sb.append(" sha512: ").append(toIndentedString(sha512)).append("\n"); sb.append(" sha3224: ").append(toIndentedString(sha3224)).append("\n"); sb.append(" sha3256: ").append(toIndentedString(sha3256)).append("\n"); sb.append(" sha3384: ").append(toIndentedString(sha3384)).append("\n"); sb.append(" sha3512: ").append(toIndentedString(sha3512)).append("\n"); + sb.append(" sha512: ").append(toIndentedString(sha512)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -350,10 +350,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("md5", "sha1", "sha256", "sha512", "sha3_224", "sha3_256", "sha3_384", "sha3_512")); + openapiFields = new HashSet(Arrays.asList("md5", "sha1", "sha256", "sha3_224", "sha3_256", "sha3_384", "sha3_512", "sha512")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("md5", "sha1", "sha256", "sha512", "sha3_224", "sha3_256", "sha3_384", "sha3_512")); + openapiRequiredFields = new HashSet(Arrays.asList("md5", "sha1", "sha256", "sha3_224", "sha3_256", "sha3_384", "sha3_512", "sha512")); } /** @@ -385,9 +385,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("sha256") != null && !jsonObj.get("sha256").isJsonNull()) && !jsonObj.get("sha256").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha256` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha256").toString())); } - if ((jsonObj.get("sha512") != null && !jsonObj.get("sha512").isJsonNull()) && !jsonObj.get("sha512").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha512` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha512").toString())); - } if ((jsonObj.get("sha3_224") != null && !jsonObj.get("sha3_224").isJsonNull()) && !jsonObj.get("sha3_224").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha3_224` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha3_224").toString())); } @@ -400,6 +397,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("sha3_512") != null && !jsonObj.get("sha3_512").isJsonNull()) && !jsonObj.get("sha3_512").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha3_512` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha3_512").toString())); } + if ((jsonObj.get("sha512") != null && !jsonObj.get("sha512").isJsonNull()) && !jsonObj.get("sha512").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha512` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha512").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FileMetadata.java b/src/main/java/ai/reveng/model/FileMetadata.java index 692b79d..e62c64d 100644 --- a/src/main/java/ai/reveng/model/FileMetadata.java +++ b/src/main/java/ai/reveng/model/FileMetadata.java @@ -53,45 +53,45 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FileMetadata { - public static final String SERIALIZED_NAME_SIZE = "size"; - @SerializedName(SERIALIZED_NAME_SIZE) + public static final String SERIALIZED_NAME_ENTROPY = "entropy"; + @SerializedName(SERIALIZED_NAME_ENTROPY) @javax.annotation.Nonnull - private Integer size; + private BigDecimal entropy; public static final String SERIALIZED_NAME_FRIENDLY_SIZE = "friendly_size"; @SerializedName(SERIALIZED_NAME_FRIENDLY_SIZE) @javax.annotation.Nonnull private String friendlySize; - public static final String SERIALIZED_NAME_ENTROPY = "entropy"; - @SerializedName(SERIALIZED_NAME_ENTROPY) - @javax.annotation.Nonnull - private BigDecimal entropy; - public static final String SERIALIZED_NAME_HASHES = "hashes"; @SerializedName(SERIALIZED_NAME_HASHES) @javax.annotation.Nonnull private FileHashes hashes; + public static final String SERIALIZED_NAME_SIZE = "size"; + @SerializedName(SERIALIZED_NAME_SIZE) + @javax.annotation.Nonnull + private Integer size; + public FileMetadata() { } - public FileMetadata size(@javax.annotation.Nonnull Integer size) { - this.size = size; + public FileMetadata entropy(@javax.annotation.Nonnull BigDecimal entropy) { + this.entropy = entropy; return this; } /** - * Get size - * @return size + * Get entropy + * @return entropy */ @javax.annotation.Nonnull - public Integer getSize() { - return size; + public BigDecimal getEntropy() { + return entropy; } - public void setSize(@javax.annotation.Nonnull Integer size) { - this.size = size; + public void setEntropy(@javax.annotation.Nonnull BigDecimal entropy) { + this.entropy = entropy; } @@ -114,41 +114,41 @@ public void setFriendlySize(@javax.annotation.Nonnull String friendlySize) { } - public FileMetadata entropy(@javax.annotation.Nonnull BigDecimal entropy) { - this.entropy = entropy; + public FileMetadata hashes(@javax.annotation.Nonnull FileHashes hashes) { + this.hashes = hashes; return this; } /** - * Get entropy - * @return entropy + * Get hashes + * @return hashes */ @javax.annotation.Nonnull - public BigDecimal getEntropy() { - return entropy; + public FileHashes getHashes() { + return hashes; } - public void setEntropy(@javax.annotation.Nonnull BigDecimal entropy) { - this.entropy = entropy; + public void setHashes(@javax.annotation.Nonnull FileHashes hashes) { + this.hashes = hashes; } - public FileMetadata hashes(@javax.annotation.Nonnull FileHashes hashes) { - this.hashes = hashes; + public FileMetadata size(@javax.annotation.Nonnull Integer size) { + this.size = size; return this; } /** - * Get hashes - * @return hashes + * Get size + * @return size */ @javax.annotation.Nonnull - public FileHashes getHashes() { - return hashes; + public Integer getSize() { + return size; } - public void setHashes(@javax.annotation.Nonnull FileHashes hashes) { - this.hashes = hashes; + public void setSize(@javax.annotation.Nonnull Integer size) { + this.size = size; } /** @@ -206,26 +206,26 @@ public boolean equals(Object o) { return false; } FileMetadata fileMetadata = (FileMetadata) o; - return Objects.equals(this.size, fileMetadata.size) && + return Objects.equals(this.entropy, fileMetadata.entropy) && Objects.equals(this.friendlySize, fileMetadata.friendlySize) && - Objects.equals(this.entropy, fileMetadata.entropy) && - Objects.equals(this.hashes, fileMetadata.hashes)&& + Objects.equals(this.hashes, fileMetadata.hashes) && + Objects.equals(this.size, fileMetadata.size)&& Objects.equals(this.additionalProperties, fileMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(size, friendlySize, entropy, hashes, additionalProperties); + return Objects.hash(entropy, friendlySize, hashes, size, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FileMetadata {\n"); - sb.append(" size: ").append(toIndentedString(size)).append("\n"); - sb.append(" friendlySize: ").append(toIndentedString(friendlySize)).append("\n"); sb.append(" entropy: ").append(toIndentedString(entropy)).append("\n"); + sb.append(" friendlySize: ").append(toIndentedString(friendlySize)).append("\n"); sb.append(" hashes: ").append(toIndentedString(hashes)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -248,10 +248,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("size", "friendly_size", "entropy", "hashes")); + openapiFields = new HashSet(Arrays.asList("entropy", "friendly_size", "hashes", "size")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("size", "friendly_size", "entropy", "hashes")); + openapiRequiredFields = new HashSet(Arrays.asList("entropy", "friendly_size", "hashes", "size")); } /** diff --git a/src/main/java/ai/reveng/model/FunctionBlockResponse.java b/src/main/java/ai/reveng/model/FunctionBlockResponse.java index 4f966db..6deeede 100644 --- a/src/main/java/ai/reveng/model/FunctionBlockResponse.java +++ b/src/main/java/ai/reveng/model/FunctionBlockResponse.java @@ -60,30 +60,30 @@ public class FunctionBlockResponse { @javax.annotation.Nonnull private List asm = new ArrayList<>(); + public static final String SERIALIZED_NAME_COMMENT = "comment"; + @SerializedName(SERIALIZED_NAME_COMMENT) + @javax.annotation.Nullable + private String comment; + + public static final String SERIALIZED_NAME_DESTINATIONS = "destinations"; + @SerializedName(SERIALIZED_NAME_DESTINATIONS) + @javax.annotation.Nonnull + private List destinations = new ArrayList<>(); + public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @javax.annotation.Nonnull private Integer id; - public static final String SERIALIZED_NAME_MIN_ADDR = "min_addr"; - @SerializedName(SERIALIZED_NAME_MIN_ADDR) - @javax.annotation.Nonnull - private Integer minAddr; - public static final String SERIALIZED_NAME_MAX_ADDR = "max_addr"; @SerializedName(SERIALIZED_NAME_MAX_ADDR) @javax.annotation.Nonnull private Integer maxAddr; - public static final String SERIALIZED_NAME_DESTINATIONS = "destinations"; - @SerializedName(SERIALIZED_NAME_DESTINATIONS) + public static final String SERIALIZED_NAME_MIN_ADDR = "min_addr"; + @SerializedName(SERIALIZED_NAME_MIN_ADDR) @javax.annotation.Nonnull - private List destinations = new ArrayList<>(); - - public static final String SERIALIZED_NAME_COMMENT = "comment"; - @SerializedName(SERIALIZED_NAME_COMMENT) - @javax.annotation.Nullable - private String comment; + private Integer minAddr; public FunctionBlockResponse() { } @@ -115,106 +115,106 @@ public void setAsm(@javax.annotation.Nonnull List asm) { } - public FunctionBlockResponse id(@javax.annotation.Nonnull Integer id) { - this.id = id; + public FunctionBlockResponse comment(@javax.annotation.Nullable String comment) { + this.comment = comment; return this; } /** - * ID of the block - * @return id + * Get comment + * @return comment */ - @javax.annotation.Nonnull - public Integer getId() { - return id; + @javax.annotation.Nullable + public String getComment() { + return comment; } - public void setId(@javax.annotation.Nonnull Integer id) { - this.id = id; + public void setComment(@javax.annotation.Nullable String comment) { + this.comment = comment; } - public FunctionBlockResponse minAddr(@javax.annotation.Nonnull Integer minAddr) { - this.minAddr = minAddr; + public FunctionBlockResponse destinations(@javax.annotation.Nonnull List destinations) { + this.destinations = destinations; + return this; + } + + public FunctionBlockResponse addDestinationsItem(FunctionBlockDestinationResponse destinationsItem) { + if (this.destinations == null) { + this.destinations = new ArrayList<>(); + } + this.destinations.add(destinationsItem); return this; } /** - * The minimum vaddr of the block - * @return minAddr + * The potential execution flow destinations from this block + * @return destinations */ @javax.annotation.Nonnull - public Integer getMinAddr() { - return minAddr; + public List getDestinations() { + return destinations; } - public void setMinAddr(@javax.annotation.Nonnull Integer minAddr) { - this.minAddr = minAddr; + public void setDestinations(@javax.annotation.Nonnull List destinations) { + this.destinations = destinations; } - public FunctionBlockResponse maxAddr(@javax.annotation.Nonnull Integer maxAddr) { - this.maxAddr = maxAddr; + public FunctionBlockResponse id(@javax.annotation.Nonnull Integer id) { + this.id = id; return this; } /** - * The maximum vaddr of the block - * @return maxAddr + * ID of the block + * @return id */ @javax.annotation.Nonnull - public Integer getMaxAddr() { - return maxAddr; + public Integer getId() { + return id; } - public void setMaxAddr(@javax.annotation.Nonnull Integer maxAddr) { - this.maxAddr = maxAddr; + public void setId(@javax.annotation.Nonnull Integer id) { + this.id = id; } - public FunctionBlockResponse destinations(@javax.annotation.Nonnull List destinations) { - this.destinations = destinations; - return this; - } - - public FunctionBlockResponse addDestinationsItem(FunctionBlockDestinationResponse destinationsItem) { - if (this.destinations == null) { - this.destinations = new ArrayList<>(); - } - this.destinations.add(destinationsItem); + public FunctionBlockResponse maxAddr(@javax.annotation.Nonnull Integer maxAddr) { + this.maxAddr = maxAddr; return this; } /** - * The potential execution flow destinations from this block - * @return destinations + * The maximum vaddr of the block + * @return maxAddr */ @javax.annotation.Nonnull - public List getDestinations() { - return destinations; + public Integer getMaxAddr() { + return maxAddr; } - public void setDestinations(@javax.annotation.Nonnull List destinations) { - this.destinations = destinations; + public void setMaxAddr(@javax.annotation.Nonnull Integer maxAddr) { + this.maxAddr = maxAddr; } - public FunctionBlockResponse comment(@javax.annotation.Nullable String comment) { - this.comment = comment; + public FunctionBlockResponse minAddr(@javax.annotation.Nonnull Integer minAddr) { + this.minAddr = minAddr; return this; } /** - * Get comment - * @return comment + * The minimum vaddr of the block + * @return minAddr */ - @javax.annotation.Nullable - public String getComment() { - return comment; + @javax.annotation.Nonnull + public Integer getMinAddr() { + return minAddr; } - public void setComment(@javax.annotation.Nullable String comment) { - this.comment = comment; + public void setMinAddr(@javax.annotation.Nonnull Integer minAddr) { + this.minAddr = minAddr; } /** @@ -273,11 +273,11 @@ public boolean equals(Object o) { } FunctionBlockResponse functionBlockResponse = (FunctionBlockResponse) o; return Objects.equals(this.asm, functionBlockResponse.asm) && + Objects.equals(this.comment, functionBlockResponse.comment) && + Objects.equals(this.destinations, functionBlockResponse.destinations) && Objects.equals(this.id, functionBlockResponse.id) && - Objects.equals(this.minAddr, functionBlockResponse.minAddr) && Objects.equals(this.maxAddr, functionBlockResponse.maxAddr) && - Objects.equals(this.destinations, functionBlockResponse.destinations) && - Objects.equals(this.comment, functionBlockResponse.comment)&& + Objects.equals(this.minAddr, functionBlockResponse.minAddr)&& Objects.equals(this.additionalProperties, functionBlockResponse.additionalProperties); } @@ -287,7 +287,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(asm, id, minAddr, maxAddr, destinations, comment, additionalProperties); + return Objects.hash(asm, comment, destinations, id, maxAddr, minAddr, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -302,11 +302,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionBlockResponse {\n"); sb.append(" asm: ").append(toIndentedString(asm)).append("\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append(" destinations: ").append(toIndentedString(destinations)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" minAddr: ").append(toIndentedString(minAddr)).append("\n"); sb.append(" maxAddr: ").append(toIndentedString(maxAddr)).append("\n"); - sb.append(" destinations: ").append(toIndentedString(destinations)).append("\n"); - sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append(" minAddr: ").append(toIndentedString(minAddr)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -329,10 +329,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("asm", "id", "min_addr", "max_addr", "destinations", "comment")); + openapiFields = new HashSet(Arrays.asList("asm", "comment", "destinations", "id", "max_addr", "min_addr")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("asm", "id", "min_addr", "max_addr", "destinations")); + openapiRequiredFields = new HashSet(Arrays.asList("asm", "destinations", "id", "max_addr", "min_addr")); } /** @@ -361,6 +361,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } else if (!jsonObj.get("asm").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `asm` to be an array in the JSON string but got `%s`", jsonObj.get("asm").toString())); } + if ((jsonObj.get("comment") != null && !jsonObj.get("comment").isJsonNull()) && !jsonObj.get("comment").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `comment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("comment").toString())); + } // ensure the json data is an array if (!jsonObj.get("destinations").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `destinations` to be an array in the JSON string but got `%s`", jsonObj.get("destinations").toString())); @@ -371,9 +374,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArraydestinations.size(); i++) { FunctionBlockDestinationResponse.validateJsonElement(jsonArraydestinations.get(i)); }; - if ((jsonObj.get("comment") != null && !jsonObj.get("comment").isJsonNull()) && !jsonObj.get("comment").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `comment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("comment").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionBlocksResponse.java b/src/main/java/ai/reveng/model/FunctionBlocksResponse.java index 8556c5d..6969fbf 100644 --- a/src/main/java/ai/reveng/model/FunctionBlocksResponse.java +++ b/src/main/java/ai/reveng/model/FunctionBlocksResponse.java @@ -66,16 +66,16 @@ public class FunctionBlocksResponse { @javax.annotation.Nonnull private List localVariables = new ArrayList<>(); - public static final String SERIALIZED_NAME_PARAMS = "params"; - @SerializedName(SERIALIZED_NAME_PARAMS) - @javax.annotation.Nonnull - private List params = new ArrayList<>(); - public static final String SERIALIZED_NAME_OVERVIEW_COMMENT = "overview_comment"; @SerializedName(SERIALIZED_NAME_OVERVIEW_COMMENT) @javax.annotation.Nullable private String overviewComment; + public static final String SERIALIZED_NAME_PARAMS = "params"; + @SerializedName(SERIALIZED_NAME_PARAMS) + @javax.annotation.Nonnull + private List params = new ArrayList<>(); + public FunctionBlocksResponse() { } @@ -133,6 +133,25 @@ public void setLocalVariables(@javax.annotation.Nonnull List params) { this.params = params; return this; @@ -159,25 +178,6 @@ public void setParams(@javax.annotation.Nonnull List para this.params = params; } - - public FunctionBlocksResponse overviewComment(@javax.annotation.Nullable String overviewComment) { - this.overviewComment = overviewComment; - return this; - } - - /** - * Get overviewComment - * @return overviewComment - */ - @javax.annotation.Nullable - public String getOverviewComment() { - return overviewComment; - } - - public void setOverviewComment(@javax.annotation.Nullable String overviewComment) { - this.overviewComment = overviewComment; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -235,14 +235,14 @@ public boolean equals(Object o) { FunctionBlocksResponse functionBlocksResponse = (FunctionBlocksResponse) o; return Objects.equals(this.blocks, functionBlocksResponse.blocks) && Objects.equals(this.localVariables, functionBlocksResponse.localVariables) && - Objects.equals(this.params, functionBlocksResponse.params) && - Objects.equals(this.overviewComment, functionBlocksResponse.overviewComment)&& + Objects.equals(this.overviewComment, functionBlocksResponse.overviewComment) && + Objects.equals(this.params, functionBlocksResponse.params)&& Objects.equals(this.additionalProperties, functionBlocksResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(blocks, localVariables, params, overviewComment, additionalProperties); + return Objects.hash(blocks, localVariables, overviewComment, params, additionalProperties); } @Override @@ -251,8 +251,8 @@ public String toString() { sb.append("class FunctionBlocksResponse {\n"); sb.append(" blocks: ").append(toIndentedString(blocks)).append("\n"); sb.append(" localVariables: ").append(toIndentedString(localVariables)).append("\n"); - sb.append(" params: ").append(toIndentedString(params)).append("\n"); sb.append(" overviewComment: ").append(toIndentedString(overviewComment)).append("\n"); + sb.append(" params: ").append(toIndentedString(params)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -275,10 +275,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("blocks", "local_variables", "params", "overview_comment")); + openapiFields = new HashSet(Arrays.asList("blocks", "local_variables", "overview_comment", "params")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("blocks", "local_variables", "params", "overview_comment")); + openapiRequiredFields = new HashSet(Arrays.asList("blocks", "local_variables", "overview_comment", "params")); } /** @@ -321,6 +321,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArraylocalVariables.size(); i++) { FunctionLocalVariableResponse.validateJsonElement(jsonArraylocalVariables.get(i)); }; + if ((jsonObj.get("overview_comment") != null && !jsonObj.get("overview_comment").isJsonNull()) && !jsonObj.get("overview_comment").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `overview_comment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("overview_comment").toString())); + } // ensure the json data is an array if (!jsonObj.get("params").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `params` to be an array in the JSON string but got `%s`", jsonObj.get("params").toString())); @@ -331,9 +334,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArrayparams.size(); i++) { FunctionParamResponse.validateJsonElement(jsonArrayparams.get(i)); }; - if ((jsonObj.get("overview_comment") != null && !jsonObj.get("overview_comment").isJsonNull()) && !jsonObj.get("overview_comment").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `overview_comment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("overview_comment").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionBoundary.java b/src/main/java/ai/reveng/model/FunctionBoundary.java index 36a67fb..9d89411 100644 --- a/src/main/java/ai/reveng/model/FunctionBoundary.java +++ b/src/main/java/ai/reveng/model/FunctionBoundary.java @@ -52,16 +52,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionBoundary { - public static final String SERIALIZED_NAME_MANGLED_NAME = "mangled_name"; - @SerializedName(SERIALIZED_NAME_MANGLED_NAME) - @javax.annotation.Nonnull - private String mangledName; - - public static final String SERIALIZED_NAME_START_ADDRESS = "start_address"; - @SerializedName(SERIALIZED_NAME_START_ADDRESS) - @javax.annotation.Nonnull - private Long startAddress; - public static final String SERIALIZED_NAME_END_ADDRESS = "end_address"; @SerializedName(SERIALIZED_NAME_END_ADDRESS) @javax.annotation.Nonnull @@ -72,82 +62,92 @@ public class FunctionBoundary { @javax.annotation.Nullable private Boolean includeInAnalysis; + public static final String SERIALIZED_NAME_MANGLED_NAME = "mangled_name"; + @SerializedName(SERIALIZED_NAME_MANGLED_NAME) + @javax.annotation.Nonnull + private String mangledName; + + public static final String SERIALIZED_NAME_START_ADDRESS = "start_address"; + @SerializedName(SERIALIZED_NAME_START_ADDRESS) + @javax.annotation.Nonnull + private Long startAddress; + public FunctionBoundary() { } - public FunctionBoundary mangledName(@javax.annotation.Nonnull String mangledName) { - this.mangledName = mangledName; + public FunctionBoundary endAddress(@javax.annotation.Nonnull Long endAddress) { + this.endAddress = endAddress; return this; } /** - * Get mangledName - * @return mangledName + * Get endAddress + * @return endAddress */ @javax.annotation.Nonnull - public String getMangledName() { - return mangledName; + public Long getEndAddress() { + return endAddress; } - public void setMangledName(@javax.annotation.Nonnull String mangledName) { - this.mangledName = mangledName; + public void setEndAddress(@javax.annotation.Nonnull Long endAddress) { + this.endAddress = endAddress; } - public FunctionBoundary startAddress(@javax.annotation.Nonnull Long startAddress) { - this.startAddress = startAddress; + public FunctionBoundary includeInAnalysis(@javax.annotation.Nullable Boolean includeInAnalysis) { + this.includeInAnalysis = includeInAnalysis; return this; } /** - * Get startAddress - * @return startAddress + * Get includeInAnalysis + * @return includeInAnalysis */ - @javax.annotation.Nonnull - public Long getStartAddress() { - return startAddress; + @javax.annotation.Nullable + public Boolean getIncludeInAnalysis() { + return includeInAnalysis; } - public void setStartAddress(@javax.annotation.Nonnull Long startAddress) { - this.startAddress = startAddress; + public void setIncludeInAnalysis(@javax.annotation.Nullable Boolean includeInAnalysis) { + this.includeInAnalysis = includeInAnalysis; } - public FunctionBoundary endAddress(@javax.annotation.Nonnull Long endAddress) { - this.endAddress = endAddress; + public FunctionBoundary mangledName(@javax.annotation.Nonnull String mangledName) { + this.mangledName = mangledName; return this; } /** - * Get endAddress - * @return endAddress + * Get mangledName + * @return mangledName */ @javax.annotation.Nonnull - public Long getEndAddress() { - return endAddress; + public String getMangledName() { + return mangledName; } - public void setEndAddress(@javax.annotation.Nonnull Long endAddress) { - this.endAddress = endAddress; + public void setMangledName(@javax.annotation.Nonnull String mangledName) { + this.mangledName = mangledName; } - public FunctionBoundary includeInAnalysis(@javax.annotation.Nullable Boolean includeInAnalysis) { - this.includeInAnalysis = includeInAnalysis; + public FunctionBoundary startAddress(@javax.annotation.Nonnull Long startAddress) { + this.startAddress = startAddress; return this; } /** - * Get includeInAnalysis - * @return includeInAnalysis + * Get startAddress + * @return startAddress */ - @javax.annotation.Nullable - public Boolean getIncludeInAnalysis() { - return includeInAnalysis; + @javax.annotation.Nonnull + public Long getStartAddress() { + return startAddress; } - public void setIncludeInAnalysis(@javax.annotation.Nullable Boolean includeInAnalysis) { - this.includeInAnalysis = includeInAnalysis; + public void setStartAddress(@javax.annotation.Nonnull Long startAddress) { + this.startAddress = startAddress; } /** @@ -205,10 +205,10 @@ public boolean equals(Object o) { return false; } FunctionBoundary functionBoundary = (FunctionBoundary) o; - return Objects.equals(this.mangledName, functionBoundary.mangledName) && - Objects.equals(this.startAddress, functionBoundary.startAddress) && - Objects.equals(this.endAddress, functionBoundary.endAddress) && - Objects.equals(this.includeInAnalysis, functionBoundary.includeInAnalysis)&& + return Objects.equals(this.endAddress, functionBoundary.endAddress) && + Objects.equals(this.includeInAnalysis, functionBoundary.includeInAnalysis) && + Objects.equals(this.mangledName, functionBoundary.mangledName) && + Objects.equals(this.startAddress, functionBoundary.startAddress)&& Objects.equals(this.additionalProperties, functionBoundary.additionalProperties); } @@ -218,7 +218,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(mangledName, startAddress, endAddress, includeInAnalysis, additionalProperties); + return Objects.hash(endAddress, includeInAnalysis, mangledName, startAddress, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -232,10 +232,10 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionBoundary {\n"); - sb.append(" mangledName: ").append(toIndentedString(mangledName)).append("\n"); - sb.append(" startAddress: ").append(toIndentedString(startAddress)).append("\n"); sb.append(" endAddress: ").append(toIndentedString(endAddress)).append("\n"); sb.append(" includeInAnalysis: ").append(toIndentedString(includeInAnalysis)).append("\n"); + sb.append(" mangledName: ").append(toIndentedString(mangledName)).append("\n"); + sb.append(" startAddress: ").append(toIndentedString(startAddress)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -258,10 +258,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("mangled_name", "start_address", "end_address", "include_in_analysis")); + openapiFields = new HashSet(Arrays.asList("end_address", "include_in_analysis", "mangled_name", "start_address")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("mangled_name", "start_address", "end_address")); + openapiRequiredFields = new HashSet(Arrays.asList("end_address", "mangled_name", "start_address")); } /** diff --git a/src/main/java/ai/reveng/model/FunctionDataTypes.java b/src/main/java/ai/reveng/model/FunctionDataTypes.java index ca20fea..aa61eb2 100644 --- a/src/main/java/ai/reveng/model/FunctionDataTypes.java +++ b/src/main/java/ai/reveng/model/FunctionDataTypes.java @@ -58,11 +58,6 @@ public class FunctionDataTypes { @javax.annotation.Nonnull private Boolean completed; - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nonnull - private String status; - public static final String SERIALIZED_NAME_DATA_TYPES = "data_types"; @SerializedName(SERIALIZED_NAME_DATA_TYPES) @javax.annotation.Nullable @@ -73,6 +68,11 @@ public class FunctionDataTypes { @javax.annotation.Nullable private Integer dataTypesVersion; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + public FunctionDataTypes() { } @@ -95,25 +95,6 @@ public void setCompleted(@javax.annotation.Nonnull Boolean completed) { } - public FunctionDataTypes status(@javax.annotation.Nonnull String status) { - this.status = status; - return this; - } - - /** - * The current status of the data types service - * @return status - */ - @javax.annotation.Nonnull - public String getStatus() { - return status; - } - - public void setStatus(@javax.annotation.Nonnull String status) { - this.status = status; - } - - public FunctionDataTypes dataTypes(@javax.annotation.Nullable FunctionInfoOutput dataTypes) { this.dataTypes = dataTypes; return this; @@ -151,6 +132,25 @@ public void setDataTypesVersion(@javax.annotation.Nullable Integer dataTypesVers this.dataTypesVersion = dataTypesVersion; } + + public FunctionDataTypes status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * The current status of the data types service + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -207,9 +207,9 @@ public boolean equals(Object o) { } FunctionDataTypes functionDataTypes = (FunctionDataTypes) o; return Objects.equals(this.completed, functionDataTypes.completed) && - Objects.equals(this.status, functionDataTypes.status) && Objects.equals(this.dataTypes, functionDataTypes.dataTypes) && - Objects.equals(this.dataTypesVersion, functionDataTypes.dataTypesVersion)&& + Objects.equals(this.dataTypesVersion, functionDataTypes.dataTypesVersion) && + Objects.equals(this.status, functionDataTypes.status)&& Objects.equals(this.additionalProperties, functionDataTypes.additionalProperties); } @@ -219,7 +219,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(completed, status, dataTypes, dataTypesVersion, additionalProperties); + return Objects.hash(completed, dataTypes, dataTypesVersion, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -234,9 +234,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionDataTypes {\n"); sb.append(" completed: ").append(toIndentedString(completed)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" dataTypes: ").append(toIndentedString(dataTypes)).append("\n"); sb.append(" dataTypesVersion: ").append(toIndentedString(dataTypesVersion)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -259,7 +259,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("completed", "status", "data_types", "data_types_version")); + openapiFields = new HashSet(Arrays.asList("completed", "data_types", "data_types_version", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("completed", "status")); @@ -285,13 +285,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - 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())); - } // validate the optional field `data_types` if (jsonObj.get("data_types") != null && !jsonObj.get("data_types").isJsonNull()) { FunctionInfoOutput.validateJsonElement(jsonObj.get("data_types")); } + 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())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionDataTypesList.java b/src/main/java/ai/reveng/model/FunctionDataTypesList.java index d23ffcc..bb43d82 100644 --- a/src/main/java/ai/reveng/model/FunctionDataTypesList.java +++ b/src/main/java/ai/reveng/model/FunctionDataTypesList.java @@ -54,6 +54,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionDataTypesList { + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @javax.annotation.Nonnull + private List items = new ArrayList<>(); + public static final String SERIALIZED_NAME_TOTAL_COUNT = "total_count"; @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) @javax.annotation.Nullable @@ -64,14 +69,36 @@ public class FunctionDataTypesList { @javax.annotation.Nullable private Integer totalDataTypesCount = 0; - public static final String SERIALIZED_NAME_ITEMS = "items"; - @SerializedName(SERIALIZED_NAME_ITEMS) + public FunctionDataTypesList() { + } + + public FunctionDataTypesList items(@javax.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public FunctionDataTypesList addItemsItem(FunctionDataTypesListItem itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * List of function data types information + * @return items + */ @javax.annotation.Nonnull - private List items = new ArrayList<>(); + public List getItems() { + return items; + } - public FunctionDataTypesList() { + public void setItems(@javax.annotation.Nonnull List items) { + this.items = items; } + public FunctionDataTypesList totalCount(@javax.annotation.Nullable Integer totalCount) { this.totalCount = totalCount; return this; @@ -109,33 +136,6 @@ public void setTotalDataTypesCount(@javax.annotation.Nullable Integer totalDataT this.totalDataTypesCount = totalDataTypesCount; } - - public FunctionDataTypesList items(@javax.annotation.Nonnull List items) { - this.items = items; - return this; - } - - public FunctionDataTypesList addItemsItem(FunctionDataTypesListItem itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(itemsItem); - return this; - } - - /** - * List of function data types information - * @return items - */ - @javax.annotation.Nonnull - public List getItems() { - return items; - } - - public void setItems(@javax.annotation.Nonnull List items) { - this.items = items; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -191,24 +191,24 @@ public boolean equals(Object o) { return false; } FunctionDataTypesList functionDataTypesList = (FunctionDataTypesList) o; - return Objects.equals(this.totalCount, functionDataTypesList.totalCount) && - Objects.equals(this.totalDataTypesCount, functionDataTypesList.totalDataTypesCount) && - Objects.equals(this.items, functionDataTypesList.items)&& + return Objects.equals(this.items, functionDataTypesList.items) && + Objects.equals(this.totalCount, functionDataTypesList.totalCount) && + Objects.equals(this.totalDataTypesCount, functionDataTypesList.totalDataTypesCount)&& Objects.equals(this.additionalProperties, functionDataTypesList.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totalCount, totalDataTypesCount, items, additionalProperties); + return Objects.hash(items, totalCount, totalDataTypesCount, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionDataTypesList {\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); sb.append(" totalDataTypesCount: ").append(toIndentedString(totalDataTypesCount)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -231,7 +231,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("total_count", "total_data_types_count", "items")); + openapiFields = new HashSet(Arrays.asList("items", "total_count", "total_data_types_count")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("items")); diff --git a/src/main/java/ai/reveng/model/FunctionDataTypesListItem.java b/src/main/java/ai/reveng/model/FunctionDataTypesListItem.java index b247bae..40b032c 100644 --- a/src/main/java/ai/reveng/model/FunctionDataTypesListItem.java +++ b/src/main/java/ai/reveng/model/FunctionDataTypesListItem.java @@ -58,11 +58,6 @@ public class FunctionDataTypesListItem { @javax.annotation.Nonnull private Boolean completed; - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nonnull - private String status; - public static final String SERIALIZED_NAME_DATA_TYPES = "data_types"; @SerializedName(SERIALIZED_NAME_DATA_TYPES) @javax.annotation.Nullable @@ -78,6 +73,11 @@ public class FunctionDataTypesListItem { @javax.annotation.Nonnull private Long functionId; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + public FunctionDataTypesListItem() { } @@ -100,25 +100,6 @@ public void setCompleted(@javax.annotation.Nonnull Boolean completed) { } - public FunctionDataTypesListItem status(@javax.annotation.Nonnull String status) { - this.status = status; - return this; - } - - /** - * The current status of the data types service - * @return status - */ - @javax.annotation.Nonnull - public String getStatus() { - return status; - } - - public void setStatus(@javax.annotation.Nonnull String status) { - this.status = status; - } - - public FunctionDataTypesListItem dataTypes(@javax.annotation.Nullable FunctionInfoOutput dataTypes) { this.dataTypes = dataTypes; return this; @@ -175,6 +156,25 @@ public void setFunctionId(@javax.annotation.Nonnull Long functionId) { this.functionId = functionId; } + + public FunctionDataTypesListItem status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * The current status of the data types service + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -231,10 +231,10 @@ public boolean equals(Object o) { } FunctionDataTypesListItem functionDataTypesListItem = (FunctionDataTypesListItem) o; return Objects.equals(this.completed, functionDataTypesListItem.completed) && - Objects.equals(this.status, functionDataTypesListItem.status) && Objects.equals(this.dataTypes, functionDataTypesListItem.dataTypes) && Objects.equals(this.dataTypesVersion, functionDataTypesListItem.dataTypesVersion) && - Objects.equals(this.functionId, functionDataTypesListItem.functionId)&& + Objects.equals(this.functionId, functionDataTypesListItem.functionId) && + Objects.equals(this.status, functionDataTypesListItem.status)&& Objects.equals(this.additionalProperties, functionDataTypesListItem.additionalProperties); } @@ -244,7 +244,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(completed, status, dataTypes, dataTypesVersion, functionId, additionalProperties); + return Objects.hash(completed, dataTypes, dataTypesVersion, functionId, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -259,10 +259,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionDataTypesListItem {\n"); sb.append(" completed: ").append(toIndentedString(completed)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" dataTypes: ").append(toIndentedString(dataTypes)).append("\n"); sb.append(" dataTypesVersion: ").append(toIndentedString(dataTypesVersion)).append("\n"); sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -285,10 +285,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("completed", "status", "data_types", "data_types_version", "function_id")); + openapiFields = new HashSet(Arrays.asList("completed", "data_types", "data_types_version", "function_id", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("completed", "status", "function_id")); + openapiRequiredFields = new HashSet(Arrays.asList("completed", "function_id", "status")); } /** @@ -311,13 +311,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - 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())); - } // validate the optional field `data_types` if (jsonObj.get("data_types") != null && !jsonObj.get("data_types").isJsonNull()) { FunctionInfoOutput.validateJsonElement(jsonObj.get("data_types")); } + 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())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionDataTypesStatus.java b/src/main/java/ai/reveng/model/FunctionDataTypesStatus.java index 2d4799f..52fb020 100644 --- a/src/main/java/ai/reveng/model/FunctionDataTypesStatus.java +++ b/src/main/java/ai/reveng/model/FunctionDataTypesStatus.java @@ -51,16 +51,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionDataTypesStatus { - 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_COMPLETED = "completed"; @SerializedName(SERIALIZED_NAME_COMPLETED) @javax.annotation.Nonnull private Boolean completed; + 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_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nonnull @@ -69,41 +69,41 @@ public class FunctionDataTypesStatus { public FunctionDataTypesStatus() { } - public FunctionDataTypesStatus functionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; + public FunctionDataTypesStatus completed(@javax.annotation.Nonnull Boolean completed) { + this.completed = completed; return this; } /** - * Function id - * @return functionId + * Whether the service has completed data types generation + * @return completed */ @javax.annotation.Nonnull - public Long getFunctionId() { - return functionId; + public Boolean getCompleted() { + return completed; } - public void setFunctionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; + public void setCompleted(@javax.annotation.Nonnull Boolean completed) { + this.completed = completed; } - public FunctionDataTypesStatus completed(@javax.annotation.Nonnull Boolean completed) { - this.completed = completed; + public FunctionDataTypesStatus functionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; return this; } /** - * Whether the service has completed data types generation - * @return completed + * Function id + * @return functionId */ @javax.annotation.Nonnull - public Boolean getCompleted() { - return completed; + public Long getFunctionId() { + return functionId; } - public void setCompleted(@javax.annotation.Nonnull Boolean completed) { - this.completed = completed; + public void setFunctionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; } @@ -180,23 +180,23 @@ public boolean equals(Object o) { return false; } FunctionDataTypesStatus functionDataTypesStatus = (FunctionDataTypesStatus) o; - return Objects.equals(this.functionId, functionDataTypesStatus.functionId) && - Objects.equals(this.completed, functionDataTypesStatus.completed) && + return Objects.equals(this.completed, functionDataTypesStatus.completed) && + Objects.equals(this.functionId, functionDataTypesStatus.functionId) && Objects.equals(this.status, functionDataTypesStatus.status)&& Objects.equals(this.additionalProperties, functionDataTypesStatus.additionalProperties); } @Override public int hashCode() { - return Objects.hash(functionId, completed, status, additionalProperties); + return Objects.hash(completed, functionId, status, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionDataTypesStatus {\n"); - sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); sb.append(" completed: ").append(toIndentedString(completed)).append("\n"); + sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,10 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("function_id", "completed", "status")); + openapiFields = new HashSet(Arrays.asList("completed", "function_id", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("function_id", "completed", "status")); + openapiRequiredFields = new HashSet(Arrays.asList("completed", "function_id", "status")); } /** diff --git a/src/main/java/ai/reveng/model/FunctionHeader.java b/src/main/java/ai/reveng/model/FunctionHeader.java index 44ef609..86bf5f3 100644 --- a/src/main/java/ai/reveng/model/FunctionHeader.java +++ b/src/main/java/ai/reveng/model/FunctionHeader.java @@ -55,6 +55,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionHeader { + public static final String SERIALIZED_NAME_ADDR = "addr"; + @SerializedName(SERIALIZED_NAME_ADDR) + @javax.annotation.Nonnull + private Integer addr; + + public static final String SERIALIZED_NAME_ARGS = "args"; + @SerializedName(SERIALIZED_NAME_ARGS) + @javax.annotation.Nonnull + private Map args = new HashMap<>(); + public static final String SERIALIZED_NAME_LAST_CHANGE = "last_change"; @SerializedName(SERIALIZED_NAME_LAST_CHANGE) @javax.annotation.Nullable @@ -65,24 +75,60 @@ public class FunctionHeader { @javax.annotation.Nonnull private String name; - public static final String SERIALIZED_NAME_ADDR = "addr"; - @SerializedName(SERIALIZED_NAME_ADDR) - @javax.annotation.Nonnull - private Integer addr; - public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull private String type; - public static final String SERIALIZED_NAME_ARGS = "args"; - @SerializedName(SERIALIZED_NAME_ARGS) + public FunctionHeader() { + } + + public FunctionHeader addr(@javax.annotation.Nonnull Integer addr) { + this.addr = addr; + return this; + } + + /** + * Memory address of the function + * @return addr + */ @javax.annotation.Nonnull - private Map args = new HashMap<>(); + public Integer getAddr() { + return addr; + } - public FunctionHeader() { + public void setAddr(@javax.annotation.Nonnull Integer addr) { + this.addr = addr; + } + + + public FunctionHeader args(@javax.annotation.Nonnull Map args) { + this.args = args; + return this; + } + + public FunctionHeader putArgsItem(String key, Argument argsItem) { + if (this.args == null) { + this.args = new HashMap<>(); + } + this.args.put(key, argsItem); + return this; + } + + /** + * Dictionary of function arguments + * @return args + */ + @javax.annotation.Nonnull + public Map getArgs() { + return args; + } + + public void setArgs(@javax.annotation.Nonnull Map args) { + this.args = args; } + public FunctionHeader lastChange(@javax.annotation.Nullable String lastChange) { this.lastChange = lastChange; return this; @@ -121,25 +167,6 @@ public void setName(@javax.annotation.Nonnull String name) { } - public FunctionHeader addr(@javax.annotation.Nonnull Integer addr) { - this.addr = addr; - return this; - } - - /** - * Memory address of the function - * @return addr - */ - @javax.annotation.Nonnull - public Integer getAddr() { - return addr; - } - - public void setAddr(@javax.annotation.Nonnull Integer addr) { - this.addr = addr; - } - - public FunctionHeader type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -158,33 +185,6 @@ public void setType(@javax.annotation.Nonnull String type) { this.type = type; } - - public FunctionHeader args(@javax.annotation.Nonnull Map args) { - this.args = args; - return this; - } - - public FunctionHeader putArgsItem(String key, Argument argsItem) { - if (this.args == null) { - this.args = new HashMap<>(); - } - this.args.put(key, argsItem); - return this; - } - - /** - * Dictionary of function arguments - * @return args - */ - @javax.annotation.Nonnull - public Map getArgs() { - return args; - } - - public void setArgs(@javax.annotation.Nonnull Map args) { - this.args = args; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -240,11 +240,11 @@ public boolean equals(Object o) { return false; } FunctionHeader functionHeader = (FunctionHeader) o; - return Objects.equals(this.lastChange, functionHeader.lastChange) && + return Objects.equals(this.addr, functionHeader.addr) && + Objects.equals(this.args, functionHeader.args) && + Objects.equals(this.lastChange, functionHeader.lastChange) && Objects.equals(this.name, functionHeader.name) && - Objects.equals(this.addr, functionHeader.addr) && - Objects.equals(this.type, functionHeader.type) && - Objects.equals(this.args, functionHeader.args)&& + Objects.equals(this.type, functionHeader.type)&& Objects.equals(this.additionalProperties, functionHeader.additionalProperties); } @@ -254,7 +254,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lastChange, name, addr, type, args, additionalProperties); + return Objects.hash(addr, args, lastChange, name, type, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -268,11 +268,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionHeader {\n"); + sb.append(" addr: ").append(toIndentedString(addr)).append("\n"); + sb.append(" args: ").append(toIndentedString(args)).append("\n"); sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" addr: ").append(toIndentedString(addr)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" args: ").append(toIndentedString(args)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -295,10 +295,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("last_change", "name", "addr", "type", "args")); + openapiFields = new HashSet(Arrays.asList("addr", "args", "last_change", "name", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "addr", "type", "args")); + openapiRequiredFields = new HashSet(Arrays.asList("addr", "args", "name", "type")); } /** diff --git a/src/main/java/ai/reveng/model/FunctionInfoInput.java b/src/main/java/ai/reveng/model/FunctionInfoInput.java index e8b15bd..f40a8a9 100644 --- a/src/main/java/ai/reveng/model/FunctionInfoInput.java +++ b/src/main/java/ai/reveng/model/FunctionInfoInput.java @@ -56,38 +56,19 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionInfoInput { - public static final String SERIALIZED_NAME_FUNC_TYPES = "func_types"; - @SerializedName(SERIALIZED_NAME_FUNC_TYPES) - @javax.annotation.Nullable - private FunctionTypeInput funcTypes; - public static final String SERIALIZED_NAME_FUNC_DEPS = "func_deps"; @SerializedName(SERIALIZED_NAME_FUNC_DEPS) @javax.annotation.Nonnull private List funcDeps = new ArrayList<>(); - public FunctionInfoInput() { - } - - public FunctionInfoInput funcTypes(@javax.annotation.Nullable FunctionTypeInput funcTypes) { - this.funcTypes = funcTypes; - return this; - } - - /** - * Get funcTypes - * @return funcTypes - */ + public static final String SERIALIZED_NAME_FUNC_TYPES = "func_types"; + @SerializedName(SERIALIZED_NAME_FUNC_TYPES) @javax.annotation.Nullable - public FunctionTypeInput getFuncTypes() { - return funcTypes; - } + private FunctionTypeInput funcTypes; - public void setFuncTypes(@javax.annotation.Nullable FunctionTypeInput funcTypes) { - this.funcTypes = funcTypes; + public FunctionInfoInput() { } - public FunctionInfoInput funcDeps(@javax.annotation.Nonnull List funcDeps) { this.funcDeps = funcDeps; return this; @@ -114,6 +95,25 @@ public void setFuncDeps(@javax.annotation.Nonnull List boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(funcTypes, funcDeps, additionalProperties); + return Objects.hash(funcDeps, funcTypes, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -194,8 +194,8 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionInfoInput {\n"); - sb.append(" funcTypes: ").append(toIndentedString(funcTypes)).append("\n"); sb.append(" funcDeps: ").append(toIndentedString(funcDeps)).append("\n"); + sb.append(" funcTypes: ").append(toIndentedString(funcTypes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -218,7 +218,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("func_types", "func_deps")); + openapiFields = new HashSet(Arrays.asList("func_deps", "func_types")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("func_deps")); @@ -244,10 +244,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `func_types` - if (jsonObj.get("func_types") != null && !jsonObj.get("func_types").isJsonNull()) { - FunctionTypeInput.validateJsonElement(jsonObj.get("func_types")); - } // ensure the json data is an array if (!jsonObj.get("func_deps").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `func_deps` to be an array in the JSON string but got `%s`", jsonObj.get("func_deps").toString())); @@ -258,6 +254,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArrayfuncDeps.size(); i++) { FunctionInfoInputFuncDepsInner.validateJsonElement(jsonArrayfuncDeps.get(i)); }; + // validate the optional field `func_types` + if (jsonObj.get("func_types") != null && !jsonObj.get("func_types").isJsonNull()) { + FunctionTypeInput.validateJsonElement(jsonObj.get("func_types")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionInfoOutput.java b/src/main/java/ai/reveng/model/FunctionInfoOutput.java index 9578215..c03e6d3 100644 --- a/src/main/java/ai/reveng/model/FunctionInfoOutput.java +++ b/src/main/java/ai/reveng/model/FunctionInfoOutput.java @@ -56,38 +56,19 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionInfoOutput { - public static final String SERIALIZED_NAME_FUNC_TYPES = "func_types"; - @SerializedName(SERIALIZED_NAME_FUNC_TYPES) - @javax.annotation.Nullable - private FunctionTypeOutput funcTypes; - public static final String SERIALIZED_NAME_FUNC_DEPS = "func_deps"; @SerializedName(SERIALIZED_NAME_FUNC_DEPS) @javax.annotation.Nonnull private List funcDeps = new ArrayList<>(); - public FunctionInfoOutput() { - } - - public FunctionInfoOutput funcTypes(@javax.annotation.Nullable FunctionTypeOutput funcTypes) { - this.funcTypes = funcTypes; - return this; - } - - /** - * Get funcTypes - * @return funcTypes - */ + public static final String SERIALIZED_NAME_FUNC_TYPES = "func_types"; + @SerializedName(SERIALIZED_NAME_FUNC_TYPES) @javax.annotation.Nullable - public FunctionTypeOutput getFuncTypes() { - return funcTypes; - } + private FunctionTypeOutput funcTypes; - public void setFuncTypes(@javax.annotation.Nullable FunctionTypeOutput funcTypes) { - this.funcTypes = funcTypes; + public FunctionInfoOutput() { } - public FunctionInfoOutput funcDeps(@javax.annotation.Nonnull List funcDeps) { this.funcDeps = funcDeps; return this; @@ -114,6 +95,25 @@ public void setFuncDeps(@javax.annotation.Nonnull List boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(funcTypes, funcDeps, additionalProperties); + return Objects.hash(funcDeps, funcTypes, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -194,8 +194,8 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionInfoOutput {\n"); - sb.append(" funcTypes: ").append(toIndentedString(funcTypes)).append("\n"); sb.append(" funcDeps: ").append(toIndentedString(funcDeps)).append("\n"); + sb.append(" funcTypes: ").append(toIndentedString(funcTypes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -218,7 +218,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("func_types", "func_deps")); + openapiFields = new HashSet(Arrays.asList("func_deps", "func_types")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("func_deps")); @@ -244,10 +244,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `func_types` - if (jsonObj.get("func_types") != null && !jsonObj.get("func_types").isJsonNull()) { - FunctionTypeOutput.validateJsonElement(jsonObj.get("func_types")); - } // ensure the json data is an array if (!jsonObj.get("func_deps").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `func_deps` to be an array in the JSON string but got `%s`", jsonObj.get("func_deps").toString())); @@ -258,6 +254,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArrayfuncDeps.size(); i++) { FunctionInfoInputFuncDepsInner.validateJsonElement(jsonArrayfuncDeps.get(i)); }; + // validate the optional field `func_types` + if (jsonObj.get("func_types") != null && !jsonObj.get("func_types").isJsonNull()) { + FunctionTypeOutput.validateJsonElement(jsonObj.get("func_types")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionListItem.java b/src/main/java/ai/reveng/model/FunctionListItem.java index f89398e..ea694b8 100644 --- a/src/main/java/ai/reveng/model/FunctionListItem.java +++ b/src/main/java/ai/reveng/model/FunctionListItem.java @@ -52,16 +52,31 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionListItem { + public static final String SERIALIZED_NAME_DEBUG = "debug"; + @SerializedName(SERIALIZED_NAME_DEBUG) + @javax.annotation.Nonnull + private Boolean debug; + public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @javax.annotation.Nonnull private Long id; + public static final String SERIALIZED_NAME_MANGLED_NAME = "mangled_name"; + @SerializedName(SERIALIZED_NAME_MANGLED_NAME) + @javax.annotation.Nonnull + private String mangledName; + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull private String name; + public static final String SERIALIZED_NAME_NAME_SOURCE = "name_source"; + @SerializedName(SERIALIZED_NAME_NAME_SOURCE) + @javax.annotation.Nonnull + private NameSourceType nameSource; + /** * The source (process) the function name came from */ @@ -125,34 +140,38 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nonnull private NameSourceTypeEnum nameSourceType; - public static final String SERIALIZED_NAME_NAME_SOURCE = "name_source"; - @SerializedName(SERIALIZED_NAME_NAME_SOURCE) - @javax.annotation.Nonnull - private NameSourceType nameSource; - - public static final String SERIALIZED_NAME_MANGLED_NAME = "mangled_name"; - @SerializedName(SERIALIZED_NAME_MANGLED_NAME) + public static final String SERIALIZED_NAME_SIZE = "size"; + @SerializedName(SERIALIZED_NAME_SIZE) @javax.annotation.Nonnull - private String mangledName; + private Integer size; public static final String SERIALIZED_NAME_VADDR = "vaddr"; @SerializedName(SERIALIZED_NAME_VADDR) @javax.annotation.Nonnull private Long vaddr; - public static final String SERIALIZED_NAME_SIZE = "size"; - @SerializedName(SERIALIZED_NAME_SIZE) - @javax.annotation.Nonnull - private Integer size; + public FunctionListItem() { + } - public static final String SERIALIZED_NAME_DEBUG = "debug"; - @SerializedName(SERIALIZED_NAME_DEBUG) + public FunctionListItem debug(@javax.annotation.Nonnull Boolean debug) { + this.debug = debug; + return this; + } + + /** + * Whether the function has debug information + * @return debug + */ @javax.annotation.Nonnull - private Boolean debug; + public Boolean getDebug() { + return debug; + } - public FunctionListItem() { + public void setDebug(@javax.annotation.Nonnull Boolean debug) { + this.debug = debug; } + public FunctionListItem id(@javax.annotation.Nonnull Long id) { this.id = id; return this; @@ -172,41 +191,41 @@ public void setId(@javax.annotation.Nonnull Long id) { } - public FunctionListItem name(@javax.annotation.Nonnull String name) { - this.name = name; + public FunctionListItem mangledName(@javax.annotation.Nonnull String mangledName) { + this.mangledName = mangledName; return this; } /** - * Name of the function - * @return name + * Mangled name of the function + * @return mangledName */ @javax.annotation.Nonnull - public String getName() { - return name; + public String getMangledName() { + return mangledName; } - public void setName(@javax.annotation.Nonnull String name) { - this.name = name; + public void setMangledName(@javax.annotation.Nonnull String mangledName) { + this.mangledName = mangledName; } - public FunctionListItem nameSourceType(@javax.annotation.Nonnull NameSourceTypeEnum nameSourceType) { - this.nameSourceType = nameSourceType; + public FunctionListItem name(@javax.annotation.Nonnull String name) { + this.name = name; return this; } /** - * The source (process) the function name came from - * @return nameSourceType + * Name of the function + * @return name */ @javax.annotation.Nonnull - public NameSourceTypeEnum getNameSourceType() { - return nameSourceType; + public String getName() { + return name; } - public void setNameSourceType(@javax.annotation.Nonnull NameSourceTypeEnum nameSourceType) { - this.nameSourceType = nameSourceType; + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; } @@ -229,41 +248,22 @@ public void setNameSource(@javax.annotation.Nonnull NameSourceType nameSource) { } - public FunctionListItem mangledName(@javax.annotation.Nonnull String mangledName) { - this.mangledName = mangledName; - return this; - } - - /** - * Mangled name of the function - * @return mangledName - */ - @javax.annotation.Nonnull - public String getMangledName() { - return mangledName; - } - - public void setMangledName(@javax.annotation.Nonnull String mangledName) { - this.mangledName = mangledName; - } - - - public FunctionListItem vaddr(@javax.annotation.Nonnull Long vaddr) { - this.vaddr = vaddr; + public FunctionListItem nameSourceType(@javax.annotation.Nonnull NameSourceTypeEnum nameSourceType) { + this.nameSourceType = nameSourceType; return this; } /** - * Function virtual address - * @return vaddr + * The source (process) the function name came from + * @return nameSourceType */ @javax.annotation.Nonnull - public Long getVaddr() { - return vaddr; + public NameSourceTypeEnum getNameSourceType() { + return nameSourceType; } - public void setVaddr(@javax.annotation.Nonnull Long vaddr) { - this.vaddr = vaddr; + public void setNameSourceType(@javax.annotation.Nonnull NameSourceTypeEnum nameSourceType) { + this.nameSourceType = nameSourceType; } @@ -286,22 +286,22 @@ public void setSize(@javax.annotation.Nonnull Integer size) { } - public FunctionListItem debug(@javax.annotation.Nonnull Boolean debug) { - this.debug = debug; + public FunctionListItem vaddr(@javax.annotation.Nonnull Long vaddr) { + this.vaddr = vaddr; return this; } /** - * Whether the function has debug information - * @return debug + * Function virtual address + * @return vaddr */ @javax.annotation.Nonnull - public Boolean getDebug() { - return debug; + public Long getVaddr() { + return vaddr; } - public void setDebug(@javax.annotation.Nonnull Boolean debug) { - this.debug = debug; + public void setVaddr(@javax.annotation.Nonnull Long vaddr) { + this.vaddr = vaddr; } /** @@ -359,34 +359,34 @@ public boolean equals(Object o) { return false; } FunctionListItem functionListItem = (FunctionListItem) o; - return Objects.equals(this.id, functionListItem.id) && + return Objects.equals(this.debug, functionListItem.debug) && + Objects.equals(this.id, functionListItem.id) && + Objects.equals(this.mangledName, functionListItem.mangledName) && Objects.equals(this.name, functionListItem.name) && - Objects.equals(this.nameSourceType, functionListItem.nameSourceType) && Objects.equals(this.nameSource, functionListItem.nameSource) && - Objects.equals(this.mangledName, functionListItem.mangledName) && - Objects.equals(this.vaddr, functionListItem.vaddr) && + Objects.equals(this.nameSourceType, functionListItem.nameSourceType) && Objects.equals(this.size, functionListItem.size) && - Objects.equals(this.debug, functionListItem.debug)&& + Objects.equals(this.vaddr, functionListItem.vaddr)&& Objects.equals(this.additionalProperties, functionListItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, name, nameSourceType, nameSource, mangledName, vaddr, size, debug, additionalProperties); + return Objects.hash(debug, id, mangledName, name, nameSource, nameSourceType, size, vaddr, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionListItem {\n"); + sb.append(" debug: ").append(toIndentedString(debug)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" mangledName: ").append(toIndentedString(mangledName)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" nameSourceType: ").append(toIndentedString(nameSourceType)).append("\n"); sb.append(" nameSource: ").append(toIndentedString(nameSource)).append("\n"); - sb.append(" mangledName: ").append(toIndentedString(mangledName)).append("\n"); - sb.append(" vaddr: ").append(toIndentedString(vaddr)).append("\n"); + sb.append(" nameSourceType: ").append(toIndentedString(nameSourceType)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); - sb.append(" debug: ").append(toIndentedString(debug)).append("\n"); + sb.append(" vaddr: ").append(toIndentedString(vaddr)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -409,10 +409,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("id", "name", "name_source_type", "name_source", "mangled_name", "vaddr", "size", "debug")); + openapiFields = new HashSet(Arrays.asList("debug", "id", "mangled_name", "name", "name_source", "name_source_type", "size", "vaddr")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("id", "name", "name_source_type", "name_source", "mangled_name", "vaddr", "size", "debug")); + openapiRequiredFields = new HashSet(Arrays.asList("debug", "id", "mangled_name", "name", "name_source", "name_source_type", "size", "vaddr")); } /** @@ -435,19 +435,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("mangled_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mangled_name").toString())); + } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } + // validate the required field `name_source` + NameSourceType.validateJsonElement(jsonObj.get("name_source")); if (!jsonObj.get("name_source_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name_source_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name_source_type").toString())); } // validate the required field `name_source_type` NameSourceTypeEnum.validateJsonElement(jsonObj.get("name_source_type")); - // validate the required field `name_source` - NameSourceType.validateJsonElement(jsonObj.get("name_source")); - if (!jsonObj.get("mangled_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mangled_name").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionLocalVariableResponse.java b/src/main/java/ai/reveng/model/FunctionLocalVariableResponse.java index 073bdfe..4bcbfdf 100644 --- a/src/main/java/ai/reveng/model/FunctionLocalVariableResponse.java +++ b/src/main/java/ai/reveng/model/FunctionLocalVariableResponse.java @@ -61,11 +61,6 @@ public class FunctionLocalVariableResponse { @javax.annotation.Nonnull private String dType; - public static final String SERIALIZED_NAME_SIZE = "size"; - @SerializedName(SERIALIZED_NAME_SIZE) - @javax.annotation.Nonnull - private Integer size; - public static final String SERIALIZED_NAME_LOC = "loc"; @SerializedName(SERIALIZED_NAME_LOC) @javax.annotation.Nonnull @@ -76,6 +71,11 @@ public class FunctionLocalVariableResponse { @javax.annotation.Nonnull private String name; + public static final String SERIALIZED_NAME_SIZE = "size"; + @SerializedName(SERIALIZED_NAME_SIZE) + @javax.annotation.Nonnull + private Integer size; + public FunctionLocalVariableResponse() { } @@ -117,25 +117,6 @@ public void setdType(@javax.annotation.Nonnull String dType) { } - public FunctionLocalVariableResponse size(@javax.annotation.Nonnull Integer size) { - this.size = size; - return this; - } - - /** - * Get size - * @return size - */ - @javax.annotation.Nonnull - public Integer getSize() { - return size; - } - - public void setSize(@javax.annotation.Nonnull Integer size) { - this.size = size; - } - - public FunctionLocalVariableResponse loc(@javax.annotation.Nonnull String loc) { this.loc = loc; return this; @@ -173,6 +154,25 @@ public void setName(@javax.annotation.Nonnull String name) { this.name = name; } + + public FunctionLocalVariableResponse size(@javax.annotation.Nonnull Integer size) { + this.size = size; + return this; + } + + /** + * Get size + * @return size + */ + @javax.annotation.Nonnull + public Integer getSize() { + return size; + } + + public void setSize(@javax.annotation.Nonnull Integer size) { + this.size = size; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -230,15 +230,15 @@ public boolean equals(Object o) { FunctionLocalVariableResponse functionLocalVariableResponse = (FunctionLocalVariableResponse) o; return Objects.equals(this.address, functionLocalVariableResponse.address) && Objects.equals(this.dType, functionLocalVariableResponse.dType) && - Objects.equals(this.size, functionLocalVariableResponse.size) && Objects.equals(this.loc, functionLocalVariableResponse.loc) && - Objects.equals(this.name, functionLocalVariableResponse.name)&& + Objects.equals(this.name, functionLocalVariableResponse.name) && + Objects.equals(this.size, functionLocalVariableResponse.size)&& Objects.equals(this.additionalProperties, functionLocalVariableResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(address, dType, size, loc, name, additionalProperties); + return Objects.hash(address, dType, loc, name, size, additionalProperties); } @Override @@ -247,9 +247,9 @@ public String toString() { sb.append("class FunctionLocalVariableResponse {\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" dType: ").append(toIndentedString(dType)).append("\n"); - sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" loc: ").append(toIndentedString(loc)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -272,10 +272,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("address", "d_type", "size", "loc", "name")); + openapiFields = new HashSet(Arrays.asList("address", "d_type", "loc", "name", "size")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("address", "d_type", "size", "loc", "name")); + openapiRequiredFields = new HashSet(Arrays.asList("address", "d_type", "loc", "name", "size")); } /** diff --git a/src/main/java/ai/reveng/model/FunctionMappingFull.java b/src/main/java/ai/reveng/model/FunctionMappingFull.java index 0a5ab68..07af8c4 100644 --- a/src/main/java/ai/reveng/model/FunctionMappingFull.java +++ b/src/main/java/ai/reveng/model/FunctionMappingFull.java @@ -56,99 +56,99 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionMappingFull { - public static final String SERIALIZED_NAME_INVERSE_STRING_MAP = "inverse_string_map"; - @SerializedName(SERIALIZED_NAME_INVERSE_STRING_MAP) + public static final String SERIALIZED_NAME_FIELDS = "fields"; + @SerializedName(SERIALIZED_NAME_FIELDS) @javax.annotation.Nonnull - private Map inverseStringMap = new HashMap<>(); + private Map> fields = new HashMap<>(); public static final String SERIALIZED_NAME_INVERSE_FUNCTION_MAP = "inverse_function_map"; @SerializedName(SERIALIZED_NAME_INVERSE_FUNCTION_MAP) @javax.annotation.Nonnull private Map inverseFunctionMap = new HashMap<>(); - public static final String SERIALIZED_NAME_UNMATCHED_FUNCTIONS = "unmatched_functions"; - @SerializedName(SERIALIZED_NAME_UNMATCHED_FUNCTIONS) + public static final String SERIALIZED_NAME_INVERSE_STRING_MAP = "inverse_string_map"; + @SerializedName(SERIALIZED_NAME_INVERSE_STRING_MAP) @javax.annotation.Nonnull - private Map unmatchedFunctions = new HashMap<>(); + private Map inverseStringMap = new HashMap<>(); + + public static final String SERIALIZED_NAME_UNMATCHED_CUSTOM_FUNCTION_POINTERS = "unmatched_custom_function_pointers"; + @SerializedName(SERIALIZED_NAME_UNMATCHED_CUSTOM_FUNCTION_POINTERS) + @javax.annotation.Nonnull + private Map unmatchedCustomFunctionPointers = new HashMap<>(); public static final String SERIALIZED_NAME_UNMATCHED_CUSTOM_TYPES = "unmatched_custom_types"; @SerializedName(SERIALIZED_NAME_UNMATCHED_CUSTOM_TYPES) @javax.annotation.Nonnull private Map unmatchedCustomTypes = new HashMap<>(); - public static final String SERIALIZED_NAME_UNMATCHED_STRINGS = "unmatched_strings"; - @SerializedName(SERIALIZED_NAME_UNMATCHED_STRINGS) + public static final String SERIALIZED_NAME_UNMATCHED_ENUMS = "unmatched_enums"; + @SerializedName(SERIALIZED_NAME_UNMATCHED_ENUMS) @javax.annotation.Nonnull - private Map unmatchedStrings = new HashMap<>(); + private Map unmatchedEnums = new HashMap<>(); - public static final String SERIALIZED_NAME_UNMATCHED_VARS = "unmatched_vars"; - @SerializedName(SERIALIZED_NAME_UNMATCHED_VARS) + public static final String SERIALIZED_NAME_UNMATCHED_EXTERNAL_VARS = "unmatched_external_vars"; + @Deprecated + @SerializedName(SERIALIZED_NAME_UNMATCHED_EXTERNAL_VARS) + @javax.annotation.Nullable + private Map unmatchedExternalVars = new HashMap<>(); + + public static final String SERIALIZED_NAME_UNMATCHED_FUNCTIONS = "unmatched_functions"; + @SerializedName(SERIALIZED_NAME_UNMATCHED_FUNCTIONS) @javax.annotation.Nonnull - private Map unmatchedVars = new HashMap<>(); + private Map unmatchedFunctions = new HashMap<>(); + + public static final String SERIALIZED_NAME_UNMATCHED_GLOBAL_VARS = "unmatched_global_vars"; + @SerializedName(SERIALIZED_NAME_UNMATCHED_GLOBAL_VARS) + @javax.annotation.Nonnull + private Map unmatchedGlobalVars = new HashMap<>(); public static final String SERIALIZED_NAME_UNMATCHED_GO_TO_LABELS = "unmatched_go_to_labels"; @SerializedName(SERIALIZED_NAME_UNMATCHED_GO_TO_LABELS) @javax.annotation.Nonnull private Map unmatchedGoToLabels = new HashMap<>(); - public static final String SERIALIZED_NAME_UNMATCHED_CUSTOM_FUNCTION_POINTERS = "unmatched_custom_function_pointers"; - @SerializedName(SERIALIZED_NAME_UNMATCHED_CUSTOM_FUNCTION_POINTERS) + public static final String SERIALIZED_NAME_UNMATCHED_STRINGS = "unmatched_strings"; + @SerializedName(SERIALIZED_NAME_UNMATCHED_STRINGS) @javax.annotation.Nonnull - private Map unmatchedCustomFunctionPointers = new HashMap<>(); + private Map unmatchedStrings = new HashMap<>(); public static final String SERIALIZED_NAME_UNMATCHED_VARIADIC_LISTS = "unmatched_variadic_lists"; @SerializedName(SERIALIZED_NAME_UNMATCHED_VARIADIC_LISTS) @javax.annotation.Nonnull private Map unmatchedVariadicLists = new HashMap<>(); - public static final String SERIALIZED_NAME_UNMATCHED_ENUMS = "unmatched_enums"; - @SerializedName(SERIALIZED_NAME_UNMATCHED_ENUMS) - @javax.annotation.Nonnull - private Map unmatchedEnums = new HashMap<>(); - - public static final String SERIALIZED_NAME_UNMATCHED_GLOBAL_VARS = "unmatched_global_vars"; - @SerializedName(SERIALIZED_NAME_UNMATCHED_GLOBAL_VARS) - @javax.annotation.Nonnull - private Map unmatchedGlobalVars = new HashMap<>(); - - public static final String SERIALIZED_NAME_FIELDS = "fields"; - @SerializedName(SERIALIZED_NAME_FIELDS) + public static final String SERIALIZED_NAME_UNMATCHED_VARS = "unmatched_vars"; + @SerializedName(SERIALIZED_NAME_UNMATCHED_VARS) @javax.annotation.Nonnull - private Map> fields = new HashMap<>(); - - public static final String SERIALIZED_NAME_UNMATCHED_EXTERNAL_VARS = "unmatched_external_vars"; - @Deprecated - @SerializedName(SERIALIZED_NAME_UNMATCHED_EXTERNAL_VARS) - @javax.annotation.Nullable - private Map unmatchedExternalVars = new HashMap<>(); + private Map unmatchedVars = new HashMap<>(); public FunctionMappingFull() { } - public FunctionMappingFull inverseStringMap(@javax.annotation.Nonnull Map inverseStringMap) { - this.inverseStringMap = inverseStringMap; + public FunctionMappingFull fields(@javax.annotation.Nonnull Map> fields) { + this.fields = fields; return this; } - public FunctionMappingFull putInverseStringMapItem(String key, InverseStringMapItem inverseStringMapItem) { - if (this.inverseStringMap == null) { - this.inverseStringMap = new HashMap<>(); + public FunctionMappingFull putFieldsItem(String key, Map fieldsItem) { + if (this.fields == null) { + this.fields = new HashMap<>(); } - this.inverseStringMap.put(key, inverseStringMapItem); + this.fields.put(key, fieldsItem); return this; } /** - * Get inverseStringMap - * @return inverseStringMap + * Get fields + * @return fields */ @javax.annotation.Nonnull - public Map getInverseStringMap() { - return inverseStringMap; + public Map> getFields() { + return fields; } - public void setInverseStringMap(@javax.annotation.Nonnull Map inverseStringMap) { - this.inverseStringMap = inverseStringMap; + public void setFields(@javax.annotation.Nonnull Map> fields) { + this.fields = fields; } @@ -179,304 +179,304 @@ public void setInverseFunctionMap(@javax.annotation.Nonnull Map unmatchedFunctions) { - this.unmatchedFunctions = unmatchedFunctions; + public FunctionMappingFull inverseStringMap(@javax.annotation.Nonnull Map inverseStringMap) { + this.inverseStringMap = inverseStringMap; return this; } - public FunctionMappingFull putUnmatchedFunctionsItem(String key, InverseValue unmatchedFunctionsItem) { - if (this.unmatchedFunctions == null) { - this.unmatchedFunctions = new HashMap<>(); + public FunctionMappingFull putInverseStringMapItem(String key, InverseStringMapItem inverseStringMapItem) { + if (this.inverseStringMap == null) { + this.inverseStringMap = new HashMap<>(); } - this.unmatchedFunctions.put(key, unmatchedFunctionsItem); + this.inverseStringMap.put(key, inverseStringMapItem); return this; } /** - * Get unmatchedFunctions - * @return unmatchedFunctions + * Get inverseStringMap + * @return inverseStringMap */ @javax.annotation.Nonnull - public Map getUnmatchedFunctions() { - return unmatchedFunctions; + public Map getInverseStringMap() { + return inverseStringMap; } - public void setUnmatchedFunctions(@javax.annotation.Nonnull Map unmatchedFunctions) { - this.unmatchedFunctions = unmatchedFunctions; + public void setInverseStringMap(@javax.annotation.Nonnull Map inverseStringMap) { + this.inverseStringMap = inverseStringMap; } - public FunctionMappingFull unmatchedCustomTypes(@javax.annotation.Nonnull Map unmatchedCustomTypes) { - this.unmatchedCustomTypes = unmatchedCustomTypes; + public FunctionMappingFull unmatchedCustomFunctionPointers(@javax.annotation.Nonnull Map unmatchedCustomFunctionPointers) { + this.unmatchedCustomFunctionPointers = unmatchedCustomFunctionPointers; return this; } - public FunctionMappingFull putUnmatchedCustomTypesItem(String key, InverseValue unmatchedCustomTypesItem) { - if (this.unmatchedCustomTypes == null) { - this.unmatchedCustomTypes = new HashMap<>(); + public FunctionMappingFull putUnmatchedCustomFunctionPointersItem(String key, InverseValue unmatchedCustomFunctionPointersItem) { + if (this.unmatchedCustomFunctionPointers == null) { + this.unmatchedCustomFunctionPointers = new HashMap<>(); } - this.unmatchedCustomTypes.put(key, unmatchedCustomTypesItem); + this.unmatchedCustomFunctionPointers.put(key, unmatchedCustomFunctionPointersItem); return this; } /** - * Get unmatchedCustomTypes - * @return unmatchedCustomTypes + * Get unmatchedCustomFunctionPointers + * @return unmatchedCustomFunctionPointers */ @javax.annotation.Nonnull - public Map getUnmatchedCustomTypes() { - return unmatchedCustomTypes; + public Map getUnmatchedCustomFunctionPointers() { + return unmatchedCustomFunctionPointers; } - public void setUnmatchedCustomTypes(@javax.annotation.Nonnull Map unmatchedCustomTypes) { - this.unmatchedCustomTypes = unmatchedCustomTypes; + public void setUnmatchedCustomFunctionPointers(@javax.annotation.Nonnull Map unmatchedCustomFunctionPointers) { + this.unmatchedCustomFunctionPointers = unmatchedCustomFunctionPointers; } - public FunctionMappingFull unmatchedStrings(@javax.annotation.Nonnull Map unmatchedStrings) { - this.unmatchedStrings = unmatchedStrings; + public FunctionMappingFull unmatchedCustomTypes(@javax.annotation.Nonnull Map unmatchedCustomTypes) { + this.unmatchedCustomTypes = unmatchedCustomTypes; return this; } - public FunctionMappingFull putUnmatchedStringsItem(String key, InverseValue unmatchedStringsItem) { - if (this.unmatchedStrings == null) { - this.unmatchedStrings = new HashMap<>(); + public FunctionMappingFull putUnmatchedCustomTypesItem(String key, InverseValue unmatchedCustomTypesItem) { + if (this.unmatchedCustomTypes == null) { + this.unmatchedCustomTypes = new HashMap<>(); } - this.unmatchedStrings.put(key, unmatchedStringsItem); + this.unmatchedCustomTypes.put(key, unmatchedCustomTypesItem); return this; } /** - * Get unmatchedStrings - * @return unmatchedStrings + * Get unmatchedCustomTypes + * @return unmatchedCustomTypes */ @javax.annotation.Nonnull - public Map getUnmatchedStrings() { - return unmatchedStrings; + public Map getUnmatchedCustomTypes() { + return unmatchedCustomTypes; } - public void setUnmatchedStrings(@javax.annotation.Nonnull Map unmatchedStrings) { - this.unmatchedStrings = unmatchedStrings; + public void setUnmatchedCustomTypes(@javax.annotation.Nonnull Map unmatchedCustomTypes) { + this.unmatchedCustomTypes = unmatchedCustomTypes; } - public FunctionMappingFull unmatchedVars(@javax.annotation.Nonnull Map unmatchedVars) { - this.unmatchedVars = unmatchedVars; + public FunctionMappingFull unmatchedEnums(@javax.annotation.Nonnull Map unmatchedEnums) { + this.unmatchedEnums = unmatchedEnums; return this; } - public FunctionMappingFull putUnmatchedVarsItem(String key, InverseValue unmatchedVarsItem) { - if (this.unmatchedVars == null) { - this.unmatchedVars = new HashMap<>(); + public FunctionMappingFull putUnmatchedEnumsItem(String key, InverseValue unmatchedEnumsItem) { + if (this.unmatchedEnums == null) { + this.unmatchedEnums = new HashMap<>(); } - this.unmatchedVars.put(key, unmatchedVarsItem); + this.unmatchedEnums.put(key, unmatchedEnumsItem); return this; } /** - * Get unmatchedVars - * @return unmatchedVars + * Get unmatchedEnums + * @return unmatchedEnums */ @javax.annotation.Nonnull - public Map getUnmatchedVars() { - return unmatchedVars; + public Map getUnmatchedEnums() { + return unmatchedEnums; } - public void setUnmatchedVars(@javax.annotation.Nonnull Map unmatchedVars) { - this.unmatchedVars = unmatchedVars; + public void setUnmatchedEnums(@javax.annotation.Nonnull Map unmatchedEnums) { + this.unmatchedEnums = unmatchedEnums; } - public FunctionMappingFull unmatchedGoToLabels(@javax.annotation.Nonnull Map unmatchedGoToLabels) { - this.unmatchedGoToLabels = unmatchedGoToLabels; + @Deprecated + public FunctionMappingFull unmatchedExternalVars(@javax.annotation.Nullable Map unmatchedExternalVars) { + this.unmatchedExternalVars = unmatchedExternalVars; return this; } - public FunctionMappingFull putUnmatchedGoToLabelsItem(String key, InverseValue unmatchedGoToLabelsItem) { - if (this.unmatchedGoToLabels == null) { - this.unmatchedGoToLabels = new HashMap<>(); + public FunctionMappingFull putUnmatchedExternalVarsItem(String key, InverseValue unmatchedExternalVarsItem) { + if (this.unmatchedExternalVars == null) { + this.unmatchedExternalVars = new HashMap<>(); } - this.unmatchedGoToLabels.put(key, unmatchedGoToLabelsItem); + this.unmatchedExternalVars.put(key, unmatchedExternalVarsItem); return this; } /** - * Get unmatchedGoToLabels - * @return unmatchedGoToLabels + * No longer provided. + * @return unmatchedExternalVars + * @deprecated */ - @javax.annotation.Nonnull - public Map getUnmatchedGoToLabels() { - return unmatchedGoToLabels; + @Deprecated + @javax.annotation.Nullable + public Map getUnmatchedExternalVars() { + return unmatchedExternalVars; } - public void setUnmatchedGoToLabels(@javax.annotation.Nonnull Map unmatchedGoToLabels) { - this.unmatchedGoToLabels = unmatchedGoToLabels; + @Deprecated + public void setUnmatchedExternalVars(@javax.annotation.Nullable Map unmatchedExternalVars) { + this.unmatchedExternalVars = unmatchedExternalVars; } - public FunctionMappingFull unmatchedCustomFunctionPointers(@javax.annotation.Nonnull Map unmatchedCustomFunctionPointers) { - this.unmatchedCustomFunctionPointers = unmatchedCustomFunctionPointers; + public FunctionMappingFull unmatchedFunctions(@javax.annotation.Nonnull Map unmatchedFunctions) { + this.unmatchedFunctions = unmatchedFunctions; return this; } - public FunctionMappingFull putUnmatchedCustomFunctionPointersItem(String key, InverseValue unmatchedCustomFunctionPointersItem) { - if (this.unmatchedCustomFunctionPointers == null) { - this.unmatchedCustomFunctionPointers = new HashMap<>(); + public FunctionMappingFull putUnmatchedFunctionsItem(String key, InverseValue unmatchedFunctionsItem) { + if (this.unmatchedFunctions == null) { + this.unmatchedFunctions = new HashMap<>(); } - this.unmatchedCustomFunctionPointers.put(key, unmatchedCustomFunctionPointersItem); + this.unmatchedFunctions.put(key, unmatchedFunctionsItem); return this; } /** - * Get unmatchedCustomFunctionPointers - * @return unmatchedCustomFunctionPointers + * Get unmatchedFunctions + * @return unmatchedFunctions */ @javax.annotation.Nonnull - public Map getUnmatchedCustomFunctionPointers() { - return unmatchedCustomFunctionPointers; + public Map getUnmatchedFunctions() { + return unmatchedFunctions; } - public void setUnmatchedCustomFunctionPointers(@javax.annotation.Nonnull Map unmatchedCustomFunctionPointers) { - this.unmatchedCustomFunctionPointers = unmatchedCustomFunctionPointers; + public void setUnmatchedFunctions(@javax.annotation.Nonnull Map unmatchedFunctions) { + this.unmatchedFunctions = unmatchedFunctions; } - public FunctionMappingFull unmatchedVariadicLists(@javax.annotation.Nonnull Map unmatchedVariadicLists) { - this.unmatchedVariadicLists = unmatchedVariadicLists; + public FunctionMappingFull unmatchedGlobalVars(@javax.annotation.Nonnull Map unmatchedGlobalVars) { + this.unmatchedGlobalVars = unmatchedGlobalVars; return this; } - public FunctionMappingFull putUnmatchedVariadicListsItem(String key, InverseValue unmatchedVariadicListsItem) { - if (this.unmatchedVariadicLists == null) { - this.unmatchedVariadicLists = new HashMap<>(); + public FunctionMappingFull putUnmatchedGlobalVarsItem(String key, InverseValue unmatchedGlobalVarsItem) { + if (this.unmatchedGlobalVars == null) { + this.unmatchedGlobalVars = new HashMap<>(); } - this.unmatchedVariadicLists.put(key, unmatchedVariadicListsItem); + this.unmatchedGlobalVars.put(key, unmatchedGlobalVarsItem); return this; } /** - * Get unmatchedVariadicLists - * @return unmatchedVariadicLists + * Get unmatchedGlobalVars + * @return unmatchedGlobalVars */ @javax.annotation.Nonnull - public Map getUnmatchedVariadicLists() { - return unmatchedVariadicLists; + public Map getUnmatchedGlobalVars() { + return unmatchedGlobalVars; } - public void setUnmatchedVariadicLists(@javax.annotation.Nonnull Map unmatchedVariadicLists) { - this.unmatchedVariadicLists = unmatchedVariadicLists; + public void setUnmatchedGlobalVars(@javax.annotation.Nonnull Map unmatchedGlobalVars) { + this.unmatchedGlobalVars = unmatchedGlobalVars; } - public FunctionMappingFull unmatchedEnums(@javax.annotation.Nonnull Map unmatchedEnums) { - this.unmatchedEnums = unmatchedEnums; + public FunctionMappingFull unmatchedGoToLabels(@javax.annotation.Nonnull Map unmatchedGoToLabels) { + this.unmatchedGoToLabels = unmatchedGoToLabels; return this; } - public FunctionMappingFull putUnmatchedEnumsItem(String key, InverseValue unmatchedEnumsItem) { - if (this.unmatchedEnums == null) { - this.unmatchedEnums = new HashMap<>(); + public FunctionMappingFull putUnmatchedGoToLabelsItem(String key, InverseValue unmatchedGoToLabelsItem) { + if (this.unmatchedGoToLabels == null) { + this.unmatchedGoToLabels = new HashMap<>(); } - this.unmatchedEnums.put(key, unmatchedEnumsItem); + this.unmatchedGoToLabels.put(key, unmatchedGoToLabelsItem); return this; } /** - * Get unmatchedEnums - * @return unmatchedEnums + * Get unmatchedGoToLabels + * @return unmatchedGoToLabels */ @javax.annotation.Nonnull - public Map getUnmatchedEnums() { - return unmatchedEnums; + public Map getUnmatchedGoToLabels() { + return unmatchedGoToLabels; } - public void setUnmatchedEnums(@javax.annotation.Nonnull Map unmatchedEnums) { - this.unmatchedEnums = unmatchedEnums; + public void setUnmatchedGoToLabels(@javax.annotation.Nonnull Map unmatchedGoToLabels) { + this.unmatchedGoToLabels = unmatchedGoToLabels; } - public FunctionMappingFull unmatchedGlobalVars(@javax.annotation.Nonnull Map unmatchedGlobalVars) { - this.unmatchedGlobalVars = unmatchedGlobalVars; + public FunctionMappingFull unmatchedStrings(@javax.annotation.Nonnull Map unmatchedStrings) { + this.unmatchedStrings = unmatchedStrings; return this; } - public FunctionMappingFull putUnmatchedGlobalVarsItem(String key, InverseValue unmatchedGlobalVarsItem) { - if (this.unmatchedGlobalVars == null) { - this.unmatchedGlobalVars = new HashMap<>(); + public FunctionMappingFull putUnmatchedStringsItem(String key, InverseValue unmatchedStringsItem) { + if (this.unmatchedStrings == null) { + this.unmatchedStrings = new HashMap<>(); } - this.unmatchedGlobalVars.put(key, unmatchedGlobalVarsItem); + this.unmatchedStrings.put(key, unmatchedStringsItem); return this; } /** - * Get unmatchedGlobalVars - * @return unmatchedGlobalVars + * Get unmatchedStrings + * @return unmatchedStrings */ @javax.annotation.Nonnull - public Map getUnmatchedGlobalVars() { - return unmatchedGlobalVars; + public Map getUnmatchedStrings() { + return unmatchedStrings; } - public void setUnmatchedGlobalVars(@javax.annotation.Nonnull Map unmatchedGlobalVars) { - this.unmatchedGlobalVars = unmatchedGlobalVars; + public void setUnmatchedStrings(@javax.annotation.Nonnull Map unmatchedStrings) { + this.unmatchedStrings = unmatchedStrings; } - public FunctionMappingFull fields(@javax.annotation.Nonnull Map> fields) { - this.fields = fields; + public FunctionMappingFull unmatchedVariadicLists(@javax.annotation.Nonnull Map unmatchedVariadicLists) { + this.unmatchedVariadicLists = unmatchedVariadicLists; return this; } - public FunctionMappingFull putFieldsItem(String key, Map fieldsItem) { - if (this.fields == null) { - this.fields = new HashMap<>(); + public FunctionMappingFull putUnmatchedVariadicListsItem(String key, InverseValue unmatchedVariadicListsItem) { + if (this.unmatchedVariadicLists == null) { + this.unmatchedVariadicLists = new HashMap<>(); } - this.fields.put(key, fieldsItem); + this.unmatchedVariadicLists.put(key, unmatchedVariadicListsItem); return this; } /** - * Get fields - * @return fields + * Get unmatchedVariadicLists + * @return unmatchedVariadicLists */ @javax.annotation.Nonnull - public Map> getFields() { - return fields; + public Map getUnmatchedVariadicLists() { + return unmatchedVariadicLists; } - public void setFields(@javax.annotation.Nonnull Map> fields) { - this.fields = fields; + public void setUnmatchedVariadicLists(@javax.annotation.Nonnull Map unmatchedVariadicLists) { + this.unmatchedVariadicLists = unmatchedVariadicLists; } - @Deprecated - public FunctionMappingFull unmatchedExternalVars(@javax.annotation.Nullable Map unmatchedExternalVars) { - this.unmatchedExternalVars = unmatchedExternalVars; + public FunctionMappingFull unmatchedVars(@javax.annotation.Nonnull Map unmatchedVars) { + this.unmatchedVars = unmatchedVars; return this; } - public FunctionMappingFull putUnmatchedExternalVarsItem(String key, InverseValue unmatchedExternalVarsItem) { - if (this.unmatchedExternalVars == null) { - this.unmatchedExternalVars = new HashMap<>(); + public FunctionMappingFull putUnmatchedVarsItem(String key, InverseValue unmatchedVarsItem) { + if (this.unmatchedVars == null) { + this.unmatchedVars = new HashMap<>(); } - this.unmatchedExternalVars.put(key, unmatchedExternalVarsItem); + this.unmatchedVars.put(key, unmatchedVarsItem); return this; } /** - * No longer provided. - * @return unmatchedExternalVars - * @deprecated + * Get unmatchedVars + * @return unmatchedVars */ - @Deprecated - @javax.annotation.Nullable - public Map getUnmatchedExternalVars() { - return unmatchedExternalVars; + @javax.annotation.Nonnull + public Map getUnmatchedVars() { + return unmatchedVars; } - @Deprecated - public void setUnmatchedExternalVars(@javax.annotation.Nullable Map unmatchedExternalVars) { - this.unmatchedExternalVars = unmatchedExternalVars; + public void setUnmatchedVars(@javax.annotation.Nonnull Map unmatchedVars) { + this.unmatchedVars = unmatchedVars; } /** @@ -534,44 +534,44 @@ public boolean equals(Object o) { return false; } FunctionMappingFull functionMappingFull = (FunctionMappingFull) o; - return Objects.equals(this.inverseStringMap, functionMappingFull.inverseStringMap) && + return Objects.equals(this.fields, functionMappingFull.fields) && Objects.equals(this.inverseFunctionMap, functionMappingFull.inverseFunctionMap) && - Objects.equals(this.unmatchedFunctions, functionMappingFull.unmatchedFunctions) && - Objects.equals(this.unmatchedCustomTypes, functionMappingFull.unmatchedCustomTypes) && - Objects.equals(this.unmatchedStrings, functionMappingFull.unmatchedStrings) && - Objects.equals(this.unmatchedVars, functionMappingFull.unmatchedVars) && - Objects.equals(this.unmatchedGoToLabels, functionMappingFull.unmatchedGoToLabels) && + Objects.equals(this.inverseStringMap, functionMappingFull.inverseStringMap) && Objects.equals(this.unmatchedCustomFunctionPointers, functionMappingFull.unmatchedCustomFunctionPointers) && - Objects.equals(this.unmatchedVariadicLists, functionMappingFull.unmatchedVariadicLists) && + Objects.equals(this.unmatchedCustomTypes, functionMappingFull.unmatchedCustomTypes) && Objects.equals(this.unmatchedEnums, functionMappingFull.unmatchedEnums) && + Objects.equals(this.unmatchedExternalVars, functionMappingFull.unmatchedExternalVars) && + Objects.equals(this.unmatchedFunctions, functionMappingFull.unmatchedFunctions) && Objects.equals(this.unmatchedGlobalVars, functionMappingFull.unmatchedGlobalVars) && - Objects.equals(this.fields, functionMappingFull.fields) && - Objects.equals(this.unmatchedExternalVars, functionMappingFull.unmatchedExternalVars)&& + Objects.equals(this.unmatchedGoToLabels, functionMappingFull.unmatchedGoToLabels) && + Objects.equals(this.unmatchedStrings, functionMappingFull.unmatchedStrings) && + Objects.equals(this.unmatchedVariadicLists, functionMappingFull.unmatchedVariadicLists) && + Objects.equals(this.unmatchedVars, functionMappingFull.unmatchedVars)&& Objects.equals(this.additionalProperties, functionMappingFull.additionalProperties); } @Override public int hashCode() { - return Objects.hash(inverseStringMap, inverseFunctionMap, unmatchedFunctions, unmatchedCustomTypes, unmatchedStrings, unmatchedVars, unmatchedGoToLabels, unmatchedCustomFunctionPointers, unmatchedVariadicLists, unmatchedEnums, unmatchedGlobalVars, fields, unmatchedExternalVars, additionalProperties); + return Objects.hash(fields, inverseFunctionMap, inverseStringMap, unmatchedCustomFunctionPointers, unmatchedCustomTypes, unmatchedEnums, unmatchedExternalVars, unmatchedFunctions, unmatchedGlobalVars, unmatchedGoToLabels, unmatchedStrings, unmatchedVariadicLists, unmatchedVars, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionMappingFull {\n"); - sb.append(" inverseStringMap: ").append(toIndentedString(inverseStringMap)).append("\n"); + sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); sb.append(" inverseFunctionMap: ").append(toIndentedString(inverseFunctionMap)).append("\n"); - sb.append(" unmatchedFunctions: ").append(toIndentedString(unmatchedFunctions)).append("\n"); - sb.append(" unmatchedCustomTypes: ").append(toIndentedString(unmatchedCustomTypes)).append("\n"); - sb.append(" unmatchedStrings: ").append(toIndentedString(unmatchedStrings)).append("\n"); - sb.append(" unmatchedVars: ").append(toIndentedString(unmatchedVars)).append("\n"); - sb.append(" unmatchedGoToLabels: ").append(toIndentedString(unmatchedGoToLabels)).append("\n"); + sb.append(" inverseStringMap: ").append(toIndentedString(inverseStringMap)).append("\n"); sb.append(" unmatchedCustomFunctionPointers: ").append(toIndentedString(unmatchedCustomFunctionPointers)).append("\n"); - sb.append(" unmatchedVariadicLists: ").append(toIndentedString(unmatchedVariadicLists)).append("\n"); + sb.append(" unmatchedCustomTypes: ").append(toIndentedString(unmatchedCustomTypes)).append("\n"); sb.append(" unmatchedEnums: ").append(toIndentedString(unmatchedEnums)).append("\n"); - sb.append(" unmatchedGlobalVars: ").append(toIndentedString(unmatchedGlobalVars)).append("\n"); - sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); sb.append(" unmatchedExternalVars: ").append(toIndentedString(unmatchedExternalVars)).append("\n"); + sb.append(" unmatchedFunctions: ").append(toIndentedString(unmatchedFunctions)).append("\n"); + sb.append(" unmatchedGlobalVars: ").append(toIndentedString(unmatchedGlobalVars)).append("\n"); + sb.append(" unmatchedGoToLabels: ").append(toIndentedString(unmatchedGoToLabels)).append("\n"); + sb.append(" unmatchedStrings: ").append(toIndentedString(unmatchedStrings)).append("\n"); + sb.append(" unmatchedVariadicLists: ").append(toIndentedString(unmatchedVariadicLists)).append("\n"); + sb.append(" unmatchedVars: ").append(toIndentedString(unmatchedVars)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -594,10 +594,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("inverse_string_map", "inverse_function_map", "unmatched_functions", "unmatched_custom_types", "unmatched_strings", "unmatched_vars", "unmatched_go_to_labels", "unmatched_custom_function_pointers", "unmatched_variadic_lists", "unmatched_enums", "unmatched_global_vars", "fields", "unmatched_external_vars")); + openapiFields = new HashSet(Arrays.asList("fields", "inverse_function_map", "inverse_string_map", "unmatched_custom_function_pointers", "unmatched_custom_types", "unmatched_enums", "unmatched_external_vars", "unmatched_functions", "unmatched_global_vars", "unmatched_go_to_labels", "unmatched_strings", "unmatched_variadic_lists", "unmatched_vars")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("inverse_string_map", "inverse_function_map", "unmatched_functions", "unmatched_custom_types", "unmatched_strings", "unmatched_vars", "unmatched_go_to_labels", "unmatched_custom_function_pointers", "unmatched_variadic_lists", "unmatched_enums", "unmatched_global_vars", "fields")); + openapiRequiredFields = new HashSet(Arrays.asList("fields", "inverse_function_map", "inverse_string_map", "unmatched_custom_function_pointers", "unmatched_custom_types", "unmatched_enums", "unmatched_functions", "unmatched_global_vars", "unmatched_go_to_labels", "unmatched_strings", "unmatched_variadic_lists", "unmatched_vars")); } /** diff --git a/src/main/java/ai/reveng/model/FunctionMatch.java b/src/main/java/ai/reveng/model/FunctionMatch.java index 37d6533..18b2a54 100644 --- a/src/main/java/ai/reveng/model/FunctionMatch.java +++ b/src/main/java/ai/reveng/model/FunctionMatch.java @@ -56,6 +56,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionMatch { + public static final String SERIALIZED_NAME_CONFIDENCES = "confidences"; + @SerializedName(SERIALIZED_NAME_CONFIDENCES) + @javax.annotation.Nullable + private List confidences; + public static final String SERIALIZED_NAME_FUNCTION_ID = "function_id"; @SerializedName(SERIALIZED_NAME_FUNCTION_ID) @javax.annotation.Nonnull @@ -66,14 +71,36 @@ public class FunctionMatch { @javax.annotation.Nonnull private List matchedFunctions = new ArrayList<>(); - public static final String SERIALIZED_NAME_CONFIDENCES = "confidences"; - @SerializedName(SERIALIZED_NAME_CONFIDENCES) + public FunctionMatch() { + } + + public FunctionMatch confidences(@javax.annotation.Nullable List confidences) { + this.confidences = confidences; + return this; + } + + public FunctionMatch addConfidencesItem(NameConfidence confidencesItem) { + if (this.confidences == null) { + this.confidences = new ArrayList<>(); + } + this.confidences.add(confidencesItem); + return this; + } + + /** + * Get confidences + * @return confidences + */ @javax.annotation.Nullable - private List confidences; + public List getConfidences() { + return confidences; + } - public FunctionMatch() { + public void setConfidences(@javax.annotation.Nullable List confidences) { + this.confidences = confidences; } + public FunctionMatch functionId(@javax.annotation.Nonnull Long functionId) { this.functionId = functionId; return this; @@ -119,33 +146,6 @@ public void setMatchedFunctions(@javax.annotation.Nonnull List this.matchedFunctions = matchedFunctions; } - - public FunctionMatch confidences(@javax.annotation.Nullable List confidences) { - this.confidences = confidences; - return this; - } - - public FunctionMatch addConfidencesItem(NameConfidence confidencesItem) { - if (this.confidences == null) { - this.confidences = new ArrayList<>(); - } - this.confidences.add(confidencesItem); - return this; - } - - /** - * Get confidences - * @return confidences - */ - @javax.annotation.Nullable - public List getConfidences() { - return confidences; - } - - public void setConfidences(@javax.annotation.Nullable List confidences) { - this.confidences = confidences; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -201,9 +201,9 @@ public boolean equals(Object o) { return false; } FunctionMatch functionMatch = (FunctionMatch) o; - return Objects.equals(this.functionId, functionMatch.functionId) && - Objects.equals(this.matchedFunctions, functionMatch.matchedFunctions) && - Objects.equals(this.confidences, functionMatch.confidences)&& + return Objects.equals(this.confidences, functionMatch.confidences) && + Objects.equals(this.functionId, functionMatch.functionId) && + Objects.equals(this.matchedFunctions, functionMatch.matchedFunctions)&& Objects.equals(this.additionalProperties, functionMatch.additionalProperties); } @@ -213,7 +213,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(functionId, matchedFunctions, confidences, additionalProperties); + return Objects.hash(confidences, functionId, matchedFunctions, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -227,9 +227,9 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionMatch {\n"); + sb.append(" confidences: ").append(toIndentedString(confidences)).append("\n"); sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); sb.append(" matchedFunctions: ").append(toIndentedString(matchedFunctions)).append("\n"); - sb.append(" confidences: ").append(toIndentedString(confidences)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -252,7 +252,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("function_id", "matched_functions", "confidences")); + openapiFields = new HashSet(Arrays.asList("confidences", "function_id", "matched_functions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("function_id", "matched_functions")); @@ -278,16 +278,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("matched_functions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `matched_functions` to be an array in the JSON string but got `%s`", jsonObj.get("matched_functions").toString())); - } - - JsonArray jsonArraymatchedFunctions = jsonObj.getAsJsonArray("matched_functions"); - // validate the required field `matched_functions` (array) - for (int i = 0; i < jsonArraymatchedFunctions.size(); i++) { - MatchedFunction.validateJsonElement(jsonArraymatchedFunctions.get(i)); - }; if (jsonObj.get("confidences") != null && !jsonObj.get("confidences").isJsonNull()) { JsonArray jsonArrayconfidences = jsonObj.getAsJsonArray("confidences"); if (jsonArrayconfidences != null) { @@ -302,6 +292,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + // ensure the json data is an array + if (!jsonObj.get("matched_functions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `matched_functions` to be an array in the JSON string but got `%s`", jsonObj.get("matched_functions").toString())); + } + + JsonArray jsonArraymatchedFunctions = jsonObj.getAsJsonArray("matched_functions"); + // validate the required field `matched_functions` (array) + for (int i = 0; i < jsonArraymatchedFunctions.size(); i++) { + MatchedFunction.validateJsonElement(jsonArraymatchedFunctions.get(i)); + }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionMatchingFilters.java b/src/main/java/ai/reveng/model/FunctionMatchingFilters.java index a5a6b5c..078faf3 100644 --- a/src/main/java/ai/reveng/model/FunctionMatchingFilters.java +++ b/src/main/java/ai/reveng/model/FunctionMatchingFilters.java @@ -63,16 +63,6 @@ public class FunctionMatchingFilters { @javax.annotation.Nullable private List collectionIds = new ArrayList<>(); - public static final String SERIALIZED_NAME_FUNCTION_IDS = "function_ids"; - @SerializedName(SERIALIZED_NAME_FUNCTION_IDS) - @javax.annotation.Nullable - private List functionIds = new ArrayList<>(); - - public static final String SERIALIZED_NAME_USER_IDS = "user_ids"; - @SerializedName(SERIALIZED_NAME_USER_IDS) - @javax.annotation.Nullable - private List userIds = new ArrayList<>(); - /** * Gets or Sets debugTypes */ @@ -132,6 +122,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private List debugTypes = new ArrayList<>(); + public static final String SERIALIZED_NAME_FUNCTION_IDS = "function_ids"; + @SerializedName(SERIALIZED_NAME_FUNCTION_IDS) + @javax.annotation.Nullable + private List functionIds = new ArrayList<>(); + + public static final String SERIALIZED_NAME_USER_IDS = "user_ids"; + @SerializedName(SERIALIZED_NAME_USER_IDS) + @javax.annotation.Nullable + private List userIds = new ArrayList<>(); + public FunctionMatchingFilters() { } @@ -189,6 +189,33 @@ public void setCollectionIds(@javax.annotation.Nullable List collection } + public FunctionMatchingFilters debugTypes(@javax.annotation.Nullable List debugTypes) { + this.debugTypes = debugTypes; + return this; + } + + public FunctionMatchingFilters addDebugTypesItem(DebugTypesEnum debugTypesItem) { + if (this.debugTypes == null) { + this.debugTypes = new ArrayList<>(); + } + this.debugTypes.add(debugTypesItem); + return this; + } + + /** + * Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions + * @return debugTypes + */ + @javax.annotation.Nullable + public List getDebugTypes() { + return debugTypes; + } + + public void setDebugTypes(@javax.annotation.Nullable List debugTypes) { + this.debugTypes = debugTypes; + } + + public FunctionMatchingFilters functionIds(@javax.annotation.Nullable List functionIds) { this.functionIds = functionIds; return this; @@ -242,33 +269,6 @@ public void setUserIds(@javax.annotation.Nullable List userIds) { this.userIds = userIds; } - - public FunctionMatchingFilters debugTypes(@javax.annotation.Nullable List debugTypes) { - this.debugTypes = debugTypes; - return this; - } - - public FunctionMatchingFilters addDebugTypesItem(DebugTypesEnum debugTypesItem) { - if (this.debugTypes == null) { - this.debugTypes = new ArrayList<>(); - } - this.debugTypes.add(debugTypesItem); - return this; - } - - /** - * Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions - * @return debugTypes - */ - @javax.annotation.Nullable - public List getDebugTypes() { - return debugTypes; - } - - public void setDebugTypes(@javax.annotation.Nullable List debugTypes) { - this.debugTypes = debugTypes; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -326,15 +326,15 @@ public boolean equals(Object o) { FunctionMatchingFilters functionMatchingFilters = (FunctionMatchingFilters) o; return Objects.equals(this.binaryIds, functionMatchingFilters.binaryIds) && Objects.equals(this.collectionIds, functionMatchingFilters.collectionIds) && + Objects.equals(this.debugTypes, functionMatchingFilters.debugTypes) && Objects.equals(this.functionIds, functionMatchingFilters.functionIds) && - Objects.equals(this.userIds, functionMatchingFilters.userIds) && - Objects.equals(this.debugTypes, functionMatchingFilters.debugTypes)&& + Objects.equals(this.userIds, functionMatchingFilters.userIds)&& Objects.equals(this.additionalProperties, functionMatchingFilters.additionalProperties); } @Override public int hashCode() { - return Objects.hash(binaryIds, collectionIds, functionIds, userIds, debugTypes, additionalProperties); + return Objects.hash(binaryIds, collectionIds, debugTypes, functionIds, userIds, additionalProperties); } @Override @@ -343,9 +343,9 @@ public String toString() { sb.append("class FunctionMatchingFilters {\n"); sb.append(" binaryIds: ").append(toIndentedString(binaryIds)).append("\n"); sb.append(" collectionIds: ").append(toIndentedString(collectionIds)).append("\n"); + sb.append(" debugTypes: ").append(toIndentedString(debugTypes)).append("\n"); sb.append(" functionIds: ").append(toIndentedString(functionIds)).append("\n"); sb.append(" userIds: ").append(toIndentedString(userIds)).append("\n"); - sb.append(" debugTypes: ").append(toIndentedString(debugTypes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -368,7 +368,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("binary_ids", "collection_ids", "function_ids", "user_ids", "debug_types")); + openapiFields = new HashSet(Arrays.asList("binary_ids", "collection_ids", "debug_types", "function_ids", "user_ids")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -396,6 +396,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `collection_ids` to be an array in the JSON string but got `%s`", jsonObj.get("collection_ids").toString())); } // ensure the optional json data is an array if present + if (jsonObj.get("debug_types") != null && !jsonObj.get("debug_types").isJsonNull() && !jsonObj.get("debug_types").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `debug_types` to be an array in the JSON string but got `%s`", jsonObj.get("debug_types").toString())); + } + // ensure the optional json data is an array if present if (jsonObj.get("function_ids") != null && !jsonObj.get("function_ids").isJsonNull() && !jsonObj.get("function_ids").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_ids` to be an array in the JSON string but got `%s`", jsonObj.get("function_ids").toString())); } @@ -403,10 +407,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("user_ids") != null && !jsonObj.get("user_ids").isJsonNull() && !jsonObj.get("user_ids").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `user_ids` to be an array in the JSON string but got `%s`", jsonObj.get("user_ids").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("debug_types") != null && !jsonObj.get("debug_types").isJsonNull() && !jsonObj.get("debug_types").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `debug_types` to be an array in the JSON string but got `%s`", jsonObj.get("debug_types").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionMatchingRequest.java b/src/main/java/ai/reveng/model/FunctionMatchingRequest.java index 87f8297..6ea7c74 100644 --- a/src/main/java/ai/reveng/model/FunctionMatchingRequest.java +++ b/src/main/java/ai/reveng/model/FunctionMatchingRequest.java @@ -56,10 +56,10 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionMatchingRequest { - 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_FILTERS = "filters"; + @SerializedName(SERIALIZED_NAME_FILTERS) + @javax.annotation.Nullable + private FunctionMatchingFilters filters; public static final String SERIALIZED_NAME_FUNCTION_IDS = "function_ids"; @SerializedName(SERIALIZED_NAME_FUNCTION_IDS) @@ -69,17 +69,17 @@ public class FunctionMatchingRequest { 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"); + private BigDecimal minSimilarity = new BigDecimal("90"); - public static final String SERIALIZED_NAME_FILTERS = "filters"; - @SerializedName(SERIALIZED_NAME_FILTERS) - @javax.annotation.Nullable - private FunctionMatchingFilters filters; + 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_RESULTS_PER_FUNCTION = "results_per_function"; - @SerializedName(SERIALIZED_NAME_RESULTS_PER_FUNCTION) + public static final String SERIALIZED_NAME_NO_CACHE = "no_cache"; + @SerializedName(SERIALIZED_NAME_NO_CACHE) @javax.annotation.Nullable - private Integer resultsPerFunction = 1; + private Boolean noCache = false; public static final String SERIALIZED_NAME_PAGE = "page"; @Deprecated @@ -93,17 +93,17 @@ public class FunctionMatchingRequest { @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 @@ -112,22 +112,22 @@ public class FunctionMatchingRequest { public FunctionMatchingRequest() { } - public FunctionMatchingRequest modelId(@javax.annotation.Nonnull Integer modelId) { - this.modelId = modelId; + public FunctionMatchingRequest filters(@javax.annotation.Nullable FunctionMatchingFilters filters) { + this.filters = filters; return this; } /** - * ID of the model used for function matching, used to determine the embedding model - * @return modelId + * Get filters + * @return filters */ - @javax.annotation.Nonnull - public Integer getModelId() { - return modelId; + @javax.annotation.Nullable + public FunctionMatchingFilters getFilters() { + return filters; } - public void setModelId(@javax.annotation.Nonnull Integer modelId) { - this.modelId = modelId; + public void setFilters(@javax.annotation.Nullable FunctionMatchingFilters filters) { + this.filters = filters; } @@ -165,8 +165,8 @@ public FunctionMatchingRequest minSimilarity(@javax.annotation.Nullable BigDecim /** * Minimum similarity expected for a match as a percentage, default is 90 - * minimum: 0.0 - * maximum: 100.0 + * minimum: 0 + * maximum: 100 * @return minSimilarity */ @javax.annotation.Nullable @@ -179,43 +179,41 @@ public void setMinSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity } - public FunctionMatchingRequest filters(@javax.annotation.Nullable FunctionMatchingFilters filters) { - this.filters = filters; + public FunctionMatchingRequest modelId(@javax.annotation.Nonnull Integer modelId) { + this.modelId = modelId; return this; } /** - * Get filters - * @return filters + * ID of the model used for function matching, used to determine the embedding model + * @return modelId */ - @javax.annotation.Nullable - public FunctionMatchingFilters getFilters() { - return filters; + @javax.annotation.Nonnull + public Integer getModelId() { + return modelId; } - public void setFilters(@javax.annotation.Nullable FunctionMatchingFilters filters) { - this.filters = filters; + public void setModelId(@javax.annotation.Nonnull Integer modelId) { + this.modelId = modelId; } - public FunctionMatchingRequest resultsPerFunction(@javax.annotation.Nullable Integer resultsPerFunction) { - this.resultsPerFunction = resultsPerFunction; + public FunctionMatchingRequest noCache(@javax.annotation.Nullable Boolean noCache) { + this.noCache = noCache; return this; } /** - * Maximum number of matches to return per function, default is 1, max is 50 - * minimum: 1 - * maximum: 50 - * @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; } @@ -268,6 +266,27 @@ public void setPageSize(@javax.annotation.Nullable Integer pageSize) { } + public FunctionMatchingRequest resultsPerFunction(@javax.annotation.Nullable Integer resultsPerFunction) { + this.resultsPerFunction = resultsPerFunction; + return this; + } + + /** + * Maximum number of matches to return per function, default is 1, max is 50 + * minimum: 1 + * maximum: 50 + * @return resultsPerFunction + */ + @javax.annotation.Nullable + public Integer getResultsPerFunction() { + return resultsPerFunction; + } + + public void setResultsPerFunction(@javax.annotation.Nullable Integer resultsPerFunction) { + this.resultsPerFunction = resultsPerFunction; + } + + @Deprecated public FunctionMatchingRequest statusOnly(@javax.annotation.Nullable Boolean statusOnly) { this.statusOnly = statusOnly; @@ -291,25 +310,6 @@ public void setStatusOnly(@javax.annotation.Nullable Boolean statusOnly) { } - public FunctionMatchingRequest 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 FunctionMatchingRequest useCanonicalNames(@javax.annotation.Nullable Boolean useCanonicalNames) { this.useCanonicalNames = useCanonicalNames; return this; @@ -383,15 +383,15 @@ public boolean equals(Object o) { return false; } FunctionMatchingRequest functionMatchingRequest = (FunctionMatchingRequest) o; - return Objects.equals(this.modelId, functionMatchingRequest.modelId) && + return Objects.equals(this.filters, functionMatchingRequest.filters) && Objects.equals(this.functionIds, functionMatchingRequest.functionIds) && Objects.equals(this.minSimilarity, functionMatchingRequest.minSimilarity) && - Objects.equals(this.filters, functionMatchingRequest.filters) && - Objects.equals(this.resultsPerFunction, functionMatchingRequest.resultsPerFunction) && + Objects.equals(this.modelId, functionMatchingRequest.modelId) && + Objects.equals(this.noCache, functionMatchingRequest.noCache) && Objects.equals(this.page, functionMatchingRequest.page) && Objects.equals(this.pageSize, functionMatchingRequest.pageSize) && + Objects.equals(this.resultsPerFunction, functionMatchingRequest.resultsPerFunction) && Objects.equals(this.statusOnly, functionMatchingRequest.statusOnly) && - Objects.equals(this.noCache, functionMatchingRequest.noCache) && Objects.equals(this.useCanonicalNames, functionMatchingRequest.useCanonicalNames)&& Objects.equals(this.additionalProperties, functionMatchingRequest.additionalProperties); } @@ -402,7 +402,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(modelId, functionIds, minSimilarity, filters, resultsPerFunction, page, pageSize, statusOnly, noCache, useCanonicalNames, additionalProperties); + return Objects.hash(filters, functionIds, minSimilarity, modelId, noCache, page, pageSize, resultsPerFunction, statusOnly, useCanonicalNames, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -416,15 +416,15 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionMatchingRequest {\n"); - sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); + sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); sb.append(" functionIds: ").append(toIndentedString(functionIds)).append("\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(" modelId: ").append(toIndentedString(modelId)).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("}"); @@ -448,10 +448,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("model_id", "function_ids", "min_similarity", "filters", "results_per_function", "page", "page_size", "status_only", "no_cache", "use_canonical_names")); + openapiFields = new HashSet(Arrays.asList("filters", "function_ids", "min_similarity", "model_id", "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(Arrays.asList("model_id", "function_ids")); + openapiRequiredFields = new HashSet(Arrays.asList("function_ids", "model_id")); } /** @@ -474,16 +474,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `filters` + if (jsonObj.get("filters") != null && !jsonObj.get("filters").isJsonNull()) { + FunctionMatchingFilters.validateJsonElement(jsonObj.get("filters")); + } // ensure the required json array is present if (jsonObj.get("function_ids") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); } else if (!jsonObj.get("function_ids").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_ids` to be an array in the JSON string but got `%s`", jsonObj.get("function_ids").toString())); } - // validate the optional field `filters` - if (jsonObj.get("filters") != null && !jsonObj.get("filters").isJsonNull()) { - FunctionMatchingFilters.validateJsonElement(jsonObj.get("filters")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionMatchingResponse.java b/src/main/java/ai/reveng/model/FunctionMatchingResponse.java index 6b83011..e13df58 100644 --- a/src/main/java/ai/reveng/model/FunctionMatchingResponse.java +++ b/src/main/java/ai/reveng/model/FunctionMatchingResponse.java @@ -55,50 +55,50 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionMatchingResponse { - public static final String SERIALIZED_NAME_PROGRESS = "progress"; - @SerializedName(SERIALIZED_NAME_PROGRESS) - @javax.annotation.Nullable - private Integer progress = 0; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private String status; - - public static final String SERIALIZED_NAME_TOTAL_TIME = "total_time"; - @SerializedName(SERIALIZED_NAME_TOTAL_TIME) - @javax.annotation.Nullable - private Integer totalTime; - - public static final String SERIALIZED_NAME_ERROR_MESSAGE = "error_message"; - @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) - @javax.annotation.Nullable - private String errorMessage; - public static final String SERIALIZED_NAME_CURRENT_PAGE = "current_page"; @SerializedName(SERIALIZED_NAME_CURRENT_PAGE) @javax.annotation.Nullable private Integer currentPage; - public static final String SERIALIZED_NAME_TOTAL_PAGES = "total_pages"; - @SerializedName(SERIALIZED_NAME_TOTAL_PAGES) + public static final String SERIALIZED_NAME_ERROR_MESSAGE = "error_message"; + @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) @javax.annotation.Nullable - private Integer totalPages; + private String errorMessage; public static final String SERIALIZED_NAME_MATCHES = "matches"; @SerializedName(SERIALIZED_NAME_MATCHES) @javax.annotation.Nullable private List matches; + public static final String SERIALIZED_NAME_NUM_DEBUG_MATCHES = "num_debug_matches"; + @SerializedName(SERIALIZED_NAME_NUM_DEBUG_MATCHES) + @javax.annotation.Nullable + private Integer numDebugMatches; + public static final String SERIALIZED_NAME_NUM_MATCHES = "num_matches"; @SerializedName(SERIALIZED_NAME_NUM_MATCHES) @javax.annotation.Nullable private Integer numMatches; - public static final String SERIALIZED_NAME_NUM_DEBUG_MATCHES = "num_debug_matches"; - @SerializedName(SERIALIZED_NAME_NUM_DEBUG_MATCHES) + public static final String SERIALIZED_NAME_PROGRESS = "progress"; + @SerializedName(SERIALIZED_NAME_PROGRESS) @javax.annotation.Nullable - private Integer numDebugMatches; + private Integer progress = 0; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable + private String status; + + public static final String SERIALIZED_NAME_TOTAL_PAGES = "total_pages"; + @SerializedName(SERIALIZED_NAME_TOTAL_PAGES) + @javax.annotation.Nullable + private Integer totalPages; + + public static final String SERIALIZED_NAME_TOTAL_TIME = "total_time"; + @SerializedName(SERIALIZED_NAME_TOTAL_TIME) + @javax.annotation.Nullable + private Integer totalTime; public static final String SERIALIZED_NAME_UPDATED_AT = "updated_at"; @SerializedName(SERIALIZED_NAME_UPDATED_AT) @@ -108,182 +108,182 @@ public class FunctionMatchingResponse { public FunctionMatchingResponse() { } - public FunctionMatchingResponse progress(@javax.annotation.Nullable Integer progress) { - this.progress = progress; + public FunctionMatchingResponse currentPage(@javax.annotation.Nullable Integer currentPage) { + this.currentPage = currentPage; return this; } /** - * Progress of the matching operation, represented as a percentage - * @return progress + * Get currentPage + * @return currentPage */ @javax.annotation.Nullable - public Integer getProgress() { - return progress; + public Integer getCurrentPage() { + return currentPage; } - public void setProgress(@javax.annotation.Nullable Integer progress) { - this.progress = progress; + public void setCurrentPage(@javax.annotation.Nullable Integer currentPage) { + this.currentPage = currentPage; } - public FunctionMatchingResponse status(@javax.annotation.Nullable String status) { - this.status = status; + public FunctionMatchingResponse errorMessage(@javax.annotation.Nullable String errorMessage) { + this.errorMessage = errorMessage; return this; } /** - * Get status - * @return status + * Get errorMessage + * @return errorMessage */ @javax.annotation.Nullable - public String getStatus() { - return status; + public String getErrorMessage() { + return errorMessage; } - public void setStatus(@javax.annotation.Nullable String status) { - this.status = status; + public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { + this.errorMessage = errorMessage; } - public FunctionMatchingResponse totalTime(@javax.annotation.Nullable Integer totalTime) { - this.totalTime = totalTime; + public FunctionMatchingResponse matches(@javax.annotation.Nullable List matches) { + this.matches = matches; + return this; + } + + public FunctionMatchingResponse addMatchesItem(FunctionMatch matchesItem) { + if (this.matches == null) { + this.matches = new ArrayList<>(); + } + this.matches.add(matchesItem); return this; } /** - * Get totalTime - * @return totalTime + * Get matches + * @return matches */ @javax.annotation.Nullable - public Integer getTotalTime() { - return totalTime; + public List getMatches() { + return matches; } - public void setTotalTime(@javax.annotation.Nullable Integer totalTime) { - this.totalTime = totalTime; + public void setMatches(@javax.annotation.Nullable List matches) { + this.matches = matches; } - public FunctionMatchingResponse errorMessage(@javax.annotation.Nullable String errorMessage) { - this.errorMessage = errorMessage; + public FunctionMatchingResponse numDebugMatches(@javax.annotation.Nullable Integer numDebugMatches) { + this.numDebugMatches = numDebugMatches; return this; } /** - * Get errorMessage - * @return errorMessage + * Get numDebugMatches + * @return numDebugMatches */ @javax.annotation.Nullable - public String getErrorMessage() { - return errorMessage; + public Integer getNumDebugMatches() { + return numDebugMatches; } - public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { - this.errorMessage = errorMessage; + public void setNumDebugMatches(@javax.annotation.Nullable Integer numDebugMatches) { + this.numDebugMatches = numDebugMatches; } - public FunctionMatchingResponse currentPage(@javax.annotation.Nullable Integer currentPage) { - this.currentPage = currentPage; + public FunctionMatchingResponse numMatches(@javax.annotation.Nullable Integer numMatches) { + this.numMatches = numMatches; return this; } /** - * Get currentPage - * @return currentPage + * Get numMatches + * @return numMatches */ @javax.annotation.Nullable - public Integer getCurrentPage() { - return currentPage; + public Integer getNumMatches() { + return numMatches; } - public void setCurrentPage(@javax.annotation.Nullable Integer currentPage) { - this.currentPage = currentPage; + public void setNumMatches(@javax.annotation.Nullable Integer numMatches) { + this.numMatches = numMatches; } - public FunctionMatchingResponse totalPages(@javax.annotation.Nullable Integer totalPages) { - this.totalPages = totalPages; + public FunctionMatchingResponse progress(@javax.annotation.Nullable Integer progress) { + this.progress = progress; return this; } /** - * Get totalPages - * @return totalPages + * Progress of the matching operation, represented as a percentage + * @return progress */ @javax.annotation.Nullable - public Integer getTotalPages() { - return totalPages; + public Integer getProgress() { + return progress; } - public void setTotalPages(@javax.annotation.Nullable Integer totalPages) { - this.totalPages = totalPages; + public void setProgress(@javax.annotation.Nullable Integer progress) { + this.progress = progress; } - public FunctionMatchingResponse matches(@javax.annotation.Nullable List matches) { - this.matches = matches; - return this; - } - - public FunctionMatchingResponse addMatchesItem(FunctionMatch matchesItem) { - if (this.matches == null) { - this.matches = new ArrayList<>(); - } - this.matches.add(matchesItem); + public FunctionMatchingResponse status(@javax.annotation.Nullable String status) { + this.status = status; return this; } /** - * Get matches - * @return matches + * Get status + * @return status */ @javax.annotation.Nullable - public List getMatches() { - return matches; + public String getStatus() { + return status; } - public void setMatches(@javax.annotation.Nullable List matches) { - this.matches = matches; + public void setStatus(@javax.annotation.Nullable String status) { + this.status = status; } - public FunctionMatchingResponse numMatches(@javax.annotation.Nullable Integer numMatches) { - this.numMatches = numMatches; + public FunctionMatchingResponse totalPages(@javax.annotation.Nullable Integer totalPages) { + this.totalPages = totalPages; return this; } /** - * Get numMatches - * @return numMatches + * Get totalPages + * @return totalPages */ @javax.annotation.Nullable - public Integer getNumMatches() { - return numMatches; + public Integer getTotalPages() { + return totalPages; } - public void setNumMatches(@javax.annotation.Nullable Integer numMatches) { - this.numMatches = numMatches; + public void setTotalPages(@javax.annotation.Nullable Integer totalPages) { + this.totalPages = totalPages; } - public FunctionMatchingResponse numDebugMatches(@javax.annotation.Nullable Integer numDebugMatches) { - this.numDebugMatches = numDebugMatches; + public FunctionMatchingResponse totalTime(@javax.annotation.Nullable Integer totalTime) { + this.totalTime = totalTime; return this; } /** - * Get numDebugMatches - * @return numDebugMatches + * Get totalTime + * @return totalTime */ @javax.annotation.Nullable - public Integer getNumDebugMatches() { - return numDebugMatches; + public Integer getTotalTime() { + return totalTime; } - public void setNumDebugMatches(@javax.annotation.Nullable Integer numDebugMatches) { - this.numDebugMatches = numDebugMatches; + public void setTotalTime(@javax.annotation.Nullable Integer totalTime) { + this.totalTime = totalTime; } @@ -360,15 +360,15 @@ public boolean equals(Object o) { return false; } FunctionMatchingResponse functionMatchingResponse = (FunctionMatchingResponse) o; - return Objects.equals(this.progress, functionMatchingResponse.progress) && - Objects.equals(this.status, functionMatchingResponse.status) && - Objects.equals(this.totalTime, functionMatchingResponse.totalTime) && + return Objects.equals(this.currentPage, functionMatchingResponse.currentPage) && Objects.equals(this.errorMessage, functionMatchingResponse.errorMessage) && - Objects.equals(this.currentPage, functionMatchingResponse.currentPage) && - Objects.equals(this.totalPages, functionMatchingResponse.totalPages) && Objects.equals(this.matches, functionMatchingResponse.matches) && - Objects.equals(this.numMatches, functionMatchingResponse.numMatches) && Objects.equals(this.numDebugMatches, functionMatchingResponse.numDebugMatches) && + Objects.equals(this.numMatches, functionMatchingResponse.numMatches) && + Objects.equals(this.progress, functionMatchingResponse.progress) && + Objects.equals(this.status, functionMatchingResponse.status) && + Objects.equals(this.totalPages, functionMatchingResponse.totalPages) && + Objects.equals(this.totalTime, functionMatchingResponse.totalTime) && Objects.equals(this.updatedAt, functionMatchingResponse.updatedAt)&& Objects.equals(this.additionalProperties, functionMatchingResponse.additionalProperties); } @@ -379,7 +379,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(progress, status, totalTime, errorMessage, currentPage, totalPages, matches, numMatches, numDebugMatches, updatedAt, additionalProperties); + return Objects.hash(currentPage, errorMessage, matches, numDebugMatches, numMatches, progress, status, totalPages, totalTime, updatedAt, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -393,15 +393,15 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionMatchingResponse {\n"); - sb.append(" progress: ").append(toIndentedString(progress)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" totalTime: ").append(toIndentedString(totalTime)).append("\n"); - sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); - sb.append(" totalPages: ").append(toIndentedString(totalPages)).append("\n"); + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); sb.append(" matches: ").append(toIndentedString(matches)).append("\n"); - sb.append(" numMatches: ").append(toIndentedString(numMatches)).append("\n"); sb.append(" numDebugMatches: ").append(toIndentedString(numDebugMatches)).append("\n"); + sb.append(" numMatches: ").append(toIndentedString(numMatches)).append("\n"); + sb.append(" progress: ").append(toIndentedString(progress)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" totalPages: ").append(toIndentedString(totalPages)).append("\n"); + sb.append(" totalTime: ").append(toIndentedString(totalTime)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -425,7 +425,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("progress", "status", "total_time", "error_message", "current_page", "total_pages", "matches", "num_matches", "num_debug_matches", "updated_at")); + openapiFields = new HashSet(Arrays.asList("current_page", "error_message", "matches", "num_debug_matches", "num_matches", "progress", "status", "total_pages", "total_time", "updated_at")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -444,9 +444,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !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("error_message") != null && !jsonObj.get("error_message").isJsonNull()) && !jsonObj.get("error_message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error_message").toString())); } @@ -464,6 +461,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !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("updated_at") != null && !jsonObj.get("updated_at").isJsonNull()) && !jsonObj.get("updated_at").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updated_at` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updated_at").toString())); } diff --git a/src/main/java/ai/reveng/model/FunctionNameHistory.java b/src/main/java/ai/reveng/model/FunctionNameHistory.java index 3deb7d7..e9081c9 100644 --- a/src/main/java/ai/reveng/model/FunctionNameHistory.java +++ b/src/main/java/ai/reveng/model/FunctionNameHistory.java @@ -52,79 +52,79 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionNameHistory { - public static final String SERIALIZED_NAME_HISTORY_ID = "history_id"; - @SerializedName(SERIALIZED_NAME_HISTORY_ID) - @javax.annotation.Nonnull - private Integer historyId; - public static final String SERIALIZED_NAME_CHANGE_MADE_BY = "change_made_by"; @SerializedName(SERIALIZED_NAME_CHANGE_MADE_BY) @javax.annotation.Nonnull private String changeMadeBy; + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + @javax.annotation.Nonnull + private String createdAt; + 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_MANGLED_NAME = "mangled_name"; - @SerializedName(SERIALIZED_NAME_MANGLED_NAME) + public static final String SERIALIZED_NAME_HISTORY_ID = "history_id"; + @SerializedName(SERIALIZED_NAME_HISTORY_ID) @javax.annotation.Nonnull - private String mangledName; + private Integer historyId; public static final String SERIALIZED_NAME_IS_DEBUG = "is_debug"; @SerializedName(SERIALIZED_NAME_IS_DEBUG) @javax.annotation.Nonnull private Boolean isDebug; + public static final String SERIALIZED_NAME_MANGLED_NAME = "mangled_name"; + @SerializedName(SERIALIZED_NAME_MANGLED_NAME) + @javax.annotation.Nonnull + private String mangledName; + public static final String SERIALIZED_NAME_SOURCE_TYPE = "source_type"; @SerializedName(SERIALIZED_NAME_SOURCE_TYPE) @javax.annotation.Nonnull private FunctionSourceType sourceType; - public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; - @SerializedName(SERIALIZED_NAME_CREATED_AT) - @javax.annotation.Nonnull - private String createdAt; - public FunctionNameHistory() { } - public FunctionNameHistory historyId(@javax.annotation.Nonnull Integer historyId) { - this.historyId = historyId; + public FunctionNameHistory changeMadeBy(@javax.annotation.Nonnull String changeMadeBy) { + this.changeMadeBy = changeMadeBy; return this; } /** - * The ID of the history record - * @return historyId + * The user who made the change + * @return changeMadeBy */ @javax.annotation.Nonnull - public Integer getHistoryId() { - return historyId; + public String getChangeMadeBy() { + return changeMadeBy; } - public void setHistoryId(@javax.annotation.Nonnull Integer historyId) { - this.historyId = historyId; + public void setChangeMadeBy(@javax.annotation.Nonnull String changeMadeBy) { + this.changeMadeBy = changeMadeBy; } - public FunctionNameHistory changeMadeBy(@javax.annotation.Nonnull String changeMadeBy) { - this.changeMadeBy = changeMadeBy; + public FunctionNameHistory createdAt(@javax.annotation.Nonnull String createdAt) { + this.createdAt = createdAt; return this; } /** - * The user who made the change - * @return changeMadeBy + * The timestamp when the function name was created + * @return createdAt */ @javax.annotation.Nonnull - public String getChangeMadeBy() { - return changeMadeBy; + public String getCreatedAt() { + return createdAt; } - public void setChangeMadeBy(@javax.annotation.Nonnull String changeMadeBy) { - this.changeMadeBy = changeMadeBy; + public void setCreatedAt(@javax.annotation.Nonnull String createdAt) { + this.createdAt = createdAt; } @@ -147,22 +147,22 @@ public void setFunctionName(@javax.annotation.Nonnull String functionName) { } - public FunctionNameHistory mangledName(@javax.annotation.Nonnull String mangledName) { - this.mangledName = mangledName; + public FunctionNameHistory historyId(@javax.annotation.Nonnull Integer historyId) { + this.historyId = historyId; return this; } /** - * The mangled name of the function - * @return mangledName + * The ID of the history record + * @return historyId */ @javax.annotation.Nonnull - public String getMangledName() { - return mangledName; + public Integer getHistoryId() { + return historyId; } - public void setMangledName(@javax.annotation.Nonnull String mangledName) { - this.mangledName = mangledName; + public void setHistoryId(@javax.annotation.Nonnull Integer historyId) { + this.historyId = historyId; } @@ -185,41 +185,41 @@ public void setIsDebug(@javax.annotation.Nonnull Boolean isDebug) { } - public FunctionNameHistory sourceType(@javax.annotation.Nonnull FunctionSourceType sourceType) { - this.sourceType = sourceType; + public FunctionNameHistory mangledName(@javax.annotation.Nonnull String mangledName) { + this.mangledName = mangledName; return this; } /** - * The source type of the function - * @return sourceType + * The mangled name of the function + * @return mangledName */ @javax.annotation.Nonnull - public FunctionSourceType getSourceType() { - return sourceType; + public String getMangledName() { + return mangledName; } - public void setSourceType(@javax.annotation.Nonnull FunctionSourceType sourceType) { - this.sourceType = sourceType; + public void setMangledName(@javax.annotation.Nonnull String mangledName) { + this.mangledName = mangledName; } - public FunctionNameHistory createdAt(@javax.annotation.Nonnull String createdAt) { - this.createdAt = createdAt; + public FunctionNameHistory sourceType(@javax.annotation.Nonnull FunctionSourceType sourceType) { + this.sourceType = sourceType; return this; } /** - * The timestamp when the function name was created - * @return createdAt + * The source type of the function + * @return sourceType */ @javax.annotation.Nonnull - public String getCreatedAt() { - return createdAt; + public FunctionSourceType getSourceType() { + return sourceType; } - public void setCreatedAt(@javax.annotation.Nonnull String createdAt) { - this.createdAt = createdAt; + public void setSourceType(@javax.annotation.Nonnull FunctionSourceType sourceType) { + this.sourceType = sourceType; } /** @@ -277,32 +277,32 @@ public boolean equals(Object o) { return false; } FunctionNameHistory functionNameHistory = (FunctionNameHistory) o; - return Objects.equals(this.historyId, functionNameHistory.historyId) && - Objects.equals(this.changeMadeBy, functionNameHistory.changeMadeBy) && + return Objects.equals(this.changeMadeBy, functionNameHistory.changeMadeBy) && + Objects.equals(this.createdAt, functionNameHistory.createdAt) && Objects.equals(this.functionName, functionNameHistory.functionName) && - Objects.equals(this.mangledName, functionNameHistory.mangledName) && + Objects.equals(this.historyId, functionNameHistory.historyId) && Objects.equals(this.isDebug, functionNameHistory.isDebug) && - Objects.equals(this.sourceType, functionNameHistory.sourceType) && - Objects.equals(this.createdAt, functionNameHistory.createdAt)&& + Objects.equals(this.mangledName, functionNameHistory.mangledName) && + Objects.equals(this.sourceType, functionNameHistory.sourceType)&& Objects.equals(this.additionalProperties, functionNameHistory.additionalProperties); } @Override public int hashCode() { - return Objects.hash(historyId, changeMadeBy, functionName, mangledName, isDebug, sourceType, createdAt, additionalProperties); + return Objects.hash(changeMadeBy, createdAt, functionName, historyId, isDebug, mangledName, sourceType, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionNameHistory {\n"); - sb.append(" historyId: ").append(toIndentedString(historyId)).append("\n"); sb.append(" changeMadeBy: ").append(toIndentedString(changeMadeBy)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n"); - sb.append(" mangledName: ").append(toIndentedString(mangledName)).append("\n"); + sb.append(" historyId: ").append(toIndentedString(historyId)).append("\n"); sb.append(" isDebug: ").append(toIndentedString(isDebug)).append("\n"); + sb.append(" mangledName: ").append(toIndentedString(mangledName)).append("\n"); sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -325,10 +325,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("history_id", "change_made_by", "function_name", "mangled_name", "is_debug", "source_type", "created_at")); + openapiFields = new HashSet(Arrays.asList("change_made_by", "created_at", "function_name", "history_id", "is_debug", "mangled_name", "source_type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("history_id", "change_made_by", "function_name", "mangled_name", "is_debug", "source_type", "created_at")); + openapiRequiredFields = new HashSet(Arrays.asList("change_made_by", "created_at", "function_name", "history_id", "is_debug", "mangled_name", "source_type")); } /** @@ -354,6 +354,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("change_made_by").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `change_made_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("change_made_by").toString())); } + if (!jsonObj.get("created_at").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `created_at` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_at").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())); } @@ -362,9 +365,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // validate the required field `source_type` FunctionSourceType.validateJsonElement(jsonObj.get("source_type")); - if (!jsonObj.get("created_at").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `created_at` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_at").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionParamResponse.java b/src/main/java/ai/reveng/model/FunctionParamResponse.java index 36b4a93..c832225 100644 --- a/src/main/java/ai/reveng/model/FunctionParamResponse.java +++ b/src/main/java/ai/reveng/model/FunctionParamResponse.java @@ -51,26 +51,26 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionParamResponse { - public static final String SERIALIZED_NAME_D_TYPE = "d_type"; - @SerializedName(SERIALIZED_NAME_D_TYPE) - @javax.annotation.Nonnull - private String dType; - - public static final String SERIALIZED_NAME_LOC = "loc"; - @SerializedName(SERIALIZED_NAME_LOC) - @javax.annotation.Nonnull - private String loc; - public static final String SERIALIZED_NAME_ADDR = "addr"; @SerializedName(SERIALIZED_NAME_ADDR) @javax.annotation.Nonnull private String addr; + public static final String SERIALIZED_NAME_D_TYPE = "d_type"; + @SerializedName(SERIALIZED_NAME_D_TYPE) + @javax.annotation.Nonnull + private String dType; + public static final String SERIALIZED_NAME_LENGTH = "length"; @SerializedName(SERIALIZED_NAME_LENGTH) @javax.annotation.Nonnull private Integer length; + public static final String SERIALIZED_NAME_LOC = "loc"; + @SerializedName(SERIALIZED_NAME_LOC) + @javax.annotation.Nonnull + private String loc; + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull @@ -79,79 +79,79 @@ public class FunctionParamResponse { public FunctionParamResponse() { } - public FunctionParamResponse dType(@javax.annotation.Nonnull String dType) { - this.dType = dType; + public FunctionParamResponse addr(@javax.annotation.Nonnull String addr) { + this.addr = addr; return this; } /** - * Get dType - * @return dType + * Get addr + * @return addr */ @javax.annotation.Nonnull - public String getdType() { - return dType; + public String getAddr() { + return addr; } - public void setdType(@javax.annotation.Nonnull String dType) { - this.dType = dType; + public void setAddr(@javax.annotation.Nonnull String addr) { + this.addr = addr; } - public FunctionParamResponse loc(@javax.annotation.Nonnull String loc) { - this.loc = loc; + public FunctionParamResponse dType(@javax.annotation.Nonnull String dType) { + this.dType = dType; return this; } /** - * Get loc - * @return loc + * Get dType + * @return dType */ @javax.annotation.Nonnull - public String getLoc() { - return loc; + public String getdType() { + return dType; } - public void setLoc(@javax.annotation.Nonnull String loc) { - this.loc = loc; + public void setdType(@javax.annotation.Nonnull String dType) { + this.dType = dType; } - public FunctionParamResponse addr(@javax.annotation.Nonnull String addr) { - this.addr = addr; + public FunctionParamResponse length(@javax.annotation.Nonnull Integer length) { + this.length = length; return this; } /** - * Get addr - * @return addr + * Get length + * @return length */ @javax.annotation.Nonnull - public String getAddr() { - return addr; + public Integer getLength() { + return length; } - public void setAddr(@javax.annotation.Nonnull String addr) { - this.addr = addr; + public void setLength(@javax.annotation.Nonnull Integer length) { + this.length = length; } - public FunctionParamResponse length(@javax.annotation.Nonnull Integer length) { - this.length = length; + public FunctionParamResponse loc(@javax.annotation.Nonnull String loc) { + this.loc = loc; return this; } /** - * Get length - * @return length + * Get loc + * @return loc */ @javax.annotation.Nonnull - public Integer getLength() { - return length; + public String getLoc() { + return loc; } - public void setLength(@javax.annotation.Nonnull Integer length) { - this.length = length; + public void setLoc(@javax.annotation.Nonnull String loc) { + this.loc = loc; } @@ -228,27 +228,27 @@ public boolean equals(Object o) { return false; } FunctionParamResponse functionParamResponse = (FunctionParamResponse) o; - return Objects.equals(this.dType, functionParamResponse.dType) && - Objects.equals(this.loc, functionParamResponse.loc) && - Objects.equals(this.addr, functionParamResponse.addr) && + return Objects.equals(this.addr, functionParamResponse.addr) && + Objects.equals(this.dType, functionParamResponse.dType) && Objects.equals(this.length, functionParamResponse.length) && + Objects.equals(this.loc, functionParamResponse.loc) && Objects.equals(this.name, functionParamResponse.name)&& Objects.equals(this.additionalProperties, functionParamResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dType, loc, addr, length, name, additionalProperties); + return Objects.hash(addr, dType, length, loc, name, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionParamResponse {\n"); - sb.append(" dType: ").append(toIndentedString(dType)).append("\n"); - sb.append(" loc: ").append(toIndentedString(loc)).append("\n"); sb.append(" addr: ").append(toIndentedString(addr)).append("\n"); + sb.append(" dType: ").append(toIndentedString(dType)).append("\n"); sb.append(" length: ").append(toIndentedString(length)).append("\n"); + sb.append(" loc: ").append(toIndentedString(loc)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -272,10 +272,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("d_type", "loc", "addr", "length", "name")); + openapiFields = new HashSet(Arrays.asList("addr", "d_type", "length", "loc", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("d_type", "loc", "addr", "length", "name")); + openapiRequiredFields = new HashSet(Arrays.asList("addr", "d_type", "length", "loc", "name")); } /** @@ -298,15 +298,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("addr").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `addr` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addr").toString())); + } if (!jsonObj.get("d_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `d_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("d_type").toString())); } if (!jsonObj.get("loc").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `loc` to be a primitive type in the JSON string but got `%s`", jsonObj.get("loc").toString())); } - if (!jsonObj.get("addr").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `addr` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addr").toString())); - } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } diff --git a/src/main/java/ai/reveng/model/FunctionRename.java b/src/main/java/ai/reveng/model/FunctionRename.java index 6e6b816..29c827f 100644 --- a/src/main/java/ai/reveng/model/FunctionRename.java +++ b/src/main/java/ai/reveng/model/FunctionRename.java @@ -51,54 +51,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionRename { - public static final String SERIALIZED_NAME_NEW_NAME = "new_name"; - @SerializedName(SERIALIZED_NAME_NEW_NAME) - @javax.annotation.Nonnull - private String newName; - public static final String SERIALIZED_NAME_NEW_MANGLED_NAME = "new_mangled_name"; @SerializedName(SERIALIZED_NAME_NEW_MANGLED_NAME) @javax.annotation.Nonnull private String newMangledName; + public static final String SERIALIZED_NAME_NEW_NAME = "new_name"; + @SerializedName(SERIALIZED_NAME_NEW_NAME) + @javax.annotation.Nonnull + private String newName; + public FunctionRename() { } - public FunctionRename newName(@javax.annotation.Nonnull String newName) { - this.newName = newName; + public FunctionRename newMangledName(@javax.annotation.Nonnull String newMangledName) { + this.newMangledName = newMangledName; return this; } /** - * The new name for the function - * @return newName + * The new mangled name for the function + * @return newMangledName */ @javax.annotation.Nonnull - public String getNewName() { - return newName; + public String getNewMangledName() { + return newMangledName; } - public void setNewName(@javax.annotation.Nonnull String newName) { - this.newName = newName; + public void setNewMangledName(@javax.annotation.Nonnull String newMangledName) { + this.newMangledName = newMangledName; } - public FunctionRename newMangledName(@javax.annotation.Nonnull String newMangledName) { - this.newMangledName = newMangledName; + public FunctionRename newName(@javax.annotation.Nonnull String newName) { + this.newName = newName; return this; } /** - * The new mangled name for the function - * @return newMangledName + * The new name for the function + * @return newName */ @javax.annotation.Nonnull - public String getNewMangledName() { - return newMangledName; + public String getNewName() { + return newName; } - public void setNewMangledName(@javax.annotation.Nonnull String newMangledName) { - this.newMangledName = newMangledName; + public void setNewName(@javax.annotation.Nonnull String newName) { + this.newName = newName; } /** @@ -156,22 +156,22 @@ public boolean equals(Object o) { return false; } FunctionRename functionRename = (FunctionRename) o; - return Objects.equals(this.newName, functionRename.newName) && - Objects.equals(this.newMangledName, functionRename.newMangledName)&& + return Objects.equals(this.newMangledName, functionRename.newMangledName) && + Objects.equals(this.newName, functionRename.newName)&& Objects.equals(this.additionalProperties, functionRename.additionalProperties); } @Override public int hashCode() { - return Objects.hash(newName, newMangledName, additionalProperties); + return Objects.hash(newMangledName, newName, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionRename {\n"); - sb.append(" newName: ").append(toIndentedString(newName)).append("\n"); sb.append(" newMangledName: ").append(toIndentedString(newMangledName)).append("\n"); + sb.append(" newName: ").append(toIndentedString(newName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -194,10 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("new_name", "new_mangled_name")); + openapiFields = new HashSet(Arrays.asList("new_mangled_name", "new_name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("new_name", "new_mangled_name")); + openapiRequiredFields = new HashSet(Arrays.asList("new_mangled_name", "new_name")); } /** @@ -220,12 +220,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("new_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `new_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("new_name").toString())); - } if (!jsonObj.get("new_mangled_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `new_mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("new_mangled_name").toString())); } + if (!jsonObj.get("new_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `new_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("new_name").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionRenameMap.java b/src/main/java/ai/reveng/model/FunctionRenameMap.java index d9da97c..da15f70 100644 --- a/src/main/java/ai/reveng/model/FunctionRenameMap.java +++ b/src/main/java/ai/reveng/model/FunctionRenameMap.java @@ -56,16 +56,16 @@ public class FunctionRenameMap { @javax.annotation.Nonnull private Long functionId; - public static final String SERIALIZED_NAME_NEW_NAME = "new_name"; - @SerializedName(SERIALIZED_NAME_NEW_NAME) - @javax.annotation.Nonnull - private String newName; - public static final String SERIALIZED_NAME_NEW_MANGLED_NAME = "new_mangled_name"; @SerializedName(SERIALIZED_NAME_NEW_MANGLED_NAME) @javax.annotation.Nonnull private String newMangledName; + public static final String SERIALIZED_NAME_NEW_NAME = "new_name"; + @SerializedName(SERIALIZED_NAME_NEW_NAME) + @javax.annotation.Nonnull + private String newName; + public FunctionRenameMap() { } @@ -88,41 +88,41 @@ public void setFunctionId(@javax.annotation.Nonnull Long functionId) { } - public FunctionRenameMap newName(@javax.annotation.Nonnull String newName) { - this.newName = newName; + public FunctionRenameMap newMangledName(@javax.annotation.Nonnull String newMangledName) { + this.newMangledName = newMangledName; return this; } /** - * The new name for the function - * @return newName + * The new mangled name for the function + * @return newMangledName */ @javax.annotation.Nonnull - public String getNewName() { - return newName; + public String getNewMangledName() { + return newMangledName; } - public void setNewName(@javax.annotation.Nonnull String newName) { - this.newName = newName; + public void setNewMangledName(@javax.annotation.Nonnull String newMangledName) { + this.newMangledName = newMangledName; } - public FunctionRenameMap newMangledName(@javax.annotation.Nonnull String newMangledName) { - this.newMangledName = newMangledName; + public FunctionRenameMap newName(@javax.annotation.Nonnull String newName) { + this.newName = newName; return this; } /** - * The new mangled name for the function - * @return newMangledName + * The new name for the function + * @return newName */ @javax.annotation.Nonnull - public String getNewMangledName() { - return newMangledName; + public String getNewName() { + return newName; } - public void setNewMangledName(@javax.annotation.Nonnull String newMangledName) { - this.newMangledName = newMangledName; + public void setNewName(@javax.annotation.Nonnull String newName) { + this.newName = newName; } /** @@ -181,14 +181,14 @@ public boolean equals(Object o) { } FunctionRenameMap functionRenameMap = (FunctionRenameMap) o; return Objects.equals(this.functionId, functionRenameMap.functionId) && - Objects.equals(this.newName, functionRenameMap.newName) && - Objects.equals(this.newMangledName, functionRenameMap.newMangledName)&& + Objects.equals(this.newMangledName, functionRenameMap.newMangledName) && + Objects.equals(this.newName, functionRenameMap.newName)&& Objects.equals(this.additionalProperties, functionRenameMap.additionalProperties); } @Override public int hashCode() { - return Objects.hash(functionId, newName, newMangledName, additionalProperties); + return Objects.hash(functionId, newMangledName, newName, additionalProperties); } @Override @@ -196,8 +196,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionRenameMap {\n"); sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); - sb.append(" newName: ").append(toIndentedString(newName)).append("\n"); sb.append(" newMangledName: ").append(toIndentedString(newMangledName)).append("\n"); + sb.append(" newName: ").append(toIndentedString(newName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -220,10 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("function_id", "new_name", "new_mangled_name")); + openapiFields = new HashSet(Arrays.asList("function_id", "new_mangled_name", "new_name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("function_id", "new_name", "new_mangled_name")); + openapiRequiredFields = new HashSet(Arrays.asList("function_id", "new_mangled_name", "new_name")); } /** @@ -246,12 +246,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("new_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `new_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("new_name").toString())); - } if (!jsonObj.get("new_mangled_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `new_mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("new_mangled_name").toString())); } + if (!jsonObj.get("new_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `new_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("new_name").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionSearchResult.java b/src/main/java/ai/reveng/model/FunctionSearchResult.java index 4f21076..36ddb45 100644 --- a/src/main/java/ai/reveng/model/FunctionSearchResult.java +++ b/src/main/java/ai/reveng/model/FunctionSearchResult.java @@ -52,16 +52,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionSearchResult { - 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_BINARY_NAME = "binary_name"; @SerializedName(SERIALIZED_NAME_BINARY_NAME) @javax.annotation.Nonnull @@ -72,6 +62,16 @@ public class FunctionSearchResult { @javax.annotation.Nonnull private OffsetDateTime createdAt; + 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_MODEL_ID = "model_id"; @SerializedName(SERIALIZED_NAME_MODEL_ID) @javax.annotation.Nonnull @@ -90,79 +90,79 @@ public class FunctionSearchResult { public FunctionSearchResult() { } - public FunctionSearchResult functionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; + public FunctionSearchResult binaryName(@javax.annotation.Nonnull String binaryName) { + this.binaryName = binaryName; return this; } /** - * The function ID - * @return functionId + * The name of the binary the function belongs to + * @return binaryName */ @javax.annotation.Nonnull - public Long getFunctionId() { - return functionId; + public String getBinaryName() { + return binaryName; } - public void setFunctionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; + public void setBinaryName(@javax.annotation.Nonnull String binaryName) { + this.binaryName = binaryName; } - public FunctionSearchResult functionName(@javax.annotation.Nonnull String functionName) { - this.functionName = functionName; + public FunctionSearchResult createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; return this; } /** - * The name of the function - * @return functionName + * The creation date of the function + * @return createdAt */ @javax.annotation.Nonnull - public String getFunctionName() { - return functionName; + public OffsetDateTime getCreatedAt() { + return createdAt; } - public void setFunctionName(@javax.annotation.Nonnull String functionName) { - this.functionName = functionName; + public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { + this.createdAt = createdAt; } - public FunctionSearchResult binaryName(@javax.annotation.Nonnull String binaryName) { - this.binaryName = binaryName; + public FunctionSearchResult functionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; return this; } /** - * The name of the binary the function belongs to - * @return binaryName + * The function ID + * @return functionId */ @javax.annotation.Nonnull - public String getBinaryName() { - return binaryName; + public Long getFunctionId() { + return functionId; } - public void setBinaryName(@javax.annotation.Nonnull String binaryName) { - this.binaryName = binaryName; + public void setFunctionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; } - public FunctionSearchResult createdAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; + public FunctionSearchResult functionName(@javax.annotation.Nonnull String functionName) { + this.functionName = functionName; return this; } /** - * The creation date of the function - * @return createdAt + * The name of the function + * @return functionName */ @javax.annotation.Nonnull - public OffsetDateTime getCreatedAt() { - return createdAt; + public String getFunctionName() { + return functionName; } - public void setCreatedAt(@javax.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; + public void setFunctionName(@javax.annotation.Nonnull String functionName) { + this.functionName = functionName; } @@ -277,10 +277,10 @@ public boolean equals(Object o) { return false; } FunctionSearchResult functionSearchResult = (FunctionSearchResult) o; - return Objects.equals(this.functionId, functionSearchResult.functionId) && - Objects.equals(this.functionName, functionSearchResult.functionName) && - Objects.equals(this.binaryName, functionSearchResult.binaryName) && + return Objects.equals(this.binaryName, functionSearchResult.binaryName) && Objects.equals(this.createdAt, functionSearchResult.createdAt) && + Objects.equals(this.functionId, functionSearchResult.functionId) && + Objects.equals(this.functionName, functionSearchResult.functionName) && Objects.equals(this.modelId, functionSearchResult.modelId) && Objects.equals(this.modelName, functionSearchResult.modelName) && Objects.equals(this.ownedBy, functionSearchResult.ownedBy)&& @@ -289,17 +289,17 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(functionId, functionName, binaryName, createdAt, modelId, modelName, ownedBy, additionalProperties); + return Objects.hash(binaryName, createdAt, functionId, functionName, modelId, modelName, ownedBy, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionSearchResult {\n"); - sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); - sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n"); sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); + sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n"); sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); sb.append(" ownedBy: ").append(toIndentedString(ownedBy)).append("\n"); @@ -325,10 +325,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", "binary_name", "created_at", "model_id", "model_name", "owned_by")); + openapiFields = new HashSet(Arrays.asList("binary_name", "created_at", "function_id", "function_name", "model_id", "model_name", "owned_by")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("function_id", "function_name", "binary_name", "created_at", "model_id", "model_name", "owned_by")); + openapiRequiredFields = new HashSet(Arrays.asList("binary_name", "created_at", "function_id", "function_name", "model_id", "model_name", "owned_by")); } /** @@ -351,12 +351,12 @@ 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("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("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("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())); } diff --git a/src/main/java/ai/reveng/model/FunctionString.java b/src/main/java/ai/reveng/model/FunctionString.java index e3b2640..45cb342 100644 --- a/src/main/java/ai/reveng/model/FunctionString.java +++ b/src/main/java/ai/reveng/model/FunctionString.java @@ -14,6 +14,7 @@ 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; @@ -51,35 +52,40 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionString { - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - @javax.annotation.Nonnull - private String value; + public static final String SERIALIZED_NAME_SOURCE = "source"; + @SerializedName(SERIALIZED_NAME_SOURCE) + @javax.annotation.Nullable + 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 FunctionString() { } - public FunctionString value(@javax.annotation.Nonnull String value) { - this.value = value; + public FunctionString source(@javax.annotation.Nullable StringSource source) { + this.source = source; return this; } /** - * The value of the string literal - * @return value + * The source of the string + * @return source */ - @javax.annotation.Nonnull - public String getValue() { - return value; + @javax.annotation.Nullable + public StringSource getSource() { + return source; } - public void setValue(@javax.annotation.Nonnull String value) { - this.value = value; + public void setSource(@javax.annotation.Nullable StringSource source) { + this.source = source; } @@ -101,6 +107,25 @@ public void setVaddr(@javax.annotation.Nonnull Integer vaddr) { this.vaddr = vaddr; } + + public FunctionString value(@javax.annotation.Nonnull String value) { + this.value = value; + return this; + } + + /** + * The value of the string literal + * @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 @@ -156,22 +181,24 @@ public boolean equals(Object o) { return false; } FunctionString functionString = (FunctionString) o; - return Objects.equals(this.value, functionString.value) && - Objects.equals(this.vaddr, functionString.vaddr)&& + return Objects.equals(this.source, functionString.source) && + Objects.equals(this.vaddr, functionString.vaddr) && + Objects.equals(this.value, functionString.value)&& Objects.equals(this.additionalProperties, functionString.additionalProperties); } @Override public int hashCode() { - return Objects.hash(value, vaddr, additionalProperties); + return Objects.hash(source, vaddr, value, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionString {\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\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(); @@ -194,10 +221,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("value", "vaddr")); + openapiFields = new HashSet(Arrays.asList("source", "vaddr", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("value", "vaddr")); + openapiRequiredFields = new HashSet(Arrays.asList("vaddr", "value")); } /** @@ -220,6 +247,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `source` + if (jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) { + 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())); } diff --git a/src/main/java/ai/reveng/model/FunctionTaskResponse.java b/src/main/java/ai/reveng/model/FunctionTaskResponse.java index 24a68eb..c6fd6fd 100644 --- a/src/main/java/ai/reveng/model/FunctionTaskResponse.java +++ b/src/main/java/ai/reveng/model/FunctionTaskResponse.java @@ -53,54 +53,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionTaskResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private FunctionTaskStatus status; - public static final String SERIALIZED_NAME_ERROR_MESSAGE = "error_message"; @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) @javax.annotation.Nullable private String errorMessage; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable + private FunctionTaskStatus status; + public FunctionTaskResponse() { } - public FunctionTaskResponse status(@javax.annotation.Nullable FunctionTaskStatus status) { - this.status = status; + public FunctionTaskResponse errorMessage(@javax.annotation.Nullable String errorMessage) { + this.errorMessage = errorMessage; return this; } /** - * Get status - * @return status + * Get errorMessage + * @return errorMessage */ @javax.annotation.Nullable - public FunctionTaskStatus getStatus() { - return status; + public String getErrorMessage() { + return errorMessage; } - public void setStatus(@javax.annotation.Nullable FunctionTaskStatus status) { - this.status = status; + public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { + this.errorMessage = errorMessage; } - public FunctionTaskResponse errorMessage(@javax.annotation.Nullable String errorMessage) { - this.errorMessage = errorMessage; + public FunctionTaskResponse status(@javax.annotation.Nullable FunctionTaskStatus status) { + this.status = status; return this; } /** - * Get errorMessage - * @return errorMessage + * Get status + * @return status */ @javax.annotation.Nullable - public String getErrorMessage() { - return errorMessage; + public FunctionTaskStatus getStatus() { + return status; } - public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { - this.errorMessage = errorMessage; + public void setStatus(@javax.annotation.Nullable FunctionTaskStatus status) { + this.status = status; } /** @@ -158,8 +158,8 @@ public boolean equals(Object o) { return false; } FunctionTaskResponse functionTaskResponse = (FunctionTaskResponse) o; - return Objects.equals(this.status, functionTaskResponse.status) && - Objects.equals(this.errorMessage, functionTaskResponse.errorMessage)&& + return Objects.equals(this.errorMessage, functionTaskResponse.errorMessage) && + Objects.equals(this.status, functionTaskResponse.status)&& Objects.equals(this.additionalProperties, functionTaskResponse.additionalProperties); } @@ -169,7 +169,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, errorMessage, additionalProperties); + return Objects.hash(errorMessage, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -183,8 +183,8 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionTaskResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -207,7 +207,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "error_message")); + openapiFields = new HashSet(Arrays.asList("error_message", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -226,13 +226,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("error_message") != null && !jsonObj.get("error_message").isJsonNull()) && !jsonObj.get("error_message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error_message").toString())); + } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { FunctionTaskStatus.validateJsonElement(jsonObj.get("status")); } - if ((jsonObj.get("error_message") != null && !jsonObj.get("error_message").isJsonNull()) && !jsonObj.get("error_message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error_message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionTypeInput.java b/src/main/java/ai/reveng/model/FunctionTypeInput.java index 5452ea3..6b150cb 100644 --- a/src/main/java/ai/reveng/model/FunctionTypeInput.java +++ b/src/main/java/ai/reveng/model/FunctionTypeInput.java @@ -56,68 +56,49 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionTypeInput { - public static final String SERIALIZED_NAME_LAST_CHANGE = "last_change"; - @SerializedName(SERIALIZED_NAME_LAST_CHANGE) - @javax.annotation.Nullable - private String lastChange; - public static final String SERIALIZED_NAME_ADDR = "addr"; @SerializedName(SERIALIZED_NAME_ADDR) @javax.annotation.Nonnull private Integer addr; - public static final String SERIALIZED_NAME_SIZE = "size"; - @SerializedName(SERIALIZED_NAME_SIZE) - @javax.annotation.Nonnull - private Integer size; + public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; + @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) + @javax.annotation.Nullable + private String artifactType = "Function"; public static final String SERIALIZED_NAME_HEADER = "header"; @SerializedName(SERIALIZED_NAME_HEADER) @javax.annotation.Nonnull private FunctionHeader header; - public static final String SERIALIZED_NAME_STACK_VARS = "stack_vars"; - @SerializedName(SERIALIZED_NAME_STACK_VARS) + public static final String SERIALIZED_NAME_LAST_CHANGE = "last_change"; + @SerializedName(SERIALIZED_NAME_LAST_CHANGE) @javax.annotation.Nullable - private Map stackVars; + private String lastChange; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull private String name; + public static final String SERIALIZED_NAME_SIZE = "size"; + @SerializedName(SERIALIZED_NAME_SIZE) + @javax.annotation.Nonnull + private Integer size; + + public static final String SERIALIZED_NAME_STACK_VARS = "stack_vars"; + @SerializedName(SERIALIZED_NAME_STACK_VARS) + @javax.annotation.Nullable + private Map stackVars; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull private String type; - public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; - @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) - @javax.annotation.Nullable - private String artifactType = "Function"; - public FunctionTypeInput() { } - public FunctionTypeInput lastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; - return this; - } - - /** - * Get lastChange - * @return lastChange - */ - @javax.annotation.Nullable - public String getLastChange() { - return lastChange; - } - - public void setLastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; - } - - public FunctionTypeInput addr(@javax.annotation.Nonnull Integer addr) { this.addr = addr; return this; @@ -137,22 +118,22 @@ public void setAddr(@javax.annotation.Nonnull Integer addr) { } - public FunctionTypeInput size(@javax.annotation.Nonnull Integer size) { - this.size = size; + public FunctionTypeInput artifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; return this; } /** - * Size of the function in bytes - * @return size + * Type of artifact that the structure is associated with + * @return artifactType */ - @javax.annotation.Nonnull - public Integer getSize() { - return size; + @javax.annotation.Nullable + public String getArtifactType() { + return artifactType; } - public void setSize(@javax.annotation.Nonnull Integer size) { - this.size = size; + public void setArtifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; } @@ -175,30 +156,22 @@ public void setHeader(@javax.annotation.Nonnull FunctionHeader header) { } - public FunctionTypeInput stackVars(@javax.annotation.Nullable Map stackVars) { - this.stackVars = stackVars; - return this; - } - - public FunctionTypeInput putStackVarsItem(String key, StackVariable stackVarsItem) { - if (this.stackVars == null) { - this.stackVars = new HashMap<>(); - } - this.stackVars.put(key, stackVarsItem); + public FunctionTypeInput lastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; return this; } /** - * Get stackVars - * @return stackVars + * Get lastChange + * @return lastChange */ @javax.annotation.Nullable - public Map getStackVars() { - return stackVars; + public String getLastChange() { + return lastChange; } - public void setStackVars(@javax.annotation.Nullable Map stackVars) { - this.stackVars = stackVars; + public void setLastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; } @@ -221,41 +194,68 @@ public void setName(@javax.annotation.Nonnull String name) { } - public FunctionTypeInput type(@javax.annotation.Nonnull String type) { - this.type = type; + public FunctionTypeInput size(@javax.annotation.Nonnull Integer size) { + this.size = size; return this; } /** - * Return type of the function - * @return type + * Size of the function in bytes + * @return size */ @javax.annotation.Nonnull - public String getType() { - return type; + public Integer getSize() { + return size; } - public void setType(@javax.annotation.Nonnull String type) { - this.type = type; + public void setSize(@javax.annotation.Nonnull Integer size) { + this.size = size; } - public FunctionTypeInput artifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; + public FunctionTypeInput stackVars(@javax.annotation.Nullable Map stackVars) { + this.stackVars = stackVars; + return this; + } + + public FunctionTypeInput putStackVarsItem(String key, StackVariable stackVarsItem) { + if (this.stackVars == null) { + this.stackVars = new HashMap<>(); + } + this.stackVars.put(key, stackVarsItem); return this; } /** - * Type of artifact that the structure is associated with - * @return artifactType + * Get stackVars + * @return stackVars */ @javax.annotation.Nullable - public String getArtifactType() { - return artifactType; + public Map getStackVars() { + return stackVars; } - public void setArtifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; + public void setStackVars(@javax.annotation.Nullable Map stackVars) { + this.stackVars = stackVars; + } + + + public FunctionTypeInput type(@javax.annotation.Nonnull String type) { + this.type = type; + return this; + } + + /** + * Return type of the function + * @return type + */ + @javax.annotation.Nonnull + public String getType() { + return type; + } + + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; } /** @@ -313,14 +313,14 @@ public boolean equals(Object o) { return false; } FunctionTypeInput functionTypeInput = (FunctionTypeInput) o; - return Objects.equals(this.lastChange, functionTypeInput.lastChange) && - Objects.equals(this.addr, functionTypeInput.addr) && - Objects.equals(this.size, functionTypeInput.size) && + return Objects.equals(this.addr, functionTypeInput.addr) && + Objects.equals(this.artifactType, functionTypeInput.artifactType) && Objects.equals(this.header, functionTypeInput.header) && - Objects.equals(this.stackVars, functionTypeInput.stackVars) && + Objects.equals(this.lastChange, functionTypeInput.lastChange) && Objects.equals(this.name, functionTypeInput.name) && - Objects.equals(this.type, functionTypeInput.type) && - Objects.equals(this.artifactType, functionTypeInput.artifactType)&& + Objects.equals(this.size, functionTypeInput.size) && + Objects.equals(this.stackVars, functionTypeInput.stackVars) && + Objects.equals(this.type, functionTypeInput.type)&& Objects.equals(this.additionalProperties, functionTypeInput.additionalProperties); } @@ -330,7 +330,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lastChange, addr, size, header, stackVars, name, type, artifactType, additionalProperties); + return Objects.hash(addr, artifactType, header, lastChange, name, size, stackVars, type, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -344,14 +344,14 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionTypeInput {\n"); - sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n"); sb.append(" addr: ").append(toIndentedString(addr)).append("\n"); - sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); sb.append(" header: ").append(toIndentedString(header)).append("\n"); - sb.append(" stackVars: ").append(toIndentedString(stackVars)).append("\n"); + sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" stackVars: ").append(toIndentedString(stackVars)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -374,10 +374,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("last_change", "addr", "size", "header", "stack_vars", "name", "type", "artifact_type")); + openapiFields = new HashSet(Arrays.asList("addr", "artifact_type", "header", "last_change", "name", "size", "stack_vars", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("addr", "size", "header", "name", "type")); + openapiRequiredFields = new HashSet(Arrays.asList("addr", "header", "name", "size", "type")); } /** @@ -400,20 +400,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("last_change") != null && !jsonObj.get("last_change").isJsonNull()) && !jsonObj.get("last_change").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `last_change` to be a primitive type in the JSON string but got `%s`", jsonObj.get("last_change").toString())); + if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); } // validate the required field `header` FunctionHeader.validateJsonElement(jsonObj.get("header")); + if ((jsonObj.get("last_change") != null && !jsonObj.get("last_change").isJsonNull()) && !jsonObj.get("last_change").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `last_change` to be a primitive type in the JSON string but got `%s`", jsonObj.get("last_change").toString())); + } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionTypeOutput.java b/src/main/java/ai/reveng/model/FunctionTypeOutput.java index cdc7b5b..081b1af 100644 --- a/src/main/java/ai/reveng/model/FunctionTypeOutput.java +++ b/src/main/java/ai/reveng/model/FunctionTypeOutput.java @@ -56,68 +56,49 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionTypeOutput { - public static final String SERIALIZED_NAME_LAST_CHANGE = "last_change"; - @SerializedName(SERIALIZED_NAME_LAST_CHANGE) - @javax.annotation.Nullable - private String lastChange; - public static final String SERIALIZED_NAME_ADDR = "addr"; @SerializedName(SERIALIZED_NAME_ADDR) @javax.annotation.Nonnull private Integer addr; - public static final String SERIALIZED_NAME_SIZE = "size"; - @SerializedName(SERIALIZED_NAME_SIZE) - @javax.annotation.Nonnull - private Integer size; + public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; + @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) + @javax.annotation.Nullable + private String artifactType = "Function"; public static final String SERIALIZED_NAME_HEADER = "header"; @SerializedName(SERIALIZED_NAME_HEADER) @javax.annotation.Nonnull private FunctionHeader header; - public static final String SERIALIZED_NAME_STACK_VARS = "stack_vars"; - @SerializedName(SERIALIZED_NAME_STACK_VARS) + public static final String SERIALIZED_NAME_LAST_CHANGE = "last_change"; + @SerializedName(SERIALIZED_NAME_LAST_CHANGE) @javax.annotation.Nullable - private Map stackVars; + private String lastChange; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull private String name; + public static final String SERIALIZED_NAME_SIZE = "size"; + @SerializedName(SERIALIZED_NAME_SIZE) + @javax.annotation.Nonnull + private Integer size; + + public static final String SERIALIZED_NAME_STACK_VARS = "stack_vars"; + @SerializedName(SERIALIZED_NAME_STACK_VARS) + @javax.annotation.Nullable + private Map stackVars; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull private String type; - public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; - @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) - @javax.annotation.Nullable - private String artifactType = "Function"; - public FunctionTypeOutput() { } - public FunctionTypeOutput lastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; - return this; - } - - /** - * Get lastChange - * @return lastChange - */ - @javax.annotation.Nullable - public String getLastChange() { - return lastChange; - } - - public void setLastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; - } - - public FunctionTypeOutput addr(@javax.annotation.Nonnull Integer addr) { this.addr = addr; return this; @@ -137,22 +118,22 @@ public void setAddr(@javax.annotation.Nonnull Integer addr) { } - public FunctionTypeOutput size(@javax.annotation.Nonnull Integer size) { - this.size = size; + public FunctionTypeOutput artifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; return this; } /** - * Size of the function in bytes - * @return size + * Type of artifact that the structure is associated with + * @return artifactType */ - @javax.annotation.Nonnull - public Integer getSize() { - return size; + @javax.annotation.Nullable + public String getArtifactType() { + return artifactType; } - public void setSize(@javax.annotation.Nonnull Integer size) { - this.size = size; + public void setArtifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; } @@ -175,30 +156,22 @@ public void setHeader(@javax.annotation.Nonnull FunctionHeader header) { } - public FunctionTypeOutput stackVars(@javax.annotation.Nullable Map stackVars) { - this.stackVars = stackVars; - return this; - } - - public FunctionTypeOutput putStackVarsItem(String key, StackVariable stackVarsItem) { - if (this.stackVars == null) { - this.stackVars = new HashMap<>(); - } - this.stackVars.put(key, stackVarsItem); + public FunctionTypeOutput lastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; return this; } /** - * Get stackVars - * @return stackVars + * Get lastChange + * @return lastChange */ @javax.annotation.Nullable - public Map getStackVars() { - return stackVars; + public String getLastChange() { + return lastChange; } - public void setStackVars(@javax.annotation.Nullable Map stackVars) { - this.stackVars = stackVars; + public void setLastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; } @@ -221,41 +194,68 @@ public void setName(@javax.annotation.Nonnull String name) { } - public FunctionTypeOutput type(@javax.annotation.Nonnull String type) { - this.type = type; + public FunctionTypeOutput size(@javax.annotation.Nonnull Integer size) { + this.size = size; return this; } /** - * Return type of the function - * @return type + * Size of the function in bytes + * @return size */ @javax.annotation.Nonnull - public String getType() { - return type; + public Integer getSize() { + return size; } - public void setType(@javax.annotation.Nonnull String type) { - this.type = type; + public void setSize(@javax.annotation.Nonnull Integer size) { + this.size = size; } - public FunctionTypeOutput artifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; + public FunctionTypeOutput stackVars(@javax.annotation.Nullable Map stackVars) { + this.stackVars = stackVars; + return this; + } + + public FunctionTypeOutput putStackVarsItem(String key, StackVariable stackVarsItem) { + if (this.stackVars == null) { + this.stackVars = new HashMap<>(); + } + this.stackVars.put(key, stackVarsItem); return this; } /** - * Type of artifact that the structure is associated with - * @return artifactType + * Get stackVars + * @return stackVars */ @javax.annotation.Nullable - public String getArtifactType() { - return artifactType; + public Map getStackVars() { + return stackVars; } - public void setArtifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; + public void setStackVars(@javax.annotation.Nullable Map stackVars) { + this.stackVars = stackVars; + } + + + public FunctionTypeOutput type(@javax.annotation.Nonnull String type) { + this.type = type; + return this; + } + + /** + * Return type of the function + * @return type + */ + @javax.annotation.Nonnull + public String getType() { + return type; + } + + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; } /** @@ -313,14 +313,14 @@ public boolean equals(Object o) { return false; } FunctionTypeOutput functionTypeOutput = (FunctionTypeOutput) o; - return Objects.equals(this.lastChange, functionTypeOutput.lastChange) && - Objects.equals(this.addr, functionTypeOutput.addr) && - Objects.equals(this.size, functionTypeOutput.size) && + return Objects.equals(this.addr, functionTypeOutput.addr) && + Objects.equals(this.artifactType, functionTypeOutput.artifactType) && Objects.equals(this.header, functionTypeOutput.header) && - Objects.equals(this.stackVars, functionTypeOutput.stackVars) && + Objects.equals(this.lastChange, functionTypeOutput.lastChange) && Objects.equals(this.name, functionTypeOutput.name) && - Objects.equals(this.type, functionTypeOutput.type) && - Objects.equals(this.artifactType, functionTypeOutput.artifactType)&& + Objects.equals(this.size, functionTypeOutput.size) && + Objects.equals(this.stackVars, functionTypeOutput.stackVars) && + Objects.equals(this.type, functionTypeOutput.type)&& Objects.equals(this.additionalProperties, functionTypeOutput.additionalProperties); } @@ -330,7 +330,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lastChange, addr, size, header, stackVars, name, type, artifactType, additionalProperties); + return Objects.hash(addr, artifactType, header, lastChange, name, size, stackVars, type, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -344,14 +344,14 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionTypeOutput {\n"); - sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n"); sb.append(" addr: ").append(toIndentedString(addr)).append("\n"); - sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); sb.append(" header: ").append(toIndentedString(header)).append("\n"); - sb.append(" stackVars: ").append(toIndentedString(stackVars)).append("\n"); + sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" stackVars: ").append(toIndentedString(stackVars)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -374,10 +374,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("last_change", "addr", "size", "header", "stack_vars", "name", "type", "artifact_type")); + openapiFields = new HashSet(Arrays.asList("addr", "artifact_type", "header", "last_change", "name", "size", "stack_vars", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("addr", "size", "header", "name", "type")); + openapiRequiredFields = new HashSet(Arrays.asList("addr", "header", "name", "size", "type")); } /** @@ -400,20 +400,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("last_change") != null && !jsonObj.get("last_change").isJsonNull()) && !jsonObj.get("last_change").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `last_change` to be a primitive type in the JSON string but got `%s`", jsonObj.get("last_change").toString())); + if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); } // validate the required field `header` FunctionHeader.validateJsonElement(jsonObj.get("header")); + if ((jsonObj.get("last_change") != null && !jsonObj.get("last_change").isJsonNull()) && !jsonObj.get("last_change").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `last_change` to be a primitive type in the JSON string but got `%s`", jsonObj.get("last_change").toString())); + } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/FunctionsDetailResponse.java b/src/main/java/ai/reveng/model/FunctionsDetailResponse.java index 57f742c..cc30b9e 100644 --- a/src/main/java/ai/reveng/model/FunctionsDetailResponse.java +++ b/src/main/java/ai/reveng/model/FunctionsDetailResponse.java @@ -55,31 +55,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionsDetailResponse { - 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_NAME_MANGLED = "function_name_mangled"; - @SerializedName(SERIALIZED_NAME_FUNCTION_NAME_MANGLED) - @javax.annotation.Nonnull - private String functionNameMangled; - - public static final String SERIALIZED_NAME_FUNCTION_VADDR = "function_vaddr"; - @SerializedName(SERIALIZED_NAME_FUNCTION_VADDR) - @javax.annotation.Nonnull - private Long functionVaddr; - - 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_ANALYSIS_ID = "analysis_id"; @SerializedName(SERIALIZED_NAME_ANALYSIS_ID) @javax.annotation.Nonnull @@ -95,129 +70,59 @@ public class FunctionsDetailResponse { @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_DEBUG_HASH = "debug_hash"; - @SerializedName(SERIALIZED_NAME_DEBUG_HASH) - @javax.annotation.Nullable - private String debugHash; - public static final String SERIALIZED_NAME_DEBUG = "debug"; @SerializedName(SERIALIZED_NAME_DEBUG) @javax.annotation.Nonnull private Boolean debug; - public static final String SERIALIZED_NAME_EMBEDDING3D = "embedding_3d"; - @SerializedName(SERIALIZED_NAME_EMBEDDING3D) + public static final String SERIALIZED_NAME_DEBUG_HASH = "debug_hash"; + @SerializedName(SERIALIZED_NAME_DEBUG_HASH) @javax.annotation.Nullable - private List embedding3d; + private String debugHash; public static final String SERIALIZED_NAME_EMBEDDING1D = "embedding_1d"; @SerializedName(SERIALIZED_NAME_EMBEDDING1D) @javax.annotation.Nullable private List embedding1d; - public FunctionsDetailResponse() { - } - - public FunctionsDetailResponse functionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; - return this; - } + public static final String SERIALIZED_NAME_EMBEDDING3D = "embedding_3d"; + @SerializedName(SERIALIZED_NAME_EMBEDDING3D) + @javax.annotation.Nullable + private List embedding3d; - /** - * Function id - * @return functionId - */ + public static final String SERIALIZED_NAME_FUNCTION_ID = "function_id"; + @SerializedName(SERIALIZED_NAME_FUNCTION_ID) @javax.annotation.Nonnull - public Long getFunctionId() { - return functionId; - } - - public void setFunctionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; - } - - - public FunctionsDetailResponse functionName(@javax.annotation.Nonnull String functionName) { - this.functionName = functionName; - return this; - } + private Long functionId; - /** - * Get functionName - * @return functionName - */ + public static final String SERIALIZED_NAME_FUNCTION_NAME = "function_name"; + @SerializedName(SERIALIZED_NAME_FUNCTION_NAME) @javax.annotation.Nonnull - public String getFunctionName() { - return functionName; - } - - public void setFunctionName(@javax.annotation.Nonnull String functionName) { - this.functionName = functionName; - } - - - public FunctionsDetailResponse functionNameMangled(@javax.annotation.Nonnull String functionNameMangled) { - this.functionNameMangled = functionNameMangled; - return this; - } + private String functionName; - /** - * Get functionNameMangled - * @return functionNameMangled - */ + public static final String SERIALIZED_NAME_FUNCTION_NAME_MANGLED = "function_name_mangled"; + @SerializedName(SERIALIZED_NAME_FUNCTION_NAME_MANGLED) @javax.annotation.Nonnull - public String getFunctionNameMangled() { - return functionNameMangled; - } - - public void setFunctionNameMangled(@javax.annotation.Nonnull String functionNameMangled) { - this.functionNameMangled = functionNameMangled; - } - - - public FunctionsDetailResponse functionVaddr(@javax.annotation.Nonnull Long functionVaddr) { - this.functionVaddr = functionVaddr; - return this; - } + private String functionNameMangled; - /** - * Get functionVaddr - * @return functionVaddr - */ + public static final String SERIALIZED_NAME_FUNCTION_SIZE = "function_size"; + @SerializedName(SERIALIZED_NAME_FUNCTION_SIZE) @javax.annotation.Nonnull - public Long getFunctionVaddr() { - return functionVaddr; - } - - public void setFunctionVaddr(@javax.annotation.Nonnull Long functionVaddr) { - this.functionVaddr = functionVaddr; - } - + private Integer functionSize; - public FunctionsDetailResponse functionSize(@javax.annotation.Nonnull Integer functionSize) { - this.functionSize = functionSize; - return this; - } + public static final String SERIALIZED_NAME_FUNCTION_VADDR = "function_vaddr"; + @SerializedName(SERIALIZED_NAME_FUNCTION_VADDR) + @javax.annotation.Nonnull + private Long functionVaddr; - /** - * Get functionSize - * @return functionSize - */ + public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash"; + @SerializedName(SERIALIZED_NAME_SHA256_HASH) @javax.annotation.Nonnull - public Integer getFunctionSize() { - return functionSize; - } + private String sha256Hash; - public void setFunctionSize(@javax.annotation.Nonnull Integer functionSize) { - this.functionSize = functionSize; + public FunctionsDetailResponse() { } - public FunctionsDetailResponse analysisId(@javax.annotation.Nonnull Integer analysisId) { this.analysisId = analysisId; return this; @@ -275,22 +180,22 @@ public void setBinaryName(@javax.annotation.Nonnull String binaryName) { } - public FunctionsDetailResponse sha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; + public FunctionsDetailResponse debug(@javax.annotation.Nonnull Boolean debug) { + this.debug = debug; return this; } /** - * Get sha256Hash - * @return sha256Hash + * Get debug + * @return debug */ @javax.annotation.Nonnull - public String getSha256Hash() { - return sha256Hash; + public Boolean getDebug() { + return debug; } - public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; + public void setDebug(@javax.annotation.Nonnull Boolean debug) { + this.debug = debug; } @@ -313,22 +218,30 @@ public void setDebugHash(@javax.annotation.Nullable String debugHash) { } - public FunctionsDetailResponse debug(@javax.annotation.Nonnull Boolean debug) { - this.debug = debug; + public FunctionsDetailResponse embedding1d(@javax.annotation.Nullable List embedding1d) { + this.embedding1d = embedding1d; + return this; + } + + public FunctionsDetailResponse addEmbedding1dItem(BigDecimal embedding1dItem) { + if (this.embedding1d == null) { + this.embedding1d = new ArrayList<>(); + } + this.embedding1d.add(embedding1dItem); return this; } /** - * Get debug - * @return debug + * Get embedding1d + * @return embedding1d */ - @javax.annotation.Nonnull - public Boolean getDebug() { - return debug; + @javax.annotation.Nullable + public List getEmbedding1d() { + return embedding1d; } - public void setDebug(@javax.annotation.Nonnull Boolean debug) { - this.debug = debug; + public void setEmbedding1d(@javax.annotation.Nullable List embedding1d) { + this.embedding1d = embedding1d; } @@ -359,30 +272,117 @@ public void setEmbedding3d(@javax.annotation.Nullable List embedding } - public FunctionsDetailResponse embedding1d(@javax.annotation.Nullable List embedding1d) { - this.embedding1d = embedding1d; + public FunctionsDetailResponse functionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; return this; } - public FunctionsDetailResponse addEmbedding1dItem(BigDecimal embedding1dItem) { - if (this.embedding1d == null) { - this.embedding1d = new ArrayList<>(); - } - this.embedding1d.add(embedding1dItem); + /** + * Function id + * @return functionId + */ + @javax.annotation.Nonnull + public Long getFunctionId() { + return functionId; + } + + public void setFunctionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; + } + + + public FunctionsDetailResponse functionName(@javax.annotation.Nonnull String functionName) { + this.functionName = functionName; return this; } /** - * Get embedding1d - * @return embedding1d + * Get functionName + * @return functionName */ - @javax.annotation.Nullable - public List getEmbedding1d() { - return embedding1d; + @javax.annotation.Nonnull + public String getFunctionName() { + return functionName; } - public void setEmbedding1d(@javax.annotation.Nullable List embedding1d) { - this.embedding1d = embedding1d; + public void setFunctionName(@javax.annotation.Nonnull String functionName) { + this.functionName = functionName; + } + + + public FunctionsDetailResponse functionNameMangled(@javax.annotation.Nonnull String functionNameMangled) { + this.functionNameMangled = functionNameMangled; + return this; + } + + /** + * Get functionNameMangled + * @return functionNameMangled + */ + @javax.annotation.Nonnull + public String getFunctionNameMangled() { + return functionNameMangled; + } + + public void setFunctionNameMangled(@javax.annotation.Nonnull String functionNameMangled) { + this.functionNameMangled = functionNameMangled; + } + + + public FunctionsDetailResponse functionSize(@javax.annotation.Nonnull Integer functionSize) { + this.functionSize = functionSize; + return this; + } + + /** + * Get functionSize + * @return functionSize + */ + @javax.annotation.Nonnull + public Integer getFunctionSize() { + return functionSize; + } + + public void setFunctionSize(@javax.annotation.Nonnull Integer functionSize) { + this.functionSize = functionSize; + } + + + public FunctionsDetailResponse functionVaddr(@javax.annotation.Nonnull Long functionVaddr) { + this.functionVaddr = functionVaddr; + return this; + } + + /** + * Get functionVaddr + * @return functionVaddr + */ + @javax.annotation.Nonnull + public Long getFunctionVaddr() { + return functionVaddr; + } + + public void setFunctionVaddr(@javax.annotation.Nonnull Long functionVaddr) { + this.functionVaddr = functionVaddr; + } + + + public FunctionsDetailResponse sha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; + return this; + } + + /** + * Get sha256Hash + * @return sha256Hash + */ + @javax.annotation.Nonnull + public String getSha256Hash() { + return sha256Hash; + } + + public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; } /** @@ -440,19 +440,19 @@ public boolean equals(Object o) { return false; } FunctionsDetailResponse functionsDetailResponse = (FunctionsDetailResponse) o; - return Objects.equals(this.functionId, functionsDetailResponse.functionId) && - Objects.equals(this.functionName, functionsDetailResponse.functionName) && - Objects.equals(this.functionNameMangled, functionsDetailResponse.functionNameMangled) && - Objects.equals(this.functionVaddr, functionsDetailResponse.functionVaddr) && - Objects.equals(this.functionSize, functionsDetailResponse.functionSize) && - Objects.equals(this.analysisId, functionsDetailResponse.analysisId) && + return Objects.equals(this.analysisId, functionsDetailResponse.analysisId) && Objects.equals(this.binaryId, functionsDetailResponse.binaryId) && Objects.equals(this.binaryName, functionsDetailResponse.binaryName) && - Objects.equals(this.sha256Hash, functionsDetailResponse.sha256Hash) && - Objects.equals(this.debugHash, functionsDetailResponse.debugHash) && Objects.equals(this.debug, functionsDetailResponse.debug) && + Objects.equals(this.debugHash, functionsDetailResponse.debugHash) && + Objects.equals(this.embedding1d, functionsDetailResponse.embedding1d) && Objects.equals(this.embedding3d, functionsDetailResponse.embedding3d) && - Objects.equals(this.embedding1d, functionsDetailResponse.embedding1d)&& + Objects.equals(this.functionId, functionsDetailResponse.functionId) && + Objects.equals(this.functionName, functionsDetailResponse.functionName) && + Objects.equals(this.functionNameMangled, functionsDetailResponse.functionNameMangled) && + Objects.equals(this.functionSize, functionsDetailResponse.functionSize) && + Objects.equals(this.functionVaddr, functionsDetailResponse.functionVaddr) && + Objects.equals(this.sha256Hash, functionsDetailResponse.sha256Hash)&& Objects.equals(this.additionalProperties, functionsDetailResponse.additionalProperties); } @@ -462,7 +462,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(functionId, functionName, functionNameMangled, functionVaddr, functionSize, analysisId, binaryId, binaryName, sha256Hash, debugHash, debug, embedding3d, embedding1d, additionalProperties); + return Objects.hash(analysisId, binaryId, binaryName, debug, debugHash, embedding1d, embedding3d, functionId, functionName, functionNameMangled, functionSize, functionVaddr, sha256Hash, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -476,19 +476,19 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FunctionsDetailResponse {\n"); - sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); - sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n"); - sb.append(" functionNameMangled: ").append(toIndentedString(functionNameMangled)).append("\n"); - sb.append(" functionVaddr: ").append(toIndentedString(functionVaddr)).append("\n"); - sb.append(" functionSize: ").append(toIndentedString(functionSize)).append("\n"); sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n"); sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n"); sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n"); - sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); - sb.append(" debugHash: ").append(toIndentedString(debugHash)).append("\n"); sb.append(" debug: ").append(toIndentedString(debug)).append("\n"); - sb.append(" embedding3d: ").append(toIndentedString(embedding3d)).append("\n"); + sb.append(" debugHash: ").append(toIndentedString(debugHash)).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(" functionNameMangled: ").append(toIndentedString(functionNameMangled)).append("\n"); + sb.append(" functionSize: ").append(toIndentedString(functionSize)).append("\n"); + sb.append(" functionVaddr: ").append(toIndentedString(functionVaddr)).append("\n"); + sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -511,10 +511,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_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug", "embedding_3d", "embedding_1d")); + openapiFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "debug", "debug_hash", "embedding_1d", "embedding_3d", "function_id", "function_name", "function_name_mangled", "function_size", "function_vaddr", "sha_256_hash")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug")); + openapiRequiredFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "debug", "debug_hash", "function_id", "function_name", "function_name_mangled", "function_size", "function_vaddr", "sha_256_hash")); } /** @@ -537,28 +537,28 @@ 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_name_mangled").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_name_mangled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_name_mangled").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())); - } 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())); } // 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_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_name_mangled").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_name_mangled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_name_mangled").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())); } } diff --git a/src/main/java/ai/reveng/model/GenerateFunctionDataTypes.java b/src/main/java/ai/reveng/model/GenerateFunctionDataTypes.java index 8f292f4..df9b7a2 100644 --- a/src/main/java/ai/reveng/model/GenerateFunctionDataTypes.java +++ b/src/main/java/ai/reveng/model/GenerateFunctionDataTypes.java @@ -52,6 +52,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class GenerateFunctionDataTypes { + public static final String SERIALIZED_NAME_DATA_TYPES_LIST = "data_types_list"; + @SerializedName(SERIALIZED_NAME_DATA_TYPES_LIST) + @javax.annotation.Nonnull + private GenerationStatusList dataTypesList; + public static final String SERIALIZED_NAME_QUEUED = "queued"; @Deprecated @SerializedName(SERIALIZED_NAME_QUEUED) @@ -64,14 +69,28 @@ public class GenerateFunctionDataTypes { @javax.annotation.Nonnull private String reference; - public static final String SERIALIZED_NAME_DATA_TYPES_LIST = "data_types_list"; - @SerializedName(SERIALIZED_NAME_DATA_TYPES_LIST) + public GenerateFunctionDataTypes() { + } + + public GenerateFunctionDataTypes dataTypesList(@javax.annotation.Nonnull GenerationStatusList dataTypesList) { + this.dataTypesList = dataTypesList; + return this; + } + + /** + * List of function data types information that are either already generated, or now queued for generation + * @return dataTypesList + */ @javax.annotation.Nonnull - private GenerationStatusList dataTypesList; + public GenerationStatusList getDataTypesList() { + return dataTypesList; + } - public GenerateFunctionDataTypes() { + public void setDataTypesList(@javax.annotation.Nonnull GenerationStatusList dataTypesList) { + this.dataTypesList = dataTypesList; } + @Deprecated public GenerateFunctionDataTypes queued(@javax.annotation.Nonnull Boolean queued) { this.queued = queued; @@ -117,25 +136,6 @@ public void setReference(@javax.annotation.Nonnull String reference) { this.reference = reference; } - - public GenerateFunctionDataTypes dataTypesList(@javax.annotation.Nonnull GenerationStatusList dataTypesList) { - this.dataTypesList = dataTypesList; - return this; - } - - /** - * List of function data types information that are either already generated, or now queued for generation - * @return dataTypesList - */ - @javax.annotation.Nonnull - public GenerationStatusList getDataTypesList() { - return dataTypesList; - } - - public void setDataTypesList(@javax.annotation.Nonnull GenerationStatusList dataTypesList) { - this.dataTypesList = dataTypesList; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -191,24 +191,24 @@ public boolean equals(Object o) { return false; } GenerateFunctionDataTypes generateFunctionDataTypes = (GenerateFunctionDataTypes) o; - return Objects.equals(this.queued, generateFunctionDataTypes.queued) && - Objects.equals(this.reference, generateFunctionDataTypes.reference) && - Objects.equals(this.dataTypesList, generateFunctionDataTypes.dataTypesList)&& + return Objects.equals(this.dataTypesList, generateFunctionDataTypes.dataTypesList) && + Objects.equals(this.queued, generateFunctionDataTypes.queued) && + Objects.equals(this.reference, generateFunctionDataTypes.reference)&& Objects.equals(this.additionalProperties, generateFunctionDataTypes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(queued, reference, dataTypesList, additionalProperties); + return Objects.hash(dataTypesList, queued, reference, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GenerateFunctionDataTypes {\n"); + sb.append(" dataTypesList: ").append(toIndentedString(dataTypesList)).append("\n"); sb.append(" queued: ").append(toIndentedString(queued)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); - sb.append(" dataTypesList: ").append(toIndentedString(dataTypesList)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -231,10 +231,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("queued", "reference", "data_types_list")); + openapiFields = new HashSet(Arrays.asList("data_types_list", "queued", "reference")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("queued", "reference", "data_types_list")); + openapiRequiredFields = new HashSet(Arrays.asList("data_types_list", "queued", "reference")); } /** @@ -257,11 +257,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `data_types_list` + GenerationStatusList.validateJsonElement(jsonObj.get("data_types_list")); if (!jsonObj.get("reference").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reference` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reference").toString())); } - // validate the required field `data_types_list` - GenerationStatusList.validateJsonElement(jsonObj.get("data_types_list")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/GenerationStatusList.java b/src/main/java/ai/reveng/model/GenerationStatusList.java index bc066bd..15780bd 100644 --- a/src/main/java/ai/reveng/model/GenerationStatusList.java +++ b/src/main/java/ai/reveng/model/GenerationStatusList.java @@ -54,6 +54,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class GenerationStatusList { + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @javax.annotation.Nonnull + private List items = new ArrayList<>(); + public static final String SERIALIZED_NAME_TOTAL_COUNT = "total_count"; @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) @javax.annotation.Nullable @@ -64,14 +69,36 @@ public class GenerationStatusList { @javax.annotation.Nullable private Integer totalDataTypesCount = 0; - public static final String SERIALIZED_NAME_ITEMS = "items"; - @SerializedName(SERIALIZED_NAME_ITEMS) + public GenerationStatusList() { + } + + public GenerationStatusList items(@javax.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public GenerationStatusList addItemsItem(FunctionDataTypesStatus itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * List of function data types information + * @return items + */ @javax.annotation.Nonnull - private List items = new ArrayList<>(); + public List getItems() { + return items; + } - public GenerationStatusList() { + public void setItems(@javax.annotation.Nonnull List items) { + this.items = items; } + public GenerationStatusList totalCount(@javax.annotation.Nullable Integer totalCount) { this.totalCount = totalCount; return this; @@ -109,33 +136,6 @@ public void setTotalDataTypesCount(@javax.annotation.Nullable Integer totalDataT this.totalDataTypesCount = totalDataTypesCount; } - - public GenerationStatusList items(@javax.annotation.Nonnull List items) { - this.items = items; - return this; - } - - public GenerationStatusList addItemsItem(FunctionDataTypesStatus itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(itemsItem); - return this; - } - - /** - * List of function data types information - * @return items - */ - @javax.annotation.Nonnull - public List getItems() { - return items; - } - - public void setItems(@javax.annotation.Nonnull List items) { - this.items = items; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -191,24 +191,24 @@ public boolean equals(Object o) { return false; } GenerationStatusList generationStatusList = (GenerationStatusList) o; - return Objects.equals(this.totalCount, generationStatusList.totalCount) && - Objects.equals(this.totalDataTypesCount, generationStatusList.totalDataTypesCount) && - Objects.equals(this.items, generationStatusList.items)&& + return Objects.equals(this.items, generationStatusList.items) && + Objects.equals(this.totalCount, generationStatusList.totalCount) && + Objects.equals(this.totalDataTypesCount, generationStatusList.totalDataTypesCount)&& Objects.equals(this.additionalProperties, generationStatusList.additionalProperties); } @Override public int hashCode() { - return Objects.hash(totalCount, totalDataTypesCount, items, additionalProperties); + return Objects.hash(items, totalCount, totalDataTypesCount, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GenerationStatusList {\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); sb.append(" totalDataTypesCount: ").append(toIndentedString(totalDataTypesCount)).append("\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -231,7 +231,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("total_count", "total_data_types_count", "items")); + openapiFields = new HashSet(Arrays.asList("items", "total_count", "total_data_types_count")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("items")); diff --git a/src/main/java/ai/reveng/model/GetAiDecompilationTask.java b/src/main/java/ai/reveng/model/GetAiDecompilationTask.java index a9823af..7a4bb15 100644 --- a/src/main/java/ai/reveng/model/GetAiDecompilationTask.java +++ b/src/main/java/ai/reveng/model/GetAiDecompilationTask.java @@ -57,21 +57,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class GetAiDecompilationTask { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nonnull - private AiDecompilationTaskStatus status; + public static final String SERIALIZED_NAME_AI_SUMMARY = "ai_summary"; + @SerializedName(SERIALIZED_NAME_AI_SUMMARY) + @javax.annotation.Nullable + private String aiSummary; public static final String SERIALIZED_NAME_DECOMPILATION = "decompilation"; @SerializedName(SERIALIZED_NAME_DECOMPILATION) @javax.annotation.Nullable private String decompilation; - public static final String SERIALIZED_NAME_RAW_DECOMPILATION = "raw_decompilation"; - @SerializedName(SERIALIZED_NAME_RAW_DECOMPILATION) - @javax.annotation.Nullable - private String rawDecompilation; - public static final String SERIALIZED_NAME_FUNCTION_MAPPING = "function_mapping"; @SerializedName(SERIALIZED_NAME_FUNCTION_MAPPING) @javax.annotation.Nullable @@ -82,45 +77,50 @@ public class GetAiDecompilationTask { @javax.annotation.Nullable private FunctionMappingFull functionMappingFull; - public static final String SERIALIZED_NAME_SUMMARY = "summary"; - @SerializedName(SERIALIZED_NAME_SUMMARY) - @javax.annotation.Nullable - private String summary; - - public static final String SERIALIZED_NAME_AI_SUMMARY = "ai_summary"; - @SerializedName(SERIALIZED_NAME_AI_SUMMARY) + public static final String SERIALIZED_NAME_PREDICTED_FUNCTION_NAME = "predicted_function_name"; + @SerializedName(SERIALIZED_NAME_PREDICTED_FUNCTION_NAME) @javax.annotation.Nullable - private String aiSummary; + private String predictedFunctionName; public static final String SERIALIZED_NAME_RAW_AI_SUMMARY = "raw_ai_summary"; @SerializedName(SERIALIZED_NAME_RAW_AI_SUMMARY) @javax.annotation.Nullable private String rawAiSummary; - public static final String SERIALIZED_NAME_PREDICTED_FUNCTION_NAME = "predicted_function_name"; - @SerializedName(SERIALIZED_NAME_PREDICTED_FUNCTION_NAME) + public static final String SERIALIZED_NAME_RAW_DECOMPILATION = "raw_decompilation"; + @SerializedName(SERIALIZED_NAME_RAW_DECOMPILATION) @javax.annotation.Nullable - private String predictedFunctionName; + private String rawDecompilation; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private AiDecompilationTaskStatus status; + + public static final String SERIALIZED_NAME_SUMMARY = "summary"; + @SerializedName(SERIALIZED_NAME_SUMMARY) + @javax.annotation.Nullable + private String summary; public GetAiDecompilationTask() { } - public GetAiDecompilationTask status(@javax.annotation.Nonnull AiDecompilationTaskStatus status) { - this.status = status; + public GetAiDecompilationTask aiSummary(@javax.annotation.Nullable String aiSummary) { + this.aiSummary = aiSummary; return this; } /** - * The status of the AI decompilation task - * @return status + * Get aiSummary + * @return aiSummary */ - @javax.annotation.Nonnull - public AiDecompilationTaskStatus getStatus() { - return status; + @javax.annotation.Nullable + public String getAiSummary() { + return aiSummary; } - public void setStatus(@javax.annotation.Nonnull AiDecompilationTaskStatus status) { - this.status = status; + public void setAiSummary(@javax.annotation.Nullable String aiSummary) { + this.aiSummary = aiSummary; } @@ -143,25 +143,6 @@ public void setDecompilation(@javax.annotation.Nullable String decompilation) { } - public GetAiDecompilationTask rawDecompilation(@javax.annotation.Nullable String rawDecompilation) { - this.rawDecompilation = rawDecompilation; - return this; - } - - /** - * Get rawDecompilation - * @return rawDecompilation - */ - @javax.annotation.Nullable - public String getRawDecompilation() { - return rawDecompilation; - } - - public void setRawDecompilation(@javax.annotation.Nullable String rawDecompilation) { - this.rawDecompilation = rawDecompilation; - } - - public GetAiDecompilationTask functionMapping(@javax.annotation.Nullable Map functionMapping) { this.functionMapping = functionMapping; return this; @@ -208,79 +189,98 @@ public void setFunctionMappingFull(@javax.annotation.Nullable FunctionMappingFul } - public GetAiDecompilationTask summary(@javax.annotation.Nullable String summary) { - this.summary = summary; + public GetAiDecompilationTask predictedFunctionName(@javax.annotation.Nullable String predictedFunctionName) { + this.predictedFunctionName = predictedFunctionName; return this; } /** - * Get summary - * @return summary + * Get predictedFunctionName + * @return predictedFunctionName */ @javax.annotation.Nullable - public String getSummary() { - return summary; + public String getPredictedFunctionName() { + return predictedFunctionName; } - public void setSummary(@javax.annotation.Nullable String summary) { - this.summary = summary; + public void setPredictedFunctionName(@javax.annotation.Nullable String predictedFunctionName) { + this.predictedFunctionName = predictedFunctionName; } - public GetAiDecompilationTask aiSummary(@javax.annotation.Nullable String aiSummary) { - this.aiSummary = aiSummary; + public GetAiDecompilationTask rawAiSummary(@javax.annotation.Nullable String rawAiSummary) { + this.rawAiSummary = rawAiSummary; return this; } /** - * Get aiSummary - * @return aiSummary + * Get rawAiSummary + * @return rawAiSummary */ @javax.annotation.Nullable - public String getAiSummary() { - return aiSummary; + public String getRawAiSummary() { + return rawAiSummary; } - public void setAiSummary(@javax.annotation.Nullable String aiSummary) { - this.aiSummary = aiSummary; + public void setRawAiSummary(@javax.annotation.Nullable String rawAiSummary) { + this.rawAiSummary = rawAiSummary; } - public GetAiDecompilationTask rawAiSummary(@javax.annotation.Nullable String rawAiSummary) { - this.rawAiSummary = rawAiSummary; + public GetAiDecompilationTask rawDecompilation(@javax.annotation.Nullable String rawDecompilation) { + this.rawDecompilation = rawDecompilation; return this; } /** - * Get rawAiSummary - * @return rawAiSummary + * Get rawDecompilation + * @return rawDecompilation */ @javax.annotation.Nullable - public String getRawAiSummary() { - return rawAiSummary; + public String getRawDecompilation() { + return rawDecompilation; } - public void setRawAiSummary(@javax.annotation.Nullable String rawAiSummary) { - this.rawAiSummary = rawAiSummary; + public void setRawDecompilation(@javax.annotation.Nullable String rawDecompilation) { + this.rawDecompilation = rawDecompilation; } - public GetAiDecompilationTask predictedFunctionName(@javax.annotation.Nullable String predictedFunctionName) { - this.predictedFunctionName = predictedFunctionName; + public GetAiDecompilationTask status(@javax.annotation.Nonnull AiDecompilationTaskStatus status) { + this.status = status; return this; } /** - * Get predictedFunctionName - * @return predictedFunctionName + * The status of the AI decompilation task + * @return status + */ + @javax.annotation.Nonnull + public AiDecompilationTaskStatus getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull AiDecompilationTaskStatus status) { + this.status = status; + } + + + public GetAiDecompilationTask summary(@javax.annotation.Nullable String summary) { + this.summary = summary; + return this; + } + + /** + * Get summary + * @return summary */ @javax.annotation.Nullable - public String getPredictedFunctionName() { - return predictedFunctionName; + public String getSummary() { + return summary; } - public void setPredictedFunctionName(@javax.annotation.Nullable String predictedFunctionName) { - this.predictedFunctionName = predictedFunctionName; + public void setSummary(@javax.annotation.Nullable String summary) { + this.summary = summary; } /** @@ -338,15 +338,15 @@ public boolean equals(Object o) { return false; } GetAiDecompilationTask getAiDecompilationTask = (GetAiDecompilationTask) o; - return Objects.equals(this.status, getAiDecompilationTask.status) && + return Objects.equals(this.aiSummary, getAiDecompilationTask.aiSummary) && Objects.equals(this.decompilation, getAiDecompilationTask.decompilation) && - Objects.equals(this.rawDecompilation, getAiDecompilationTask.rawDecompilation) && Objects.equals(this.functionMapping, getAiDecompilationTask.functionMapping) && Objects.equals(this.functionMappingFull, getAiDecompilationTask.functionMappingFull) && - Objects.equals(this.summary, getAiDecompilationTask.summary) && - Objects.equals(this.aiSummary, getAiDecompilationTask.aiSummary) && + Objects.equals(this.predictedFunctionName, getAiDecompilationTask.predictedFunctionName) && Objects.equals(this.rawAiSummary, getAiDecompilationTask.rawAiSummary) && - Objects.equals(this.predictedFunctionName, getAiDecompilationTask.predictedFunctionName)&& + Objects.equals(this.rawDecompilation, getAiDecompilationTask.rawDecompilation) && + Objects.equals(this.status, getAiDecompilationTask.status) && + Objects.equals(this.summary, getAiDecompilationTask.summary)&& Objects.equals(this.additionalProperties, getAiDecompilationTask.additionalProperties); } @@ -356,7 +356,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, decompilation, rawDecompilation, functionMapping, functionMappingFull, summary, aiSummary, rawAiSummary, predictedFunctionName, additionalProperties); + return Objects.hash(aiSummary, decompilation, functionMapping, functionMappingFull, predictedFunctionName, rawAiSummary, rawDecompilation, status, summary, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -370,15 +370,15 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetAiDecompilationTask {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" aiSummary: ").append(toIndentedString(aiSummary)).append("\n"); sb.append(" decompilation: ").append(toIndentedString(decompilation)).append("\n"); - sb.append(" rawDecompilation: ").append(toIndentedString(rawDecompilation)).append("\n"); sb.append(" functionMapping: ").append(toIndentedString(functionMapping)).append("\n"); sb.append(" functionMappingFull: ").append(toIndentedString(functionMappingFull)).append("\n"); - sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); - sb.append(" aiSummary: ").append(toIndentedString(aiSummary)).append("\n"); - sb.append(" rawAiSummary: ").append(toIndentedString(rawAiSummary)).append("\n"); sb.append(" predictedFunctionName: ").append(toIndentedString(predictedFunctionName)).append("\n"); + sb.append(" rawAiSummary: ").append(toIndentedString(rawAiSummary)).append("\n"); + sb.append(" rawDecompilation: ").append(toIndentedString(rawDecompilation)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -401,10 +401,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "decompilation", "raw_decompilation", "function_mapping", "function_mapping_full", "summary", "ai_summary", "raw_ai_summary", "predicted_function_name")); + openapiFields = new HashSet(Arrays.asList("ai_summary", "decompilation", "function_mapping", "function_mapping_full", "predicted_function_name", "raw_ai_summary", "raw_decompilation", "status", "summary")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("status", "decompilation", "raw_decompilation", "function_mapping", "function_mapping_full")); + openapiRequiredFields = new HashSet(Arrays.asList("decompilation", "function_mapping", "function_mapping_full", "raw_decompilation", "status")); } /** @@ -427,27 +427,27 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `status` - AiDecompilationTaskStatus.validateJsonElement(jsonObj.get("status")); + if ((jsonObj.get("ai_summary") != null && !jsonObj.get("ai_summary").isJsonNull()) && !jsonObj.get("ai_summary").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ai_summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ai_summary").toString())); + } if ((jsonObj.get("decompilation") != null && !jsonObj.get("decompilation").isJsonNull()) && !jsonObj.get("decompilation").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `decompilation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("decompilation").toString())); } - if ((jsonObj.get("raw_decompilation") != null && !jsonObj.get("raw_decompilation").isJsonNull()) && !jsonObj.get("raw_decompilation").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `raw_decompilation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("raw_decompilation").toString())); - } // validate the required field `function_mapping_full` FunctionMappingFull.validateJsonElement(jsonObj.get("function_mapping_full")); - if ((jsonObj.get("summary") != null && !jsonObj.get("summary").isJsonNull()) && !jsonObj.get("summary").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("summary").toString())); - } - if ((jsonObj.get("ai_summary") != null && !jsonObj.get("ai_summary").isJsonNull()) && !jsonObj.get("ai_summary").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ai_summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ai_summary").toString())); + if ((jsonObj.get("predicted_function_name") != null && !jsonObj.get("predicted_function_name").isJsonNull()) && !jsonObj.get("predicted_function_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `predicted_function_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("predicted_function_name").toString())); } if ((jsonObj.get("raw_ai_summary") != null && !jsonObj.get("raw_ai_summary").isJsonNull()) && !jsonObj.get("raw_ai_summary").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `raw_ai_summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("raw_ai_summary").toString())); } - if ((jsonObj.get("predicted_function_name") != null && !jsonObj.get("predicted_function_name").isJsonNull()) && !jsonObj.get("predicted_function_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `predicted_function_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("predicted_function_name").toString())); + if ((jsonObj.get("raw_decompilation") != null && !jsonObj.get("raw_decompilation").isJsonNull()) && !jsonObj.get("raw_decompilation").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `raw_decompilation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("raw_decompilation").toString())); + } + // validate the required field `status` + AiDecompilationTaskStatus.validateJsonElement(jsonObj.get("status")); + if ((jsonObj.get("summary") != null && !jsonObj.get("summary").isJsonNull()) && !jsonObj.get("summary").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("summary").toString())); } } diff --git a/src/main/java/ai/reveng/model/GetMeResponse.java b/src/main/java/ai/reveng/model/GetMeResponse.java index 2e89fbe..ace869c 100644 --- a/src/main/java/ai/reveng/model/GetMeResponse.java +++ b/src/main/java/ai/reveng/model/GetMeResponse.java @@ -52,15 +52,15 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class GetMeResponse { - 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_USER_ID = "user_id"; - @SerializedName(SERIALIZED_NAME_USER_ID) + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) @javax.annotation.Nonnull - private Integer userId; + private String email; public static final String SERIALIZED_NAME_FIRST_NAME = "first_name"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) @@ -72,21 +72,6 @@ public class GetMeResponse { @javax.annotation.Nonnull private String lastName; - public static final String SERIALIZED_NAME_EMAIL = "email"; - @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nonnull - private String email; - - public static final String SERIALIZED_NAME_CREATION = "creation"; - @SerializedName(SERIALIZED_NAME_CREATION) - @javax.annotation.Nonnull - private OffsetDateTime creation; - - public static final String SERIALIZED_NAME_TUTORIAL_SEEN = "tutorial_seen"; - @SerializedName(SERIALIZED_NAME_TUTORIAL_SEEN) - @javax.annotation.Nonnull - private Boolean tutorialSeen; - /** * Gets or Sets role */ @@ -148,44 +133,59 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nonnull private RoleEnum role; + public static final String SERIALIZED_NAME_TUTORIAL_SEEN = "tutorial_seen"; + @SerializedName(SERIALIZED_NAME_TUTORIAL_SEEN) + @javax.annotation.Nonnull + private Boolean tutorialSeen; + + public static final String SERIALIZED_NAME_USER_ID = "user_id"; + @SerializedName(SERIALIZED_NAME_USER_ID) + @javax.annotation.Nonnull + private Integer userId; + + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nonnull + private String username; + public GetMeResponse() { } - public GetMeResponse username(@javax.annotation.Nonnull String username) { - this.username = username; + public GetMeResponse creation(@javax.annotation.Nonnull OffsetDateTime creation) { + this.creation = creation; return this; } /** - * Get username - * @return username + * Get creation + * @return creation */ @javax.annotation.Nonnull - public String getUsername() { - return username; + public OffsetDateTime getCreation() { + return creation; } - public void setUsername(@javax.annotation.Nonnull String username) { - this.username = username; + public void setCreation(@javax.annotation.Nonnull OffsetDateTime creation) { + this.creation = creation; } - public GetMeResponse userId(@javax.annotation.Nonnull Integer userId) { - this.userId = userId; + public GetMeResponse email(@javax.annotation.Nonnull String email) { + this.email = email; return this; } /** - * Get userId - * @return userId + * Get email + * @return email */ @javax.annotation.Nonnull - public Integer getUserId() { - return userId; + public String getEmail() { + return email; } - public void setUserId(@javax.annotation.Nonnull Integer userId) { - this.userId = userId; + public void setEmail(@javax.annotation.Nonnull String email) { + this.email = email; } @@ -227,79 +227,79 @@ public void setLastName(@javax.annotation.Nonnull String lastName) { } - public GetMeResponse email(@javax.annotation.Nonnull String email) { - this.email = email; + public GetMeResponse role(@javax.annotation.Nonnull RoleEnum role) { + this.role = role; return this; } /** - * Get email - * @return email + * Get role + * @return role */ @javax.annotation.Nonnull - public String getEmail() { - return email; + public RoleEnum getRole() { + return role; } - public void setEmail(@javax.annotation.Nonnull String email) { - this.email = email; + public void setRole(@javax.annotation.Nonnull RoleEnum role) { + this.role = role; } - public GetMeResponse creation(@javax.annotation.Nonnull OffsetDateTime creation) { - this.creation = creation; + public GetMeResponse tutorialSeen(@javax.annotation.Nonnull Boolean tutorialSeen) { + this.tutorialSeen = tutorialSeen; return this; } /** - * Get creation - * @return creation + * Get tutorialSeen + * @return tutorialSeen */ @javax.annotation.Nonnull - public OffsetDateTime getCreation() { - return creation; + public Boolean getTutorialSeen() { + return tutorialSeen; } - public void setCreation(@javax.annotation.Nonnull OffsetDateTime creation) { - this.creation = creation; + public void setTutorialSeen(@javax.annotation.Nonnull Boolean tutorialSeen) { + this.tutorialSeen = tutorialSeen; } - public GetMeResponse tutorialSeen(@javax.annotation.Nonnull Boolean tutorialSeen) { - this.tutorialSeen = tutorialSeen; + public GetMeResponse userId(@javax.annotation.Nonnull Integer userId) { + this.userId = userId; return this; } /** - * Get tutorialSeen - * @return tutorialSeen + * Get userId + * @return userId */ @javax.annotation.Nonnull - public Boolean getTutorialSeen() { - return tutorialSeen; + public Integer getUserId() { + return userId; } - public void setTutorialSeen(@javax.annotation.Nonnull Boolean tutorialSeen) { - this.tutorialSeen = tutorialSeen; + public void setUserId(@javax.annotation.Nonnull Integer userId) { + this.userId = userId; } - public GetMeResponse role(@javax.annotation.Nonnull RoleEnum role) { - this.role = role; + public GetMeResponse username(@javax.annotation.Nonnull String username) { + this.username = username; return this; } /** - * Get role - * @return role + * Get username + * @return username */ @javax.annotation.Nonnull - public RoleEnum getRole() { - return role; + public String getUsername() { + return username; } - public void setRole(@javax.annotation.Nonnull RoleEnum role) { - this.role = role; + public void setUsername(@javax.annotation.Nonnull String username) { + this.username = username; } /** @@ -357,34 +357,34 @@ public boolean equals(Object o) { return false; } GetMeResponse getMeResponse = (GetMeResponse) o; - return Objects.equals(this.username, getMeResponse.username) && - Objects.equals(this.userId, getMeResponse.userId) && + return Objects.equals(this.creation, getMeResponse.creation) && + Objects.equals(this.email, getMeResponse.email) && Objects.equals(this.firstName, getMeResponse.firstName) && Objects.equals(this.lastName, getMeResponse.lastName) && - Objects.equals(this.email, getMeResponse.email) && - Objects.equals(this.creation, getMeResponse.creation) && + Objects.equals(this.role, getMeResponse.role) && Objects.equals(this.tutorialSeen, getMeResponse.tutorialSeen) && - Objects.equals(this.role, getMeResponse.role)&& + Objects.equals(this.userId, getMeResponse.userId) && + Objects.equals(this.username, getMeResponse.username)&& Objects.equals(this.additionalProperties, getMeResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(username, userId, firstName, lastName, email, creation, tutorialSeen, role, additionalProperties); + return Objects.hash(creation, email, firstName, lastName, role, tutorialSeen, userId, username, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetMeResponse {\n"); - sb.append(" username: ").append(toIndentedString(username)).append("\n"); - sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" creation: ").append(toIndentedString(creation)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); - sb.append(" creation: ").append(toIndentedString(creation)).append("\n"); - sb.append(" tutorialSeen: ").append(toIndentedString(tutorialSeen)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" tutorialSeen: ").append(toIndentedString(tutorialSeen)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -407,10 +407,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("username", "user_id", "first_name", "last_name", "email", "creation", "tutorial_seen", "role")); + openapiFields = new HashSet(Arrays.asList("creation", "email", "first_name", "last_name", "role", "tutorial_seen", "user_id", "username")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("username", "user_id", "first_name", "last_name", "email", "creation", "tutorial_seen", "role")); + openapiRequiredFields = new HashSet(Arrays.asList("creation", "email", "first_name", "last_name", "role", "tutorial_seen", "user_id", "username")); } /** @@ -433,8 +433,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - 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("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); } if (!jsonObj.get("first_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `first_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("first_name").toString())); @@ -442,14 +442,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("last_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `last_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("last_name").toString())); } - if (!jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); - } if (!jsonObj.get("role").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); } // validate the required field `role` RoleEnum.validateJsonElement(jsonObj.get("role")); + 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/GetPublicUserResponse.java b/src/main/java/ai/reveng/model/GetPublicUserResponse.java index c75dd61..cc5f56d 100644 --- a/src/main/java/ai/reveng/model/GetPublicUserResponse.java +++ b/src/main/java/ai/reveng/model/GetPublicUserResponse.java @@ -51,54 +51,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class GetPublicUserResponse { - public static final String SERIALIZED_NAME_USERNAME = "username"; - @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nonnull - private String username; - public static final String SERIALIZED_NAME_USER_ID = "user_id"; @SerializedName(SERIALIZED_NAME_USER_ID) @javax.annotation.Nonnull private Integer userId; + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nonnull + private String username; + public GetPublicUserResponse() { } - public GetPublicUserResponse username(@javax.annotation.Nonnull String username) { - this.username = username; + public GetPublicUserResponse userId(@javax.annotation.Nonnull Integer userId) { + this.userId = userId; return this; } /** - * Get username - * @return username + * Get userId + * @return userId */ @javax.annotation.Nonnull - public String getUsername() { - return username; + public Integer getUserId() { + return userId; } - public void setUsername(@javax.annotation.Nonnull String username) { - this.username = username; + public void setUserId(@javax.annotation.Nonnull Integer userId) { + this.userId = userId; } - public GetPublicUserResponse userId(@javax.annotation.Nonnull Integer userId) { - this.userId = userId; + public GetPublicUserResponse username(@javax.annotation.Nonnull String username) { + this.username = username; return this; } /** - * Get userId - * @return userId + * Get username + * @return username */ @javax.annotation.Nonnull - public Integer getUserId() { - return userId; + public String getUsername() { + return username; } - public void setUserId(@javax.annotation.Nonnull Integer userId) { - this.userId = userId; + public void setUsername(@javax.annotation.Nonnull String username) { + this.username = username; } /** @@ -156,22 +156,22 @@ public boolean equals(Object o) { return false; } GetPublicUserResponse getPublicUserResponse = (GetPublicUserResponse) o; - return Objects.equals(this.username, getPublicUserResponse.username) && - Objects.equals(this.userId, getPublicUserResponse.userId)&& + return Objects.equals(this.userId, getPublicUserResponse.userId) && + Objects.equals(this.username, getPublicUserResponse.username)&& Objects.equals(this.additionalProperties, getPublicUserResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(username, userId, additionalProperties); + return Objects.hash(userId, username, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetPublicUserResponse {\n"); - sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -194,10 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("username", "user_id")); + openapiFields = new HashSet(Arrays.asList("user_id", "username")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("username", "user_id")); + openapiRequiredFields = new HashSet(Arrays.asList("user_id", "username")); } /** diff --git a/src/main/java/ai/reveng/model/GlobalVariable.java b/src/main/java/ai/reveng/model/GlobalVariable.java index 88b040b..3fe579b 100644 --- a/src/main/java/ai/reveng/model/GlobalVariable.java +++ b/src/main/java/ai/reveng/model/GlobalVariable.java @@ -52,112 +52,112 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class GlobalVariable { - public static final String SERIALIZED_NAME_LAST_CHANGE = "last_change"; - @SerializedName(SERIALIZED_NAME_LAST_CHANGE) - @javax.annotation.Nullable - private String lastChange; - public static final String SERIALIZED_NAME_ADDR = "addr"; @SerializedName(SERIALIZED_NAME_ADDR) @javax.annotation.Nonnull private Integer addr; + public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; + @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) + @javax.annotation.Nullable + private String artifactType; + + public static final String SERIALIZED_NAME_LAST_CHANGE = "last_change"; + @SerializedName(SERIALIZED_NAME_LAST_CHANGE) + @javax.annotation.Nullable + private String lastChange; + 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) - @javax.annotation.Nonnull - private String type; - public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) @javax.annotation.Nonnull private Integer size; - public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; - @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) - @javax.annotation.Nullable - private String artifactType; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull + private String type; public GlobalVariable() { } - public GlobalVariable lastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; + public GlobalVariable addr(@javax.annotation.Nonnull Integer addr) { + this.addr = addr; return this; } /** - * Get lastChange - * @return lastChange + * Memory address of the global variable + * @return addr */ - @javax.annotation.Nullable - public String getLastChange() { - return lastChange; + @javax.annotation.Nonnull + public Integer getAddr() { + return addr; } - public void setLastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; + public void setAddr(@javax.annotation.Nonnull Integer addr) { + this.addr = addr; } - public GlobalVariable addr(@javax.annotation.Nonnull Integer addr) { - this.addr = addr; + public GlobalVariable artifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; return this; } /** - * Memory address of the global variable - * @return addr + * Type of artifact that the global variable is associated with + * @return artifactType */ - @javax.annotation.Nonnull - public Integer getAddr() { - return addr; + @javax.annotation.Nullable + public String getArtifactType() { + return artifactType; } - public void setAddr(@javax.annotation.Nonnull Integer addr) { - this.addr = addr; + public void setArtifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; } - public GlobalVariable name(@javax.annotation.Nonnull String name) { - this.name = name; + public GlobalVariable lastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; return this; } /** - * Name of the global variable - * @return name + * Get lastChange + * @return lastChange */ - @javax.annotation.Nonnull - public String getName() { - return name; + @javax.annotation.Nullable + public String getLastChange() { + return lastChange; } - public void setName(@javax.annotation.Nonnull String name) { - this.name = name; + public void setLastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; } - public GlobalVariable type(@javax.annotation.Nonnull String type) { - this.type = type; + public GlobalVariable name(@javax.annotation.Nonnull String name) { + this.name = name; return this; } /** - * Data type of the global variable - * @return type + * Name of the global variable + * @return name */ @javax.annotation.Nonnull - public String getType() { - return type; + public String getName() { + return name; } - public void setType(@javax.annotation.Nonnull String type) { - this.type = type; + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; } @@ -180,22 +180,22 @@ public void setSize(@javax.annotation.Nonnull Integer size) { } - public GlobalVariable artifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; + public GlobalVariable type(@javax.annotation.Nonnull String type) { + this.type = type; return this; } /** - * Type of artifact that the global variable is associated with - * @return artifactType + * Data type of the global variable + * @return type */ - @javax.annotation.Nullable - public String getArtifactType() { - return artifactType; + @javax.annotation.Nonnull + public String getType() { + return type; } - public void setArtifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; } /** @@ -253,12 +253,12 @@ public boolean equals(Object o) { return false; } GlobalVariable globalVariable = (GlobalVariable) o; - return Objects.equals(this.lastChange, globalVariable.lastChange) && - Objects.equals(this.addr, globalVariable.addr) && + return Objects.equals(this.addr, globalVariable.addr) && + Objects.equals(this.artifactType, globalVariable.artifactType) && + Objects.equals(this.lastChange, globalVariable.lastChange) && Objects.equals(this.name, globalVariable.name) && - Objects.equals(this.type, globalVariable.type) && Objects.equals(this.size, globalVariable.size) && - Objects.equals(this.artifactType, globalVariable.artifactType)&& + Objects.equals(this.type, globalVariable.type)&& Objects.equals(this.additionalProperties, globalVariable.additionalProperties); } @@ -268,7 +268,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lastChange, addr, name, type, size, artifactType, additionalProperties); + return Objects.hash(addr, artifactType, lastChange, name, size, type, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -282,12 +282,12 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GlobalVariable {\n"); - sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n"); sb.append(" addr: ").append(toIndentedString(addr)).append("\n"); + sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); + sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); - sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -310,10 +310,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("last_change", "addr", "name", "type", "size", "artifact_type")); + openapiFields = new HashSet(Arrays.asList("addr", "artifact_type", "last_change", "name", "size", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("addr", "name", "type", "size")); + openapiRequiredFields = new HashSet(Arrays.asList("addr", "name", "size", "type")); } /** @@ -336,6 +336,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); + } if ((jsonObj.get("last_change") != null && !jsonObj.get("last_change").isJsonNull()) && !jsonObj.get("last_change").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `last_change` to be a primitive type in the JSON string but got `%s`", jsonObj.get("last_change").toString())); } @@ -345,9 +348,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/ImportModel.java b/src/main/java/ai/reveng/model/ImportModel.java index 9f93cfd..185c573 100644 --- a/src/main/java/ai/reveng/model/ImportModel.java +++ b/src/main/java/ai/reveng/model/ImportModel.java @@ -54,38 +54,19 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ImportModel { - public static final String SERIALIZED_NAME_NUMBER_OF_IMPORTS = "number_of_imports"; - @SerializedName(SERIALIZED_NAME_NUMBER_OF_IMPORTS) - @javax.annotation.Nonnull - private Integer numberOfImports; - public static final String SERIALIZED_NAME_IMPORTS = "imports"; @SerializedName(SERIALIZED_NAME_IMPORTS) @javax.annotation.Nonnull private List>> imports = new ArrayList<>(); - public ImportModel() { - } - - public ImportModel numberOfImports(@javax.annotation.Nonnull Integer numberOfImports) { - this.numberOfImports = numberOfImports; - return this; - } - - /** - * Get numberOfImports - * @return numberOfImports - */ + public static final String SERIALIZED_NAME_NUMBER_OF_IMPORTS = "number_of_imports"; + @SerializedName(SERIALIZED_NAME_NUMBER_OF_IMPORTS) @javax.annotation.Nonnull - public Integer getNumberOfImports() { - return numberOfImports; - } + private Integer numberOfImports; - public void setNumberOfImports(@javax.annotation.Nonnull Integer numberOfImports) { - this.numberOfImports = numberOfImports; + public ImportModel() { } - public ImportModel imports(@javax.annotation.Nonnull List>> imports) { this.imports = imports; return this; @@ -112,6 +93,25 @@ public void setImports(@javax.annotation.Nonnull List(Arrays.asList("number_of_imports", "imports")); + openapiFields = new HashSet(Arrays.asList("imports", "number_of_imports")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("number_of_imports", "imports")); + openapiRequiredFields = new HashSet(Arrays.asList("imports", "number_of_imports")); } /** diff --git a/src/main/java/ai/reveng/model/InverseFunctionMapItem.java b/src/main/java/ai/reveng/model/InverseFunctionMapItem.java index 037016e..9031f72 100644 --- a/src/main/java/ai/reveng/model/InverseFunctionMapItem.java +++ b/src/main/java/ai/reveng/model/InverseFunctionMapItem.java @@ -52,11 +52,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class InverseFunctionMapItem { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; - public static final String SERIALIZED_NAME_ADDR = "addr"; @SerializedName(SERIALIZED_NAME_ADDR) @javax.annotation.Nullable @@ -67,28 +62,14 @@ public class InverseFunctionMapItem { @javax.annotation.Nullable private Boolean isExternal = false; - public InverseFunctionMapItem() { - } - - public InverseFunctionMapItem name(@javax.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull - public String getName() { - return name; - } + private String name; - public void setName(@javax.annotation.Nonnull String name) { - this.name = name; + public InverseFunctionMapItem() { } - public InverseFunctionMapItem addr(@javax.annotation.Nullable Addr addr) { this.addr = addr; return this; @@ -126,6 +107,25 @@ public void setIsExternal(@javax.annotation.Nullable Boolean isExternal) { this.isExternal = isExternal; } + + public InverseFunctionMapItem name(@javax.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + @javax.annotation.Nonnull + public String getName() { + return name; + } + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -181,24 +181,24 @@ public boolean equals(Object o) { return false; } InverseFunctionMapItem inverseFunctionMapItem = (InverseFunctionMapItem) o; - return Objects.equals(this.name, inverseFunctionMapItem.name) && - Objects.equals(this.addr, inverseFunctionMapItem.addr) && - Objects.equals(this.isExternal, inverseFunctionMapItem.isExternal)&& + return Objects.equals(this.addr, inverseFunctionMapItem.addr) && + Objects.equals(this.isExternal, inverseFunctionMapItem.isExternal) && + Objects.equals(this.name, inverseFunctionMapItem.name)&& Objects.equals(this.additionalProperties, inverseFunctionMapItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, addr, isExternal, additionalProperties); + return Objects.hash(addr, isExternal, name, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InverseFunctionMapItem {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" addr: ").append(toIndentedString(addr)).append("\n"); sb.append(" isExternal: ").append(toIndentedString(isExternal)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -221,10 +221,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "addr", "is_external")); + openapiFields = new HashSet(Arrays.asList("addr", "is_external", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "addr")); + openapiRequiredFields = new HashSet(Arrays.asList("addr", "name")); } /** @@ -247,11 +247,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `addr` + Addr.validateJsonElement(jsonObj.get("addr")); if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // validate the required field `addr` - Addr.validateJsonElement(jsonObj.get("addr")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/InverseStringMapItem.java b/src/main/java/ai/reveng/model/InverseStringMapItem.java index d54a5e9..90e0e64 100644 --- a/src/main/java/ai/reveng/model/InverseStringMapItem.java +++ b/src/main/java/ai/reveng/model/InverseStringMapItem.java @@ -51,38 +51,19 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class InverseStringMapItem { - public static final String SERIALIZED_NAME_STRING = "string"; - @SerializedName(SERIALIZED_NAME_STRING) - @javax.annotation.Nonnull - private String string; - public static final String SERIALIZED_NAME_ADDR = "addr"; @SerializedName(SERIALIZED_NAME_ADDR) @javax.annotation.Nullable private Long addr; - public InverseStringMapItem() { - } - - public InverseStringMapItem string(@javax.annotation.Nonnull String string) { - this.string = string; - return this; - } - - /** - * Get string - * @return string - */ + public static final String SERIALIZED_NAME_STRING = "string"; + @SerializedName(SERIALIZED_NAME_STRING) @javax.annotation.Nonnull - public String getString() { - return string; - } + private String string; - public void setString(@javax.annotation.Nonnull String string) { - this.string = string; + public InverseStringMapItem() { } - public InverseStringMapItem addr(@javax.annotation.Nullable Long addr) { this.addr = addr; return this; @@ -101,6 +82,25 @@ public void setAddr(@javax.annotation.Nullable Long addr) { this.addr = addr; } + + public InverseStringMapItem string(@javax.annotation.Nonnull String string) { + this.string = string; + return this; + } + + /** + * Get string + * @return string + */ + @javax.annotation.Nonnull + public String getString() { + return string; + } + + public void setString(@javax.annotation.Nonnull String string) { + this.string = string; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -156,22 +156,22 @@ public boolean equals(Object o) { return false; } InverseStringMapItem inverseStringMapItem = (InverseStringMapItem) o; - return Objects.equals(this.string, inverseStringMapItem.string) && - Objects.equals(this.addr, inverseStringMapItem.addr)&& + return Objects.equals(this.addr, inverseStringMapItem.addr) && + Objects.equals(this.string, inverseStringMapItem.string)&& Objects.equals(this.additionalProperties, inverseStringMapItem.additionalProperties); } @Override public int hashCode() { - return Objects.hash(string, addr, additionalProperties); + return Objects.hash(addr, string, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InverseStringMapItem {\n"); - sb.append(" string: ").append(toIndentedString(string)).append("\n"); sb.append(" addr: ").append(toIndentedString(addr)).append("\n"); + sb.append(" string: ").append(toIndentedString(string)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -194,10 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("string", "addr")); + openapiFields = new HashSet(Arrays.asList("addr", "string")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("string", "addr")); + openapiRequiredFields = new HashSet(Arrays.asList("addr", "string")); } /** diff --git a/src/main/java/ai/reveng/model/LoginRequest.java b/src/main/java/ai/reveng/model/LoginRequest.java index 0887c00..01937f1 100644 --- a/src/main/java/ai/reveng/model/LoginRequest.java +++ b/src/main/java/ai/reveng/model/LoginRequest.java @@ -51,54 +51,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class LoginRequest { - public static final String SERIALIZED_NAME_USERNAME = "username"; - @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nonnull - private String username; - public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) @javax.annotation.Nonnull private String password; + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nonnull + private String username; + public LoginRequest() { } - public LoginRequest username(@javax.annotation.Nonnull String username) { - this.username = username; + public LoginRequest password(@javax.annotation.Nonnull String password) { + this.password = password; return this; } /** - * User's username or email - * @return username + * User's password + * @return password */ @javax.annotation.Nonnull - public String getUsername() { - return username; + public String getPassword() { + return password; } - public void setUsername(@javax.annotation.Nonnull String username) { - this.username = username; + public void setPassword(@javax.annotation.Nonnull String password) { + this.password = password; } - public LoginRequest password(@javax.annotation.Nonnull String password) { - this.password = password; + public LoginRequest username(@javax.annotation.Nonnull String username) { + this.username = username; return this; } /** - * User's password - * @return password + * User's username or email + * @return username */ @javax.annotation.Nonnull - public String getPassword() { - return password; + public String getUsername() { + return username; } - public void setPassword(@javax.annotation.Nonnull String password) { - this.password = password; + public void setUsername(@javax.annotation.Nonnull String username) { + this.username = username; } /** @@ -156,22 +156,22 @@ public boolean equals(Object o) { return false; } LoginRequest loginRequest = (LoginRequest) o; - return Objects.equals(this.username, loginRequest.username) && - Objects.equals(this.password, loginRequest.password)&& + return Objects.equals(this.password, loginRequest.password) && + Objects.equals(this.username, loginRequest.username)&& Objects.equals(this.additionalProperties, loginRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(username, password, additionalProperties); + return Objects.hash(password, username, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LoginRequest {\n"); - sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -194,10 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("username", "password")); + openapiFields = new HashSet(Arrays.asList("password", "username")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("username", "password")); + openapiRequiredFields = new HashSet(Arrays.asList("password", "username")); } /** @@ -220,12 +220,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - 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("password").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").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())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/MatchedFunction.java b/src/main/java/ai/reveng/model/MatchedFunction.java index f965c09..9fb65fa 100644 --- a/src/main/java/ai/reveng/model/MatchedFunction.java +++ b/src/main/java/ai/reveng/model/MatchedFunction.java @@ -53,16 +53,36 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class MatchedFunction { - public static final String SERIALIZED_NAME_FUNCTION_ID = "function_id"; - @SerializedName(SERIALIZED_NAME_FUNCTION_ID) + public static final String SERIALIZED_NAME_ANALYSIS_ID = "analysis_id"; + @SerializedName(SERIALIZED_NAME_ANALYSIS_ID) @javax.annotation.Nonnull - private Long functionId; + private Integer analysisId; 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_BINARY_NAME = "binary_name"; + @SerializedName(SERIALIZED_NAME_BINARY_NAME) + @javax.annotation.Nonnull + private String binaryName; + + public static final String SERIALIZED_NAME_CONFIDENCE = "confidence"; + @SerializedName(SERIALIZED_NAME_CONFIDENCE) + @javax.annotation.Nullable + private BigDecimal confidence; + + public static final String SERIALIZED_NAME_DEBUG = "debug"; + @SerializedName(SERIALIZED_NAME_DEBUG) + @javax.annotation.Nonnull + private Boolean debug; + + 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 @@ -78,55 +98,35 @@ public class MatchedFunction { @javax.annotation.Nonnull private String mangledName; - public static final String SERIALIZED_NAME_DEBUG = "debug"; - @SerializedName(SERIALIZED_NAME_DEBUG) - @javax.annotation.Nonnull - private Boolean debug; - - 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_ANALYSIS_ID = "analysis_id"; - @SerializedName(SERIALIZED_NAME_ANALYSIS_ID) - @javax.annotation.Nonnull - private Integer analysisId; - public static final String SERIALIZED_NAME_SIMILARITY = "similarity"; @SerializedName(SERIALIZED_NAME_SIMILARITY) @javax.annotation.Nullable private BigDecimal similarity; - public static final String SERIALIZED_NAME_CONFIDENCE = "confidence"; - @SerializedName(SERIALIZED_NAME_CONFIDENCE) - @javax.annotation.Nullable - private BigDecimal confidence; - public MatchedFunction() { } - public MatchedFunction functionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; + public MatchedFunction analysisId(@javax.annotation.Nonnull Integer analysisId) { + this.analysisId = analysisId; return this; } /** - * Unique identifier of the matched function - * @return functionId + * Get analysisId + * @return analysisId */ @javax.annotation.Nonnull - public Long getFunctionId() { - return functionId; + public Integer getAnalysisId() { + return analysisId; } - public void setFunctionId(@javax.annotation.Nonnull Long functionId) { - this.functionId = functionId; + public void setAnalysisId(@javax.annotation.Nonnull Integer analysisId) { + this.analysisId = analysisId; } @@ -149,174 +149,174 @@ public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) { } - public MatchedFunction functionName(@javax.annotation.Nonnull String functionName) { - this.functionName = functionName; + public MatchedFunction binaryName(@javax.annotation.Nonnull String binaryName) { + this.binaryName = binaryName; return this; } /** - * Get functionName - * @return functionName + * Get binaryName + * @return binaryName */ @javax.annotation.Nonnull - public String getFunctionName() { - return functionName; + public String getBinaryName() { + return binaryName; } - public void setFunctionName(@javax.annotation.Nonnull String functionName) { - this.functionName = functionName; + public void setBinaryName(@javax.annotation.Nonnull String binaryName) { + this.binaryName = binaryName; } - public MatchedFunction functionVaddr(@javax.annotation.Nonnull Long functionVaddr) { - this.functionVaddr = functionVaddr; + public MatchedFunction confidence(@javax.annotation.Nullable BigDecimal confidence) { + this.confidence = confidence; return this; } /** - * Get functionVaddr - * @return functionVaddr + * Get confidence + * @return confidence */ - @javax.annotation.Nonnull - public Long getFunctionVaddr() { - return functionVaddr; + @javax.annotation.Nullable + public BigDecimal getConfidence() { + return confidence; } - public void setFunctionVaddr(@javax.annotation.Nonnull Long functionVaddr) { - this.functionVaddr = functionVaddr; + public void setConfidence(@javax.annotation.Nullable BigDecimal confidence) { + this.confidence = confidence; } - public MatchedFunction mangledName(@javax.annotation.Nonnull String mangledName) { - this.mangledName = mangledName; + public MatchedFunction debug(@javax.annotation.Nonnull Boolean debug) { + this.debug = debug; return this; } /** - * Get mangledName - * @return mangledName + * Get debug + * @return debug */ @javax.annotation.Nonnull - public String getMangledName() { - return mangledName; + public Boolean getDebug() { + return debug; } - public void setMangledName(@javax.annotation.Nonnull String mangledName) { - this.mangledName = mangledName; + public void setDebug(@javax.annotation.Nonnull Boolean debug) { + this.debug = debug; } - public MatchedFunction debug(@javax.annotation.Nonnull Boolean debug) { - this.debug = debug; + public MatchedFunction functionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; return this; } /** - * Get debug - * @return debug + * Unique identifier of the matched function + * @return functionId */ @javax.annotation.Nonnull - public Boolean getDebug() { - return debug; + public Long getFunctionId() { + return functionId; } - public void setDebug(@javax.annotation.Nonnull Boolean debug) { - this.debug = debug; + public void setFunctionId(@javax.annotation.Nonnull Long functionId) { + this.functionId = functionId; } - public MatchedFunction binaryName(@javax.annotation.Nonnull String binaryName) { - this.binaryName = binaryName; + public MatchedFunction functionName(@javax.annotation.Nonnull String functionName) { + this.functionName = functionName; return this; } /** - * Get binaryName - * @return binaryName + * Get functionName + * @return functionName */ @javax.annotation.Nonnull - public String getBinaryName() { - return binaryName; + public String getFunctionName() { + return functionName; } - public void setBinaryName(@javax.annotation.Nonnull String binaryName) { - this.binaryName = binaryName; + public void setFunctionName(@javax.annotation.Nonnull String functionName) { + this.functionName = functionName; } - public MatchedFunction sha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; + public MatchedFunction functionVaddr(@javax.annotation.Nonnull Long functionVaddr) { + this.functionVaddr = functionVaddr; return this; } /** - * Get sha256Hash - * @return sha256Hash + * Get functionVaddr + * @return functionVaddr */ @javax.annotation.Nonnull - public String getSha256Hash() { - return sha256Hash; + public Long getFunctionVaddr() { + return functionVaddr; } - public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; + public void setFunctionVaddr(@javax.annotation.Nonnull Long functionVaddr) { + this.functionVaddr = functionVaddr; } - public MatchedFunction analysisId(@javax.annotation.Nonnull Integer analysisId) { - this.analysisId = analysisId; + public MatchedFunction mangledName(@javax.annotation.Nonnull String mangledName) { + this.mangledName = mangledName; return this; } /** - * Get analysisId - * @return analysisId + * Get mangledName + * @return mangledName */ @javax.annotation.Nonnull - public Integer getAnalysisId() { - return analysisId; + public String getMangledName() { + return mangledName; } - public void setAnalysisId(@javax.annotation.Nonnull Integer analysisId) { - this.analysisId = analysisId; + public void setMangledName(@javax.annotation.Nonnull String mangledName) { + this.mangledName = mangledName; } - public MatchedFunction similarity(@javax.annotation.Nullable BigDecimal similarity) { - this.similarity = similarity; + public MatchedFunction sha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; return this; } /** - * Get similarity - * @return similarity + * Get sha256Hash + * @return sha256Hash */ - @javax.annotation.Nullable - public BigDecimal getSimilarity() { - return similarity; + @javax.annotation.Nonnull + public String getSha256Hash() { + return sha256Hash; } - public void setSimilarity(@javax.annotation.Nullable BigDecimal similarity) { - this.similarity = similarity; + public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; } - public MatchedFunction confidence(@javax.annotation.Nullable BigDecimal confidence) { - this.confidence = confidence; + public MatchedFunction similarity(@javax.annotation.Nullable BigDecimal similarity) { + this.similarity = similarity; return this; } /** - * Get confidence - * @return confidence + * Get similarity + * @return similarity */ @javax.annotation.Nullable - public BigDecimal getConfidence() { - return confidence; + public BigDecimal getSimilarity() { + return similarity; } - public void setConfidence(@javax.annotation.Nullable BigDecimal confidence) { - this.confidence = confidence; + public void setSimilarity(@javax.annotation.Nullable BigDecimal similarity) { + this.similarity = similarity; } /** @@ -374,17 +374,17 @@ public boolean equals(Object o) { return false; } MatchedFunction matchedFunction = (MatchedFunction) o; - return Objects.equals(this.functionId, matchedFunction.functionId) && + return Objects.equals(this.analysisId, matchedFunction.analysisId) && Objects.equals(this.binaryId, matchedFunction.binaryId) && + Objects.equals(this.binaryName, matchedFunction.binaryName) && + Objects.equals(this.confidence, matchedFunction.confidence) && + Objects.equals(this.debug, matchedFunction.debug) && + Objects.equals(this.functionId, matchedFunction.functionId) && Objects.equals(this.functionName, matchedFunction.functionName) && Objects.equals(this.functionVaddr, matchedFunction.functionVaddr) && Objects.equals(this.mangledName, matchedFunction.mangledName) && - Objects.equals(this.debug, matchedFunction.debug) && - Objects.equals(this.binaryName, matchedFunction.binaryName) && Objects.equals(this.sha256Hash, matchedFunction.sha256Hash) && - Objects.equals(this.analysisId, matchedFunction.analysisId) && - Objects.equals(this.similarity, matchedFunction.similarity) && - Objects.equals(this.confidence, matchedFunction.confidence)&& + Objects.equals(this.similarity, matchedFunction.similarity)&& Objects.equals(this.additionalProperties, matchedFunction.additionalProperties); } @@ -394,7 +394,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(functionId, binaryId, functionName, functionVaddr, mangledName, debug, binaryName, sha256Hash, analysisId, similarity, confidence, additionalProperties); + return Objects.hash(analysisId, binaryId, binaryName, confidence, debug, functionId, functionName, functionVaddr, mangledName, sha256Hash, similarity, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -408,17 +408,17 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MatchedFunction {\n"); - sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); + sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n"); sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n"); + sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n"); + sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); + sb.append(" debug: ").append(toIndentedString(debug)).append("\n"); + sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n"); sb.append(" functionVaddr: ").append(toIndentedString(functionVaddr)).append("\n"); sb.append(" mangledName: ").append(toIndentedString(mangledName)).append("\n"); - sb.append(" debug: ").append(toIndentedString(debug)).append("\n"); - sb.append(" binaryName: ").append(toIndentedString(binaryName)).append("\n"); sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); - sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n"); sb.append(" similarity: ").append(toIndentedString(similarity)).append("\n"); - sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -441,10 +441,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("function_id", "binary_id", "function_name", "function_vaddr", "mangled_name", "debug", "binary_name", "sha_256_hash", "analysis_id", "similarity", "confidence")); + openapiFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "confidence", "debug", "function_id", "function_name", "function_vaddr", "mangled_name", "sha_256_hash", "similarity")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("function_id", "binary_id", "function_name", "function_vaddr", "mangled_name", "debug", "binary_name", "sha_256_hash", "analysis_id")); + openapiRequiredFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "binary_name", "debug", "function_id", "function_name", "function_vaddr", "mangled_name", "sha_256_hash")); } /** @@ -467,15 +467,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + 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("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("mangled_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mangled_name").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())); } diff --git a/src/main/java/ai/reveng/model/MatchedFunctionSuggestion.java b/src/main/java/ai/reveng/model/MatchedFunctionSuggestion.java index 3934b97..98275fd 100644 --- a/src/main/java/ai/reveng/model/MatchedFunctionSuggestion.java +++ b/src/main/java/ai/reveng/model/MatchedFunctionSuggestion.java @@ -62,16 +62,16 @@ public class MatchedFunctionSuggestion { @javax.annotation.Nonnull private Long functionVaddr; - public static final String SERIALIZED_NAME_SUGGESTED_NAME = "suggested_name"; - @SerializedName(SERIALIZED_NAME_SUGGESTED_NAME) - @javax.annotation.Nullable - private String suggestedName; - public static final String SERIALIZED_NAME_SUGGESTED_DEMANGLED_NAME = "suggested_demangled_name"; @SerializedName(SERIALIZED_NAME_SUGGESTED_DEMANGLED_NAME) @javax.annotation.Nonnull private String suggestedDemangledName; + public static final String SERIALIZED_NAME_SUGGESTED_NAME = "suggested_name"; + @SerializedName(SERIALIZED_NAME_SUGGESTED_NAME) + @javax.annotation.Nullable + private String suggestedName; + public MatchedFunctionSuggestion() { } @@ -113,41 +113,41 @@ public void setFunctionVaddr(@javax.annotation.Nonnull Long functionVaddr) { } - public MatchedFunctionSuggestion suggestedName(@javax.annotation.Nullable String suggestedName) { - this.suggestedName = suggestedName; + public MatchedFunctionSuggestion suggestedDemangledName(@javax.annotation.Nonnull String suggestedDemangledName) { + this.suggestedDemangledName = suggestedDemangledName; return this; } /** - * Get suggestedName - * @return suggestedName + * De-mangled name of the function group that contains the matched functions + * @return suggestedDemangledName */ - @javax.annotation.Nullable - public String getSuggestedName() { - return suggestedName; + @javax.annotation.Nonnull + public String getSuggestedDemangledName() { + return suggestedDemangledName; } - public void setSuggestedName(@javax.annotation.Nullable String suggestedName) { - this.suggestedName = suggestedName; + public void setSuggestedDemangledName(@javax.annotation.Nonnull String suggestedDemangledName) { + this.suggestedDemangledName = suggestedDemangledName; } - public MatchedFunctionSuggestion suggestedDemangledName(@javax.annotation.Nonnull String suggestedDemangledName) { - this.suggestedDemangledName = suggestedDemangledName; + public MatchedFunctionSuggestion suggestedName(@javax.annotation.Nullable String suggestedName) { + this.suggestedName = suggestedName; return this; } /** - * De-mangled name of the function group that contains the matched functions - * @return suggestedDemangledName + * Get suggestedName + * @return suggestedName */ - @javax.annotation.Nonnull - public String getSuggestedDemangledName() { - return suggestedDemangledName; + @javax.annotation.Nullable + public String getSuggestedName() { + return suggestedName; } - public void setSuggestedDemangledName(@javax.annotation.Nonnull String suggestedDemangledName) { - this.suggestedDemangledName = suggestedDemangledName; + public void setSuggestedName(@javax.annotation.Nullable String suggestedName) { + this.suggestedName = suggestedName; } /** @@ -207,8 +207,8 @@ public boolean equals(Object o) { MatchedFunctionSuggestion matchedFunctionSuggestion = (MatchedFunctionSuggestion) o; return Objects.equals(this.functionId, matchedFunctionSuggestion.functionId) && Objects.equals(this.functionVaddr, matchedFunctionSuggestion.functionVaddr) && - Objects.equals(this.suggestedName, matchedFunctionSuggestion.suggestedName) && - Objects.equals(this.suggestedDemangledName, matchedFunctionSuggestion.suggestedDemangledName)&& + Objects.equals(this.suggestedDemangledName, matchedFunctionSuggestion.suggestedDemangledName) && + Objects.equals(this.suggestedName, matchedFunctionSuggestion.suggestedName)&& Objects.equals(this.additionalProperties, matchedFunctionSuggestion.additionalProperties); } @@ -218,7 +218,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(functionId, functionVaddr, suggestedName, suggestedDemangledName, additionalProperties); + return Objects.hash(functionId, functionVaddr, suggestedDemangledName, suggestedName, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -234,8 +234,8 @@ public String toString() { sb.append("class MatchedFunctionSuggestion {\n"); sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); sb.append(" functionVaddr: ").append(toIndentedString(functionVaddr)).append("\n"); - sb.append(" suggestedName: ").append(toIndentedString(suggestedName)).append("\n"); sb.append(" suggestedDemangledName: ").append(toIndentedString(suggestedDemangledName)).append("\n"); + sb.append(" suggestedName: ").append(toIndentedString(suggestedName)).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("function_id", "function_vaddr", "suggested_name", "suggested_demangled_name")); + openapiFields = new HashSet(Arrays.asList("function_id", "function_vaddr", "suggested_demangled_name", "suggested_name")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("function_id", "function_vaddr", "suggested_demangled_name")); @@ -284,12 +284,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("suggested_name") != null && !jsonObj.get("suggested_name").isJsonNull()) && !jsonObj.get("suggested_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `suggested_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("suggested_name").toString())); - } if (!jsonObj.get("suggested_demangled_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `suggested_demangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("suggested_demangled_name").toString())); } + if ((jsonObj.get("suggested_name") != null && !jsonObj.get("suggested_name").isJsonNull()) && !jsonObj.get("suggested_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `suggested_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("suggested_name").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/NameConfidence.java b/src/main/java/ai/reveng/model/NameConfidence.java index 0479c19..50c8dc9 100644 --- a/src/main/java/ai/reveng/model/NameConfidence.java +++ b/src/main/java/ai/reveng/model/NameConfidence.java @@ -52,56 +52,56 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class NameConfidence { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; - public static final String SERIALIZED_NAME_CONFIDENCE = "confidence"; @SerializedName(SERIALIZED_NAME_CONFIDENCE) @javax.annotation.Nonnull private BigDecimal confidence; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + public NameConfidence() { } - public NameConfidence name(@javax.annotation.Nonnull String name) { - this.name = name; + public NameConfidence confidence(@javax.annotation.Nonnull BigDecimal confidence) { + this.confidence = confidence; return this; } /** - * The suggested function name - * @return name + * Confidence score as a percentage + * minimum: 0 + * maximum: 100 + * @return confidence */ @javax.annotation.Nonnull - public String getName() { - return name; + public BigDecimal getConfidence() { + return confidence; } - public void setName(@javax.annotation.Nonnull String name) { - this.name = name; + public void setConfidence(@javax.annotation.Nonnull BigDecimal confidence) { + this.confidence = confidence; } - public NameConfidence confidence(@javax.annotation.Nonnull BigDecimal confidence) { - this.confidence = confidence; + public NameConfidence name(@javax.annotation.Nonnull String name) { + this.name = name; return this; } /** - * Confidence score as a percentage - * minimum: 0.0 - * maximum: 100.0 - * @return confidence + * The suggested function name + * @return name */ @javax.annotation.Nonnull - public BigDecimal getConfidence() { - return confidence; + public String getName() { + return name; } - public void setConfidence(@javax.annotation.Nonnull BigDecimal confidence) { - this.confidence = confidence; + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; } /** @@ -159,22 +159,22 @@ public boolean equals(Object o) { return false; } NameConfidence nameConfidence = (NameConfidence) o; - return Objects.equals(this.name, nameConfidence.name) && - Objects.equals(this.confidence, nameConfidence.confidence)&& + return Objects.equals(this.confidence, nameConfidence.confidence) && + Objects.equals(this.name, nameConfidence.name)&& Objects.equals(this.additionalProperties, nameConfidence.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, confidence, additionalProperties); + return Objects.hash(confidence, name, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NameConfidence {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -197,10 +197,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "confidence")); + openapiFields = new HashSet(Arrays.asList("confidence", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "confidence")); + openapiRequiredFields = new HashSet(Arrays.asList("confidence", "name")); } /** diff --git a/src/main/java/ai/reveng/model/NameSourceType.java b/src/main/java/ai/reveng/model/NameSourceType.java index 8d79e04..b9dd647 100644 --- a/src/main/java/ai/reveng/model/NameSourceType.java +++ b/src/main/java/ai/reveng/model/NameSourceType.java @@ -52,6 +52,21 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class NameSourceType { + public static final String SERIALIZED_NAME_ANALYSIS_ID = "analysis_id"; + @SerializedName(SERIALIZED_NAME_ANALYSIS_ID) + @javax.annotation.Nullable + private Integer analysisId; + + public static final String SERIALIZED_NAME_BINARY_ID = "binary_id"; + @SerializedName(SERIALIZED_NAME_BINARY_ID) + @javax.annotation.Nullable + private Integer binaryId; + + public static final String SERIALIZED_NAME_FUNCTION_ID = "function_id"; + @SerializedName(SERIALIZED_NAME_FUNCTION_ID) + @javax.annotation.Nullable + private Integer functionId; + /** * The source (process) the function name came from */ @@ -115,97 +130,82 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nonnull private TypeEnum type; - public static final String SERIALIZED_NAME_FUNCTION_ID = "function_id"; - @SerializedName(SERIALIZED_NAME_FUNCTION_ID) - @javax.annotation.Nullable - private Integer functionId; - - public static final String SERIALIZED_NAME_BINARY_ID = "binary_id"; - @SerializedName(SERIALIZED_NAME_BINARY_ID) - @javax.annotation.Nullable - private Integer binaryId; - - public static final String SERIALIZED_NAME_ANALYSIS_ID = "analysis_id"; - @SerializedName(SERIALIZED_NAME_ANALYSIS_ID) - @javax.annotation.Nullable - private Integer analysisId; - public NameSourceType() { } - public NameSourceType type(@javax.annotation.Nonnull TypeEnum type) { - this.type = type; + public NameSourceType analysisId(@javax.annotation.Nullable Integer analysisId) { + this.analysisId = analysisId; return this; } /** - * The source (process) the function name came from - * @return type + * Get analysisId + * @return analysisId */ - @javax.annotation.Nonnull - public TypeEnum getType() { - return type; + @javax.annotation.Nullable + public Integer getAnalysisId() { + return analysisId; } - public void setType(@javax.annotation.Nonnull TypeEnum type) { - this.type = type; + public void setAnalysisId(@javax.annotation.Nullable Integer analysisId) { + this.analysisId = analysisId; } - public NameSourceType functionId(@javax.annotation.Nullable Integer functionId) { - this.functionId = functionId; + public NameSourceType binaryId(@javax.annotation.Nullable Integer binaryId) { + this.binaryId = binaryId; return this; } /** - * Get functionId - * @return functionId + * Get binaryId + * @return binaryId */ @javax.annotation.Nullable - public Integer getFunctionId() { - return functionId; + public Integer getBinaryId() { + return binaryId; } - public void setFunctionId(@javax.annotation.Nullable Integer functionId) { - this.functionId = functionId; + public void setBinaryId(@javax.annotation.Nullable Integer binaryId) { + this.binaryId = binaryId; } - public NameSourceType binaryId(@javax.annotation.Nullable Integer binaryId) { - this.binaryId = binaryId; + public NameSourceType functionId(@javax.annotation.Nullable Integer functionId) { + this.functionId = functionId; return this; } /** - * Get binaryId - * @return binaryId + * Get functionId + * @return functionId */ @javax.annotation.Nullable - public Integer getBinaryId() { - return binaryId; + public Integer getFunctionId() { + return functionId; } - public void setBinaryId(@javax.annotation.Nullable Integer binaryId) { - this.binaryId = binaryId; + public void setFunctionId(@javax.annotation.Nullable Integer functionId) { + this.functionId = functionId; } - public NameSourceType analysisId(@javax.annotation.Nullable Integer analysisId) { - this.analysisId = analysisId; + public NameSourceType type(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; return this; } /** - * Get analysisId - * @return analysisId + * The source (process) the function name came from + * @return type */ - @javax.annotation.Nullable - public Integer getAnalysisId() { - return analysisId; + @javax.annotation.Nonnull + public TypeEnum getType() { + return type; } - public void setAnalysisId(@javax.annotation.Nullable Integer analysisId) { - this.analysisId = analysisId; + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; } /** @@ -263,10 +263,10 @@ public boolean equals(Object o) { return false; } NameSourceType nameSourceType = (NameSourceType) o; - return Objects.equals(this.type, nameSourceType.type) && - Objects.equals(this.functionId, nameSourceType.functionId) && + return Objects.equals(this.analysisId, nameSourceType.analysisId) && Objects.equals(this.binaryId, nameSourceType.binaryId) && - Objects.equals(this.analysisId, nameSourceType.analysisId)&& + Objects.equals(this.functionId, nameSourceType.functionId) && + Objects.equals(this.type, nameSourceType.type)&& Objects.equals(this.additionalProperties, nameSourceType.additionalProperties); } @@ -276,7 +276,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(type, functionId, binaryId, analysisId, additionalProperties); + return Objects.hash(analysisId, binaryId, functionId, type, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -290,10 +290,10 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NameSourceType {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); - sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n"); sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n"); + sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n"); + sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -316,7 +316,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("type", "function_id", "binary_id", "analysis_id")); + openapiFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "function_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("type")); diff --git a/src/main/java/ai/reveng/model/NetworkOverviewDns.java b/src/main/java/ai/reveng/model/NetworkOverviewDns.java index 1c0553f..2ace0c3 100644 --- a/src/main/java/ai/reveng/model/NetworkOverviewDns.java +++ b/src/main/java/ai/reveng/model/NetworkOverviewDns.java @@ -54,6 +54,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class NetworkOverviewDns { + public static final String SERIALIZED_NAME_ANSWERS = "answers"; + @SerializedName(SERIALIZED_NAME_ANSWERS) + @javax.annotation.Nonnull + private List answers = new ArrayList<>(); + public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) @javax.annotation.Nonnull @@ -64,14 +69,36 @@ public class NetworkOverviewDns { @javax.annotation.Nonnull private String type; - public static final String SERIALIZED_NAME_ANSWERS = "answers"; - @SerializedName(SERIALIZED_NAME_ANSWERS) + public NetworkOverviewDns() { + } + + public NetworkOverviewDns answers(@javax.annotation.Nonnull List answers) { + this.answers = answers; + return this; + } + + public NetworkOverviewDns addAnswersItem(NetworkOverviewDnsAnswer answersItem) { + if (this.answers == null) { + this.answers = new ArrayList<>(); + } + this.answers.add(answersItem); + return this; + } + + /** + * Get answers + * @return answers + */ @javax.annotation.Nonnull - private List answers = new ArrayList<>(); + public List getAnswers() { + return answers; + } - public NetworkOverviewDns() { + public void setAnswers(@javax.annotation.Nonnull List answers) { + this.answers = answers; } + public NetworkOverviewDns host(@javax.annotation.Nonnull String host) { this.host = host; return this; @@ -109,33 +136,6 @@ public void setType(@javax.annotation.Nonnull String type) { this.type = type; } - - public NetworkOverviewDns answers(@javax.annotation.Nonnull List answers) { - this.answers = answers; - return this; - } - - public NetworkOverviewDns addAnswersItem(NetworkOverviewDnsAnswer answersItem) { - if (this.answers == null) { - this.answers = new ArrayList<>(); - } - this.answers.add(answersItem); - return this; - } - - /** - * Get answers - * @return answers - */ - @javax.annotation.Nonnull - public List getAnswers() { - return answers; - } - - public void setAnswers(@javax.annotation.Nonnull List answers) { - this.answers = answers; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -191,24 +191,24 @@ public boolean equals(Object o) { return false; } NetworkOverviewDns networkOverviewDns = (NetworkOverviewDns) o; - return Objects.equals(this.host, networkOverviewDns.host) && - Objects.equals(this.type, networkOverviewDns.type) && - Objects.equals(this.answers, networkOverviewDns.answers)&& + return Objects.equals(this.answers, networkOverviewDns.answers) && + Objects.equals(this.host, networkOverviewDns.host) && + Objects.equals(this.type, networkOverviewDns.type)&& Objects.equals(this.additionalProperties, networkOverviewDns.additionalProperties); } @Override public int hashCode() { - return Objects.hash(host, type, answers, additionalProperties); + return Objects.hash(answers, host, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkOverviewDns {\n"); + sb.append(" answers: ").append(toIndentedString(answers)).append("\n"); sb.append(" host: ").append(toIndentedString(host)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" answers: ").append(toIndentedString(answers)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -231,10 +231,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("host", "type", "answers")); + openapiFields = new HashSet(Arrays.asList("answers", "host", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("host", "type", "answers")); + openapiRequiredFields = new HashSet(Arrays.asList("answers", "host", "type")); } /** @@ -257,12 +257,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("host").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); - } - if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } // ensure the json data is an array if (!jsonObj.get("answers").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `answers` to be an array in the JSON string but got `%s`", jsonObj.get("answers").toString())); @@ -273,6 +267,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArrayanswers.size(); i++) { NetworkOverviewDnsAnswer.validateJsonElement(jsonArrayanswers.get(i)); }; + if (!jsonObj.get("host").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); + } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/NetworkOverviewDnsAnswer.java b/src/main/java/ai/reveng/model/NetworkOverviewDnsAnswer.java index 43297df..fd6246a 100644 --- a/src/main/java/ai/reveng/model/NetworkOverviewDnsAnswer.java +++ b/src/main/java/ai/reveng/model/NetworkOverviewDnsAnswer.java @@ -51,54 +51,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class NetworkOverviewDnsAnswer { - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nonnull - private String type; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nonnull private String data; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull + private String type; + public NetworkOverviewDnsAnswer() { } - public NetworkOverviewDnsAnswer type(@javax.annotation.Nonnull String type) { - this.type = type; + public NetworkOverviewDnsAnswer data(@javax.annotation.Nonnull String data) { + this.data = data; return this; } /** - * Get type - * @return type + * Get data + * @return data */ @javax.annotation.Nonnull - public String getType() { - return type; + public String getData() { + return data; } - public void setType(@javax.annotation.Nonnull String type) { - this.type = type; + public void setData(@javax.annotation.Nonnull String data) { + this.data = data; } - public NetworkOverviewDnsAnswer data(@javax.annotation.Nonnull String data) { - this.data = data; + public NetworkOverviewDnsAnswer type(@javax.annotation.Nonnull String type) { + this.type = type; return this; } /** - * Get data - * @return data + * Get type + * @return type */ @javax.annotation.Nonnull - public String getData() { - return data; + public String getType() { + return type; } - public void setData(@javax.annotation.Nonnull String data) { - this.data = data; + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; } /** @@ -156,22 +156,22 @@ public boolean equals(Object o) { return false; } NetworkOverviewDnsAnswer networkOverviewDnsAnswer = (NetworkOverviewDnsAnswer) o; - return Objects.equals(this.type, networkOverviewDnsAnswer.type) && - Objects.equals(this.data, networkOverviewDnsAnswer.data)&& + return Objects.equals(this.data, networkOverviewDnsAnswer.data) && + Objects.equals(this.type, networkOverviewDnsAnswer.type)&& Objects.equals(this.additionalProperties, networkOverviewDnsAnswer.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, data, additionalProperties); + return Objects.hash(data, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkOverviewDnsAnswer {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -194,10 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("type", "data")); + openapiFields = new HashSet(Arrays.asList("data", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("type", "data")); + openapiRequiredFields = new HashSet(Arrays.asList("data", "type")); } /** @@ -220,12 +220,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } if (!jsonObj.get("data").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be a primitive type in the JSON string but got `%s`", jsonObj.get("data").toString())); } + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/NetworkOverviewMetadata.java b/src/main/java/ai/reveng/model/NetworkOverviewMetadata.java index b1e4cea..8e475df 100644 --- a/src/main/java/ai/reveng/model/NetworkOverviewMetadata.java +++ b/src/main/java/ai/reveng/model/NetworkOverviewMetadata.java @@ -51,20 +51,20 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class NetworkOverviewMetadata { - public static final String SERIALIZED_NAME_HOST = "host"; - @SerializedName(SERIALIZED_NAME_HOST) + public static final String SERIALIZED_NAME_A_S_N = "ASN"; + @SerializedName(SERIALIZED_NAME_A_S_N) @javax.annotation.Nonnull - private String host; + private String ASN; public static final String SERIALIZED_NAME_COUNTRY_CODE = "country_code"; @SerializedName(SERIALIZED_NAME_COUNTRY_CODE) @javax.annotation.Nonnull private String countryCode; - public static final String SERIALIZED_NAME_A_S_N = "ASN"; - @SerializedName(SERIALIZED_NAME_A_S_N) + public static final String SERIALIZED_NAME_HOST = "host"; + @SerializedName(SERIALIZED_NAME_HOST) @javax.annotation.Nonnull - private String ASN; + private String host; /** * Gets or Sets type @@ -124,22 +124,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public NetworkOverviewMetadata() { } - public NetworkOverviewMetadata host(@javax.annotation.Nonnull String host) { - this.host = host; + public NetworkOverviewMetadata ASN(@javax.annotation.Nonnull String ASN) { + this.ASN = ASN; return this; } /** - * Get host - * @return host + * Get ASN + * @return ASN */ @javax.annotation.Nonnull - public String getHost() { - return host; + public String getASN() { + return ASN; } - public void setHost(@javax.annotation.Nonnull String host) { - this.host = host; + public void setASN(@javax.annotation.Nonnull String ASN) { + this.ASN = ASN; } @@ -162,22 +162,22 @@ public void setCountryCode(@javax.annotation.Nonnull String countryCode) { } - public NetworkOverviewMetadata ASN(@javax.annotation.Nonnull String ASN) { - this.ASN = ASN; + public NetworkOverviewMetadata host(@javax.annotation.Nonnull String host) { + this.host = host; return this; } /** - * Get ASN - * @return ASN + * Get host + * @return host */ @javax.annotation.Nonnull - public String getASN() { - return ASN; + public String getHost() { + return host; } - public void setASN(@javax.annotation.Nonnull String ASN) { - this.ASN = ASN; + public void setHost(@javax.annotation.Nonnull String host) { + this.host = host; } @@ -254,25 +254,25 @@ public boolean equals(Object o) { return false; } NetworkOverviewMetadata networkOverviewMetadata = (NetworkOverviewMetadata) o; - return Objects.equals(this.host, networkOverviewMetadata.host) && + return Objects.equals(this.ASN, networkOverviewMetadata.ASN) && Objects.equals(this.countryCode, networkOverviewMetadata.countryCode) && - Objects.equals(this.ASN, networkOverviewMetadata.ASN) && + Objects.equals(this.host, networkOverviewMetadata.host) && Objects.equals(this.type, networkOverviewMetadata.type)&& Objects.equals(this.additionalProperties, networkOverviewMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(host, countryCode, ASN, type, additionalProperties); + return Objects.hash(ASN, countryCode, host, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkOverviewMetadata {\n"); - sb.append(" host: ").append(toIndentedString(host)).append("\n"); - sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" ASN: ").append(toIndentedString(ASN)).append("\n"); + sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); + sb.append(" host: ").append(toIndentedString(host)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -296,10 +296,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("host", "country_code", "ASN", "type")); + openapiFields = new HashSet(Arrays.asList("ASN", "country_code", "host", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("host", "country_code", "ASN", "type")); + openapiRequiredFields = new HashSet(Arrays.asList("ASN", "country_code", "host", "type")); } /** @@ -322,14 +322,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("host").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); + if (!jsonObj.get("ASN").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ASN` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ASN").toString())); } if (!jsonObj.get("country_code").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `country_code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("country_code").toString())); } - if (!jsonObj.get("ASN").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ASN` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ASN").toString())); + if (!jsonObj.get("host").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); diff --git a/src/main/java/ai/reveng/model/PEModel.java b/src/main/java/ai/reveng/model/PEModel.java index e9a67af..10bc735 100644 --- a/src/main/java/ai/reveng/model/PEModel.java +++ b/src/main/java/ai/reveng/model/PEModel.java @@ -62,16 +62,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PEModel { - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nonnull - private String type; - - public static final String SERIALIZED_NAME_TIMESTAMPS = "timestamps"; - @SerializedName(SERIALIZED_NAME_TIMESTAMPS) - @javax.annotation.Nullable - private TimestampModel timestamps; - public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; @SerializedName(SERIALIZED_NAME_ARCHITECTURE) @javax.annotation.Nonnull @@ -82,60 +72,60 @@ public class PEModel { @javax.annotation.Nonnull private Integer checksum; - public static final String SERIALIZED_NAME_IMAGE_BASE = "image_base"; - @SerializedName(SERIALIZED_NAME_IMAGE_BASE) - @javax.annotation.Nonnull - private Integer imageBase; - - public static final String SERIALIZED_NAME_SECURITY = "security"; - @SerializedName(SERIALIZED_NAME_SECURITY) - @javax.annotation.Nullable - private SecurityModel security; - - public static final String SERIALIZED_NAME_VERSION_INFO = "version_info"; - @SerializedName(SERIALIZED_NAME_VERSION_INFO) - @javax.annotation.Nullable - private Map versionInfo; - public static final String SERIALIZED_NAME_DEBUG_INFO = "debug_info"; @SerializedName(SERIALIZED_NAME_DEBUG_INFO) @javax.annotation.Nullable private PDBDebugModel debugInfo; - public static final String SERIALIZED_NAME_NUMBER_OF_RESOURCES = "number_of_resources"; - @SerializedName(SERIALIZED_NAME_NUMBER_OF_RESOURCES) - @javax.annotation.Nullable - private Integer numberOfResources; + public static final String SERIALIZED_NAME_DEBUG_STRIPPED = "debug_stripped"; + @SerializedName(SERIALIZED_NAME_DEBUG_STRIPPED) + @javax.annotation.Nonnull + private Boolean debugStripped; + + public static final String SERIALIZED_NAME_DOTNET = "dotnet"; + @SerializedName(SERIALIZED_NAME_DOTNET) + @javax.annotation.Nonnull + private Boolean dotnet; public static final String SERIALIZED_NAME_ENTRY_POINT = "entry_point"; @SerializedName(SERIALIZED_NAME_ENTRY_POINT) @javax.annotation.Nullable private EntrypointModel entryPoint; - public static final String SERIALIZED_NAME_SIGNATURE = "signature"; - @SerializedName(SERIALIZED_NAME_SIGNATURE) + public static final String SERIALIZED_NAME_EXPORT_HASH = "export_hash"; + @SerializedName(SERIALIZED_NAME_EXPORT_HASH) + @javax.annotation.Nonnull + private String exportHash; + + public static final String SERIALIZED_NAME_EXPORTS = "exports"; + @SerializedName(SERIALIZED_NAME_EXPORTS) @javax.annotation.Nullable - private CodeSignatureModel signature; + private ExportModel exports; - public static final String SERIALIZED_NAME_DOTNET = "dotnet"; - @SerializedName(SERIALIZED_NAME_DOTNET) - @javax.annotation.Nonnull - private Boolean dotnet; + public static final String SERIALIZED_NAME_ICON_DATA = "icon_data"; + @SerializedName(SERIALIZED_NAME_ICON_DATA) + @javax.annotation.Nullable + private IconModel iconData; - public static final String SERIALIZED_NAME_DEBUG_STRIPPED = "debug_stripped"; - @SerializedName(SERIALIZED_NAME_DEBUG_STRIPPED) + public static final String SERIALIZED_NAME_IMAGE_BASE = "image_base"; + @SerializedName(SERIALIZED_NAME_IMAGE_BASE) @javax.annotation.Nonnull - private Boolean debugStripped; + private Integer imageBase; public static final String SERIALIZED_NAME_IMPORT_HASH = "import_hash"; @SerializedName(SERIALIZED_NAME_IMPORT_HASH) @javax.annotation.Nonnull private String importHash; - public static final String SERIALIZED_NAME_EXPORT_HASH = "export_hash"; - @SerializedName(SERIALIZED_NAME_EXPORT_HASH) - @javax.annotation.Nonnull - private String exportHash; + public static final String SERIALIZED_NAME_IMPORTS = "imports"; + @SerializedName(SERIALIZED_NAME_IMPORTS) + @javax.annotation.Nullable + private ImportModel imports; + + public static final String SERIALIZED_NAME_NUMBER_OF_RESOURCES = "number_of_resources"; + @SerializedName(SERIALIZED_NAME_NUMBER_OF_RESOURCES) + @javax.annotation.Nullable + private Integer numberOfResources; public static final String SERIALIZED_NAME_RICH_HEADER_HASH = "rich_header_hash"; @SerializedName(SERIALIZED_NAME_RICH_HEADER_HASH) @@ -147,62 +137,34 @@ public class PEModel { @javax.annotation.Nullable private SectionModel sections; - public static final String SERIALIZED_NAME_IMPORTS = "imports"; - @SerializedName(SERIALIZED_NAME_IMPORTS) + public static final String SERIALIZED_NAME_SECURITY = "security"; + @SerializedName(SERIALIZED_NAME_SECURITY) @javax.annotation.Nullable - private ImportModel imports; + private SecurityModel security; - public static final String SERIALIZED_NAME_EXPORTS = "exports"; - @SerializedName(SERIALIZED_NAME_EXPORTS) + public static final String SERIALIZED_NAME_SIGNATURE = "signature"; + @SerializedName(SERIALIZED_NAME_SIGNATURE) @javax.annotation.Nullable - private ExportModel exports; + private CodeSignatureModel signature; - public static final String SERIALIZED_NAME_ICON_DATA = "icon_data"; - @SerializedName(SERIALIZED_NAME_ICON_DATA) + public static final String SERIALIZED_NAME_TIMESTAMPS = "timestamps"; + @SerializedName(SERIALIZED_NAME_TIMESTAMPS) @javax.annotation.Nullable - private IconModel iconData; - - public PEModel() { - } - - public PEModel type(@javax.annotation.Nonnull String type) { - this.type = type; - return this; - } + private TimestampModel timestamps; - /** - * Get type - * @return type - */ + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull - public String getType() { - return type; - } - - public void setType(@javax.annotation.Nonnull String type) { - this.type = type; - } - - - public PEModel timestamps(@javax.annotation.Nullable TimestampModel timestamps) { - this.timestamps = timestamps; - return this; - } + private String type; - /** - * Get timestamps - * @return timestamps - */ + public static final String SERIALIZED_NAME_VERSION_INFO = "version_info"; + @SerializedName(SERIALIZED_NAME_VERSION_INFO) @javax.annotation.Nullable - public TimestampModel getTimestamps() { - return timestamps; - } + private Map versionInfo; - public void setTimestamps(@javax.annotation.Nullable TimestampModel timestamps) { - this.timestamps = timestamps; + public PEModel() { } - public PEModel architecture(@javax.annotation.Nonnull String architecture) { this.architecture = architecture; return this; @@ -241,220 +203,212 @@ public void setChecksum(@javax.annotation.Nonnull Integer checksum) { } - public PEModel imageBase(@javax.annotation.Nonnull Integer imageBase) { - this.imageBase = imageBase; + public PEModel debugInfo(@javax.annotation.Nullable PDBDebugModel debugInfo) { + this.debugInfo = debugInfo; return this; } /** - * Get imageBase - * @return imageBase + * Get debugInfo + * @return debugInfo */ - @javax.annotation.Nonnull - public Integer getImageBase() { - return imageBase; + @javax.annotation.Nullable + public PDBDebugModel getDebugInfo() { + return debugInfo; } - public void setImageBase(@javax.annotation.Nonnull Integer imageBase) { - this.imageBase = imageBase; + public void setDebugInfo(@javax.annotation.Nullable PDBDebugModel debugInfo) { + this.debugInfo = debugInfo; } - public PEModel security(@javax.annotation.Nullable SecurityModel security) { - this.security = security; + public PEModel debugStripped(@javax.annotation.Nonnull Boolean debugStripped) { + this.debugStripped = debugStripped; return this; } /** - * Get security - * @return security + * Get debugStripped + * @return debugStripped */ - @javax.annotation.Nullable - public SecurityModel getSecurity() { - return security; + @javax.annotation.Nonnull + public Boolean getDebugStripped() { + return debugStripped; } - public void setSecurity(@javax.annotation.Nullable SecurityModel security) { - this.security = security; + public void setDebugStripped(@javax.annotation.Nonnull Boolean debugStripped) { + this.debugStripped = debugStripped; } - public PEModel versionInfo(@javax.annotation.Nullable Map versionInfo) { - this.versionInfo = versionInfo; - return this; - } - - public PEModel putVersionInfoItem(String key, Object versionInfoItem) { - if (this.versionInfo == null) { - this.versionInfo = new HashMap<>(); - } - this.versionInfo.put(key, versionInfoItem); + public PEModel dotnet(@javax.annotation.Nonnull Boolean dotnet) { + this.dotnet = dotnet; return this; } /** - * Get versionInfo - * @return versionInfo + * Get dotnet + * @return dotnet */ - @javax.annotation.Nullable - public Map getVersionInfo() { - return versionInfo; + @javax.annotation.Nonnull + public Boolean getDotnet() { + return dotnet; } - public void setVersionInfo(@javax.annotation.Nullable Map versionInfo) { - this.versionInfo = versionInfo; + public void setDotnet(@javax.annotation.Nonnull Boolean dotnet) { + this.dotnet = dotnet; } - public PEModel debugInfo(@javax.annotation.Nullable PDBDebugModel debugInfo) { - this.debugInfo = debugInfo; + public PEModel entryPoint(@javax.annotation.Nullable EntrypointModel entryPoint) { + this.entryPoint = entryPoint; return this; } /** - * Get debugInfo - * @return debugInfo + * Get entryPoint + * @return entryPoint */ @javax.annotation.Nullable - public PDBDebugModel getDebugInfo() { - return debugInfo; + public EntrypointModel getEntryPoint() { + return entryPoint; } - public void setDebugInfo(@javax.annotation.Nullable PDBDebugModel debugInfo) { - this.debugInfo = debugInfo; + public void setEntryPoint(@javax.annotation.Nullable EntrypointModel entryPoint) { + this.entryPoint = entryPoint; } - public PEModel numberOfResources(@javax.annotation.Nullable Integer numberOfResources) { - this.numberOfResources = numberOfResources; + public PEModel exportHash(@javax.annotation.Nonnull String exportHash) { + this.exportHash = exportHash; return this; } /** - * Get numberOfResources - * @return numberOfResources + * Get exportHash + * @return exportHash */ - @javax.annotation.Nullable - public Integer getNumberOfResources() { - return numberOfResources; + @javax.annotation.Nonnull + public String getExportHash() { + return exportHash; } - public void setNumberOfResources(@javax.annotation.Nullable Integer numberOfResources) { - this.numberOfResources = numberOfResources; + public void setExportHash(@javax.annotation.Nonnull String exportHash) { + this.exportHash = exportHash; } - public PEModel entryPoint(@javax.annotation.Nullable EntrypointModel entryPoint) { - this.entryPoint = entryPoint; + public PEModel exports(@javax.annotation.Nullable ExportModel exports) { + this.exports = exports; return this; } /** - * Get entryPoint - * @return entryPoint + * Get exports + * @return exports */ @javax.annotation.Nullable - public EntrypointModel getEntryPoint() { - return entryPoint; + public ExportModel getExports() { + return exports; } - public void setEntryPoint(@javax.annotation.Nullable EntrypointModel entryPoint) { - this.entryPoint = entryPoint; + public void setExports(@javax.annotation.Nullable ExportModel exports) { + this.exports = exports; } - public PEModel signature(@javax.annotation.Nullable CodeSignatureModel signature) { - this.signature = signature; + public PEModel iconData(@javax.annotation.Nullable IconModel iconData) { + this.iconData = iconData; return this; } /** - * Get signature - * @return signature + * Get iconData + * @return iconData */ @javax.annotation.Nullable - public CodeSignatureModel getSignature() { - return signature; + public IconModel getIconData() { + return iconData; } - public void setSignature(@javax.annotation.Nullable CodeSignatureModel signature) { - this.signature = signature; + public void setIconData(@javax.annotation.Nullable IconModel iconData) { + this.iconData = iconData; } - public PEModel dotnet(@javax.annotation.Nonnull Boolean dotnet) { - this.dotnet = dotnet; + public PEModel imageBase(@javax.annotation.Nonnull Integer imageBase) { + this.imageBase = imageBase; return this; } /** - * Get dotnet - * @return dotnet + * Get imageBase + * @return imageBase */ @javax.annotation.Nonnull - public Boolean getDotnet() { - return dotnet; + public Integer getImageBase() { + return imageBase; } - public void setDotnet(@javax.annotation.Nonnull Boolean dotnet) { - this.dotnet = dotnet; + public void setImageBase(@javax.annotation.Nonnull Integer imageBase) { + this.imageBase = imageBase; } - public PEModel debugStripped(@javax.annotation.Nonnull Boolean debugStripped) { - this.debugStripped = debugStripped; + public PEModel importHash(@javax.annotation.Nonnull String importHash) { + this.importHash = importHash; return this; } /** - * Get debugStripped - * @return debugStripped + * Get importHash + * @return importHash */ @javax.annotation.Nonnull - public Boolean getDebugStripped() { - return debugStripped; + public String getImportHash() { + return importHash; } - public void setDebugStripped(@javax.annotation.Nonnull Boolean debugStripped) { - this.debugStripped = debugStripped; + public void setImportHash(@javax.annotation.Nonnull String importHash) { + this.importHash = importHash; } - public PEModel importHash(@javax.annotation.Nonnull String importHash) { - this.importHash = importHash; + public PEModel imports(@javax.annotation.Nullable ImportModel imports) { + this.imports = imports; return this; } /** - * Get importHash - * @return importHash + * Get imports + * @return imports */ - @javax.annotation.Nonnull - public String getImportHash() { - return importHash; + @javax.annotation.Nullable + public ImportModel getImports() { + return imports; } - public void setImportHash(@javax.annotation.Nonnull String importHash) { - this.importHash = importHash; + public void setImports(@javax.annotation.Nullable ImportModel imports) { + this.imports = imports; } - public PEModel exportHash(@javax.annotation.Nonnull String exportHash) { - this.exportHash = exportHash; + public PEModel numberOfResources(@javax.annotation.Nullable Integer numberOfResources) { + this.numberOfResources = numberOfResources; return this; } /** - * Get exportHash - * @return exportHash + * Get numberOfResources + * @return numberOfResources */ - @javax.annotation.Nonnull - public String getExportHash() { - return exportHash; + @javax.annotation.Nullable + public Integer getNumberOfResources() { + return numberOfResources; } - public void setExportHash(@javax.annotation.Nonnull String exportHash) { - this.exportHash = exportHash; + public void setNumberOfResources(@javax.annotation.Nullable Integer numberOfResources) { + this.numberOfResources = numberOfResources; } @@ -496,60 +450,106 @@ public void setSections(@javax.annotation.Nullable SectionModel sections) { } - public PEModel imports(@javax.annotation.Nullable ImportModel imports) { - this.imports = imports; + public PEModel security(@javax.annotation.Nullable SecurityModel security) { + this.security = security; return this; } /** - * Get imports - * @return imports + * Get security + * @return security */ @javax.annotation.Nullable - public ImportModel getImports() { - return imports; + public SecurityModel getSecurity() { + return security; } - public void setImports(@javax.annotation.Nullable ImportModel imports) { - this.imports = imports; + public void setSecurity(@javax.annotation.Nullable SecurityModel security) { + this.security = security; } - public PEModel exports(@javax.annotation.Nullable ExportModel exports) { - this.exports = exports; + public PEModel signature(@javax.annotation.Nullable CodeSignatureModel signature) { + this.signature = signature; return this; } /** - * Get exports - * @return exports + * Get signature + * @return signature */ @javax.annotation.Nullable - public ExportModel getExports() { - return exports; + public CodeSignatureModel getSignature() { + return signature; } - public void setExports(@javax.annotation.Nullable ExportModel exports) { - this.exports = exports; + public void setSignature(@javax.annotation.Nullable CodeSignatureModel signature) { + this.signature = signature; } - public PEModel iconData(@javax.annotation.Nullable IconModel iconData) { - this.iconData = iconData; + public PEModel timestamps(@javax.annotation.Nullable TimestampModel timestamps) { + this.timestamps = timestamps; return this; } /** - * Get iconData - * @return iconData + * Get timestamps + * @return timestamps */ @javax.annotation.Nullable - public IconModel getIconData() { - return iconData; + public TimestampModel getTimestamps() { + return timestamps; } - public void setIconData(@javax.annotation.Nullable IconModel iconData) { - this.iconData = iconData; + public void setTimestamps(@javax.annotation.Nullable TimestampModel timestamps) { + this.timestamps = timestamps; + } + + + public PEModel type(@javax.annotation.Nonnull String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @javax.annotation.Nonnull + public String getType() { + return type; + } + + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; + } + + + public PEModel versionInfo(@javax.annotation.Nullable Map versionInfo) { + this.versionInfo = versionInfo; + return this; + } + + public PEModel putVersionInfoItem(String key, Object versionInfoItem) { + if (this.versionInfo == null) { + this.versionInfo = new HashMap<>(); + } + this.versionInfo.put(key, versionInfoItem); + return this; + } + + /** + * Get versionInfo + * @return versionInfo + */ + @javax.annotation.Nullable + public Map getVersionInfo() { + return versionInfo; + } + + public void setVersionInfo(@javax.annotation.Nullable Map versionInfo) { + this.versionInfo = versionInfo; } /** @@ -607,58 +607,58 @@ public boolean equals(Object o) { return false; } PEModel peModel = (PEModel) o; - return Objects.equals(this.type, peModel.type) && - Objects.equals(this.timestamps, peModel.timestamps) && - Objects.equals(this.architecture, peModel.architecture) && + return Objects.equals(this.architecture, peModel.architecture) && Objects.equals(this.checksum, peModel.checksum) && - Objects.equals(this.imageBase, peModel.imageBase) && - Objects.equals(this.security, peModel.security) && - Objects.equals(this.versionInfo, peModel.versionInfo) && Objects.equals(this.debugInfo, peModel.debugInfo) && - Objects.equals(this.numberOfResources, peModel.numberOfResources) && - Objects.equals(this.entryPoint, peModel.entryPoint) && - Objects.equals(this.signature, peModel.signature) && - Objects.equals(this.dotnet, peModel.dotnet) && Objects.equals(this.debugStripped, peModel.debugStripped) && - Objects.equals(this.importHash, peModel.importHash) && + Objects.equals(this.dotnet, peModel.dotnet) && + Objects.equals(this.entryPoint, peModel.entryPoint) && Objects.equals(this.exportHash, peModel.exportHash) && + Objects.equals(this.exports, peModel.exports) && + Objects.equals(this.iconData, peModel.iconData) && + Objects.equals(this.imageBase, peModel.imageBase) && + Objects.equals(this.importHash, peModel.importHash) && + Objects.equals(this.imports, peModel.imports) && + Objects.equals(this.numberOfResources, peModel.numberOfResources) && Objects.equals(this.richHeaderHash, peModel.richHeaderHash) && Objects.equals(this.sections, peModel.sections) && - Objects.equals(this.imports, peModel.imports) && - Objects.equals(this.exports, peModel.exports) && - Objects.equals(this.iconData, peModel.iconData)&& + Objects.equals(this.security, peModel.security) && + Objects.equals(this.signature, peModel.signature) && + Objects.equals(this.timestamps, peModel.timestamps) && + Objects.equals(this.type, peModel.type) && + Objects.equals(this.versionInfo, peModel.versionInfo)&& Objects.equals(this.additionalProperties, peModel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, timestamps, architecture, checksum, imageBase, security, versionInfo, debugInfo, numberOfResources, entryPoint, signature, dotnet, debugStripped, importHash, exportHash, richHeaderHash, sections, imports, exports, iconData, additionalProperties); + return Objects.hash(architecture, checksum, debugInfo, debugStripped, dotnet, entryPoint, exportHash, exports, iconData, imageBase, importHash, imports, numberOfResources, richHeaderHash, sections, security, signature, timestamps, type, versionInfo, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PEModel {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" timestamps: ").append(toIndentedString(timestamps)).append("\n"); sb.append(" architecture: ").append(toIndentedString(architecture)).append("\n"); sb.append(" checksum: ").append(toIndentedString(checksum)).append("\n"); - sb.append(" imageBase: ").append(toIndentedString(imageBase)).append("\n"); - sb.append(" security: ").append(toIndentedString(security)).append("\n"); - sb.append(" versionInfo: ").append(toIndentedString(versionInfo)).append("\n"); sb.append(" debugInfo: ").append(toIndentedString(debugInfo)).append("\n"); - sb.append(" numberOfResources: ").append(toIndentedString(numberOfResources)).append("\n"); - sb.append(" entryPoint: ").append(toIndentedString(entryPoint)).append("\n"); - sb.append(" signature: ").append(toIndentedString(signature)).append("\n"); - sb.append(" dotnet: ").append(toIndentedString(dotnet)).append("\n"); sb.append(" debugStripped: ").append(toIndentedString(debugStripped)).append("\n"); - sb.append(" importHash: ").append(toIndentedString(importHash)).append("\n"); + sb.append(" dotnet: ").append(toIndentedString(dotnet)).append("\n"); + sb.append(" entryPoint: ").append(toIndentedString(entryPoint)).append("\n"); sb.append(" exportHash: ").append(toIndentedString(exportHash)).append("\n"); - sb.append(" richHeaderHash: ").append(toIndentedString(richHeaderHash)).append("\n"); - sb.append(" sections: ").append(toIndentedString(sections)).append("\n"); - sb.append(" imports: ").append(toIndentedString(imports)).append("\n"); sb.append(" exports: ").append(toIndentedString(exports)).append("\n"); sb.append(" iconData: ").append(toIndentedString(iconData)).append("\n"); + sb.append(" imageBase: ").append(toIndentedString(imageBase)).append("\n"); + sb.append(" importHash: ").append(toIndentedString(importHash)).append("\n"); + sb.append(" imports: ").append(toIndentedString(imports)).append("\n"); + sb.append(" numberOfResources: ").append(toIndentedString(numberOfResources)).append("\n"); + sb.append(" richHeaderHash: ").append(toIndentedString(richHeaderHash)).append("\n"); + sb.append(" sections: ").append(toIndentedString(sections)).append("\n"); + sb.append(" security: ").append(toIndentedString(security)).append("\n"); + sb.append(" signature: ").append(toIndentedString(signature)).append("\n"); + sb.append(" timestamps: ").append(toIndentedString(timestamps)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" versionInfo: ").append(toIndentedString(versionInfo)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -681,10 +681,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("type", "timestamps", "architecture", "checksum", "image_base", "security", "version_info", "debug_info", "number_of_resources", "entry_point", "signature", "dotnet", "debug_stripped", "import_hash", "export_hash", "rich_header_hash", "sections", "imports", "exports", "icon_data")); + openapiFields = new HashSet(Arrays.asList("architecture", "checksum", "debug_info", "debug_stripped", "dotnet", "entry_point", "export_hash", "exports", "icon_data", "image_base", "import_hash", "imports", "number_of_resources", "rich_header_hash", "sections", "security", "signature", "timestamps", "type", "version_info")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("type", "timestamps", "architecture", "checksum", "image_base", "security", "version_info", "debug_info", "number_of_resources", "entry_point", "signature", "dotnet", "debug_stripped", "import_hash", "export_hash", "rich_header_hash", "sections", "imports", "exports", "icon_data")); + openapiRequiredFields = new HashSet(Arrays.asList("architecture", "checksum", "debug_info", "debug_stripped", "dotnet", "entry_point", "export_hash", "exports", "icon_data", "image_base", "import_hash", "imports", "number_of_resources", "rich_header_hash", "sections", "security", "signature", "timestamps", "type", "version_info")); } /** @@ -707,39 +707,39 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - // validate the required field `timestamps` - TimestampModel.validateJsonElement(jsonObj.get("timestamps")); 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 `security` - SecurityModel.validateJsonElement(jsonObj.get("security")); // validate the required field `debug_info` PDBDebugModel.validateJsonElement(jsonObj.get("debug_info")); // validate the required field `entry_point` EntrypointModel.validateJsonElement(jsonObj.get("entry_point")); - // validate the required field `signature` - CodeSignatureModel.validateJsonElement(jsonObj.get("signature")); - if (!jsonObj.get("import_hash").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `import_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("import_hash").toString())); - } if (!jsonObj.get("export_hash").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `export_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("export_hash").toString())); } + // validate the required field `exports` + ExportModel.validateJsonElement(jsonObj.get("exports")); + // validate the required field `icon_data` + IconModel.validateJsonElement(jsonObj.get("icon_data")); + if (!jsonObj.get("import_hash").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `import_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("import_hash").toString())); + } + // validate the required field `imports` + ImportModel.validateJsonElement(jsonObj.get("imports")); if (!jsonObj.get("rich_header_hash").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rich_header_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rich_header_hash").toString())); } // validate the required field `sections` SectionModel.validateJsonElement(jsonObj.get("sections")); - // validate the required field `imports` - ImportModel.validateJsonElement(jsonObj.get("imports")); - // validate the required field `exports` - ExportModel.validateJsonElement(jsonObj.get("exports")); - // validate the required field `icon_data` - IconModel.validateJsonElement(jsonObj.get("icon_data")); + // validate the required field `security` + SecurityModel.validateJsonElement(jsonObj.get("security")); + // validate the required field `signature` + CodeSignatureModel.validateJsonElement(jsonObj.get("signature")); + // validate the required field `timestamps` + TimestampModel.validateJsonElement(jsonObj.get("timestamps")); + if (!jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/PaginationModel.java b/src/main/java/ai/reveng/model/PaginationModel.java index 14faf0e..fa80fa6 100644 --- a/src/main/java/ai/reveng/model/PaginationModel.java +++ b/src/main/java/ai/reveng/model/PaginationModel.java @@ -51,40 +51,40 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PaginationModel { - public static final String SERIALIZED_NAME_PAGE_SIZE = "page_size"; - @SerializedName(SERIALIZED_NAME_PAGE_SIZE) + public static final String SERIALIZED_NAME_HAS_NEXT_PAGE = "has_next_page"; + @SerializedName(SERIALIZED_NAME_HAS_NEXT_PAGE) @javax.annotation.Nonnull - private Integer pageSize; + private Boolean hasNextPage; public static final String SERIALIZED_NAME_PAGE_NUMBER = "page_number"; @SerializedName(SERIALIZED_NAME_PAGE_NUMBER) @javax.annotation.Nonnull private Integer pageNumber; - public static final String SERIALIZED_NAME_HAS_NEXT_PAGE = "has_next_page"; - @SerializedName(SERIALIZED_NAME_HAS_NEXT_PAGE) + public static final String SERIALIZED_NAME_PAGE_SIZE = "page_size"; + @SerializedName(SERIALIZED_NAME_PAGE_SIZE) @javax.annotation.Nonnull - private Boolean hasNextPage; + private Integer pageSize; public PaginationModel() { } - public PaginationModel pageSize(@javax.annotation.Nonnull Integer pageSize) { - this.pageSize = pageSize; + public PaginationModel hasNextPage(@javax.annotation.Nonnull Boolean hasNextPage) { + this.hasNextPage = hasNextPage; return this; } /** - * Get pageSize - * @return pageSize + * Get hasNextPage + * @return hasNextPage */ @javax.annotation.Nonnull - public Integer getPageSize() { - return pageSize; + public Boolean getHasNextPage() { + return hasNextPage; } - public void setPageSize(@javax.annotation.Nonnull Integer pageSize) { - this.pageSize = pageSize; + public void setHasNextPage(@javax.annotation.Nonnull Boolean hasNextPage) { + this.hasNextPage = hasNextPage; } @@ -107,22 +107,22 @@ public void setPageNumber(@javax.annotation.Nonnull Integer pageNumber) { } - public PaginationModel hasNextPage(@javax.annotation.Nonnull Boolean hasNextPage) { - this.hasNextPage = hasNextPage; + public PaginationModel pageSize(@javax.annotation.Nonnull Integer pageSize) { + this.pageSize = pageSize; return this; } /** - * Get hasNextPage - * @return hasNextPage + * Get pageSize + * @return pageSize */ @javax.annotation.Nonnull - public Boolean getHasNextPage() { - return hasNextPage; + public Integer getPageSize() { + return pageSize; } - public void setHasNextPage(@javax.annotation.Nonnull Boolean hasNextPage) { - this.hasNextPage = hasNextPage; + public void setPageSize(@javax.annotation.Nonnull Integer pageSize) { + this.pageSize = pageSize; } /** @@ -180,24 +180,24 @@ public boolean equals(Object o) { return false; } PaginationModel paginationModel = (PaginationModel) o; - return Objects.equals(this.pageSize, paginationModel.pageSize) && + return Objects.equals(this.hasNextPage, paginationModel.hasNextPage) && Objects.equals(this.pageNumber, paginationModel.pageNumber) && - Objects.equals(this.hasNextPage, paginationModel.hasNextPage)&& + Objects.equals(this.pageSize, paginationModel.pageSize)&& Objects.equals(this.additionalProperties, paginationModel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(pageSize, pageNumber, hasNextPage, additionalProperties); + return Objects.hash(hasNextPage, pageNumber, pageSize, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaginationModel {\n"); - sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); - sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); sb.append(" hasNextPage: ").append(toIndentedString(hasNextPage)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -220,10 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("page_size", "page_number", "has_next_page")); + openapiFields = new HashSet(Arrays.asList("has_next_page", "page_number", "page_size")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("page_size", "page_number", "has_next_page")); + openapiRequiredFields = new HashSet(Arrays.asList("has_next_page", "page_number", "page_size")); } /** diff --git a/src/main/java/ai/reveng/model/Params.java b/src/main/java/ai/reveng/model/Params.java index 9d65836..df9a150 100644 --- a/src/main/java/ai/reveng/model/Params.java +++ b/src/main/java/ai/reveng/model/Params.java @@ -51,35 +51,35 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Params { - 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_BINARY_SIZE = "binary_size"; - @SerializedName(SERIALIZED_NAME_BINARY_SIZE) - @javax.annotation.Nonnull - private Integer binarySize; - public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; @SerializedName(SERIALIZED_NAME_ARCHITECTURE) @javax.annotation.Nonnull private String architecture; - public static final String SERIALIZED_NAME_BINARY_TYPE = "binary_type"; - @SerializedName(SERIALIZED_NAME_BINARY_TYPE) + public static final String SERIALIZED_NAME_BINARY_DYNAMIC = "binary_dynamic"; + @SerializedName(SERIALIZED_NAME_BINARY_DYNAMIC) @javax.annotation.Nonnull - private String binaryType; + private Boolean binaryDynamic; public static final String SERIALIZED_NAME_BINARY_FORMAT = "binary_format"; @SerializedName(SERIALIZED_NAME_BINARY_FORMAT) @javax.annotation.Nonnull private String binaryFormat; - public static final String SERIALIZED_NAME_BINARY_DYNAMIC = "binary_dynamic"; - @SerializedName(SERIALIZED_NAME_BINARY_DYNAMIC) + public static final String SERIALIZED_NAME_BINARY_SIZE = "binary_size"; + @SerializedName(SERIALIZED_NAME_BINARY_SIZE) @javax.annotation.Nonnull - private Boolean binaryDynamic; + private Integer binarySize; + + public static final String SERIALIZED_NAME_BINARY_TYPE = "binary_type"; + @SerializedName(SERIALIZED_NAME_BINARY_TYPE) + @javax.annotation.Nonnull + private String binaryType; + + 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_MODEL_NAME = "model_name"; @SerializedName(SERIALIZED_NAME_MODEL_NAME) @@ -89,117 +89,117 @@ public class Params { public Params() { } - public Params debugHash(@javax.annotation.Nullable String debugHash) { - this.debugHash = debugHash; + public Params architecture(@javax.annotation.Nonnull String architecture) { + this.architecture = architecture; return this; } /** - * Get debugHash - * @return debugHash + * The architecture of the binary data + * @return architecture */ - @javax.annotation.Nullable - public String getDebugHash() { - return debugHash; + @javax.annotation.Nonnull + public String getArchitecture() { + return architecture; } - public void setDebugHash(@javax.annotation.Nullable String debugHash) { - this.debugHash = debugHash; + public void setArchitecture(@javax.annotation.Nonnull String architecture) { + this.architecture = architecture; } - public Params binarySize(@javax.annotation.Nonnull Integer binarySize) { - this.binarySize = binarySize; + public Params binaryDynamic(@javax.annotation.Nonnull Boolean binaryDynamic) { + this.binaryDynamic = binaryDynamic; return this; } /** - * The size of the binary data - * @return binarySize + * Whether the binary data is dynamic + * @return binaryDynamic */ @javax.annotation.Nonnull - public Integer getBinarySize() { - return binarySize; + public Boolean getBinaryDynamic() { + return binaryDynamic; } - public void setBinarySize(@javax.annotation.Nonnull Integer binarySize) { - this.binarySize = binarySize; + public void setBinaryDynamic(@javax.annotation.Nonnull Boolean binaryDynamic) { + this.binaryDynamic = binaryDynamic; } - public Params architecture(@javax.annotation.Nonnull String architecture) { - this.architecture = architecture; + public Params binaryFormat(@javax.annotation.Nonnull String binaryFormat) { + this.binaryFormat = binaryFormat; return this; } /** - * The architecture of the binary data - * @return architecture + * The format of the binary data + * @return binaryFormat */ @javax.annotation.Nonnull - public String getArchitecture() { - return architecture; + public String getBinaryFormat() { + return binaryFormat; } - public void setArchitecture(@javax.annotation.Nonnull String architecture) { - this.architecture = architecture; + public void setBinaryFormat(@javax.annotation.Nonnull String binaryFormat) { + this.binaryFormat = binaryFormat; } - public Params binaryType(@javax.annotation.Nonnull String binaryType) { - this.binaryType = binaryType; + public Params binarySize(@javax.annotation.Nonnull Integer binarySize) { + this.binarySize = binarySize; return this; } /** - * The type of binary data - * @return binaryType + * The size of the binary data + * @return binarySize */ @javax.annotation.Nonnull - public String getBinaryType() { - return binaryType; + public Integer getBinarySize() { + return binarySize; } - public void setBinaryType(@javax.annotation.Nonnull String binaryType) { - this.binaryType = binaryType; + public void setBinarySize(@javax.annotation.Nonnull Integer binarySize) { + this.binarySize = binarySize; } - public Params binaryFormat(@javax.annotation.Nonnull String binaryFormat) { - this.binaryFormat = binaryFormat; + public Params binaryType(@javax.annotation.Nonnull String binaryType) { + this.binaryType = binaryType; return this; } /** - * The format of the binary data - * @return binaryFormat + * The type of binary data + * @return binaryType */ @javax.annotation.Nonnull - public String getBinaryFormat() { - return binaryFormat; + public String getBinaryType() { + return binaryType; } - public void setBinaryFormat(@javax.annotation.Nonnull String binaryFormat) { - this.binaryFormat = binaryFormat; + public void setBinaryType(@javax.annotation.Nonnull String binaryType) { + this.binaryType = binaryType; } - public Params binaryDynamic(@javax.annotation.Nonnull Boolean binaryDynamic) { - this.binaryDynamic = binaryDynamic; + public Params debugHash(@javax.annotation.Nullable String debugHash) { + this.debugHash = debugHash; return this; } /** - * Whether the binary data is dynamic - * @return binaryDynamic + * Get debugHash + * @return debugHash */ - @javax.annotation.Nonnull - public Boolean getBinaryDynamic() { - return binaryDynamic; + @javax.annotation.Nullable + public String getDebugHash() { + return debugHash; } - public void setBinaryDynamic(@javax.annotation.Nonnull Boolean binaryDynamic) { - this.binaryDynamic = binaryDynamic; + public void setDebugHash(@javax.annotation.Nullable String debugHash) { + this.debugHash = debugHash; } @@ -276,31 +276,31 @@ public boolean equals(Object o) { return false; } Params params = (Params) o; - return Objects.equals(this.debugHash, params.debugHash) && + return Objects.equals(this.architecture, params.architecture) && + Objects.equals(this.binaryDynamic, params.binaryDynamic) && + Objects.equals(this.binaryFormat, params.binaryFormat) && Objects.equals(this.binarySize, params.binarySize) && - Objects.equals(this.architecture, params.architecture) && Objects.equals(this.binaryType, params.binaryType) && - Objects.equals(this.binaryFormat, params.binaryFormat) && - Objects.equals(this.binaryDynamic, params.binaryDynamic) && + Objects.equals(this.debugHash, params.debugHash) && Objects.equals(this.modelName, params.modelName)&& Objects.equals(this.additionalProperties, params.additionalProperties); } @Override public int hashCode() { - return Objects.hash(debugHash, binarySize, architecture, binaryType, binaryFormat, binaryDynamic, modelName, additionalProperties); + return Objects.hash(architecture, binaryDynamic, binaryFormat, binarySize, binaryType, debugHash, modelName, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Params {\n"); - sb.append(" debugHash: ").append(toIndentedString(debugHash)).append("\n"); - sb.append(" binarySize: ").append(toIndentedString(binarySize)).append("\n"); sb.append(" architecture: ").append(toIndentedString(architecture)).append("\n"); - sb.append(" binaryType: ").append(toIndentedString(binaryType)).append("\n"); - sb.append(" binaryFormat: ").append(toIndentedString(binaryFormat)).append("\n"); sb.append(" binaryDynamic: ").append(toIndentedString(binaryDynamic)).append("\n"); + sb.append(" binaryFormat: ").append(toIndentedString(binaryFormat)).append("\n"); + sb.append(" binarySize: ").append(toIndentedString(binarySize)).append("\n"); + sb.append(" binaryType: ").append(toIndentedString(binaryType)).append("\n"); + sb.append(" debugHash: ").append(toIndentedString(debugHash)).append("\n"); sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -324,10 +324,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("debug_hash", "binary_size", "architecture", "binary_type", "binary_format", "binary_dynamic", "model_name")); + openapiFields = new HashSet(Arrays.asList("architecture", "binary_dynamic", "binary_format", "binary_size", "binary_type", "debug_hash", "model_name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("debug_hash", "binary_size", "architecture", "binary_type", "binary_format", "binary_dynamic", "model_name")); + openapiRequiredFields = new HashSet(Arrays.asList("architecture", "binary_dynamic", "binary_format", "binary_size", "binary_type", "debug_hash", "model_name")); } /** @@ -350,17 +350,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - 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("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())); } + 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())); + } if (!jsonObj.get("binary_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binary_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binary_type").toString())); } - 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())); + 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("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())); diff --git a/src/main/java/ai/reveng/model/Process.java b/src/main/java/ai/reveng/model/Process.java index bc8caed..9b3d257 100644 --- a/src/main/java/ai/reveng/model/Process.java +++ b/src/main/java/ai/reveng/model/Process.java @@ -54,25 +54,30 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Process { - public static final String SERIALIZED_NAME_PID = "pid"; - @SerializedName(SERIALIZED_NAME_PID) + public static final String SERIALIZED_NAME_ARGS = "args"; + @SerializedName(SERIALIZED_NAME_ARGS) @javax.annotation.Nonnull - private Integer pid; + private List args = new ArrayList<>(); - public static final String SERIALIZED_NAME_PROCNAME = "procname"; - @SerializedName(SERIALIZED_NAME_PROCNAME) + public static final String SERIALIZED_NAME_CHILDREN = "children"; + @SerializedName(SERIALIZED_NAME_CHILDREN) @javax.annotation.Nonnull - private String procname; + private List children = new ArrayList<>(); public static final String SERIALIZED_NAME_EXECUTABLE_NAME = "executable_name"; @SerializedName(SERIALIZED_NAME_EXECUTABLE_NAME) @javax.annotation.Nonnull private String executableName; - public static final String SERIALIZED_NAME_ARGS = "args"; - @SerializedName(SERIALIZED_NAME_ARGS) + public static final String SERIALIZED_NAME_PID = "pid"; + @SerializedName(SERIALIZED_NAME_PID) @javax.annotation.Nonnull - private List args = new ArrayList<>(); + private Integer pid; + + public static final String SERIALIZED_NAME_PROCNAME = "procname"; + @SerializedName(SERIALIZED_NAME_PROCNAME) + @javax.annotation.Nonnull + private String procname; public static final String SERIALIZED_NAME_TS_FROM = "ts_from"; @SerializedName(SERIALIZED_NAME_TS_FROM) @@ -84,49 +89,60 @@ public class Process { @javax.annotation.Nullable private BigDecimal tsTo; - public static final String SERIALIZED_NAME_CHILDREN = "children"; - @SerializedName(SERIALIZED_NAME_CHILDREN) - @javax.annotation.Nonnull - private List children = new ArrayList<>(); - public Process() { } - public Process pid(@javax.annotation.Nonnull Integer pid) { - this.pid = pid; + public Process args(@javax.annotation.Nonnull List args) { + this.args = args; + return this; + } + + public Process addArgsItem(String argsItem) { + if (this.args == null) { + this.args = new ArrayList<>(); + } + this.args.add(argsItem); return this; } /** - * Get pid - * @return pid + * Get args + * @return args */ @javax.annotation.Nonnull - public Integer getPid() { - return pid; + public List getArgs() { + return args; } - public void setPid(@javax.annotation.Nonnull Integer pid) { - this.pid = pid; + public void setArgs(@javax.annotation.Nonnull List args) { + this.args = args; } - public Process procname(@javax.annotation.Nonnull String procname) { - this.procname = procname; + public Process children(@javax.annotation.Nonnull List children) { + this.children = children; + return this; + } + + public Process addChildrenItem(Object childrenItem) { + if (this.children == null) { + this.children = new ArrayList<>(); + } + this.children.add(childrenItem); return this; } /** - * Get procname - * @return procname + * Get children + * @return children */ @javax.annotation.Nonnull - public String getProcname() { - return procname; + public List getChildren() { + return children; } - public void setProcname(@javax.annotation.Nonnull String procname) { - this.procname = procname; + public void setChildren(@javax.annotation.Nonnull List children) { + this.children = children; } @@ -149,30 +165,41 @@ public void setExecutableName(@javax.annotation.Nonnull String executableName) { } - public Process args(@javax.annotation.Nonnull List args) { - this.args = args; + public Process pid(@javax.annotation.Nonnull Integer pid) { + this.pid = pid; return this; } - public Process addArgsItem(String argsItem) { - if (this.args == null) { - this.args = new ArrayList<>(); - } - this.args.add(argsItem); + /** + * Get pid + * @return pid + */ + @javax.annotation.Nonnull + public Integer getPid() { + return pid; + } + + public void setPid(@javax.annotation.Nonnull Integer pid) { + this.pid = pid; + } + + + public Process procname(@javax.annotation.Nonnull String procname) { + this.procname = procname; return this; } /** - * Get args - * @return args + * Get procname + * @return procname */ @javax.annotation.Nonnull - public List getArgs() { - return args; + public String getProcname() { + return procname; } - public void setArgs(@javax.annotation.Nonnull List args) { - this.args = args; + public void setProcname(@javax.annotation.Nonnull String procname) { + this.procname = procname; } @@ -213,33 +240,6 @@ public void setTsTo(@javax.annotation.Nullable BigDecimal tsTo) { this.tsTo = tsTo; } - - public Process children(@javax.annotation.Nonnull List children) { - this.children = children; - return this; - } - - public Process addChildrenItem(Object childrenItem) { - if (this.children == null) { - this.children = new ArrayList<>(); - } - this.children.add(childrenItem); - return this; - } - - /** - * Get children - * @return children - */ - @javax.annotation.Nonnull - public List getChildren() { - return children; - } - - public void setChildren(@javax.annotation.Nonnull List children) { - this.children = children; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -295,32 +295,32 @@ public boolean equals(Object o) { return false; } Process process = (Process) o; - return Objects.equals(this.pid, process.pid) && - Objects.equals(this.procname, process.procname) && + return Objects.equals(this.args, process.args) && + Objects.equals(this.children, process.children) && Objects.equals(this.executableName, process.executableName) && - Objects.equals(this.args, process.args) && + Objects.equals(this.pid, process.pid) && + Objects.equals(this.procname, process.procname) && Objects.equals(this.tsFrom, process.tsFrom) && - Objects.equals(this.tsTo, process.tsTo) && - Objects.equals(this.children, process.children)&& + Objects.equals(this.tsTo, process.tsTo)&& Objects.equals(this.additionalProperties, process.additionalProperties); } @Override public int hashCode() { - return Objects.hash(pid, procname, executableName, args, tsFrom, tsTo, children, additionalProperties); + return Objects.hash(args, children, executableName, pid, procname, tsFrom, tsTo, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Process {\n"); + sb.append(" args: ").append(toIndentedString(args)).append("\n"); + sb.append(" children: ").append(toIndentedString(children)).append("\n"); + sb.append(" executableName: ").append(toIndentedString(executableName)).append("\n"); sb.append(" pid: ").append(toIndentedString(pid)).append("\n"); sb.append(" procname: ").append(toIndentedString(procname)).append("\n"); - sb.append(" executableName: ").append(toIndentedString(executableName)).append("\n"); - sb.append(" args: ").append(toIndentedString(args)).append("\n"); sb.append(" tsFrom: ").append(toIndentedString(tsFrom)).append("\n"); sb.append(" tsTo: ").append(toIndentedString(tsTo)).append("\n"); - sb.append(" children: ").append(toIndentedString(children)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -343,10 +343,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("pid", "procname", "executable_name", "args", "ts_from", "ts_to", "children")); + openapiFields = new HashSet(Arrays.asList("args", "children", "executable_name", "pid", "procname", "ts_from", "ts_to")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("pid", "procname", "executable_name", "args", "ts_from", "ts_to", "children")); + openapiRequiredFields = new HashSet(Arrays.asList("args", "children", "executable_name", "pid", "procname", "ts_from", "ts_to")); } /** @@ -369,12 +369,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("procname").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `procname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("procname").toString())); - } - if (!jsonObj.get("executable_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `executable_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("executable_name").toString())); - } // ensure the required json array is present if (jsonObj.get("args") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); @@ -387,6 +381,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } else if (!jsonObj.get("children").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `children` to be an array in the JSON string but got `%s`", jsonObj.get("children").toString())); } + if (!jsonObj.get("executable_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `executable_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("executable_name").toString())); + } + if (!jsonObj.get("procname").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `procname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("procname").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/ProcessDump.java b/src/main/java/ai/reveng/model/ProcessDump.java index 6098650..a098805 100644 --- a/src/main/java/ai/reveng/model/ProcessDump.java +++ b/src/main/java/ai/reveng/model/ProcessDump.java @@ -52,48 +52,29 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ProcessDump { - public static final String SERIALIZED_NAME_BASE_ADDRESS = "base_address"; - @SerializedName(SERIALIZED_NAME_BASE_ADDRESS) - @javax.annotation.Nonnull - private Integer baseAddress; - public static final String SERIALIZED_NAME_ACTUAL_FILENAME = "actual_filename"; @SerializedName(SERIALIZED_NAME_ACTUAL_FILENAME) @javax.annotation.Nonnull private String actualFilename; - public static final String SERIALIZED_NAME_FILENAME_FRIENDLY = "filename_friendly"; - @SerializedName(SERIALIZED_NAME_FILENAME_FRIENDLY) + public static final String SERIALIZED_NAME_BASE_ADDRESS = "base_address"; + @SerializedName(SERIALIZED_NAME_BASE_ADDRESS) @javax.annotation.Nonnull - private String filenameFriendly; + private Integer baseAddress; public static final String SERIALIZED_NAME_EXTENDED_METADATA = "extended_metadata"; @SerializedName(SERIALIZED_NAME_EXTENDED_METADATA) @javax.annotation.Nonnull private ProcessDumpMetadata extendedMetadata; - public ProcessDump() { - } - - public ProcessDump baseAddress(@javax.annotation.Nonnull Integer baseAddress) { - this.baseAddress = baseAddress; - return this; - } - - /** - * Get baseAddress - * @return baseAddress - */ + public static final String SERIALIZED_NAME_FILENAME_FRIENDLY = "filename_friendly"; + @SerializedName(SERIALIZED_NAME_FILENAME_FRIENDLY) @javax.annotation.Nonnull - public Integer getBaseAddress() { - return baseAddress; - } + private String filenameFriendly; - public void setBaseAddress(@javax.annotation.Nonnull Integer baseAddress) { - this.baseAddress = baseAddress; + public ProcessDump() { } - public ProcessDump actualFilename(@javax.annotation.Nonnull String actualFilename) { this.actualFilename = actualFilename; return this; @@ -113,22 +94,22 @@ public void setActualFilename(@javax.annotation.Nonnull String actualFilename) { } - public ProcessDump filenameFriendly(@javax.annotation.Nonnull String filenameFriendly) { - this.filenameFriendly = filenameFriendly; + public ProcessDump baseAddress(@javax.annotation.Nonnull Integer baseAddress) { + this.baseAddress = baseAddress; return this; } /** - * Get filenameFriendly - * @return filenameFriendly + * Get baseAddress + * @return baseAddress */ @javax.annotation.Nonnull - public String getFilenameFriendly() { - return filenameFriendly; + public Integer getBaseAddress() { + return baseAddress; } - public void setFilenameFriendly(@javax.annotation.Nonnull String filenameFriendly) { - this.filenameFriendly = filenameFriendly; + public void setBaseAddress(@javax.annotation.Nonnull Integer baseAddress) { + this.baseAddress = baseAddress; } @@ -150,6 +131,25 @@ public void setExtendedMetadata(@javax.annotation.Nonnull ProcessDumpMetadata ex this.extendedMetadata = extendedMetadata; } + + public ProcessDump filenameFriendly(@javax.annotation.Nonnull String filenameFriendly) { + this.filenameFriendly = filenameFriendly; + return this; + } + + /** + * Get filenameFriendly + * @return filenameFriendly + */ + @javax.annotation.Nonnull + public String getFilenameFriendly() { + return filenameFriendly; + } + + public void setFilenameFriendly(@javax.annotation.Nonnull String filenameFriendly) { + this.filenameFriendly = filenameFriendly; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -205,26 +205,26 @@ public boolean equals(Object o) { return false; } ProcessDump processDump = (ProcessDump) o; - return Objects.equals(this.baseAddress, processDump.baseAddress) && - Objects.equals(this.actualFilename, processDump.actualFilename) && - Objects.equals(this.filenameFriendly, processDump.filenameFriendly) && - Objects.equals(this.extendedMetadata, processDump.extendedMetadata)&& + return Objects.equals(this.actualFilename, processDump.actualFilename) && + Objects.equals(this.baseAddress, processDump.baseAddress) && + Objects.equals(this.extendedMetadata, processDump.extendedMetadata) && + Objects.equals(this.filenameFriendly, processDump.filenameFriendly)&& Objects.equals(this.additionalProperties, processDump.additionalProperties); } @Override public int hashCode() { - return Objects.hash(baseAddress, actualFilename, filenameFriendly, extendedMetadata, additionalProperties); + return Objects.hash(actualFilename, baseAddress, extendedMetadata, filenameFriendly, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProcessDump {\n"); - sb.append(" baseAddress: ").append(toIndentedString(baseAddress)).append("\n"); sb.append(" actualFilename: ").append(toIndentedString(actualFilename)).append("\n"); - sb.append(" filenameFriendly: ").append(toIndentedString(filenameFriendly)).append("\n"); + sb.append(" baseAddress: ").append(toIndentedString(baseAddress)).append("\n"); sb.append(" extendedMetadata: ").append(toIndentedString(extendedMetadata)).append("\n"); + sb.append(" filenameFriendly: ").append(toIndentedString(filenameFriendly)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -247,10 +247,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("base_address", "actual_filename", "filename_friendly", "extended_metadata")); + openapiFields = new HashSet(Arrays.asList("actual_filename", "base_address", "extended_metadata", "filename_friendly")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("base_address", "actual_filename", "filename_friendly", "extended_metadata")); + openapiRequiredFields = new HashSet(Arrays.asList("actual_filename", "base_address", "extended_metadata", "filename_friendly")); } /** @@ -276,11 +276,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("actual_filename").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `actual_filename` to be a primitive type in the JSON string but got `%s`", jsonObj.get("actual_filename").toString())); } + // validate the required field `extended_metadata` + ProcessDumpMetadata.validateJsonElement(jsonObj.get("extended_metadata")); if (!jsonObj.get("filename_friendly").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `filename_friendly` to be a primitive type in the JSON string but got `%s`", jsonObj.get("filename_friendly").toString())); } - // validate the required field `extended_metadata` - ProcessDumpMetadata.validateJsonElement(jsonObj.get("extended_metadata")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/ProcessDumpMetadata.java b/src/main/java/ai/reveng/model/ProcessDumpMetadata.java index edc979b..39ac89c 100644 --- a/src/main/java/ai/reveng/model/ProcessDumpMetadata.java +++ b/src/main/java/ai/reveng/model/ProcessDumpMetadata.java @@ -56,16 +56,16 @@ public class ProcessDumpMetadata { @javax.annotation.Nonnull private String sha256; - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nonnull - private String type; - 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 ProcessDumpMetadata() { } @@ -88,41 +88,41 @@ public void setSha256(@javax.annotation.Nonnull String sha256) { } - public ProcessDumpMetadata type(@javax.annotation.Nonnull String type) { - this.type = type; + public ProcessDumpMetadata size(@javax.annotation.Nonnull Integer size) { + this.size = size; return this; } /** - * Get type - * @return type + * Get size + * @return size */ @javax.annotation.Nonnull - public String getType() { - return type; + public Integer getSize() { + return size; } - public void setType(@javax.annotation.Nonnull String type) { - this.type = type; + public void setSize(@javax.annotation.Nonnull Integer size) { + this.size = size; } - public ProcessDumpMetadata size(@javax.annotation.Nonnull Integer size) { - this.size = size; + public ProcessDumpMetadata type(@javax.annotation.Nonnull String type) { + this.type = type; return this; } /** - * Get size - * @return size + * Get type + * @return type */ @javax.annotation.Nonnull - public Integer getSize() { - return size; + public String getType() { + return type; } - public void setSize(@javax.annotation.Nonnull Integer size) { - this.size = size; + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; } /** @@ -181,14 +181,14 @@ public boolean equals(Object o) { } ProcessDumpMetadata processDumpMetadata = (ProcessDumpMetadata) o; return Objects.equals(this.sha256, processDumpMetadata.sha256) && - Objects.equals(this.type, processDumpMetadata.type) && - Objects.equals(this.size, processDumpMetadata.size)&& + Objects.equals(this.size, processDumpMetadata.size) && + Objects.equals(this.type, processDumpMetadata.type)&& Objects.equals(this.additionalProperties, processDumpMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(sha256, type, size, additionalProperties); + return Objects.hash(sha256, size, type, additionalProperties); } @Override @@ -196,8 +196,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProcessDumpMetadata {\n"); sb.append(" sha256: ").append(toIndentedString(sha256)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).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(); @@ -220,10 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("sha256", "type", "size")); + openapiFields = new HashSet(Arrays.asList("sha256", "size", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("sha256", "type", "size")); + openapiRequiredFields = new HashSet(Arrays.asList("sha256", "size", "type")); } /** diff --git a/src/main/java/ai/reveng/model/ProcessDumps.java b/src/main/java/ai/reveng/model/ProcessDumps.java index 94403a0..8aba554 100644 --- a/src/main/java/ai/reveng/model/ProcessDumps.java +++ b/src/main/java/ai/reveng/model/ProcessDumps.java @@ -52,54 +52,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ProcessDumps { - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - @javax.annotation.Nonnull - private Boolean success; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nonnull private ProcessDumpsData data; + public static final String SERIALIZED_NAME_SUCCESS = "success"; + @SerializedName(SERIALIZED_NAME_SUCCESS) + @javax.annotation.Nonnull + private Boolean success; + public ProcessDumps() { } - public ProcessDumps success(@javax.annotation.Nonnull Boolean success) { - this.success = success; + public ProcessDumps data(@javax.annotation.Nonnull ProcessDumpsData data) { + this.data = data; return this; } /** - * Get success - * @return success + * Get data + * @return data */ @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; + public ProcessDumpsData getData() { + return data; } - public void setSuccess(@javax.annotation.Nonnull Boolean success) { - this.success = success; + public void setData(@javax.annotation.Nonnull ProcessDumpsData data) { + this.data = data; } - public ProcessDumps data(@javax.annotation.Nonnull ProcessDumpsData data) { - this.data = data; + public ProcessDumps success(@javax.annotation.Nonnull Boolean success) { + this.success = success; return this; } /** - * Get data - * @return data + * Get success + * @return success */ @javax.annotation.Nonnull - public ProcessDumpsData getData() { - return data; + public Boolean getSuccess() { + return success; } - public void setData(@javax.annotation.Nonnull ProcessDumpsData data) { - this.data = data; + public void setSuccess(@javax.annotation.Nonnull Boolean success) { + this.success = success; } /** @@ -157,22 +157,22 @@ public boolean equals(Object o) { return false; } ProcessDumps processDumps = (ProcessDumps) o; - return Objects.equals(this.success, processDumps.success) && - Objects.equals(this.data, processDumps.data)&& + return Objects.equals(this.data, processDumps.data) && + Objects.equals(this.success, processDumps.success)&& Objects.equals(this.additionalProperties, processDumps.additionalProperties); } @Override public int hashCode() { - return Objects.hash(success, data, additionalProperties); + return Objects.hash(data, success, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProcessDumps {\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -195,10 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("success", "data")); + openapiFields = new HashSet(Arrays.asList("data", "success")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("success", "data")); + openapiRequiredFields = new HashSet(Arrays.asList("data", "success")); } /** diff --git a/src/main/java/ai/reveng/model/ProcessRegistry.java b/src/main/java/ai/reveng/model/ProcessRegistry.java index e9c5c3f..64a1fba 100644 --- a/src/main/java/ai/reveng/model/ProcessRegistry.java +++ b/src/main/java/ai/reveng/model/ProcessRegistry.java @@ -55,38 +55,19 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ProcessRegistry { - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - @javax.annotation.Nonnull - private Boolean success; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nonnull private Map> data = new HashMap<>(); - public ProcessRegistry() { - } - - public ProcessRegistry success(@javax.annotation.Nonnull Boolean success) { - this.success = success; - return this; - } - - /** - * Get success - * @return success - */ + public static final String SERIALIZED_NAME_SUCCESS = "success"; + @SerializedName(SERIALIZED_NAME_SUCCESS) @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } + private Boolean success; - public void setSuccess(@javax.annotation.Nonnull Boolean success) { - this.success = success; + public ProcessRegistry() { } - public ProcessRegistry data(@javax.annotation.Nonnull Map> data) { this.data = data; return this; @@ -113,6 +94,25 @@ public void setData(@javax.annotation.Nonnull Map> data) this.data = data; } + + public ProcessRegistry success(@javax.annotation.Nonnull Boolean success) { + this.success = success; + return this; + } + + /** + * Get success + * @return success + */ + @javax.annotation.Nonnull + public Boolean getSuccess() { + return success; + } + + public void setSuccess(@javax.annotation.Nonnull Boolean success) { + this.success = success; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -168,22 +168,22 @@ public boolean equals(Object o) { return false; } ProcessRegistry processRegistry = (ProcessRegistry) o; - return Objects.equals(this.success, processRegistry.success) && - Objects.equals(this.data, processRegistry.data)&& + return Objects.equals(this.data, processRegistry.data) && + Objects.equals(this.success, processRegistry.success)&& Objects.equals(this.additionalProperties, processRegistry.additionalProperties); } @Override public int hashCode() { - return Objects.hash(success, data, additionalProperties); + return Objects.hash(data, success, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProcessRegistry {\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -206,10 +206,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("success", "data")); + openapiFields = new HashSet(Arrays.asList("data", "success")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("success", "data")); + openapiRequiredFields = new HashSet(Arrays.asList("data", "success")); } /** diff --git a/src/main/java/ai/reveng/model/ProcessTree.java b/src/main/java/ai/reveng/model/ProcessTree.java index 0d00fdf..4ebf303 100644 --- a/src/main/java/ai/reveng/model/ProcessTree.java +++ b/src/main/java/ai/reveng/model/ProcessTree.java @@ -54,38 +54,19 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ProcessTree { - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - @javax.annotation.Nonnull - private Boolean success; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nonnull private List data = new ArrayList<>(); - public ProcessTree() { - } - - public ProcessTree success(@javax.annotation.Nonnull Boolean success) { - this.success = success; - return this; - } - - /** - * Get success - * @return success - */ + public static final String SERIALIZED_NAME_SUCCESS = "success"; + @SerializedName(SERIALIZED_NAME_SUCCESS) @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } + private Boolean success; - public void setSuccess(@javax.annotation.Nonnull Boolean success) { - this.success = success; + public ProcessTree() { } - public ProcessTree data(@javax.annotation.Nonnull List data) { this.data = data; return this; @@ -112,6 +93,25 @@ public void setData(@javax.annotation.Nonnull List data) { this.data = data; } + + public ProcessTree success(@javax.annotation.Nonnull Boolean success) { + this.success = success; + return this; + } + + /** + * Get success + * @return success + */ + @javax.annotation.Nonnull + public Boolean getSuccess() { + return success; + } + + public void setSuccess(@javax.annotation.Nonnull Boolean success) { + this.success = success; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -167,22 +167,22 @@ public boolean equals(Object o) { return false; } ProcessTree processTree = (ProcessTree) o; - return Objects.equals(this.success, processTree.success) && - Objects.equals(this.data, processTree.data)&& + return Objects.equals(this.data, processTree.data) && + Objects.equals(this.success, processTree.success)&& Objects.equals(this.additionalProperties, processTree.additionalProperties); } @Override public int hashCode() { - return Objects.hash(success, data, additionalProperties); + return Objects.hash(data, success, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProcessTree {\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -205,10 +205,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("success", "data")); + openapiFields = new HashSet(Arrays.asList("data", "success")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("success", "data")); + openapiRequiredFields = new HashSet(Arrays.asList("data", "success")); } /** diff --git a/src/main/java/ai/reveng/model/PutAnalysisStringsRequest.java b/src/main/java/ai/reveng/model/PutAnalysisStringsRequest.java new file mode 100644 index 0000000..89d21b3 --- /dev/null +++ b/src/main/java/ai/reveng/model/PutAnalysisStringsRequest.java @@ -0,0 +1,312 @@ +/* + * 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.AnalysisStringInput; +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.ArrayList; +import java.util.Arrays; +import java.util.List; + +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; + +/** + * PutAnalysisStringsRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PutAnalysisStringsRequest { + public static final String SERIALIZED_NAME_STRINGS = "strings"; + @SerializedName(SERIALIZED_NAME_STRINGS) + @javax.annotation.Nonnull + private List strings = new ArrayList<>(); + + public PutAnalysisStringsRequest() { + } + + public PutAnalysisStringsRequest strings(@javax.annotation.Nonnull List strings) { + this.strings = strings; + return this; + } + + public PutAnalysisStringsRequest addStringsItem(AnalysisStringInput stringsItem) { + if (this.strings == null) { + this.strings = new ArrayList<>(); + } + this.strings.add(stringsItem); + return this; + } + + /** + * The strings to add to the analysis + * @return strings + */ + @javax.annotation.Nonnull + public List getStrings() { + return strings; + } + + public void setStrings(@javax.annotation.Nonnull List strings) { + this.strings = strings; + } + + /** + * 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 PutAnalysisStringsRequest instance itself + */ + public PutAnalysisStringsRequest 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; + } + PutAnalysisStringsRequest putAnalysisStringsRequest = (PutAnalysisStringsRequest) o; + return Objects.equals(this.strings, putAnalysisStringsRequest.strings)&& + Objects.equals(this.additionalProperties, putAnalysisStringsRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(strings, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PutAnalysisStringsRequest {\n"); + sb.append(" strings: ").append(toIndentedString(strings)).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("strings")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("strings")); + } + + /** + * 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 PutAnalysisStringsRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!PutAnalysisStringsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PutAnalysisStringsRequest is not found in the empty JSON string", PutAnalysisStringsRequest.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PutAnalysisStringsRequest.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(); + // ensure the json data is an array + if (!jsonObj.get("strings").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `strings` to be an array in the JSON string but got `%s`", jsonObj.get("strings").toString())); + } + + JsonArray jsonArraystrings = jsonObj.getAsJsonArray("strings"); + // validate the required field `strings` (array) + for (int i = 0; i < jsonArraystrings.size(); i++) { + AnalysisStringInput.validateJsonElement(jsonArraystrings.get(i)); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PutAnalysisStringsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PutAnalysisStringsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PutAnalysisStringsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PutAnalysisStringsRequest 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 PutAnalysisStringsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + PutAnalysisStringsRequest 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 PutAnalysisStringsRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of PutAnalysisStringsRequest + * @throws IOException if the JSON string is invalid with respect to PutAnalysisStringsRequest + */ + public static PutAnalysisStringsRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PutAnalysisStringsRequest.class); + } + + /** + * Convert an instance of PutAnalysisStringsRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/ai/reveng/model/ReAnalysisForm.java b/src/main/java/ai/reveng/model/ReAnalysisForm.java index 1d0b6bc..28893e5 100644 --- a/src/main/java/ai/reveng/model/ReAnalysisForm.java +++ b/src/main/java/ai/reveng/model/ReAnalysisForm.java @@ -54,22 +54,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ReAnalysisForm { - 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_COMMAND_LINE_ARGS = "command_line_args"; @SerializedName(SERIALIZED_NAME_COMMAND_LINE_ARGS) @javax.annotation.Nullable private String commandLineArgs = ""; - public static final String SERIALIZED_NAME_PRIORITY = "priority"; - @Deprecated - @SerializedName(SERIALIZED_NAME_PRIORITY) - @javax.annotation.Nullable - private Integer priority = 0; - public static final String SERIALIZED_NAME_ESSENTIAL = "essential"; @SerializedName(SERIALIZED_NAME_ESSENTIAL) @javax.annotation.Nullable @@ -85,36 +74,20 @@ public class ReAnalysisForm { @javax.annotation.Nullable private Boolean noCache = false; - public ReAnalysisForm() { - } - - public ReAnalysisForm tags(@javax.annotation.Nullable List tags) { - this.tags = tags; - return this; - } - - public ReAnalysisForm addTagsItem(String tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } - this.tags.add(tagsItem); - return this; - } + public static final String SERIALIZED_NAME_PRIORITY = "priority"; + @Deprecated + @SerializedName(SERIALIZED_NAME_PRIORITY) + @javax.annotation.Nullable + private Integer priority = 0; - /** - * Tags associated with the analysis - * @return tags - */ + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) @javax.annotation.Nullable - public List getTags() { - return tags; - } + private List tags = new ArrayList<>(); - public void setTags(@javax.annotation.Nullable List tags) { - this.tags = tags; + public ReAnalysisForm() { } - public ReAnalysisForm commandLineArgs(@javax.annotation.Nullable String commandLineArgs) { this.commandLineArgs = commandLineArgs; return this; @@ -134,29 +107,6 @@ public void setCommandLineArgs(@javax.annotation.Nullable String commandLineArgs } - @Deprecated - public ReAnalysisForm priority(@javax.annotation.Nullable Integer priority) { - this.priority = priority; - return this; - } - - /** - * Priority of the analysis - * @return priority - * @deprecated - */ - @Deprecated - @javax.annotation.Nullable - public Integer getPriority() { - return priority; - } - - @Deprecated - public void setPriority(@javax.annotation.Nullable Integer priority) { - this.priority = priority; - } - - public ReAnalysisForm essential(@javax.annotation.Nullable Boolean essential) { this.essential = essential; return this; @@ -213,6 +163,56 @@ public void setNoCache(@javax.annotation.Nullable Boolean noCache) { this.noCache = noCache; } + + @Deprecated + public ReAnalysisForm priority(@javax.annotation.Nullable Integer priority) { + this.priority = priority; + return this; + } + + /** + * Priority of the analysis + * @return priority + * @deprecated + */ + @Deprecated + @javax.annotation.Nullable + public Integer getPriority() { + return priority; + } + + @Deprecated + public void setPriority(@javax.annotation.Nullable Integer priority) { + this.priority = priority; + } + + + public ReAnalysisForm tags(@javax.annotation.Nullable List tags) { + this.tags = tags; + return this; + } + + public ReAnalysisForm addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * Tags associated with the analysis + * @return tags + */ + @javax.annotation.Nullable + public List getTags() { + return tags; + } + + public void setTags(@javax.annotation.Nullable List tags) { + this.tags = tags; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -268,12 +268,12 @@ public boolean equals(Object o) { return false; } ReAnalysisForm reAnalysisForm = (ReAnalysisForm) o; - return Objects.equals(this.tags, reAnalysisForm.tags) && - Objects.equals(this.commandLineArgs, reAnalysisForm.commandLineArgs) && - Objects.equals(this.priority, reAnalysisForm.priority) && + return Objects.equals(this.commandLineArgs, reAnalysisForm.commandLineArgs) && Objects.equals(this.essential, reAnalysisForm.essential) && Objects.equals(this.modelName, reAnalysisForm.modelName) && - Objects.equals(this.noCache, reAnalysisForm.noCache)&& + Objects.equals(this.noCache, reAnalysisForm.noCache) && + Objects.equals(this.priority, reAnalysisForm.priority) && + Objects.equals(this.tags, reAnalysisForm.tags)&& Objects.equals(this.additionalProperties, reAnalysisForm.additionalProperties); } @@ -283,7 +283,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(tags, commandLineArgs, priority, essential, modelName, noCache, additionalProperties); + return Objects.hash(commandLineArgs, essential, modelName, noCache, priority, tags, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -297,12 +297,12 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ReAnalysisForm {\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" commandLineArgs: ").append(toIndentedString(commandLineArgs)).append("\n"); - sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); sb.append(" essential: ").append(toIndentedString(essential)).append("\n"); sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -325,7 +325,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("tags", "command_line_args", "priority", "essential", "model_name", "no_cache")); + openapiFields = new HashSet(Arrays.asList("command_line_args", "essential", "model_name", "no_cache", "priority", "tags")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -344,16 +344,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !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())); - } if ((jsonObj.get("command_line_args") != null && !jsonObj.get("command_line_args").isJsonNull()) && !jsonObj.get("command_line_args").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `command_line_args` to be a primitive type in the JSON string but got `%s`", jsonObj.get("command_line_args").toString())); } if ((jsonObj.get("model_name") != null && !jsonObj.get("model_name").isJsonNull()) && !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())); } + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !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/Registry.java b/src/main/java/ai/reveng/model/Registry.java index 9b18552..f061ae6 100644 --- a/src/main/java/ai/reveng/model/Registry.java +++ b/src/main/java/ai/reveng/model/Registry.java @@ -51,48 +51,29 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Registry { - public static final String SERIALIZED_NAME_METHOD = "method"; - @SerializedName(SERIALIZED_NAME_METHOD) - @javax.annotation.Nonnull - private String method; - public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @javax.annotation.Nonnull private String key; - public static final String SERIALIZED_NAME_VALUE_NAME = "value_name"; - @SerializedName(SERIALIZED_NAME_VALUE_NAME) - @javax.annotation.Nullable - private String valueName; + public static final String SERIALIZED_NAME_METHOD = "method"; + @SerializedName(SERIALIZED_NAME_METHOD) + @javax.annotation.Nonnull + private String method; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @javax.annotation.Nullable private String value; - public Registry() { - } - - public Registry method(@javax.annotation.Nonnull String method) { - this.method = method; - return this; - } - - /** - * Get method - * @return method - */ - @javax.annotation.Nonnull - public String getMethod() { - return method; - } + public static final String SERIALIZED_NAME_VALUE_NAME = "value_name"; + @SerializedName(SERIALIZED_NAME_VALUE_NAME) + @javax.annotation.Nullable + private String valueName; - public void setMethod(@javax.annotation.Nonnull String method) { - this.method = method; + public Registry() { } - public Registry key(@javax.annotation.Nonnull String key) { this.key = key; return this; @@ -112,22 +93,22 @@ public void setKey(@javax.annotation.Nonnull String key) { } - public Registry valueName(@javax.annotation.Nullable String valueName) { - this.valueName = valueName; + public Registry method(@javax.annotation.Nonnull String method) { + this.method = method; return this; } /** - * Get valueName - * @return valueName + * Get method + * @return method */ - @javax.annotation.Nullable - public String getValueName() { - return valueName; + @javax.annotation.Nonnull + public String getMethod() { + return method; } - public void setValueName(@javax.annotation.Nullable String valueName) { - this.valueName = valueName; + public void setMethod(@javax.annotation.Nonnull String method) { + this.method = method; } @@ -149,6 +130,25 @@ public void setValue(@javax.annotation.Nullable String value) { this.value = value; } + + public Registry valueName(@javax.annotation.Nullable String valueName) { + this.valueName = valueName; + return this; + } + + /** + * Get valueName + * @return valueName + */ + @javax.annotation.Nullable + public String getValueName() { + return valueName; + } + + public void setValueName(@javax.annotation.Nullable String valueName) { + this.valueName = valueName; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -204,26 +204,26 @@ public boolean equals(Object o) { return false; } Registry registry = (Registry) o; - return Objects.equals(this.method, registry.method) && - Objects.equals(this.key, registry.key) && - Objects.equals(this.valueName, registry.valueName) && - Objects.equals(this.value, registry.value)&& + return Objects.equals(this.key, registry.key) && + Objects.equals(this.method, registry.method) && + Objects.equals(this.value, registry.value) && + Objects.equals(this.valueName, registry.valueName)&& Objects.equals(this.additionalProperties, registry.additionalProperties); } @Override public int hashCode() { - return Objects.hash(method, key, valueName, value, additionalProperties); + return Objects.hash(key, method, value, valueName, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Registry {\n"); - sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); - sb.append(" valueName: ").append(toIndentedString(valueName)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" valueName: ").append(toIndentedString(valueName)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -246,10 +246,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("method", "key", "value_name", "value")); + openapiFields = new HashSet(Arrays.asList("key", "method", "value", "value_name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("method", "key", "value_name", "value")); + openapiRequiredFields = new HashSet(Arrays.asList("key", "method", "value", "value_name")); } /** @@ -272,18 +272,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("method").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `method` to be a primitive type in the JSON string but got `%s`", jsonObj.get("method").toString())); - } if (!jsonObj.get("key").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - if ((jsonObj.get("value_name") != null && !jsonObj.get("value_name").isJsonNull()) && !jsonObj.get("value_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value_name").toString())); + if (!jsonObj.get("method").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `method` to be a primitive type in the JSON string but got `%s`", jsonObj.get("method").toString())); } if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !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())); } + if ((jsonObj.get("value_name") != null && !jsonObj.get("value_name").isJsonNull()) && !jsonObj.get("value_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value_name").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/RelativeBinaryResponse.java b/src/main/java/ai/reveng/model/RelativeBinaryResponse.java index 2d1c7d3..a43e8e6 100644 --- a/src/main/java/ai/reveng/model/RelativeBinaryResponse.java +++ b/src/main/java/ai/reveng/model/RelativeBinaryResponse.java @@ -52,16 +52,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class RelativeBinaryResponse { - 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_ANALYSIS_ID = "analysis_id"; @SerializedName(SERIALIZED_NAME_ANALYSIS_ID) @javax.annotation.Nullable private Integer analysisId; + 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_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull @@ -75,41 +75,41 @@ public class RelativeBinaryResponse { public RelativeBinaryResponse() { } - public RelativeBinaryResponse binaryId(@javax.annotation.Nonnull Integer binaryId) { - this.binaryId = binaryId; + public RelativeBinaryResponse analysisId(@javax.annotation.Nullable Integer analysisId) { + this.analysisId = analysisId; return this; } /** - * ID of the relative binary - * @return binaryId + * Get analysisId + * @return analysisId */ - @javax.annotation.Nonnull - public Integer getBinaryId() { - return binaryId; + @javax.annotation.Nullable + public Integer getAnalysisId() { + return analysisId; } - public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) { - this.binaryId = binaryId; + public void setAnalysisId(@javax.annotation.Nullable Integer analysisId) { + this.analysisId = analysisId; } - public RelativeBinaryResponse analysisId(@javax.annotation.Nullable Integer analysisId) { - this.analysisId = analysisId; + public RelativeBinaryResponse binaryId(@javax.annotation.Nonnull Integer binaryId) { + this.binaryId = binaryId; return this; } /** - * Get analysisId - * @return analysisId + * ID of the relative binary + * @return binaryId */ - @javax.annotation.Nullable - public Integer getAnalysisId() { - return analysisId; + @javax.annotation.Nonnull + public Integer getBinaryId() { + return binaryId; } - public void setAnalysisId(@javax.annotation.Nullable Integer analysisId) { - this.analysisId = analysisId; + public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) { + this.binaryId = binaryId; } @@ -205,8 +205,8 @@ public boolean equals(Object o) { return false; } RelativeBinaryResponse relativeBinaryResponse = (RelativeBinaryResponse) o; - return Objects.equals(this.binaryId, relativeBinaryResponse.binaryId) && - Objects.equals(this.analysisId, relativeBinaryResponse.analysisId) && + return Objects.equals(this.analysisId, relativeBinaryResponse.analysisId) && + Objects.equals(this.binaryId, relativeBinaryResponse.binaryId) && Objects.equals(this.name, relativeBinaryResponse.name) && Objects.equals(this.sha256, relativeBinaryResponse.sha256)&& Objects.equals(this.additionalProperties, relativeBinaryResponse.additionalProperties); @@ -218,7 +218,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(binaryId, analysisId, name, sha256, additionalProperties); + return Objects.hash(analysisId, binaryId, name, sha256, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -232,8 +232,8 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelativeBinaryResponse {\n"); - sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n"); sb.append(" analysisId: ").append(toIndentedString(analysisId)).append("\n"); + sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" sha256: ").append(toIndentedString(sha256)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -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_id", "analysis_id", "name", "sha256")); + openapiFields = new HashSet(Arrays.asList("analysis_id", "binary_id", "name", "sha256")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("binary_id", "name", "sha256")); diff --git a/src/main/java/ai/reveng/model/SBOM.java b/src/main/java/ai/reveng/model/SBOM.java index 34432e0..611e874 100644 --- a/src/main/java/ai/reveng/model/SBOM.java +++ b/src/main/java/ai/reveng/model/SBOM.java @@ -54,70 +54,70 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SBOM { - public static final String SERIALIZED_NAME_PACKAGES = "packages"; - @SerializedName(SERIALIZED_NAME_PACKAGES) - @javax.annotation.Nonnull - private List packages = new ArrayList<>(); - public static final String SERIALIZED_NAME_IMPORTED_LIBS = "imported_libs"; @SerializedName(SERIALIZED_NAME_IMPORTED_LIBS) @javax.annotation.Nonnull private List importedLibs = new ArrayList<>(); + public static final String SERIALIZED_NAME_PACKAGES = "packages"; + @SerializedName(SERIALIZED_NAME_PACKAGES) + @javax.annotation.Nonnull + private List packages = new ArrayList<>(); + public SBOM() { } - public SBOM packages(@javax.annotation.Nonnull List packages) { - this.packages = packages; + public SBOM importedLibs(@javax.annotation.Nonnull List importedLibs) { + this.importedLibs = importedLibs; return this; } - public SBOM addPackagesItem(SBOMPackage packagesItem) { - if (this.packages == null) { - this.packages = new ArrayList<>(); + public SBOM addImportedLibsItem(String importedLibsItem) { + if (this.importedLibs == null) { + this.importedLibs = new ArrayList<>(); } - this.packages.add(packagesItem); + this.importedLibs.add(importedLibsItem); return this; } /** - * The packages found - * @return packages + * The import libraries found + * @return importedLibs */ @javax.annotation.Nonnull - public List getPackages() { - return packages; + public List getImportedLibs() { + return importedLibs; } - public void setPackages(@javax.annotation.Nonnull List packages) { - this.packages = packages; + public void setImportedLibs(@javax.annotation.Nonnull List importedLibs) { + this.importedLibs = importedLibs; } - public SBOM importedLibs(@javax.annotation.Nonnull List importedLibs) { - this.importedLibs = importedLibs; + public SBOM packages(@javax.annotation.Nonnull List packages) { + this.packages = packages; return this; } - public SBOM addImportedLibsItem(String importedLibsItem) { - if (this.importedLibs == null) { - this.importedLibs = new ArrayList<>(); + public SBOM addPackagesItem(SBOMPackage packagesItem) { + if (this.packages == null) { + this.packages = new ArrayList<>(); } - this.importedLibs.add(importedLibsItem); + this.packages.add(packagesItem); return this; } /** - * The import libraries found - * @return importedLibs + * The packages found + * @return packages */ @javax.annotation.Nonnull - public List getImportedLibs() { - return importedLibs; + public List getPackages() { + return packages; } - public void setImportedLibs(@javax.annotation.Nonnull List importedLibs) { - this.importedLibs = importedLibs; + public void setPackages(@javax.annotation.Nonnull List packages) { + this.packages = packages; } /** @@ -175,22 +175,22 @@ public boolean equals(Object o) { return false; } SBOM SBOM = (SBOM) o; - return Objects.equals(this.packages, SBOM.packages) && - Objects.equals(this.importedLibs, SBOM.importedLibs)&& + return Objects.equals(this.importedLibs, SBOM.importedLibs) && + Objects.equals(this.packages, SBOM.packages)&& Objects.equals(this.additionalProperties, SBOM.additionalProperties); } @Override public int hashCode() { - return Objects.hash(packages, importedLibs, additionalProperties); + return Objects.hash(importedLibs, packages, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SBOM {\n"); - sb.append(" packages: ").append(toIndentedString(packages)).append("\n"); sb.append(" importedLibs: ").append(toIndentedString(importedLibs)).append("\n"); + sb.append(" packages: ").append(toIndentedString(packages)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -213,10 +213,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("packages", "imported_libs")); + openapiFields = new HashSet(Arrays.asList("imported_libs", "packages")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("packages", "imported_libs")); + openapiRequiredFields = new HashSet(Arrays.asList("imported_libs", "packages")); } /** @@ -239,6 +239,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the required json array is present + if (jsonObj.get("imported_libs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("imported_libs").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `imported_libs` to be an array in the JSON string but got `%s`", jsonObj.get("imported_libs").toString())); + } // ensure the json data is an array if (!jsonObj.get("packages").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `packages` to be an array in the JSON string but got `%s`", jsonObj.get("packages").toString())); @@ -249,12 +255,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArraypackages.size(); i++) { SBOMPackage.validateJsonElement(jsonArraypackages.get(i)); }; - // ensure the required json array is present - if (jsonObj.get("imported_libs") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("imported_libs").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `imported_libs` to be an array in the JSON string but got `%s`", jsonObj.get("imported_libs").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/SandboxOptions.java b/src/main/java/ai/reveng/model/SandboxOptions.java index bd54100..abece33 100644 --- a/src/main/java/ai/reveng/model/SandboxOptions.java +++ b/src/main/java/ai/reveng/model/SandboxOptions.java @@ -51,54 +51,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SandboxOptions { - public static final String SERIALIZED_NAME_ENABLED = "enabled"; - @SerializedName(SERIALIZED_NAME_ENABLED) - @javax.annotation.Nullable - private Boolean enabled = false; - public static final String SERIALIZED_NAME_COMMAND_LINE_ARGS = "command_line_args"; @SerializedName(SERIALIZED_NAME_COMMAND_LINE_ARGS) @javax.annotation.Nullable private String commandLineArgs = ""; + public static final String SERIALIZED_NAME_ENABLED = "enabled"; + @SerializedName(SERIALIZED_NAME_ENABLED) + @javax.annotation.Nullable + private Boolean enabled = false; + public SandboxOptions() { } - public SandboxOptions enabled(@javax.annotation.Nullable Boolean enabled) { - this.enabled = enabled; + public SandboxOptions commandLineArgs(@javax.annotation.Nullable String commandLineArgs) { + this.commandLineArgs = commandLineArgs; return this; } /** - * Get enabled - * @return enabled + * The command line parameters to pass to the dynamic execution sandbox. Requires `sandbox` to be True. + * @return commandLineArgs */ @javax.annotation.Nullable - public Boolean getEnabled() { - return enabled; + public String getCommandLineArgs() { + return commandLineArgs; } - public void setEnabled(@javax.annotation.Nullable Boolean enabled) { - this.enabled = enabled; + public void setCommandLineArgs(@javax.annotation.Nullable String commandLineArgs) { + this.commandLineArgs = commandLineArgs; } - public SandboxOptions commandLineArgs(@javax.annotation.Nullable String commandLineArgs) { - this.commandLineArgs = commandLineArgs; + public SandboxOptions enabled(@javax.annotation.Nullable Boolean enabled) { + this.enabled = enabled; return this; } /** - * The command line parameters to pass to the dynamic execution sandbox. Requires `sandbox` to be True. - * @return commandLineArgs + * Get enabled + * @return enabled */ @javax.annotation.Nullable - public String getCommandLineArgs() { - return commandLineArgs; + public Boolean getEnabled() { + return enabled; } - public void setCommandLineArgs(@javax.annotation.Nullable String commandLineArgs) { - this.commandLineArgs = commandLineArgs; + public void setEnabled(@javax.annotation.Nullable Boolean enabled) { + this.enabled = enabled; } /** @@ -156,22 +156,22 @@ public boolean equals(Object o) { return false; } SandboxOptions sandboxOptions = (SandboxOptions) o; - return Objects.equals(this.enabled, sandboxOptions.enabled) && - Objects.equals(this.commandLineArgs, sandboxOptions.commandLineArgs)&& + return Objects.equals(this.commandLineArgs, sandboxOptions.commandLineArgs) && + Objects.equals(this.enabled, sandboxOptions.enabled)&& Objects.equals(this.additionalProperties, sandboxOptions.additionalProperties); } @Override public int hashCode() { - return Objects.hash(enabled, commandLineArgs, additionalProperties); + return Objects.hash(commandLineArgs, enabled, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SandboxOptions {\n"); - sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); sb.append(" commandLineArgs: ").append(toIndentedString(commandLineArgs)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -194,7 +194,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("enabled", "command_line_args")); + openapiFields = new HashSet(Arrays.asList("command_line_args", "enabled")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); diff --git a/src/main/java/ai/reveng/model/SecurityChecksResponse.java b/src/main/java/ai/reveng/model/SecurityChecksResponse.java index 7cc5a4a..56ad066 100644 --- a/src/main/java/ai/reveng/model/SecurityChecksResponse.java +++ b/src/main/java/ai/reveng/model/SecurityChecksResponse.java @@ -59,16 +59,16 @@ public class SecurityChecksResponse { @javax.annotation.Nonnull private Integer binaryId; - public static final String SERIALIZED_NAME_TOTAL_RESULTS = "total_results"; - @SerializedName(SERIALIZED_NAME_TOTAL_RESULTS) - @javax.annotation.Nonnull - private Integer totalResults; - public static final String SERIALIZED_NAME_RESULTS = "results"; @SerializedName(SERIALIZED_NAME_RESULTS) @javax.annotation.Nonnull private List results = new ArrayList<>(); + public static final String SERIALIZED_NAME_TOTAL_RESULTS = "total_results"; + @SerializedName(SERIALIZED_NAME_TOTAL_RESULTS) + @javax.annotation.Nonnull + private Integer totalResults; + public SecurityChecksResponse() { } @@ -91,25 +91,6 @@ public void setBinaryId(@javax.annotation.Nonnull Integer binaryId) { } - public SecurityChecksResponse totalResults(@javax.annotation.Nonnull Integer totalResults) { - this.totalResults = totalResults; - return this; - } - - /** - * Get totalResults - * @return totalResults - */ - @javax.annotation.Nonnull - public Integer getTotalResults() { - return totalResults; - } - - public void setTotalResults(@javax.annotation.Nonnull Integer totalResults) { - this.totalResults = totalResults; - } - - public SecurityChecksResponse results(@javax.annotation.Nonnull List results) { this.results = results; return this; @@ -136,6 +117,25 @@ public void setResults(@javax.annotation.Nonnull List resu this.results = results; } + + public SecurityChecksResponse totalResults(@javax.annotation.Nonnull Integer totalResults) { + this.totalResults = totalResults; + return this; + } + + /** + * Get totalResults + * @return totalResults + */ + @javax.annotation.Nonnull + public Integer getTotalResults() { + return totalResults; + } + + public void setTotalResults(@javax.annotation.Nonnull Integer totalResults) { + this.totalResults = totalResults; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -192,14 +192,14 @@ public boolean equals(Object o) { } SecurityChecksResponse securityChecksResponse = (SecurityChecksResponse) o; return Objects.equals(this.binaryId, securityChecksResponse.binaryId) && - Objects.equals(this.totalResults, securityChecksResponse.totalResults) && - Objects.equals(this.results, securityChecksResponse.results)&& + Objects.equals(this.results, securityChecksResponse.results) && + Objects.equals(this.totalResults, securityChecksResponse.totalResults)&& Objects.equals(this.additionalProperties, securityChecksResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(binaryId, totalResults, results, additionalProperties); + return Objects.hash(binaryId, results, totalResults, additionalProperties); } @Override @@ -207,8 +207,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityChecksResponse {\n"); sb.append(" binaryId: ").append(toIndentedString(binaryId)).append("\n"); - sb.append(" totalResults: ").append(toIndentedString(totalResults)).append("\n"); sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append(" totalResults: ").append(toIndentedString(totalResults)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -231,10 +231,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("binary_id", "total_results", "results")); + openapiFields = new HashSet(Arrays.asList("binary_id", "results", "total_results")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("binary_id", "total_results", "results")); + openapiRequiredFields = new HashSet(Arrays.asList("binary_id", "results", "total_results")); } /** diff --git a/src/main/java/ai/reveng/model/SecurityChecksResult.java b/src/main/java/ai/reveng/model/SecurityChecksResult.java index 6f30a12..26dae3f 100644 --- a/src/main/java/ai/reveng/model/SecurityChecksResult.java +++ b/src/main/java/ai/reveng/model/SecurityChecksResult.java @@ -54,6 +54,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SecurityChecksResult { + public static final String SERIALIZED_NAME_CONFIDENCE = "confidence"; + @SerializedName(SERIALIZED_NAME_CONFIDENCE) + @javax.annotation.Nonnull + private ConfidenceType confidence; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nonnull + private String description; + public static final String SERIALIZED_NAME_FUNCTION_ID = "function_id"; @SerializedName(SERIALIZED_NAME_FUNCTION_ID) @javax.annotation.Nonnull @@ -69,34 +79,62 @@ public class SecurityChecksResult { @javax.annotation.Nonnull private String name; - public static final String SERIALIZED_NAME_VULN_CLASS = "vuln_class"; - @SerializedName(SERIALIZED_NAME_VULN_CLASS) - @javax.annotation.Nonnull - private VulnerabilityType vulnClass; - - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - @javax.annotation.Nonnull - private String description; - public static final String SERIALIZED_NAME_REMEDIATION = "remediation"; @SerializedName(SERIALIZED_NAME_REMEDIATION) @javax.annotation.Nonnull private String remediation; - public static final String SERIALIZED_NAME_CONFIDENCE = "confidence"; - @SerializedName(SERIALIZED_NAME_CONFIDENCE) - @javax.annotation.Nonnull - private ConfidenceType confidence; - public static final String SERIALIZED_NAME_SEVERITY = "severity"; @SerializedName(SERIALIZED_NAME_SEVERITY) @javax.annotation.Nonnull private SeverityType severity; + public static final String SERIALIZED_NAME_VULN_CLASS = "vuln_class"; + @SerializedName(SERIALIZED_NAME_VULN_CLASS) + @javax.annotation.Nonnull + private VulnerabilityType vulnClass; + public SecurityChecksResult() { } + public SecurityChecksResult confidence(@javax.annotation.Nonnull ConfidenceType confidence) { + this.confidence = confidence; + return this; + } + + /** + * Get confidence + * @return confidence + */ + @javax.annotation.Nonnull + public ConfidenceType getConfidence() { + return confidence; + } + + public void setConfidence(@javax.annotation.Nonnull ConfidenceType confidence) { + this.confidence = confidence; + } + + + public SecurityChecksResult description(@javax.annotation.Nonnull String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + */ + @javax.annotation.Nonnull + public String getDescription() { + return description; + } + + public void setDescription(@javax.annotation.Nonnull String description) { + this.description = description; + } + + public SecurityChecksResult functionId(@javax.annotation.Nonnull Long functionId) { this.functionId = functionId; return this; @@ -154,44 +192,6 @@ public void setName(@javax.annotation.Nonnull String name) { } - public SecurityChecksResult vulnClass(@javax.annotation.Nonnull VulnerabilityType vulnClass) { - this.vulnClass = vulnClass; - return this; - } - - /** - * Get vulnClass - * @return vulnClass - */ - @javax.annotation.Nonnull - public VulnerabilityType getVulnClass() { - return vulnClass; - } - - public void setVulnClass(@javax.annotation.Nonnull VulnerabilityType vulnClass) { - this.vulnClass = vulnClass; - } - - - public SecurityChecksResult description(@javax.annotation.Nonnull String description) { - this.description = description; - return this; - } - - /** - * Get description - * @return description - */ - @javax.annotation.Nonnull - public String getDescription() { - return description; - } - - public void setDescription(@javax.annotation.Nonnull String description) { - this.description = description; - } - - public SecurityChecksResult remediation(@javax.annotation.Nonnull String remediation) { this.remediation = remediation; return this; @@ -211,41 +211,41 @@ public void setRemediation(@javax.annotation.Nonnull String remediation) { } - public SecurityChecksResult confidence(@javax.annotation.Nonnull ConfidenceType confidence) { - this.confidence = confidence; + public SecurityChecksResult severity(@javax.annotation.Nonnull SeverityType severity) { + this.severity = severity; return this; } /** - * Get confidence - * @return confidence + * Get severity + * @return severity */ @javax.annotation.Nonnull - public ConfidenceType getConfidence() { - return confidence; + public SeverityType getSeverity() { + return severity; } - public void setConfidence(@javax.annotation.Nonnull ConfidenceType confidence) { - this.confidence = confidence; + public void setSeverity(@javax.annotation.Nonnull SeverityType severity) { + this.severity = severity; } - public SecurityChecksResult severity(@javax.annotation.Nonnull SeverityType severity) { - this.severity = severity; + public SecurityChecksResult vulnClass(@javax.annotation.Nonnull VulnerabilityType vulnClass) { + this.vulnClass = vulnClass; return this; } /** - * Get severity - * @return severity + * Get vulnClass + * @return vulnClass */ @javax.annotation.Nonnull - public SeverityType getSeverity() { - return severity; + public VulnerabilityType getVulnClass() { + return vulnClass; } - public void setSeverity(@javax.annotation.Nonnull SeverityType severity) { - this.severity = severity; + public void setVulnClass(@javax.annotation.Nonnull VulnerabilityType vulnClass) { + this.vulnClass = vulnClass; } /** @@ -303,34 +303,34 @@ public boolean equals(Object o) { return false; } SecurityChecksResult securityChecksResult = (SecurityChecksResult) o; - return Objects.equals(this.functionId, securityChecksResult.functionId) && + return Objects.equals(this.confidence, securityChecksResult.confidence) && + Objects.equals(this.description, securityChecksResult.description) && + Objects.equals(this.functionId, securityChecksResult.functionId) && Objects.equals(this.functionName, securityChecksResult.functionName) && Objects.equals(this.name, securityChecksResult.name) && - Objects.equals(this.vulnClass, securityChecksResult.vulnClass) && - Objects.equals(this.description, securityChecksResult.description) && Objects.equals(this.remediation, securityChecksResult.remediation) && - Objects.equals(this.confidence, securityChecksResult.confidence) && - Objects.equals(this.severity, securityChecksResult.severity)&& + Objects.equals(this.severity, securityChecksResult.severity) && + Objects.equals(this.vulnClass, securityChecksResult.vulnClass)&& Objects.equals(this.additionalProperties, securityChecksResult.additionalProperties); } @Override public int hashCode() { - return Objects.hash(functionId, functionName, name, vulnClass, description, remediation, confidence, severity, additionalProperties); + return Objects.hash(confidence, description, functionId, functionName, name, remediation, severity, vulnClass, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityChecksResult {\n"); + sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" vulnClass: ").append(toIndentedString(vulnClass)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" remediation: ").append(toIndentedString(remediation)).append("\n"); - sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" vulnClass: ").append(toIndentedString(vulnClass)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -353,10 +353,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", "name", "vuln_class", "description", "remediation", "confidence", "severity")); + openapiFields = new HashSet(Arrays.asList("confidence", "description", "function_id", "function_name", "name", "remediation", "severity", "vuln_class")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("function_id", "function_name", "name", "vuln_class", "description", "remediation", "confidence", "severity")); + openapiRequiredFields = new HashSet(Arrays.asList("confidence", "description", "function_id", "function_name", "name", "remediation", "severity", "vuln_class")); } /** @@ -379,24 +379,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `confidence` + ConfidenceType.validateJsonElement(jsonObj.get("confidence")); + if (!jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").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())); } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // validate the required field `vuln_class` - VulnerabilityType.validateJsonElement(jsonObj.get("vuln_class")); - if (!jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } if (!jsonObj.get("remediation").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `remediation` to be a primitive type in the JSON string but got `%s`", jsonObj.get("remediation").toString())); } - // validate the required field `confidence` - ConfidenceType.validateJsonElement(jsonObj.get("confidence")); // validate the required field `severity` SeverityType.validateJsonElement(jsonObj.get("severity")); + // validate the required field `vuln_class` + VulnerabilityType.validateJsonElement(jsonObj.get("vuln_class")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/SecurityModel.java b/src/main/java/ai/reveng/model/SecurityModel.java index b3c269d..ca19c82 100644 --- a/src/main/java/ai/reveng/model/SecurityModel.java +++ b/src/main/java/ai/reveng/model/SecurityModel.java @@ -51,64 +51,83 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SecurityModel { + public static final String SERIALIZED_NAME_APP_CONTAINER = "app_container"; + @SerializedName(SERIALIZED_NAME_APP_CONTAINER) + @javax.annotation.Nonnull + private Boolean appContainer; + public static final String SERIALIZED_NAME_ASLR = "aslr"; @SerializedName(SERIALIZED_NAME_ASLR) @javax.annotation.Nonnull private Boolean aslr; - public static final String SERIALIZED_NAME_DEP = "dep"; - @SerializedName(SERIALIZED_NAME_DEP) + public static final String SERIALIZED_NAME_BOUND_IMAGE = "bound_image"; + @SerializedName(SERIALIZED_NAME_BOUND_IMAGE) @javax.annotation.Nonnull - private Boolean dep; + private Boolean boundImage; public static final String SERIALIZED_NAME_CFG = "cfg"; @SerializedName(SERIALIZED_NAME_CFG) @javax.annotation.Nonnull private Boolean cfg; + public static final String SERIALIZED_NAME_CODE_INTEGRITY = "code_integrity"; + @SerializedName(SERIALIZED_NAME_CODE_INTEGRITY) + @javax.annotation.Nonnull + private Boolean codeIntegrity; + + public static final String SERIALIZED_NAME_DEP = "dep"; + @SerializedName(SERIALIZED_NAME_DEP) + @javax.annotation.Nonnull + private Boolean dep; + public static final String SERIALIZED_NAME_DRIVER_MODEL = "driver_model"; @SerializedName(SERIALIZED_NAME_DRIVER_MODEL) @javax.annotation.Nonnull private Boolean driverModel; - public static final String SERIALIZED_NAME_APP_CONTAINER = "app_container"; - @SerializedName(SERIALIZED_NAME_APP_CONTAINER) - @javax.annotation.Nonnull - private Boolean appContainer; - - public static final String SERIALIZED_NAME_TERMINAL_SERVER_AWARE = "terminal_server_aware"; - @SerializedName(SERIALIZED_NAME_TERMINAL_SERVER_AWARE) + public static final String SERIALIZED_NAME_HIGH_ENTROPY = "high_entropy"; + @SerializedName(SERIALIZED_NAME_HIGH_ENTROPY) @javax.annotation.Nonnull - private Boolean terminalServerAware; + private Boolean highEntropy; public static final String SERIALIZED_NAME_IMAGE_ISOLATION = "image_isolation"; @SerializedName(SERIALIZED_NAME_IMAGE_ISOLATION) @javax.annotation.Nonnull private Boolean imageIsolation; - public static final String SERIALIZED_NAME_CODE_INTEGRITY = "code_integrity"; - @SerializedName(SERIALIZED_NAME_CODE_INTEGRITY) - @javax.annotation.Nonnull - private Boolean codeIntegrity; - - public static final String SERIALIZED_NAME_HIGH_ENTROPY = "high_entropy"; - @SerializedName(SERIALIZED_NAME_HIGH_ENTROPY) - @javax.annotation.Nonnull - private Boolean highEntropy; - public static final String SERIALIZED_NAME_SEH = "seh"; @SerializedName(SERIALIZED_NAME_SEH) @javax.annotation.Nonnull private Boolean seh; - public static final String SERIALIZED_NAME_BOUND_IMAGE = "bound_image"; - @SerializedName(SERIALIZED_NAME_BOUND_IMAGE) + public static final String SERIALIZED_NAME_TERMINAL_SERVER_AWARE = "terminal_server_aware"; + @SerializedName(SERIALIZED_NAME_TERMINAL_SERVER_AWARE) @javax.annotation.Nonnull - private Boolean boundImage; + private Boolean terminalServerAware; public SecurityModel() { } + public SecurityModel appContainer(@javax.annotation.Nonnull Boolean appContainer) { + this.appContainer = appContainer; + return this; + } + + /** + * Get appContainer + * @return appContainer + */ + @javax.annotation.Nonnull + public Boolean getAppContainer() { + return appContainer; + } + + public void setAppContainer(@javax.annotation.Nonnull Boolean appContainer) { + this.appContainer = appContainer; + } + + public SecurityModel aslr(@javax.annotation.Nonnull Boolean aslr) { this.aslr = aslr; return this; @@ -128,22 +147,22 @@ public void setAslr(@javax.annotation.Nonnull Boolean aslr) { } - public SecurityModel dep(@javax.annotation.Nonnull Boolean dep) { - this.dep = dep; + public SecurityModel boundImage(@javax.annotation.Nonnull Boolean boundImage) { + this.boundImage = boundImage; return this; } /** - * Get dep - * @return dep + * Get boundImage + * @return boundImage */ @javax.annotation.Nonnull - public Boolean getDep() { - return dep; + public Boolean getBoundImage() { + return boundImage; } - public void setDep(@javax.annotation.Nonnull Boolean dep) { - this.dep = dep; + public void setBoundImage(@javax.annotation.Nonnull Boolean boundImage) { + this.boundImage = boundImage; } @@ -166,117 +185,98 @@ public void setCfg(@javax.annotation.Nonnull Boolean cfg) { } - public SecurityModel driverModel(@javax.annotation.Nonnull Boolean driverModel) { - this.driverModel = driverModel; - return this; - } - - /** - * Get driverModel - * @return driverModel - */ - @javax.annotation.Nonnull - public Boolean getDriverModel() { - return driverModel; - } - - public void setDriverModel(@javax.annotation.Nonnull Boolean driverModel) { - this.driverModel = driverModel; - } - - - public SecurityModel appContainer(@javax.annotation.Nonnull Boolean appContainer) { - this.appContainer = appContainer; + public SecurityModel codeIntegrity(@javax.annotation.Nonnull Boolean codeIntegrity) { + this.codeIntegrity = codeIntegrity; return this; } /** - * Get appContainer - * @return appContainer + * Get codeIntegrity + * @return codeIntegrity */ @javax.annotation.Nonnull - public Boolean getAppContainer() { - return appContainer; + public Boolean getCodeIntegrity() { + return codeIntegrity; } - public void setAppContainer(@javax.annotation.Nonnull Boolean appContainer) { - this.appContainer = appContainer; + public void setCodeIntegrity(@javax.annotation.Nonnull Boolean codeIntegrity) { + this.codeIntegrity = codeIntegrity; } - public SecurityModel terminalServerAware(@javax.annotation.Nonnull Boolean terminalServerAware) { - this.terminalServerAware = terminalServerAware; + public SecurityModel dep(@javax.annotation.Nonnull Boolean dep) { + this.dep = dep; return this; } /** - * Get terminalServerAware - * @return terminalServerAware + * Get dep + * @return dep */ @javax.annotation.Nonnull - public Boolean getTerminalServerAware() { - return terminalServerAware; + public Boolean getDep() { + return dep; } - public void setTerminalServerAware(@javax.annotation.Nonnull Boolean terminalServerAware) { - this.terminalServerAware = terminalServerAware; + public void setDep(@javax.annotation.Nonnull Boolean dep) { + this.dep = dep; } - public SecurityModel imageIsolation(@javax.annotation.Nonnull Boolean imageIsolation) { - this.imageIsolation = imageIsolation; + public SecurityModel driverModel(@javax.annotation.Nonnull Boolean driverModel) { + this.driverModel = driverModel; return this; } /** - * Get imageIsolation - * @return imageIsolation + * Get driverModel + * @return driverModel */ @javax.annotation.Nonnull - public Boolean getImageIsolation() { - return imageIsolation; + public Boolean getDriverModel() { + return driverModel; } - public void setImageIsolation(@javax.annotation.Nonnull Boolean imageIsolation) { - this.imageIsolation = imageIsolation; + public void setDriverModel(@javax.annotation.Nonnull Boolean driverModel) { + this.driverModel = driverModel; } - public SecurityModel codeIntegrity(@javax.annotation.Nonnull Boolean codeIntegrity) { - this.codeIntegrity = codeIntegrity; + public SecurityModel highEntropy(@javax.annotation.Nonnull Boolean highEntropy) { + this.highEntropy = highEntropy; return this; } /** - * Get codeIntegrity - * @return codeIntegrity + * Get highEntropy + * @return highEntropy */ @javax.annotation.Nonnull - public Boolean getCodeIntegrity() { - return codeIntegrity; + public Boolean getHighEntropy() { + return highEntropy; } - public void setCodeIntegrity(@javax.annotation.Nonnull Boolean codeIntegrity) { - this.codeIntegrity = codeIntegrity; + public void setHighEntropy(@javax.annotation.Nonnull Boolean highEntropy) { + this.highEntropy = highEntropy; } - public SecurityModel highEntropy(@javax.annotation.Nonnull Boolean highEntropy) { - this.highEntropy = highEntropy; + public SecurityModel imageIsolation(@javax.annotation.Nonnull Boolean imageIsolation) { + this.imageIsolation = imageIsolation; return this; } /** - * Get highEntropy - * @return highEntropy + * Get imageIsolation + * @return imageIsolation */ @javax.annotation.Nonnull - public Boolean getHighEntropy() { - return highEntropy; + public Boolean getImageIsolation() { + return imageIsolation; } - public void setHighEntropy(@javax.annotation.Nonnull Boolean highEntropy) { - this.highEntropy = highEntropy; + public void setImageIsolation(@javax.annotation.Nonnull Boolean imageIsolation) { + this.imageIsolation = imageIsolation; } @@ -299,22 +299,22 @@ public void setSeh(@javax.annotation.Nonnull Boolean seh) { } - public SecurityModel boundImage(@javax.annotation.Nonnull Boolean boundImage) { - this.boundImage = boundImage; + public SecurityModel terminalServerAware(@javax.annotation.Nonnull Boolean terminalServerAware) { + this.terminalServerAware = terminalServerAware; return this; } /** - * Get boundImage - * @return boundImage + * Get terminalServerAware + * @return terminalServerAware */ @javax.annotation.Nonnull - public Boolean getBoundImage() { - return boundImage; + public Boolean getTerminalServerAware() { + return terminalServerAware; } - public void setBoundImage(@javax.annotation.Nonnull Boolean boundImage) { - this.boundImage = boundImage; + public void setTerminalServerAware(@javax.annotation.Nonnull Boolean terminalServerAware) { + this.terminalServerAware = terminalServerAware; } /** @@ -372,40 +372,40 @@ public boolean equals(Object o) { return false; } SecurityModel securityModel = (SecurityModel) o; - return Objects.equals(this.aslr, securityModel.aslr) && - Objects.equals(this.dep, securityModel.dep) && + return Objects.equals(this.appContainer, securityModel.appContainer) && + Objects.equals(this.aslr, securityModel.aslr) && + Objects.equals(this.boundImage, securityModel.boundImage) && Objects.equals(this.cfg, securityModel.cfg) && - Objects.equals(this.driverModel, securityModel.driverModel) && - Objects.equals(this.appContainer, securityModel.appContainer) && - Objects.equals(this.terminalServerAware, securityModel.terminalServerAware) && - Objects.equals(this.imageIsolation, securityModel.imageIsolation) && Objects.equals(this.codeIntegrity, securityModel.codeIntegrity) && + Objects.equals(this.dep, securityModel.dep) && + Objects.equals(this.driverModel, securityModel.driverModel) && Objects.equals(this.highEntropy, securityModel.highEntropy) && + Objects.equals(this.imageIsolation, securityModel.imageIsolation) && Objects.equals(this.seh, securityModel.seh) && - Objects.equals(this.boundImage, securityModel.boundImage)&& + Objects.equals(this.terminalServerAware, securityModel.terminalServerAware)&& Objects.equals(this.additionalProperties, securityModel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(aslr, dep, cfg, driverModel, appContainer, terminalServerAware, imageIsolation, codeIntegrity, highEntropy, seh, boundImage, additionalProperties); + return Objects.hash(appContainer, aslr, boundImage, cfg, codeIntegrity, dep, driverModel, highEntropy, imageIsolation, seh, terminalServerAware, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityModel {\n"); + sb.append(" appContainer: ").append(toIndentedString(appContainer)).append("\n"); sb.append(" aslr: ").append(toIndentedString(aslr)).append("\n"); - sb.append(" dep: ").append(toIndentedString(dep)).append("\n"); + sb.append(" boundImage: ").append(toIndentedString(boundImage)).append("\n"); sb.append(" cfg: ").append(toIndentedString(cfg)).append("\n"); - sb.append(" driverModel: ").append(toIndentedString(driverModel)).append("\n"); - sb.append(" appContainer: ").append(toIndentedString(appContainer)).append("\n"); - sb.append(" terminalServerAware: ").append(toIndentedString(terminalServerAware)).append("\n"); - sb.append(" imageIsolation: ").append(toIndentedString(imageIsolation)).append("\n"); sb.append(" codeIntegrity: ").append(toIndentedString(codeIntegrity)).append("\n"); + sb.append(" dep: ").append(toIndentedString(dep)).append("\n"); + sb.append(" driverModel: ").append(toIndentedString(driverModel)).append("\n"); sb.append(" highEntropy: ").append(toIndentedString(highEntropy)).append("\n"); + sb.append(" imageIsolation: ").append(toIndentedString(imageIsolation)).append("\n"); sb.append(" seh: ").append(toIndentedString(seh)).append("\n"); - sb.append(" boundImage: ").append(toIndentedString(boundImage)).append("\n"); + sb.append(" terminalServerAware: ").append(toIndentedString(terminalServerAware)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -428,10 +428,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("aslr", "dep", "cfg", "driver_model", "app_container", "terminal_server_aware", "image_isolation", "code_integrity", "high_entropy", "seh", "bound_image")); + openapiFields = new HashSet(Arrays.asList("app_container", "aslr", "bound_image", "cfg", "code_integrity", "dep", "driver_model", "high_entropy", "image_isolation", "seh", "terminal_server_aware")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("aslr", "dep", "cfg", "driver_model", "app_container", "terminal_server_aware", "image_isolation", "code_integrity", "high_entropy", "seh", "bound_image")); + openapiRequiredFields = new HashSet(Arrays.asList("app_container", "aslr", "bound_image", "cfg", "code_integrity", "dep", "driver_model", "high_entropy", "image_isolation", "seh", "terminal_server_aware")); } /** diff --git a/src/main/java/ai/reveng/model/SegmentInfo.java b/src/main/java/ai/reveng/model/SegmentInfo.java index ab45090..b798205 100644 --- a/src/main/java/ai/reveng/model/SegmentInfo.java +++ b/src/main/java/ai/reveng/model/SegmentInfo.java @@ -52,6 +52,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SegmentInfo { + public static final String SERIALIZED_NAME_END = "end"; + @SerializedName(SERIALIZED_NAME_END) + @javax.annotation.Nullable + private Integer end = 0; + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nullable @@ -62,6 +67,11 @@ public class SegmentInfo { @javax.annotation.Nullable private Boolean r; + public static final String SERIALIZED_NAME_START = "start"; + @SerializedName(SERIALIZED_NAME_START) + @javax.annotation.Nullable + private Integer start = 0; + public static final String SERIALIZED_NAME_W = "w"; @SerializedName(SERIALIZED_NAME_W) @javax.annotation.Nullable @@ -72,19 +82,28 @@ public class SegmentInfo { @javax.annotation.Nullable private Boolean x; - public static final String SERIALIZED_NAME_START = "start"; - @SerializedName(SERIALIZED_NAME_START) - @javax.annotation.Nullable - private Integer start = 0; + public SegmentInfo() { + } - public static final String SERIALIZED_NAME_END = "end"; - @SerializedName(SERIALIZED_NAME_END) + public SegmentInfo end(@javax.annotation.Nullable Integer end) { + this.end = end; + return this; + } + + /** + * Get end + * @return end + */ @javax.annotation.Nullable - private Integer end = 0; + public Integer getEnd() { + return end; + } - public SegmentInfo() { + public void setEnd(@javax.annotation.Nullable Integer end) { + this.end = end; } + public SegmentInfo name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -123,6 +142,25 @@ public void setR(@javax.annotation.Nullable Boolean r) { } + public SegmentInfo start(@javax.annotation.Nullable Integer start) { + this.start = start; + return this; + } + + /** + * Get start + * @return start + */ + @javax.annotation.Nullable + public Integer getStart() { + return start; + } + + public void setStart(@javax.annotation.Nullable Integer start) { + this.start = start; + } + + public SegmentInfo w(@javax.annotation.Nullable Boolean w) { this.w = w; return this; @@ -160,44 +198,6 @@ public void setX(@javax.annotation.Nullable Boolean x) { this.x = x; } - - public SegmentInfo start(@javax.annotation.Nullable Integer start) { - this.start = start; - return this; - } - - /** - * Get start - * @return start - */ - @javax.annotation.Nullable - public Integer getStart() { - return start; - } - - public void setStart(@javax.annotation.Nullable Integer start) { - this.start = start; - } - - - public SegmentInfo end(@javax.annotation.Nullable Integer end) { - this.end = end; - return this; - } - - /** - * Get end - * @return end - */ - @javax.annotation.Nullable - public Integer getEnd() { - return end; - } - - public void setEnd(@javax.annotation.Nullable Integer end) { - this.end = end; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -253,12 +253,12 @@ public boolean equals(Object o) { return false; } SegmentInfo segmentInfo = (SegmentInfo) o; - return Objects.equals(this.name, segmentInfo.name) && + return Objects.equals(this.end, segmentInfo.end) && + Objects.equals(this.name, segmentInfo.name) && Objects.equals(this.r, segmentInfo.r) && - Objects.equals(this.w, segmentInfo.w) && - Objects.equals(this.x, segmentInfo.x) && Objects.equals(this.start, segmentInfo.start) && - Objects.equals(this.end, segmentInfo.end)&& + Objects.equals(this.w, segmentInfo.w) && + Objects.equals(this.x, segmentInfo.x)&& Objects.equals(this.additionalProperties, segmentInfo.additionalProperties); } @@ -268,7 +268,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, r, w, x, start, end, additionalProperties); + return Objects.hash(end, name, r, start, w, x, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -282,12 +282,12 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SegmentInfo {\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" r: ").append(toIndentedString(r)).append("\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); sb.append(" w: ").append(toIndentedString(w)).append("\n"); sb.append(" x: ").append(toIndentedString(x)).append("\n"); - sb.append(" start: ").append(toIndentedString(start)).append("\n"); - sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -310,7 +310,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "r", "w", "x", "start", "end")); + openapiFields = new HashSet(Arrays.asList("end", "name", "r", "start", "w", "x")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); diff --git a/src/main/java/ai/reveng/model/SingleCodeCertificateModel.java b/src/main/java/ai/reveng/model/SingleCodeCertificateModel.java index 71f0951..2d679d8 100644 --- a/src/main/java/ai/reveng/model/SingleCodeCertificateModel.java +++ b/src/main/java/ai/reveng/model/SingleCodeCertificateModel.java @@ -51,21 +51,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SingleCodeCertificateModel { - public static final String SERIALIZED_NAME_VERSION = "version"; - @SerializedName(SERIALIZED_NAME_VERSION) + public static final String SERIALIZED_NAME_EXPIRES_ON = "expires_on"; + @SerializedName(SERIALIZED_NAME_EXPIRES_ON) @javax.annotation.Nonnull - private Integer version; + private String expiresOn; public static final String SERIALIZED_NAME_ISSUED_ON = "issued_on"; @SerializedName(SERIALIZED_NAME_ISSUED_ON) @javax.annotation.Nonnull private String issuedOn; - public static final String SERIALIZED_NAME_EXPIRES_ON = "expires_on"; - @SerializedName(SERIALIZED_NAME_EXPIRES_ON) - @javax.annotation.Nonnull - private String expiresOn; - public static final String SERIALIZED_NAME_ISSUER_NAME = "issuer_name"; @SerializedName(SERIALIZED_NAME_ISSUER_NAME) @javax.annotation.Nonnull @@ -81,25 +76,30 @@ public class SingleCodeCertificateModel { @javax.annotation.Nonnull private String subjectName; + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + @javax.annotation.Nonnull + private Integer version; + public SingleCodeCertificateModel() { } - public SingleCodeCertificateModel version(@javax.annotation.Nonnull Integer version) { - this.version = version; + public SingleCodeCertificateModel expiresOn(@javax.annotation.Nonnull String expiresOn) { + this.expiresOn = expiresOn; return this; } /** - * Get version - * @return version + * Get expiresOn + * @return expiresOn */ @javax.annotation.Nonnull - public Integer getVersion() { - return version; + public String getExpiresOn() { + return expiresOn; } - public void setVersion(@javax.annotation.Nonnull Integer version) { - this.version = version; + public void setExpiresOn(@javax.annotation.Nonnull String expiresOn) { + this.expiresOn = expiresOn; } @@ -122,25 +122,6 @@ public void setIssuedOn(@javax.annotation.Nonnull String issuedOn) { } - public SingleCodeCertificateModel expiresOn(@javax.annotation.Nonnull String expiresOn) { - this.expiresOn = expiresOn; - return this; - } - - /** - * Get expiresOn - * @return expiresOn - */ - @javax.annotation.Nonnull - public String getExpiresOn() { - return expiresOn; - } - - public void setExpiresOn(@javax.annotation.Nonnull String expiresOn) { - this.expiresOn = expiresOn; - } - - public SingleCodeCertificateModel issuerName(@javax.annotation.Nonnull String issuerName) { this.issuerName = issuerName; return this; @@ -197,6 +178,25 @@ public void setSubjectName(@javax.annotation.Nonnull String subjectName) { this.subjectName = subjectName; } + + public SingleCodeCertificateModel version(@javax.annotation.Nonnull Integer version) { + this.version = version; + return this; + } + + /** + * Get version + * @return version + */ + @javax.annotation.Nonnull + public Integer getVersion() { + return version; + } + + public void setVersion(@javax.annotation.Nonnull Integer version) { + this.version = version; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -252,30 +252,30 @@ public boolean equals(Object o) { return false; } SingleCodeCertificateModel singleCodeCertificateModel = (SingleCodeCertificateModel) o; - return Objects.equals(this.version, singleCodeCertificateModel.version) && + return Objects.equals(this.expiresOn, singleCodeCertificateModel.expiresOn) && Objects.equals(this.issuedOn, singleCodeCertificateModel.issuedOn) && - Objects.equals(this.expiresOn, singleCodeCertificateModel.expiresOn) && Objects.equals(this.issuerName, singleCodeCertificateModel.issuerName) && Objects.equals(this.serialNumber, singleCodeCertificateModel.serialNumber) && - Objects.equals(this.subjectName, singleCodeCertificateModel.subjectName)&& + Objects.equals(this.subjectName, singleCodeCertificateModel.subjectName) && + Objects.equals(this.version, singleCodeCertificateModel.version)&& Objects.equals(this.additionalProperties, singleCodeCertificateModel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(version, issuedOn, expiresOn, issuerName, serialNumber, subjectName, additionalProperties); + return Objects.hash(expiresOn, issuedOn, issuerName, serialNumber, subjectName, version, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SingleCodeCertificateModel {\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" issuedOn: ").append(toIndentedString(issuedOn)).append("\n"); sb.append(" expiresOn: ").append(toIndentedString(expiresOn)).append("\n"); + sb.append(" issuedOn: ").append(toIndentedString(issuedOn)).append("\n"); sb.append(" issuerName: ").append(toIndentedString(issuerName)).append("\n"); sb.append(" serialNumber: ").append(toIndentedString(serialNumber)).append("\n"); sb.append(" subjectName: ").append(toIndentedString(subjectName)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -298,10 +298,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("version", "issued_on", "expires_on", "issuer_name", "serial_number", "subject_name")); + openapiFields = new HashSet(Arrays.asList("expires_on", "issued_on", "issuer_name", "serial_number", "subject_name", "version")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("version", "issued_on", "expires_on", "issuer_name", "serial_number", "subject_name")); + openapiRequiredFields = new HashSet(Arrays.asList("expires_on", "issued_on", "issuer_name", "serial_number", "subject_name", "version")); } /** @@ -324,12 +324,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("issued_on").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `issued_on` to be a primitive type in the JSON string but got `%s`", jsonObj.get("issued_on").toString())); - } if (!jsonObj.get("expires_on").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expires_on` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expires_on").toString())); } + if (!jsonObj.get("issued_on").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `issued_on` to be a primitive type in the JSON string but got `%s`", jsonObj.get("issued_on").toString())); + } if (!jsonObj.get("issuer_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `issuer_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("issuer_name").toString())); } diff --git a/src/main/java/ai/reveng/model/SingleCodeSignatureModel.java b/src/main/java/ai/reveng/model/SingleCodeSignatureModel.java index 39fd7e0..9000d6e 100644 --- a/src/main/java/ai/reveng/model/SingleCodeSignatureModel.java +++ b/src/main/java/ai/reveng/model/SingleCodeSignatureModel.java @@ -54,19 +54,38 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SingleCodeSignatureModel { + public static final String SERIALIZED_NAME_AUTHENTICODE_DIGEST = "authenticode_digest"; + @SerializedName(SERIALIZED_NAME_AUTHENTICODE_DIGEST) + @javax.annotation.Nonnull + private String authenticodeDigest; + public static final String SERIALIZED_NAME_CERTIFICATES = "certificates"; @SerializedName(SERIALIZED_NAME_CERTIFICATES) @javax.annotation.Nonnull private List certificates = new ArrayList<>(); - public static final String SERIALIZED_NAME_AUTHENTICODE_DIGEST = "authenticode_digest"; - @SerializedName(SERIALIZED_NAME_AUTHENTICODE_DIGEST) + public SingleCodeSignatureModel() { + } + + public SingleCodeSignatureModel authenticodeDigest(@javax.annotation.Nonnull String authenticodeDigest) { + this.authenticodeDigest = authenticodeDigest; + return this; + } + + /** + * Get authenticodeDigest + * @return authenticodeDigest + */ @javax.annotation.Nonnull - private String authenticodeDigest; + public String getAuthenticodeDigest() { + return authenticodeDigest; + } - public SingleCodeSignatureModel() { + public void setAuthenticodeDigest(@javax.annotation.Nonnull String authenticodeDigest) { + this.authenticodeDigest = authenticodeDigest; } + public SingleCodeSignatureModel certificates(@javax.annotation.Nonnull List certificates) { this.certificates = certificates; return this; @@ -93,25 +112,6 @@ public void setCertificates(@javax.annotation.Nonnull List(Arrays.asList("certificates", "authenticode_digest")); + openapiFields = new HashSet(Arrays.asList("authenticode_digest", "certificates")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("certificates", "authenticode_digest")); + openapiRequiredFields = new HashSet(Arrays.asList("authenticode_digest", "certificates")); } /** @@ -231,6 +231,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("authenticode_digest").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `authenticode_digest` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authenticode_digest").toString())); + } // ensure the json data is an array if (!jsonObj.get("certificates").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `certificates` to be an array in the JSON string but got `%s`", jsonObj.get("certificates").toString())); @@ -241,9 +244,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArraycertificates.size(); i++) { SingleCodeCertificateModel.validateJsonElement(jsonArraycertificates.get(i)); }; - if (!jsonObj.get("authenticode_digest").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `authenticode_digest` to be a primitive type in the JSON string but got `%s`", jsonObj.get("authenticode_digest").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/SinglePDBEntryModel.java b/src/main/java/ai/reveng/model/SinglePDBEntryModel.java index d071024..92cfe23 100644 --- a/src/main/java/ai/reveng/model/SinglePDBEntryModel.java +++ b/src/main/java/ai/reveng/model/SinglePDBEntryModel.java @@ -51,16 +51,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SinglePDBEntryModel { - public static final String SERIALIZED_NAME_GUID = "guid"; - @SerializedName(SERIALIZED_NAME_GUID) - @javax.annotation.Nonnull - private String guid; - public static final String SERIALIZED_NAME_AGE = "age"; @SerializedName(SERIALIZED_NAME_AGE) @javax.annotation.Nonnull private Integer age; + public static final String SERIALIZED_NAME_GUID = "guid"; + @SerializedName(SERIALIZED_NAME_GUID) + @javax.annotation.Nonnull + private String guid; + public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @javax.annotation.Nonnull @@ -69,41 +69,41 @@ public class SinglePDBEntryModel { public SinglePDBEntryModel() { } - public SinglePDBEntryModel guid(@javax.annotation.Nonnull String guid) { - this.guid = guid; + public SinglePDBEntryModel age(@javax.annotation.Nonnull Integer age) { + this.age = age; return this; } /** - * Get guid - * @return guid + * Get age + * @return age */ @javax.annotation.Nonnull - public String getGuid() { - return guid; + public Integer getAge() { + return age; } - public void setGuid(@javax.annotation.Nonnull String guid) { - this.guid = guid; + public void setAge(@javax.annotation.Nonnull Integer age) { + this.age = age; } - public SinglePDBEntryModel age(@javax.annotation.Nonnull Integer age) { - this.age = age; + public SinglePDBEntryModel guid(@javax.annotation.Nonnull String guid) { + this.guid = guid; return this; } /** - * Get age - * @return age + * Get guid + * @return guid */ @javax.annotation.Nonnull - public Integer getAge() { - return age; + public String getGuid() { + return guid; } - public void setAge(@javax.annotation.Nonnull Integer age) { - this.age = age; + public void setGuid(@javax.annotation.Nonnull String guid) { + this.guid = guid; } @@ -180,23 +180,23 @@ public boolean equals(Object o) { return false; } SinglePDBEntryModel singlePDBEntryModel = (SinglePDBEntryModel) o; - return Objects.equals(this.guid, singlePDBEntryModel.guid) && - Objects.equals(this.age, singlePDBEntryModel.age) && + return Objects.equals(this.age, singlePDBEntryModel.age) && + Objects.equals(this.guid, singlePDBEntryModel.guid) && Objects.equals(this.path, singlePDBEntryModel.path)&& Objects.equals(this.additionalProperties, singlePDBEntryModel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(guid, age, path, additionalProperties); + return Objects.hash(age, guid, path, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SinglePDBEntryModel {\n"); - sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); sb.append(" age: ").append(toIndentedString(age)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,10 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("guid", "age", "path")); + openapiFields = new HashSet(Arrays.asList("age", "guid", "path")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("guid", "age", "path")); + openapiRequiredFields = new HashSet(Arrays.asList("age", "guid", "path")); } /** diff --git a/src/main/java/ai/reveng/model/SingleSectionModel.java b/src/main/java/ai/reveng/model/SingleSectionModel.java index a06b42d..474d625 100644 --- a/src/main/java/ai/reveng/model/SingleSectionModel.java +++ b/src/main/java/ai/reveng/model/SingleSectionModel.java @@ -52,174 +52,174 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SingleSectionModel { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; - - public static final String SERIALIZED_NAME_VIRTUAL_ADDRESS = "virtual_address"; - @SerializedName(SERIALIZED_NAME_VIRTUAL_ADDRESS) + public static final String SERIALIZED_NAME_CHARACTERISTICS = "characteristics"; + @SerializedName(SERIALIZED_NAME_CHARACTERISTICS) @javax.annotation.Nonnull - private Integer virtualAddress; + private String characteristics; - public static final String SERIALIZED_NAME_VIRTUAL_SIZE = "virtual_size"; - @SerializedName(SERIALIZED_NAME_VIRTUAL_SIZE) + public static final String SERIALIZED_NAME_ENTROPY = "entropy"; + @SerializedName(SERIALIZED_NAME_ENTROPY) @javax.annotation.Nonnull - private Integer virtualSize; + private BigDecimal entropy; - public static final String SERIALIZED_NAME_CHARACTERISTICS = "characteristics"; - @SerializedName(SERIALIZED_NAME_CHARACTERISTICS) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull - private String characteristics; + private String name; public static final String SERIALIZED_NAME_RAW_SIZE = "raw_size"; @SerializedName(SERIALIZED_NAME_RAW_SIZE) @javax.annotation.Nonnull private Integer rawSize; - public static final String SERIALIZED_NAME_ENTROPY = "entropy"; - @SerializedName(SERIALIZED_NAME_ENTROPY) - @javax.annotation.Nonnull - private BigDecimal entropy; - public static final String SERIALIZED_NAME_SHA3256 = "sha3_256"; @SerializedName(SERIALIZED_NAME_SHA3256) @javax.annotation.Nonnull private String sha3256; + public static final String SERIALIZED_NAME_VIRTUAL_ADDRESS = "virtual_address"; + @SerializedName(SERIALIZED_NAME_VIRTUAL_ADDRESS) + @javax.annotation.Nonnull + private Integer virtualAddress; + + public static final String SERIALIZED_NAME_VIRTUAL_SIZE = "virtual_size"; + @SerializedName(SERIALIZED_NAME_VIRTUAL_SIZE) + @javax.annotation.Nonnull + private Integer virtualSize; + public SingleSectionModel() { } - public SingleSectionModel name(@javax.annotation.Nonnull String name) { - this.name = name; + public SingleSectionModel characteristics(@javax.annotation.Nonnull String characteristics) { + this.characteristics = characteristics; return this; } /** - * Get name - * @return name + * Get characteristics + * @return characteristics */ @javax.annotation.Nonnull - public String getName() { - return name; + public String getCharacteristics() { + return characteristics; } - public void setName(@javax.annotation.Nonnull String name) { - this.name = name; + public void setCharacteristics(@javax.annotation.Nonnull String characteristics) { + this.characteristics = characteristics; } - public SingleSectionModel virtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { - this.virtualAddress = virtualAddress; + public SingleSectionModel entropy(@javax.annotation.Nonnull BigDecimal entropy) { + this.entropy = entropy; return this; } /** - * Get virtualAddress - * @return virtualAddress + * Get entropy + * @return entropy */ @javax.annotation.Nonnull - public Integer getVirtualAddress() { - return virtualAddress; + public BigDecimal getEntropy() { + return entropy; } - public void setVirtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { - this.virtualAddress = virtualAddress; + public void setEntropy(@javax.annotation.Nonnull BigDecimal entropy) { + this.entropy = entropy; } - public SingleSectionModel virtualSize(@javax.annotation.Nonnull Integer virtualSize) { - this.virtualSize = virtualSize; + public SingleSectionModel name(@javax.annotation.Nonnull String name) { + this.name = name; return this; } /** - * Get virtualSize - * @return virtualSize + * Get name + * @return name */ @javax.annotation.Nonnull - public Integer getVirtualSize() { - return virtualSize; + public String getName() { + return name; } - public void setVirtualSize(@javax.annotation.Nonnull Integer virtualSize) { - this.virtualSize = virtualSize; + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; } - public SingleSectionModel characteristics(@javax.annotation.Nonnull String characteristics) { - this.characteristics = characteristics; + public SingleSectionModel rawSize(@javax.annotation.Nonnull Integer rawSize) { + this.rawSize = rawSize; return this; } /** - * Get characteristics - * @return characteristics + * Get rawSize + * @return rawSize */ @javax.annotation.Nonnull - public String getCharacteristics() { - return characteristics; + public Integer getRawSize() { + return rawSize; } - public void setCharacteristics(@javax.annotation.Nonnull String characteristics) { - this.characteristics = characteristics; + public void setRawSize(@javax.annotation.Nonnull Integer rawSize) { + this.rawSize = rawSize; } - public SingleSectionModel rawSize(@javax.annotation.Nonnull Integer rawSize) { - this.rawSize = rawSize; + public SingleSectionModel sha3256(@javax.annotation.Nonnull String sha3256) { + this.sha3256 = sha3256; return this; } /** - * Get rawSize - * @return rawSize + * Get sha3256 + * @return sha3256 */ @javax.annotation.Nonnull - public Integer getRawSize() { - return rawSize; + public String getSha3256() { + return sha3256; } - public void setRawSize(@javax.annotation.Nonnull Integer rawSize) { - this.rawSize = rawSize; + public void setSha3256(@javax.annotation.Nonnull String sha3256) { + this.sha3256 = sha3256; } - public SingleSectionModel entropy(@javax.annotation.Nonnull BigDecimal entropy) { - this.entropy = entropy; + public SingleSectionModel virtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { + this.virtualAddress = virtualAddress; return this; } /** - * Get entropy - * @return entropy + * Get virtualAddress + * @return virtualAddress */ @javax.annotation.Nonnull - public BigDecimal getEntropy() { - return entropy; + public Integer getVirtualAddress() { + return virtualAddress; } - public void setEntropy(@javax.annotation.Nonnull BigDecimal entropy) { - this.entropy = entropy; + public void setVirtualAddress(@javax.annotation.Nonnull Integer virtualAddress) { + this.virtualAddress = virtualAddress; } - public SingleSectionModel sha3256(@javax.annotation.Nonnull String sha3256) { - this.sha3256 = sha3256; + public SingleSectionModel virtualSize(@javax.annotation.Nonnull Integer virtualSize) { + this.virtualSize = virtualSize; return this; } /** - * Get sha3256 - * @return sha3256 + * Get virtualSize + * @return virtualSize */ @javax.annotation.Nonnull - public String getSha3256() { - return sha3256; + public Integer getVirtualSize() { + return virtualSize; } - public void setSha3256(@javax.annotation.Nonnull String sha3256) { - this.sha3256 = sha3256; + public void setVirtualSize(@javax.annotation.Nonnull Integer virtualSize) { + this.virtualSize = virtualSize; } /** @@ -277,32 +277,32 @@ public boolean equals(Object o) { return false; } SingleSectionModel singleSectionModel = (SingleSectionModel) o; - return Objects.equals(this.name, singleSectionModel.name) && - Objects.equals(this.virtualAddress, singleSectionModel.virtualAddress) && - Objects.equals(this.virtualSize, singleSectionModel.virtualSize) && - Objects.equals(this.characteristics, singleSectionModel.characteristics) && - Objects.equals(this.rawSize, singleSectionModel.rawSize) && + return Objects.equals(this.characteristics, singleSectionModel.characteristics) && Objects.equals(this.entropy, singleSectionModel.entropy) && - Objects.equals(this.sha3256, singleSectionModel.sha3256)&& + Objects.equals(this.name, singleSectionModel.name) && + Objects.equals(this.rawSize, singleSectionModel.rawSize) && + Objects.equals(this.sha3256, singleSectionModel.sha3256) && + Objects.equals(this.virtualAddress, singleSectionModel.virtualAddress) && + Objects.equals(this.virtualSize, singleSectionModel.virtualSize)&& Objects.equals(this.additionalProperties, singleSectionModel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, virtualAddress, virtualSize, characteristics, rawSize, entropy, sha3256, additionalProperties); + return Objects.hash(characteristics, entropy, name, rawSize, sha3256, virtualAddress, virtualSize, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SingleSectionModel {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" virtualAddress: ").append(toIndentedString(virtualAddress)).append("\n"); - sb.append(" virtualSize: ").append(toIndentedString(virtualSize)).append("\n"); sb.append(" characteristics: ").append(toIndentedString(characteristics)).append("\n"); - sb.append(" rawSize: ").append(toIndentedString(rawSize)).append("\n"); sb.append(" entropy: ").append(toIndentedString(entropy)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" rawSize: ").append(toIndentedString(rawSize)).append("\n"); sb.append(" sha3256: ").append(toIndentedString(sha3256)).append("\n"); + sb.append(" virtualAddress: ").append(toIndentedString(virtualAddress)).append("\n"); + sb.append(" virtualSize: ").append(toIndentedString(virtualSize)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -325,10 +325,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "virtual_address", "virtual_size", "characteristics", "raw_size", "entropy", "sha3_256")); + openapiFields = new HashSet(Arrays.asList("characteristics", "entropy", "name", "raw_size", "sha3_256", "virtual_address", "virtual_size")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "virtual_address", "virtual_size", "characteristics", "raw_size", "entropy", "sha3_256")); + openapiRequiredFields = new HashSet(Arrays.asList("characteristics", "entropy", "name", "raw_size", "sha3_256", "virtual_address", "virtual_size")); } /** @@ -351,12 +351,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } if (!jsonObj.get("characteristics").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `characteristics` to be a primitive type in the JSON string but got `%s`", jsonObj.get("characteristics").toString())); } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } if (!jsonObj.get("sha3_256").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sha3_256` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sha3_256").toString())); } diff --git a/src/main/java/ai/reveng/model/StackVariable.java b/src/main/java/ai/reveng/model/StackVariable.java index 729dc14..eefda1c 100644 --- a/src/main/java/ai/reveng/model/StackVariable.java +++ b/src/main/java/ai/reveng/model/StackVariable.java @@ -52,74 +52,74 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class StackVariable { + public static final String SERIALIZED_NAME_ADDR = "addr"; + @SerializedName(SERIALIZED_NAME_ADDR) + @javax.annotation.Nonnull + private Integer addr; + public static final String SERIALIZED_NAME_LAST_CHANGE = "last_change"; @SerializedName(SERIALIZED_NAME_LAST_CHANGE) @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_ADDR = "addr"; - @SerializedName(SERIALIZED_NAME_ADDR) + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull - private Integer addr; + private String type; public StackVariable() { } - public StackVariable lastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; + public StackVariable addr(@javax.annotation.Nonnull Integer addr) { + this.addr = addr; return this; } /** - * Get lastChange - * @return lastChange + * Memory address of the stack variable + * @return addr */ - @javax.annotation.Nullable - public String getLastChange() { - return lastChange; + @javax.annotation.Nonnull + public Integer getAddr() { + return addr; } - public void setLastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; + public void setAddr(@javax.annotation.Nonnull Integer addr) { + this.addr = addr; } - public StackVariable offset(@javax.annotation.Nonnull Integer offset) { - this.offset = offset; + public StackVariable lastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; return this; } /** - * Offset of the stack variable - * @return offset + * Get lastChange + * @return lastChange */ - @javax.annotation.Nonnull - public Integer getOffset() { - return offset; + @javax.annotation.Nullable + public String getLastChange() { + return lastChange; } - public void setOffset(@javax.annotation.Nonnull Integer offset) { - this.offset = offset; + public void setLastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; } @@ -142,22 +142,22 @@ public void setName(@javax.annotation.Nonnull String name) { } - public StackVariable type(@javax.annotation.Nonnull String type) { - this.type = type; + public StackVariable offset(@javax.annotation.Nonnull Integer offset) { + this.offset = offset; return this; } /** - * Data type of the stack variable - * @return type + * Offset of the stack variable + * @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; } @@ -180,22 +180,22 @@ public void setSize(@javax.annotation.Nonnull Integer size) { } - public StackVariable addr(@javax.annotation.Nonnull Integer addr) { - this.addr = addr; + public StackVariable type(@javax.annotation.Nonnull String type) { + this.type = type; return this; } /** - * Memory address of the stack variable - * @return addr + * Data type of the stack variable + * @return type */ @javax.annotation.Nonnull - public Integer getAddr() { - return addr; + public String getType() { + return type; } - public void setAddr(@javax.annotation.Nonnull Integer addr) { - this.addr = addr; + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; } /** @@ -253,12 +253,12 @@ public boolean equals(Object o) { return false; } StackVariable stackVariable = (StackVariable) o; - return Objects.equals(this.lastChange, stackVariable.lastChange) && - Objects.equals(this.offset, stackVariable.offset) && + return Objects.equals(this.addr, stackVariable.addr) && + Objects.equals(this.lastChange, stackVariable.lastChange) && Objects.equals(this.name, stackVariable.name) && - Objects.equals(this.type, stackVariable.type) && + Objects.equals(this.offset, stackVariable.offset) && Objects.equals(this.size, stackVariable.size) && - Objects.equals(this.addr, stackVariable.addr)&& + Objects.equals(this.type, stackVariable.type)&& Objects.equals(this.additionalProperties, stackVariable.additionalProperties); } @@ -268,7 +268,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lastChange, offset, name, type, size, addr, additionalProperties); + return Objects.hash(addr, lastChange, name, offset, size, type, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -282,12 +282,12 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StackVariable {\n"); + sb.append(" addr: ").append(toIndentedString(addr)).append("\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(" addr: ").append(toIndentedString(addr)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -310,10 +310,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", "addr")); + openapiFields = new HashSet(Arrays.asList("addr", "last_change", "name", "offset", "size", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("offset", "name", "type", "size", "addr")); + openapiRequiredFields = new HashSet(Arrays.asList("addr", "name", "offset", "size", "type")); } /** diff --git a/src/main/java/ai/reveng/model/StageStatus.java b/src/main/java/ai/reveng/model/StageStatus.java index e979cca..8b0f65a 100644 --- a/src/main/java/ai/reveng/model/StageStatus.java +++ b/src/main/java/ai/reveng/model/StageStatus.java @@ -53,6 +53,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class StageStatus { + public static final String SERIALIZED_NAME_NUM_AHEAD = "num_ahead"; + @SerializedName(SERIALIZED_NAME_NUM_AHEAD) + @javax.annotation.Nonnull + private Integer numAhead; + public static final String SERIALIZED_NAME_STAGE = "stage"; @SerializedName(SERIALIZED_NAME_STAGE) @javax.annotation.Nonnull @@ -63,14 +68,28 @@ public class StageStatus { @javax.annotation.Nonnull private PipelineStageStatus status; - public static final String SERIALIZED_NAME_NUM_AHEAD = "num_ahead"; - @SerializedName(SERIALIZED_NAME_NUM_AHEAD) + public StageStatus() { + } + + public StageStatus numAhead(@javax.annotation.Nonnull Integer numAhead) { + this.numAhead = numAhead; + return this; + } + + /** + * Get numAhead + * @return numAhead + */ @javax.annotation.Nonnull - private Integer numAhead; + public Integer getNumAhead() { + return numAhead; + } - public StageStatus() { + public void setNumAhead(@javax.annotation.Nonnull Integer numAhead) { + this.numAhead = numAhead; } + public StageStatus stage(@javax.annotation.Nonnull AnalysisStage stage) { this.stage = stage; return this; @@ -108,25 +127,6 @@ public void setStatus(@javax.annotation.Nonnull PipelineStageStatus status) { this.status = status; } - - public StageStatus numAhead(@javax.annotation.Nonnull Integer numAhead) { - this.numAhead = numAhead; - return this; - } - - /** - * Get numAhead - * @return numAhead - */ - @javax.annotation.Nonnull - public Integer getNumAhead() { - return numAhead; - } - - public void setNumAhead(@javax.annotation.Nonnull Integer numAhead) { - this.numAhead = numAhead; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -182,24 +182,24 @@ public boolean equals(Object o) { return false; } StageStatus stageStatus = (StageStatus) o; - return Objects.equals(this.stage, stageStatus.stage) && - Objects.equals(this.status, stageStatus.status) && - Objects.equals(this.numAhead, stageStatus.numAhead)&& + return Objects.equals(this.numAhead, stageStatus.numAhead) && + Objects.equals(this.stage, stageStatus.stage) && + Objects.equals(this.status, stageStatus.status)&& Objects.equals(this.additionalProperties, stageStatus.additionalProperties); } @Override public int hashCode() { - return Objects.hash(stage, status, numAhead, additionalProperties); + return Objects.hash(numAhead, stage, status, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StageStatus {\n"); + sb.append(" numAhead: ").append(toIndentedString(numAhead)).append("\n"); sb.append(" stage: ").append(toIndentedString(stage)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" numAhead: ").append(toIndentedString(numAhead)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -222,10 +222,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("stage", "status", "num_ahead")); + openapiFields = new HashSet(Arrays.asList("num_ahead", "stage", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("stage", "status", "num_ahead")); + openapiRequiredFields = new HashSet(Arrays.asList("num_ahead", "stage", "status")); } /** diff --git a/src/main/java/ai/reveng/model/StringFunctions.java b/src/main/java/ai/reveng/model/StringFunctions.java index 84a777d..2dea22c 100644 --- a/src/main/java/ai/reveng/model/StringFunctions.java +++ b/src/main/java/ai/reveng/model/StringFunctions.java @@ -15,6 +15,7 @@ import java.util.Objects; import java.util.Locale; import ai.reveng.model.AppApiRestV2FunctionsResponsesFunction; +import ai.reveng.model.StringSource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -54,38 +55,24 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class StringFunctions { - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - @javax.annotation.Nonnull - private String value; - public static final String SERIALIZED_NAME_FUNCTIONS = "functions"; @SerializedName(SERIALIZED_NAME_FUNCTIONS) @javax.annotation.Nonnull private List functions = new ArrayList<>(); - public StringFunctions() { - } - - public StringFunctions value(@javax.annotation.Nonnull String value) { - this.value = value; - return this; - } + public static final String SERIALIZED_NAME_SOURCE = "source"; + @SerializedName(SERIALIZED_NAME_SOURCE) + @javax.annotation.Nullable + private StringSource source; - /** - * The value of the string literal - * @return value - */ + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) @javax.annotation.Nonnull - public String getValue() { - return value; - } + private String value; - public void setValue(@javax.annotation.Nonnull String value) { - this.value = value; + public StringFunctions() { } - public StringFunctions functions(@javax.annotation.Nonnull List functions) { this.functions = functions; return this; @@ -112,6 +99,44 @@ public void setFunctions(@javax.annotation.Nonnull List(Arrays.asList("value", "functions")); + openapiFields = new HashSet(Arrays.asList("functions", "source", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("value", "functions")); + openapiRequiredFields = new HashSet(Arrays.asList("functions", "value")); } /** @@ -231,9 +258,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - 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())); - } // ensure the json data is an array if (!jsonObj.get("functions").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `functions` to be an array in the JSON string but got `%s`", jsonObj.get("functions").toString())); @@ -244,6 +268,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArrayfunctions.size(); i++) { AppApiRestV2FunctionsResponsesFunction.validateJsonElement(jsonArrayfunctions.get(i)); }; + // validate the optional field `source` + if (jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) { + 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 { diff --git a/src/main/java/ai/reveng/model/StringSource.java b/src/main/java/ai/reveng/model/StringSource.java new file mode 100644 index 0000000..ca93af6 --- /dev/null +++ b/src/main/java/ai/reveng/model/StringSource.java @@ -0,0 +1,81 @@ +/* + * 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 com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import java.util.Locale; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Gets or Sets StringSource + */ +@JsonAdapter(StringSource.Adapter.class) +public enum StringSource { + + SYSTEM("SYSTEM"), + + USER("USER"), + + AI_AGENT("AI_AGENT"); + + private String value; + + StringSource(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StringSource fromValue(String value) { + for (StringSource b : StringSource.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StringSource enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StringSource read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StringSource.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + StringSource.fromValue(value); + } +} + diff --git a/src/main/java/ai/reveng/model/Structure.java b/src/main/java/ai/reveng/model/Structure.java index 2f7197d..912e8e2 100644 --- a/src/main/java/ai/reveng/model/Structure.java +++ b/src/main/java/ai/reveng/model/Structure.java @@ -55,11 +55,21 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Structure { + public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; + @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) + @javax.annotation.Nullable + private String artifactType; + public static final String SERIALIZED_NAME_LAST_CHANGE = "last_change"; @SerializedName(SERIALIZED_NAME_LAST_CHANGE) @javax.annotation.Nullable private String lastChange; + public static final String SERIALIZED_NAME_MEMBERS = "members"; + @SerializedName(SERIALIZED_NAME_MEMBERS) + @javax.annotation.Nonnull + private Map members = new HashMap<>(); + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull @@ -70,73 +80,44 @@ public class Structure { @javax.annotation.Nullable private Integer size; - public static final String SERIALIZED_NAME_MEMBERS = "members"; - @SerializedName(SERIALIZED_NAME_MEMBERS) - @javax.annotation.Nonnull - private Map members = new HashMap<>(); - - public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; - @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) - @javax.annotation.Nullable - private String artifactType; - public Structure() { } - public Structure lastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; + public Structure artifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; return this; } /** - * Get lastChange - * @return lastChange + * Type of artifact that the structure is associated with + * @return artifactType */ @javax.annotation.Nullable - public String getLastChange() { - return lastChange; - } - - public void setLastChange(@javax.annotation.Nullable String lastChange) { - this.lastChange = lastChange; - } - - - public Structure name(@javax.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Name of the structure - * @return name - */ - @javax.annotation.Nonnull - public String getName() { - return name; + public String getArtifactType() { + return artifactType; } - public void setName(@javax.annotation.Nonnull String name) { - this.name = name; + public void setArtifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; } - public Structure size(@javax.annotation.Nullable Integer size) { - this.size = size; + public Structure lastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; return this; } /** - * Get size - * @return size + * Get lastChange + * @return lastChange */ @javax.annotation.Nullable - public Integer getSize() { - return size; + public String getLastChange() { + return lastChange; } - public void setSize(@javax.annotation.Nullable Integer size) { - this.size = size; + public void setLastChange(@javax.annotation.Nullable String lastChange) { + this.lastChange = lastChange; } @@ -167,22 +148,41 @@ public void setMembers(@javax.annotation.Nonnull Map me } - public Structure artifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; + public Structure name(@javax.annotation.Nonnull String name) { + this.name = name; return this; } /** - * Type of artifact that the structure is associated with - * @return artifactType + * Name of the structure + * @return name + */ + @javax.annotation.Nonnull + public String getName() { + return name; + } + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + + public Structure size(@javax.annotation.Nullable Integer size) { + this.size = size; + return this; + } + + /** + * Get size + * @return size */ @javax.annotation.Nullable - public String getArtifactType() { - return artifactType; + public Integer getSize() { + return size; } - public void setArtifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; + public void setSize(@javax.annotation.Nullable Integer size) { + this.size = size; } /** @@ -240,11 +240,11 @@ public boolean equals(Object o) { return false; } Structure structure = (Structure) o; - return Objects.equals(this.lastChange, structure.lastChange) && - Objects.equals(this.name, structure.name) && - Objects.equals(this.size, structure.size) && + return Objects.equals(this.artifactType, structure.artifactType) && + Objects.equals(this.lastChange, structure.lastChange) && Objects.equals(this.members, structure.members) && - Objects.equals(this.artifactType, structure.artifactType)&& + Objects.equals(this.name, structure.name) && + Objects.equals(this.size, structure.size)&& Objects.equals(this.additionalProperties, structure.additionalProperties); } @@ -254,7 +254,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lastChange, name, size, members, artifactType, additionalProperties); + return Objects.hash(artifactType, lastChange, members, name, size, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -268,11 +268,11 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Structure {\n"); + sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n"); + sb.append(" members: ").append(toIndentedString(members)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); - sb.append(" members: ").append(toIndentedString(members)).append("\n"); - sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -295,10 +295,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("last_change", "name", "size", "members", "artifact_type")); + openapiFields = new HashSet(Arrays.asList("artifact_type", "last_change", "members", "name", "size")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "members")); + openapiRequiredFields = new HashSet(Arrays.asList("members", "name")); } /** @@ -321,15 +321,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); + } if ((jsonObj.get("last_change") != null && !jsonObj.get("last_change").isJsonNull()) && !jsonObj.get("last_change").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `last_change` to be a primitive type in the JSON string but got `%s`", jsonObj.get("last_change").toString())); } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/StructureMember.java b/src/main/java/ai/reveng/model/StructureMember.java index 2481682..3eed414 100644 --- a/src/main/java/ai/reveng/model/StructureMember.java +++ b/src/main/java/ai/reveng/model/StructureMember.java @@ -67,16 +67,16 @@ public class StructureMember { @javax.annotation.Nonnull private Integer offset; - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nonnull - private String type; - 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 StructureMember() { } @@ -137,41 +137,41 @@ public void setOffset(@javax.annotation.Nonnull Integer offset) { } - public StructureMember type(@javax.annotation.Nonnull String type) { - this.type = type; + public StructureMember size(@javax.annotation.Nonnull Integer size) { + this.size = size; return this; } /** - * Data type of the structure member - * @return type + * Size of the structure member in bytes + * @return size */ @javax.annotation.Nonnull - public String getType() { - return type; + public Integer getSize() { + return size; } - public void setType(@javax.annotation.Nonnull String type) { - this.type = type; + public void setSize(@javax.annotation.Nonnull Integer size) { + this.size = size; } - public StructureMember size(@javax.annotation.Nonnull Integer size) { - this.size = size; + public StructureMember type(@javax.annotation.Nonnull String type) { + this.type = type; return this; } /** - * Size of the structure member in bytes - * @return size + * Data type of the structure member + * @return type */ @javax.annotation.Nonnull - public Integer getSize() { - return size; + public String getType() { + return type; } - public void setSize(@javax.annotation.Nonnull Integer size) { - this.size = size; + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; } /** @@ -232,8 +232,8 @@ public boolean equals(Object o) { return Objects.equals(this.lastChange, structureMember.lastChange) && Objects.equals(this.name, structureMember.name) && Objects.equals(this.offset, structureMember.offset) && - Objects.equals(this.type, structureMember.type) && - Objects.equals(this.size, structureMember.size)&& + Objects.equals(this.size, structureMember.size) && + Objects.equals(this.type, structureMember.type)&& Objects.equals(this.additionalProperties, structureMember.additionalProperties); } @@ -243,7 +243,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lastChange, name, offset, type, size, additionalProperties); + return Objects.hash(lastChange, name, offset, size, type, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -260,8 +260,8 @@ public String toString() { sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).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", "name", "offset", "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("name", "offset", "type", "size")); + openapiRequiredFields = new HashSet(Arrays.asList("name", "offset", "size", "type")); } /** diff --git a/src/main/java/ai/reveng/model/TTPS.java b/src/main/java/ai/reveng/model/TTPS.java index b8df65c..7813a61 100644 --- a/src/main/java/ai/reveng/model/TTPS.java +++ b/src/main/java/ai/reveng/model/TTPS.java @@ -52,54 +52,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TTPS { - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - @javax.annotation.Nonnull - private Boolean success; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @javax.annotation.Nonnull private TTPSData data; + public static final String SERIALIZED_NAME_SUCCESS = "success"; + @SerializedName(SERIALIZED_NAME_SUCCESS) + @javax.annotation.Nonnull + private Boolean success; + public TTPS() { } - public TTPS success(@javax.annotation.Nonnull Boolean success) { - this.success = success; + public TTPS data(@javax.annotation.Nonnull TTPSData data) { + this.data = data; return this; } /** - * Get success - * @return success + * Get data + * @return data */ @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; + public TTPSData getData() { + return data; } - public void setSuccess(@javax.annotation.Nonnull Boolean success) { - this.success = success; + public void setData(@javax.annotation.Nonnull TTPSData data) { + this.data = data; } - public TTPS data(@javax.annotation.Nonnull TTPSData data) { - this.data = data; + public TTPS success(@javax.annotation.Nonnull Boolean success) { + this.success = success; return this; } /** - * Get data - * @return data + * Get success + * @return success */ @javax.annotation.Nonnull - public TTPSData getData() { - return data; + public Boolean getSuccess() { + return success; } - public void setData(@javax.annotation.Nonnull TTPSData data) { - this.data = data; + public void setSuccess(@javax.annotation.Nonnull Boolean success) { + this.success = success; } /** @@ -157,22 +157,22 @@ public boolean equals(Object o) { return false; } TTPS TTPS = (TTPS) o; - return Objects.equals(this.success, TTPS.success) && - Objects.equals(this.data, TTPS.data)&& + return Objects.equals(this.data, TTPS.data) && + Objects.equals(this.success, TTPS.success)&& Objects.equals(this.additionalProperties, TTPS.additionalProperties); } @Override public int hashCode() { - return Objects.hash(success, data, additionalProperties); + return Objects.hash(data, success, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TTPS {\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -195,10 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("success", "data")); + openapiFields = new HashSet(Arrays.asList("data", "success")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("success", "data")); + openapiRequiredFields = new HashSet(Arrays.asList("data", "success")); } /** diff --git a/src/main/java/ai/reveng/model/TTPSElement.java b/src/main/java/ai/reveng/model/TTPSElement.java index 3601539..42ed78e 100644 --- a/src/main/java/ai/reveng/model/TTPSElement.java +++ b/src/main/java/ai/reveng/model/TTPSElement.java @@ -55,16 +55,16 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TTPSElement { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; - public static final String SERIALIZED_NAME_ATTACK = "attack"; @SerializedName(SERIALIZED_NAME_ATTACK) @javax.annotation.Nonnull private List attack = new ArrayList<>(); + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + public static final String SERIALIZED_NAME_OCCURRENCES = "occurrences"; @SerializedName(SERIALIZED_NAME_OCCURRENCES) @javax.annotation.Nonnull @@ -78,25 +78,6 @@ public class TTPSElement { public TTPSElement() { } - public TTPSElement name(@javax.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - */ - @javax.annotation.Nonnull - public String getName() { - return name; - } - - public void setName(@javax.annotation.Nonnull String name) { - this.name = name; - } - - public TTPSElement attack(@javax.annotation.Nonnull List attack) { this.attack = attack; return this; @@ -124,6 +105,25 @@ public void setAttack(@javax.annotation.Nonnull List attack) { } + public TTPSElement name(@javax.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + @javax.annotation.Nonnull + public String getName() { + return name; + } + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + public TTPSElement occurrences(@javax.annotation.Nonnull List occurrences) { this.occurrences = occurrences; return this; @@ -224,8 +224,8 @@ public boolean equals(Object o) { return false; } TTPSElement ttPSElement = (TTPSElement) o; - return Objects.equals(this.name, ttPSElement.name) && - Objects.equals(this.attack, ttPSElement.attack) && + return Objects.equals(this.attack, ttPSElement.attack) && + Objects.equals(this.name, ttPSElement.name) && Objects.equals(this.occurrences, ttPSElement.occurrences) && Objects.equals(this.score, ttPSElement.score)&& Objects.equals(this.additionalProperties, ttPSElement.additionalProperties); @@ -233,15 +233,15 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(name, attack, occurrences, score, additionalProperties); + return Objects.hash(attack, name, occurrences, score, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TTPSElement {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" attack: ").append(toIndentedString(attack)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" occurrences: ").append(toIndentedString(occurrences)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -266,10 +266,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "attack", "occurrences", "score")); + openapiFields = new HashSet(Arrays.asList("attack", "name", "occurrences", "score")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "attack", "occurrences", "score")); + openapiRequiredFields = new HashSet(Arrays.asList("attack", "name", "occurrences", "score")); } /** @@ -292,9 +292,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } // ensure the json data is an array if (!jsonObj.get("attack").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attack` to be an array in the JSON string but got `%s`", jsonObj.get("attack").toString())); @@ -305,6 +302,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArrayattack.size(); i++) { TTPSAttack.validateJsonElement(jsonArrayattack.get(i)); }; + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } // ensure the json data is an array if (!jsonObj.get("occurrences").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `occurrences` to be an array in the JSON string but got `%s`", jsonObj.get("occurrences").toString())); diff --git a/src/main/java/ai/reveng/model/TTPSOccurance.java b/src/main/java/ai/reveng/model/TTPSOccurance.java index 9e708eb..e505544 100644 --- a/src/main/java/ai/reveng/model/TTPSOccurance.java +++ b/src/main/java/ai/reveng/model/TTPSOccurance.java @@ -51,54 +51,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TTPSOccurance { - public static final String SERIALIZED_NAME_PPID = "ppid"; - @SerializedName(SERIALIZED_NAME_PPID) - @javax.annotation.Nonnull - private Integer ppid; - public static final String SERIALIZED_NAME_PID = "pid"; @SerializedName(SERIALIZED_NAME_PID) @javax.annotation.Nonnull private Integer pid; + public static final String SERIALIZED_NAME_PPID = "ppid"; + @SerializedName(SERIALIZED_NAME_PPID) + @javax.annotation.Nonnull + private Integer ppid; + public TTPSOccurance() { } - public TTPSOccurance ppid(@javax.annotation.Nonnull Integer ppid) { - this.ppid = ppid; + public TTPSOccurance pid(@javax.annotation.Nonnull Integer pid) { + this.pid = pid; return this; } /** - * Get ppid - * @return ppid + * Get pid + * @return pid */ @javax.annotation.Nonnull - public Integer getPpid() { - return ppid; + public Integer getPid() { + return pid; } - public void setPpid(@javax.annotation.Nonnull Integer ppid) { - this.ppid = ppid; + public void setPid(@javax.annotation.Nonnull Integer pid) { + this.pid = pid; } - public TTPSOccurance pid(@javax.annotation.Nonnull Integer pid) { - this.pid = pid; + public TTPSOccurance ppid(@javax.annotation.Nonnull Integer ppid) { + this.ppid = ppid; return this; } /** - * Get pid - * @return pid + * Get ppid + * @return ppid */ @javax.annotation.Nonnull - public Integer getPid() { - return pid; + public Integer getPpid() { + return ppid; } - public void setPid(@javax.annotation.Nonnull Integer pid) { - this.pid = pid; + public void setPpid(@javax.annotation.Nonnull Integer ppid) { + this.ppid = ppid; } /** @@ -156,22 +156,22 @@ public boolean equals(Object o) { return false; } TTPSOccurance ttPSOccurance = (TTPSOccurance) o; - return Objects.equals(this.ppid, ttPSOccurance.ppid) && - Objects.equals(this.pid, ttPSOccurance.pid)&& + return Objects.equals(this.pid, ttPSOccurance.pid) && + Objects.equals(this.ppid, ttPSOccurance.ppid)&& Objects.equals(this.additionalProperties, ttPSOccurance.additionalProperties); } @Override public int hashCode() { - return Objects.hash(ppid, pid, additionalProperties); + return Objects.hash(pid, ppid, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TTPSOccurance {\n"); - sb.append(" ppid: ").append(toIndentedString(ppid)).append("\n"); sb.append(" pid: ").append(toIndentedString(pid)).append("\n"); + sb.append(" ppid: ").append(toIndentedString(ppid)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -194,10 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("ppid", "pid")); + openapiFields = new HashSet(Arrays.asList("pid", "ppid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("ppid", "pid")); + openapiRequiredFields = new HashSet(Arrays.asList("pid", "ppid")); } /** diff --git a/src/main/java/ai/reveng/model/TagItem.java b/src/main/java/ai/reveng/model/TagItem.java index a546aff..84271eb 100644 --- a/src/main/java/ai/reveng/model/TagItem.java +++ b/src/main/java/ai/reveng/model/TagItem.java @@ -52,6 +52,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TagItem { + public static final String SERIALIZED_NAME_COLLECTION_ID = "collection_id"; + @SerializedName(SERIALIZED_NAME_COLLECTION_ID) + @javax.annotation.Nullable + private Integer collectionId; + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull @@ -62,14 +67,28 @@ public class TagItem { @javax.annotation.Nonnull private String origin; - public static final String SERIALIZED_NAME_COLLECTION_ID = "collection_id"; - @SerializedName(SERIALIZED_NAME_COLLECTION_ID) + public TagItem() { + } + + public TagItem collectionId(@javax.annotation.Nullable Integer collectionId) { + this.collectionId = collectionId; + return this; + } + + /** + * Get collectionId + * @return collectionId + */ @javax.annotation.Nullable - private Integer collectionId; + public Integer getCollectionId() { + return collectionId; + } - public TagItem() { + public void setCollectionId(@javax.annotation.Nullable Integer collectionId) { + this.collectionId = collectionId; } + public TagItem name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -107,25 +126,6 @@ public void setOrigin(@javax.annotation.Nonnull String origin) { this.origin = origin; } - - public TagItem collectionId(@javax.annotation.Nullable Integer collectionId) { - this.collectionId = collectionId; - return this; - } - - /** - * Get collectionId - * @return collectionId - */ - @javax.annotation.Nullable - public Integer getCollectionId() { - return collectionId; - } - - public void setCollectionId(@javax.annotation.Nullable Integer collectionId) { - this.collectionId = collectionId; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -181,9 +181,9 @@ public boolean equals(Object o) { return false; } TagItem tagItem = (TagItem) o; - return Objects.equals(this.name, tagItem.name) && - Objects.equals(this.origin, tagItem.origin) && - Objects.equals(this.collectionId, tagItem.collectionId)&& + return Objects.equals(this.collectionId, tagItem.collectionId) && + Objects.equals(this.name, tagItem.name) && + Objects.equals(this.origin, tagItem.origin)&& Objects.equals(this.additionalProperties, tagItem.additionalProperties); } @@ -193,7 +193,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, origin, collectionId, additionalProperties); + return Objects.hash(collectionId, name, origin, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -207,9 +207,9 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TagItem {\n"); + sb.append(" collectionId: ").append(toIndentedString(collectionId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" origin: ").append(toIndentedString(origin)).append("\n"); - sb.append(" collectionId: ").append(toIndentedString(collectionId)).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("name", "origin", "collection_id")); + openapiFields = new HashSet(Arrays.asList("collection_id", "name", "origin")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name", "origin")); diff --git a/src/main/java/ai/reveng/model/TagSearchResult.java b/src/main/java/ai/reveng/model/TagSearchResult.java index 52840cd..d4a3a7c 100644 --- a/src/main/java/ai/reveng/model/TagSearchResult.java +++ b/src/main/java/ai/reveng/model/TagSearchResult.java @@ -51,54 +51,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TagSearchResult { - public static final String SERIALIZED_NAME_TAG_ID = "tag_id"; - @SerializedName(SERIALIZED_NAME_TAG_ID) - @javax.annotation.Nonnull - private Integer tagId; - public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) @javax.annotation.Nonnull private String tag; + public static final String SERIALIZED_NAME_TAG_ID = "tag_id"; + @SerializedName(SERIALIZED_NAME_TAG_ID) + @javax.annotation.Nonnull + private Integer tagId; + public TagSearchResult() { } - public TagSearchResult tagId(@javax.annotation.Nonnull Integer tagId) { - this.tagId = tagId; + public TagSearchResult tag(@javax.annotation.Nonnull String tag) { + this.tag = tag; return this; } /** - * The ID of the tag - * @return tagId + * The name of the tag + * @return tag */ @javax.annotation.Nonnull - public Integer getTagId() { - return tagId; + public String getTag() { + return tag; } - public void setTagId(@javax.annotation.Nonnull Integer tagId) { - this.tagId = tagId; + public void setTag(@javax.annotation.Nonnull String tag) { + this.tag = tag; } - public TagSearchResult tag(@javax.annotation.Nonnull String tag) { - this.tag = tag; + public TagSearchResult tagId(@javax.annotation.Nonnull Integer tagId) { + this.tagId = tagId; return this; } /** - * The name of the tag - * @return tag + * The ID of the tag + * @return tagId */ @javax.annotation.Nonnull - public String getTag() { - return tag; + public Integer getTagId() { + return tagId; } - public void setTag(@javax.annotation.Nonnull String tag) { - this.tag = tag; + public void setTagId(@javax.annotation.Nonnull Integer tagId) { + this.tagId = tagId; } /** @@ -156,22 +156,22 @@ public boolean equals(Object o) { return false; } TagSearchResult tagSearchResult = (TagSearchResult) o; - return Objects.equals(this.tagId, tagSearchResult.tagId) && - Objects.equals(this.tag, tagSearchResult.tag)&& + return Objects.equals(this.tag, tagSearchResult.tag) && + Objects.equals(this.tagId, tagSearchResult.tagId)&& Objects.equals(this.additionalProperties, tagSearchResult.additionalProperties); } @Override public int hashCode() { - return Objects.hash(tagId, tag, additionalProperties); + return Objects.hash(tag, tagId, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TagSearchResult {\n"); - sb.append(" tagId: ").append(toIndentedString(tagId)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" tagId: ").append(toIndentedString(tagId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -194,10 +194,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("tag_id", "tag")); + openapiFields = new HashSet(Arrays.asList("tag", "tag_id")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("tag_id", "tag")); + openapiRequiredFields = new HashSet(Arrays.asList("tag", "tag_id")); } /** diff --git a/src/main/java/ai/reveng/model/TaskResponse.java b/src/main/java/ai/reveng/model/TaskResponse.java index dc3acbb..64679ec 100644 --- a/src/main/java/ai/reveng/model/TaskResponse.java +++ b/src/main/java/ai/reveng/model/TaskResponse.java @@ -53,54 +53,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TaskResponse { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private TaskStatus status; - public static final String SERIALIZED_NAME_ERROR_MESSAGE = "error_message"; @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) @javax.annotation.Nullable private String errorMessage; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable + private TaskStatus status; + public TaskResponse() { } - public TaskResponse status(@javax.annotation.Nullable TaskStatus status) { - this.status = status; + public TaskResponse errorMessage(@javax.annotation.Nullable String errorMessage) { + this.errorMessage = errorMessage; return this; } /** - * Get status - * @return status + * Get errorMessage + * @return errorMessage */ @javax.annotation.Nullable - public TaskStatus getStatus() { - return status; + public String getErrorMessage() { + return errorMessage; } - public void setStatus(@javax.annotation.Nullable TaskStatus status) { - this.status = status; + public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { + this.errorMessage = errorMessage; } - public TaskResponse errorMessage(@javax.annotation.Nullable String errorMessage) { - this.errorMessage = errorMessage; + public TaskResponse status(@javax.annotation.Nullable TaskStatus status) { + this.status = status; return this; } /** - * Get errorMessage - * @return errorMessage + * Get status + * @return status */ @javax.annotation.Nullable - public String getErrorMessage() { - return errorMessage; + public TaskStatus getStatus() { + return status; } - public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { - this.errorMessage = errorMessage; + public void setStatus(@javax.annotation.Nullable TaskStatus status) { + this.status = status; } /** @@ -158,8 +158,8 @@ public boolean equals(Object o) { return false; } TaskResponse taskResponse = (TaskResponse) o; - return Objects.equals(this.status, taskResponse.status) && - Objects.equals(this.errorMessage, taskResponse.errorMessage)&& + return Objects.equals(this.errorMessage, taskResponse.errorMessage) && + Objects.equals(this.status, taskResponse.status)&& Objects.equals(this.additionalProperties, taskResponse.additionalProperties); } @@ -169,7 +169,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(status, errorMessage, additionalProperties); + return Objects.hash(errorMessage, status, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -183,8 +183,8 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TaskResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -207,7 +207,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "error_message")); + openapiFields = new HashSet(Arrays.asList("error_message", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -226,13 +226,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("error_message") != null && !jsonObj.get("error_message").isJsonNull()) && !jsonObj.get("error_message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error_message").toString())); + } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { TaskStatus.validateJsonElement(jsonObj.get("status")); } - if ((jsonObj.get("error_message") != null && !jsonObj.get("error_message").isJsonNull()) && !jsonObj.get("error_message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error_message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/TimestampModel.java b/src/main/java/ai/reveng/model/TimestampModel.java index eaa2023..9ed195e 100644 --- a/src/main/java/ai/reveng/model/TimestampModel.java +++ b/src/main/java/ai/reveng/model/TimestampModel.java @@ -51,40 +51,40 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TimestampModel { - public static final String SERIALIZED_NAME_PE_TIMESTAMP = "pe_timestamp"; - @SerializedName(SERIALIZED_NAME_PE_TIMESTAMP) + public static final String SERIALIZED_NAME_DEBUG_TIMESTAMP = "debug_timestamp"; + @SerializedName(SERIALIZED_NAME_DEBUG_TIMESTAMP) @javax.annotation.Nonnull - private Integer peTimestamp; + private Integer debugTimestamp; public static final String SERIALIZED_NAME_EXPORT_TIMESTAMP = "export_timestamp"; @SerializedName(SERIALIZED_NAME_EXPORT_TIMESTAMP) @javax.annotation.Nonnull private Integer exportTimestamp; - public static final String SERIALIZED_NAME_DEBUG_TIMESTAMP = "debug_timestamp"; - @SerializedName(SERIALIZED_NAME_DEBUG_TIMESTAMP) + public static final String SERIALIZED_NAME_PE_TIMESTAMP = "pe_timestamp"; + @SerializedName(SERIALIZED_NAME_PE_TIMESTAMP) @javax.annotation.Nonnull - private Integer debugTimestamp; + private Integer peTimestamp; public TimestampModel() { } - public TimestampModel peTimestamp(@javax.annotation.Nonnull Integer peTimestamp) { - this.peTimestamp = peTimestamp; + public TimestampModel debugTimestamp(@javax.annotation.Nonnull Integer debugTimestamp) { + this.debugTimestamp = debugTimestamp; return this; } /** - * Get peTimestamp - * @return peTimestamp + * Get debugTimestamp + * @return debugTimestamp */ @javax.annotation.Nonnull - public Integer getPeTimestamp() { - return peTimestamp; + public Integer getDebugTimestamp() { + return debugTimestamp; } - public void setPeTimestamp(@javax.annotation.Nonnull Integer peTimestamp) { - this.peTimestamp = peTimestamp; + public void setDebugTimestamp(@javax.annotation.Nonnull Integer debugTimestamp) { + this.debugTimestamp = debugTimestamp; } @@ -107,22 +107,22 @@ public void setExportTimestamp(@javax.annotation.Nonnull Integer exportTimestamp } - public TimestampModel debugTimestamp(@javax.annotation.Nonnull Integer debugTimestamp) { - this.debugTimestamp = debugTimestamp; + public TimestampModel peTimestamp(@javax.annotation.Nonnull Integer peTimestamp) { + this.peTimestamp = peTimestamp; return this; } /** - * Get debugTimestamp - * @return debugTimestamp + * Get peTimestamp + * @return peTimestamp */ @javax.annotation.Nonnull - public Integer getDebugTimestamp() { - return debugTimestamp; + public Integer getPeTimestamp() { + return peTimestamp; } - public void setDebugTimestamp(@javax.annotation.Nonnull Integer debugTimestamp) { - this.debugTimestamp = debugTimestamp; + public void setPeTimestamp(@javax.annotation.Nonnull Integer peTimestamp) { + this.peTimestamp = peTimestamp; } /** @@ -180,24 +180,24 @@ public boolean equals(Object o) { return false; } TimestampModel timestampModel = (TimestampModel) o; - return Objects.equals(this.peTimestamp, timestampModel.peTimestamp) && + return Objects.equals(this.debugTimestamp, timestampModel.debugTimestamp) && Objects.equals(this.exportTimestamp, timestampModel.exportTimestamp) && - Objects.equals(this.debugTimestamp, timestampModel.debugTimestamp)&& + Objects.equals(this.peTimestamp, timestampModel.peTimestamp)&& Objects.equals(this.additionalProperties, timestampModel.additionalProperties); } @Override public int hashCode() { - return Objects.hash(peTimestamp, exportTimestamp, debugTimestamp, additionalProperties); + return Objects.hash(debugTimestamp, exportTimestamp, peTimestamp, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TimestampModel {\n"); - sb.append(" peTimestamp: ").append(toIndentedString(peTimestamp)).append("\n"); - sb.append(" exportTimestamp: ").append(toIndentedString(exportTimestamp)).append("\n"); sb.append(" debugTimestamp: ").append(toIndentedString(debugTimestamp)).append("\n"); + sb.append(" exportTimestamp: ").append(toIndentedString(exportTimestamp)).append("\n"); + sb.append(" peTimestamp: ").append(toIndentedString(peTimestamp)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -220,10 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("pe_timestamp", "export_timestamp", "debug_timestamp")); + openapiFields = new HashSet(Arrays.asList("debug_timestamp", "export_timestamp", "pe_timestamp")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("pe_timestamp", "export_timestamp", "debug_timestamp")); + openapiRequiredFields = new HashSet(Arrays.asList("debug_timestamp", "export_timestamp", "pe_timestamp")); } /** diff --git a/src/main/java/ai/reveng/model/TypeDefinition.java b/src/main/java/ai/reveng/model/TypeDefinition.java index 546cf12..853d264 100644 --- a/src/main/java/ai/reveng/model/TypeDefinition.java +++ b/src/main/java/ai/reveng/model/TypeDefinition.java @@ -52,6 +52,11 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TypeDefinition { + public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; + @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) + @javax.annotation.Nullable + private String artifactType; + public static final String SERIALIZED_NAME_LAST_CHANGE = "last_change"; @SerializedName(SERIALIZED_NAME_LAST_CHANGE) @javax.annotation.Nullable @@ -67,14 +72,28 @@ public class TypeDefinition { @javax.annotation.Nonnull private String type; - public static final String SERIALIZED_NAME_ARTIFACT_TYPE = "artifact_type"; - @SerializedName(SERIALIZED_NAME_ARTIFACT_TYPE) + public TypeDefinition() { + } + + public TypeDefinition artifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; + return this; + } + + /** + * Type of artifact the type definition is associated with + * @return artifactType + */ @javax.annotation.Nullable - private String artifactType; + public String getArtifactType() { + return artifactType; + } - public TypeDefinition() { + public void setArtifactType(@javax.annotation.Nullable String artifactType) { + this.artifactType = artifactType; } + public TypeDefinition lastChange(@javax.annotation.Nullable String lastChange) { this.lastChange = lastChange; return this; @@ -131,25 +150,6 @@ public void setType(@javax.annotation.Nonnull String type) { this.type = type; } - - public TypeDefinition artifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; - return this; - } - - /** - * Type of artifact the type definition is associated with - * @return artifactType - */ - @javax.annotation.Nullable - public String getArtifactType() { - return artifactType; - } - - public void setArtifactType(@javax.annotation.Nullable String artifactType) { - this.artifactType = artifactType; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -205,10 +205,10 @@ public boolean equals(Object o) { return false; } TypeDefinition typeDefinition = (TypeDefinition) o; - return Objects.equals(this.lastChange, typeDefinition.lastChange) && + return Objects.equals(this.artifactType, typeDefinition.artifactType) && + Objects.equals(this.lastChange, typeDefinition.lastChange) && Objects.equals(this.name, typeDefinition.name) && - Objects.equals(this.type, typeDefinition.type) && - Objects.equals(this.artifactType, typeDefinition.artifactType)&& + Objects.equals(this.type, typeDefinition.type)&& Objects.equals(this.additionalProperties, typeDefinition.additionalProperties); } @@ -218,7 +218,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(lastChange, name, type, artifactType, additionalProperties); + return Objects.hash(artifactType, lastChange, name, type, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -232,10 +232,10 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TypeDefinition {\n"); + sb.append(" artifactType: ").append(toIndentedString(artifactType)).append("\n"); sb.append(" lastChange: ").append(toIndentedString(lastChange)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" artifactType: ").append(toIndentedString(artifactType)).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("last_change", "name", "type", "artifact_type")); + openapiFields = new HashSet(Arrays.asList("artifact_type", "last_change", "name", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name", "type")); @@ -284,6 +284,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); + } if ((jsonObj.get("last_change") != null && !jsonObj.get("last_change").isJsonNull()) && !jsonObj.get("last_change").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `last_change` to be a primitive type in the JSON string but got `%s`", jsonObj.get("last_change").toString())); } @@ -293,9 +296,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - if ((jsonObj.get("artifact_type") != null && !jsonObj.get("artifact_type").isJsonNull()) && !jsonObj.get("artifact_type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `artifact_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("artifact_type").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/UpdateFunctionDataTypes.java b/src/main/java/ai/reveng/model/UpdateFunctionDataTypes.java index ecfbce2..2852674 100644 --- a/src/main/java/ai/reveng/model/UpdateFunctionDataTypes.java +++ b/src/main/java/ai/reveng/model/UpdateFunctionDataTypes.java @@ -52,54 +52,54 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class UpdateFunctionDataTypes { - public static final String SERIALIZED_NAME_DATA_TYPES_VERSION = "data_types_version"; - @SerializedName(SERIALIZED_NAME_DATA_TYPES_VERSION) - @javax.annotation.Nonnull - private Integer dataTypesVersion; - public static final String SERIALIZED_NAME_DATA_TYPES = "data_types"; @SerializedName(SERIALIZED_NAME_DATA_TYPES) @javax.annotation.Nonnull private FunctionInfoInput dataTypes; + public static final String SERIALIZED_NAME_DATA_TYPES_VERSION = "data_types_version"; + @SerializedName(SERIALIZED_NAME_DATA_TYPES_VERSION) + @javax.annotation.Nonnull + private Integer dataTypesVersion; + public UpdateFunctionDataTypes() { } - public UpdateFunctionDataTypes dataTypesVersion(@javax.annotation.Nonnull Integer dataTypesVersion) { - this.dataTypesVersion = dataTypesVersion; + public UpdateFunctionDataTypes dataTypes(@javax.annotation.Nonnull FunctionInfoInput dataTypes) { + this.dataTypes = dataTypes; return this; } /** - * Version of the function data types, used to check this update is not overwriting a newer one - * @return dataTypesVersion + * Function data types information to update + * @return dataTypes */ @javax.annotation.Nonnull - public Integer getDataTypesVersion() { - return dataTypesVersion; + public FunctionInfoInput getDataTypes() { + return dataTypes; } - public void setDataTypesVersion(@javax.annotation.Nonnull Integer dataTypesVersion) { - this.dataTypesVersion = dataTypesVersion; + public void setDataTypes(@javax.annotation.Nonnull FunctionInfoInput dataTypes) { + this.dataTypes = dataTypes; } - public UpdateFunctionDataTypes dataTypes(@javax.annotation.Nonnull FunctionInfoInput dataTypes) { - this.dataTypes = dataTypes; + public UpdateFunctionDataTypes dataTypesVersion(@javax.annotation.Nonnull Integer dataTypesVersion) { + this.dataTypesVersion = dataTypesVersion; return this; } /** - * Function data types information to update - * @return dataTypes + * Version of the function data types, used to check this update is not overwriting a newer one + * @return dataTypesVersion */ @javax.annotation.Nonnull - public FunctionInfoInput getDataTypes() { - return dataTypes; + public Integer getDataTypesVersion() { + return dataTypesVersion; } - public void setDataTypes(@javax.annotation.Nonnull FunctionInfoInput dataTypes) { - this.dataTypes = dataTypes; + public void setDataTypesVersion(@javax.annotation.Nonnull Integer dataTypesVersion) { + this.dataTypesVersion = dataTypesVersion; } /** @@ -157,22 +157,22 @@ public boolean equals(Object o) { return false; } UpdateFunctionDataTypes updateFunctionDataTypes = (UpdateFunctionDataTypes) o; - return Objects.equals(this.dataTypesVersion, updateFunctionDataTypes.dataTypesVersion) && - Objects.equals(this.dataTypes, updateFunctionDataTypes.dataTypes)&& + return Objects.equals(this.dataTypes, updateFunctionDataTypes.dataTypes) && + Objects.equals(this.dataTypesVersion, updateFunctionDataTypes.dataTypesVersion)&& Objects.equals(this.additionalProperties, updateFunctionDataTypes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dataTypesVersion, dataTypes, additionalProperties); + return Objects.hash(dataTypes, dataTypesVersion, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateFunctionDataTypes {\n"); - sb.append(" dataTypesVersion: ").append(toIndentedString(dataTypesVersion)).append("\n"); sb.append(" dataTypes: ").append(toIndentedString(dataTypes)).append("\n"); + sb.append(" dataTypesVersion: ").append(toIndentedString(dataTypesVersion)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -195,10 +195,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data_types_version", "data_types")); + openapiFields = new HashSet(Arrays.asList("data_types", "data_types_version")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("data_types_version", "data_types")); + openapiRequiredFields = new HashSet(Arrays.asList("data_types", "data_types_version")); } /** diff --git a/src/main/java/ai/reveng/model/UploadResponse.java b/src/main/java/ai/reveng/model/UploadResponse.java index e5b4677..4647839 100644 --- a/src/main/java/ai/reveng/model/UploadResponse.java +++ b/src/main/java/ai/reveng/model/UploadResponse.java @@ -52,11 +52,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class UploadResponse { - 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_FILE_TYPE = "file_type"; @SerializedName(SERIALIZED_NAME_FILE_TYPE) @javax.annotation.Nonnull @@ -67,28 +62,14 @@ public class UploadResponse { @javax.annotation.Nonnull private String filename; - public UploadResponse() { - } - - public UploadResponse sha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; - return this; - } - - /** - * Get sha256Hash - * @return sha256Hash - */ + public static final String SERIALIZED_NAME_SHA256_HASH = "sha_256_hash"; + @SerializedName(SERIALIZED_NAME_SHA256_HASH) @javax.annotation.Nonnull - public String getSha256Hash() { - return sha256Hash; - } + private String sha256Hash; - public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { - this.sha256Hash = sha256Hash; + public UploadResponse() { } - public UploadResponse fileType(@javax.annotation.Nonnull UploadFileType fileType) { this.fileType = fileType; return this; @@ -126,6 +107,25 @@ public void setFilename(@javax.annotation.Nonnull String filename) { this.filename = filename; } + + public UploadResponse sha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; + return this; + } + + /** + * Get sha256Hash + * @return sha256Hash + */ + @javax.annotation.Nonnull + public String getSha256Hash() { + return sha256Hash; + } + + public void setSha256Hash(@javax.annotation.Nonnull String sha256Hash) { + this.sha256Hash = sha256Hash; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -181,24 +181,24 @@ public boolean equals(Object o) { return false; } UploadResponse uploadResponse = (UploadResponse) o; - return Objects.equals(this.sha256Hash, uploadResponse.sha256Hash) && - Objects.equals(this.fileType, uploadResponse.fileType) && - Objects.equals(this.filename, uploadResponse.filename)&& + return Objects.equals(this.fileType, uploadResponse.fileType) && + Objects.equals(this.filename, uploadResponse.filename) && + Objects.equals(this.sha256Hash, uploadResponse.sha256Hash)&& Objects.equals(this.additionalProperties, uploadResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(sha256Hash, fileType, filename, additionalProperties); + return Objects.hash(fileType, filename, sha256Hash, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UploadResponse {\n"); - sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); sb.append(" fileType: ").append(toIndentedString(fileType)).append("\n"); sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); + sb.append(" sha256Hash: ").append(toIndentedString(sha256Hash)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -221,10 +221,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("sha_256_hash", "file_type", "filename")); + openapiFields = new HashSet(Arrays.asList("file_type", "filename", "sha_256_hash")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("sha_256_hash", "file_type", "filename")); + openapiRequiredFields = new HashSet(Arrays.asList("file_type", "filename", "sha_256_hash")); } /** @@ -247,14 +247,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - 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 `file_type` UploadFileType.validateJsonElement(jsonObj.get("file_type")); 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())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/Vulnerability.java b/src/main/java/ai/reveng/model/Vulnerability.java index a3cf96a..7efeba7 100644 --- a/src/main/java/ai/reveng/model/Vulnerability.java +++ b/src/main/java/ai/reveng/model/Vulnerability.java @@ -52,25 +52,40 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Vulnerability { - public static final String SERIALIZED_NAME_VENDOR = "vendor"; - @SerializedName(SERIALIZED_NAME_VENDOR) + public static final String SERIALIZED_NAME_CVE_NUMBER = "cve_number"; + @SerializedName(SERIALIZED_NAME_CVE_NUMBER) @javax.annotation.Nonnull - private String vendor; + private String cveNumber; + + public static final String SERIALIZED_NAME_CVSS_VECTOR = "cvss_vector"; + @SerializedName(SERIALIZED_NAME_CVSS_VECTOR) + @javax.annotation.Nonnull + private String cvssVector; + + public static final String SERIALIZED_NAME_CVSS_VERSION = "cvss_version"; + @SerializedName(SERIALIZED_NAME_CVSS_VERSION) + @javax.annotation.Nonnull + private String cvssVersion; + + public static final String SERIALIZED_NAME_IS_UNKNOWN = "is_unknown"; + @SerializedName(SERIALIZED_NAME_IS_UNKNOWN) + @javax.annotation.Nullable + private Boolean isUnknown = false; public static final String SERIALIZED_NAME_PRODUCT = "product"; @SerializedName(SERIALIZED_NAME_PRODUCT) @javax.annotation.Nonnull private String product; - public static final String SERIALIZED_NAME_VERSION = "version"; - @SerializedName(SERIALIZED_NAME_VERSION) + public static final String SERIALIZED_NAME_REMARKS = "remarks"; + @SerializedName(SERIALIZED_NAME_REMARKS) @javax.annotation.Nonnull - private String version; + private String remarks; - public static final String SERIALIZED_NAME_CVE_NUMBER = "cve_number"; - @SerializedName(SERIALIZED_NAME_CVE_NUMBER) + public static final String SERIALIZED_NAME_SCORE = "score"; + @SerializedName(SERIALIZED_NAME_SCORE) @javax.annotation.Nonnull - private String cveNumber; + private BigDecimal score; /** * Gets or Sets severity @@ -140,240 +155,225 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nonnull private String source; - public static final String SERIALIZED_NAME_CVSS_VERSION = "cvss_version"; - @SerializedName(SERIALIZED_NAME_CVSS_VERSION) - @javax.annotation.Nonnull - private String cvssVersion; - - public static final String SERIALIZED_NAME_CVSS_VECTOR = "cvss_vector"; - @SerializedName(SERIALIZED_NAME_CVSS_VECTOR) - @javax.annotation.Nonnull - private String cvssVector; - - public static final String SERIALIZED_NAME_REMARKS = "remarks"; - @SerializedName(SERIALIZED_NAME_REMARKS) + public static final String SERIALIZED_NAME_VENDOR = "vendor"; + @SerializedName(SERIALIZED_NAME_VENDOR) @javax.annotation.Nonnull - private String remarks; + private String vendor; - public static final String SERIALIZED_NAME_SCORE = "score"; - @SerializedName(SERIALIZED_NAME_SCORE) + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) @javax.annotation.Nonnull - private BigDecimal score; - - public static final String SERIALIZED_NAME_IS_UNKNOWN = "is_unknown"; - @SerializedName(SERIALIZED_NAME_IS_UNKNOWN) - @javax.annotation.Nullable - private Boolean isUnknown = false; + private String version; public Vulnerability() { } - public Vulnerability vendor(@javax.annotation.Nonnull String vendor) { - this.vendor = vendor; + public Vulnerability cveNumber(@javax.annotation.Nonnull String cveNumber) { + this.cveNumber = cveNumber; return this; } /** - * Get vendor - * @return vendor + * Get cveNumber + * @return cveNumber */ @javax.annotation.Nonnull - public String getVendor() { - return vendor; + public String getCveNumber() { + return cveNumber; } - public void setVendor(@javax.annotation.Nonnull String vendor) { - this.vendor = vendor; + public void setCveNumber(@javax.annotation.Nonnull String cveNumber) { + this.cveNumber = cveNumber; } - public Vulnerability product(@javax.annotation.Nonnull String product) { - this.product = product; + public Vulnerability cvssVector(@javax.annotation.Nonnull String cvssVector) { + this.cvssVector = cvssVector; return this; } /** - * Get product - * @return product + * Get cvssVector + * @return cvssVector */ @javax.annotation.Nonnull - public String getProduct() { - return product; + public String getCvssVector() { + return cvssVector; } - public void setProduct(@javax.annotation.Nonnull String product) { - this.product = product; + public void setCvssVector(@javax.annotation.Nonnull String cvssVector) { + this.cvssVector = cvssVector; } - public Vulnerability version(@javax.annotation.Nonnull String version) { - this.version = version; + public Vulnerability cvssVersion(@javax.annotation.Nonnull String cvssVersion) { + this.cvssVersion = cvssVersion; return this; } /** - * Get version - * @return version + * Get cvssVersion + * @return cvssVersion */ @javax.annotation.Nonnull - public String getVersion() { - return version; + public String getCvssVersion() { + return cvssVersion; } - public void setVersion(@javax.annotation.Nonnull String version) { - this.version = version; + public void setCvssVersion(@javax.annotation.Nonnull String cvssVersion) { + this.cvssVersion = cvssVersion; } - public Vulnerability cveNumber(@javax.annotation.Nonnull String cveNumber) { - this.cveNumber = cveNumber; + public Vulnerability isUnknown(@javax.annotation.Nullable Boolean isUnknown) { + this.isUnknown = isUnknown; return this; } /** - * Get cveNumber - * @return cveNumber + * Get isUnknown + * @return isUnknown */ - @javax.annotation.Nonnull - public String getCveNumber() { - return cveNumber; + @javax.annotation.Nullable + public Boolean getIsUnknown() { + return isUnknown; } - public void setCveNumber(@javax.annotation.Nonnull String cveNumber) { - this.cveNumber = cveNumber; + public void setIsUnknown(@javax.annotation.Nullable Boolean isUnknown) { + this.isUnknown = isUnknown; } - public Vulnerability severity(@javax.annotation.Nonnull SeverityEnum severity) { - this.severity = severity; + public Vulnerability product(@javax.annotation.Nonnull String product) { + this.product = product; return this; } /** - * Get severity - * @return severity + * Get product + * @return product */ @javax.annotation.Nonnull - public SeverityEnum getSeverity() { - return severity; + public String getProduct() { + return product; } - public void setSeverity(@javax.annotation.Nonnull SeverityEnum severity) { - this.severity = severity; + public void setProduct(@javax.annotation.Nonnull String product) { + this.product = product; } - public Vulnerability source(@javax.annotation.Nonnull String source) { - this.source = source; + public Vulnerability remarks(@javax.annotation.Nonnull String remarks) { + this.remarks = remarks; return this; } /** - * Get source - * @return source + * Get remarks + * @return remarks */ @javax.annotation.Nonnull - public String getSource() { - return source; + public String getRemarks() { + return remarks; } - public void setSource(@javax.annotation.Nonnull String source) { - this.source = source; + public void setRemarks(@javax.annotation.Nonnull String remarks) { + this.remarks = remarks; } - public Vulnerability cvssVersion(@javax.annotation.Nonnull String cvssVersion) { - this.cvssVersion = cvssVersion; + public Vulnerability score(@javax.annotation.Nonnull BigDecimal score) { + this.score = score; return this; } /** - * Get cvssVersion - * @return cvssVersion + * Get score + * @return score */ @javax.annotation.Nonnull - public String getCvssVersion() { - return cvssVersion; + public BigDecimal getScore() { + return score; } - public void setCvssVersion(@javax.annotation.Nonnull String cvssVersion) { - this.cvssVersion = cvssVersion; + public void setScore(@javax.annotation.Nonnull BigDecimal score) { + this.score = score; } - public Vulnerability cvssVector(@javax.annotation.Nonnull String cvssVector) { - this.cvssVector = cvssVector; + public Vulnerability severity(@javax.annotation.Nonnull SeverityEnum severity) { + this.severity = severity; return this; } /** - * Get cvssVector - * @return cvssVector + * Get severity + * @return severity */ @javax.annotation.Nonnull - public String getCvssVector() { - return cvssVector; + public SeverityEnum getSeverity() { + return severity; } - public void setCvssVector(@javax.annotation.Nonnull String cvssVector) { - this.cvssVector = cvssVector; + public void setSeverity(@javax.annotation.Nonnull SeverityEnum severity) { + this.severity = severity; } - public Vulnerability remarks(@javax.annotation.Nonnull String remarks) { - this.remarks = remarks; + public Vulnerability source(@javax.annotation.Nonnull String source) { + this.source = source; return this; } /** - * Get remarks - * @return remarks + * Get source + * @return source */ @javax.annotation.Nonnull - public String getRemarks() { - return remarks; + public String getSource() { + return source; } - public void setRemarks(@javax.annotation.Nonnull String remarks) { - this.remarks = remarks; + public void setSource(@javax.annotation.Nonnull String source) { + this.source = source; } - public Vulnerability score(@javax.annotation.Nonnull BigDecimal score) { - this.score = score; + public Vulnerability vendor(@javax.annotation.Nonnull String vendor) { + this.vendor = vendor; return this; } /** - * Get score - * @return score + * Get vendor + * @return vendor */ @javax.annotation.Nonnull - public BigDecimal getScore() { - return score; + public String getVendor() { + return vendor; } - public void setScore(@javax.annotation.Nonnull BigDecimal score) { - this.score = score; + public void setVendor(@javax.annotation.Nonnull String vendor) { + this.vendor = vendor; } - public Vulnerability isUnknown(@javax.annotation.Nullable Boolean isUnknown) { - this.isUnknown = isUnknown; + public Vulnerability version(@javax.annotation.Nonnull String version) { + this.version = version; return this; } /** - * Get isUnknown - * @return isUnknown + * Get version + * @return version */ - @javax.annotation.Nullable - public Boolean getIsUnknown() { - return isUnknown; + @javax.annotation.Nonnull + public String getVersion() { + return version; } - public void setIsUnknown(@javax.annotation.Nullable Boolean isUnknown) { - this.isUnknown = isUnknown; + public void setVersion(@javax.annotation.Nonnull String version) { + this.version = version; } /** @@ -431,40 +431,40 @@ public boolean equals(Object o) { return false; } Vulnerability vulnerability = (Vulnerability) o; - return Objects.equals(this.vendor, vulnerability.vendor) && - Objects.equals(this.product, vulnerability.product) && - Objects.equals(this.version, vulnerability.version) && - Objects.equals(this.cveNumber, vulnerability.cveNumber) && - Objects.equals(this.severity, vulnerability.severity) && - Objects.equals(this.source, vulnerability.source) && - Objects.equals(this.cvssVersion, vulnerability.cvssVersion) && + return Objects.equals(this.cveNumber, vulnerability.cveNumber) && Objects.equals(this.cvssVector, vulnerability.cvssVector) && + Objects.equals(this.cvssVersion, vulnerability.cvssVersion) && + Objects.equals(this.isUnknown, vulnerability.isUnknown) && + Objects.equals(this.product, vulnerability.product) && Objects.equals(this.remarks, vulnerability.remarks) && Objects.equals(this.score, vulnerability.score) && - Objects.equals(this.isUnknown, vulnerability.isUnknown)&& + Objects.equals(this.severity, vulnerability.severity) && + Objects.equals(this.source, vulnerability.source) && + Objects.equals(this.vendor, vulnerability.vendor) && + Objects.equals(this.version, vulnerability.version)&& Objects.equals(this.additionalProperties, vulnerability.additionalProperties); } @Override public int hashCode() { - return Objects.hash(vendor, product, version, cveNumber, severity, source, cvssVersion, cvssVector, remarks, score, isUnknown, additionalProperties); + return Objects.hash(cveNumber, cvssVector, cvssVersion, isUnknown, product, remarks, score, severity, source, vendor, version, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Vulnerability {\n"); - sb.append(" vendor: ").append(toIndentedString(vendor)).append("\n"); - sb.append(" product: ").append(toIndentedString(product)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" cveNumber: ").append(toIndentedString(cveNumber)).append("\n"); - sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); - sb.append(" source: ").append(toIndentedString(source)).append("\n"); - sb.append(" cvssVersion: ").append(toIndentedString(cvssVersion)).append("\n"); sb.append(" cvssVector: ").append(toIndentedString(cvssVector)).append("\n"); + sb.append(" cvssVersion: ").append(toIndentedString(cvssVersion)).append("\n"); + sb.append(" isUnknown: ").append(toIndentedString(isUnknown)).append("\n"); + sb.append(" product: ").append(toIndentedString(product)).append("\n"); sb.append(" remarks: ").append(toIndentedString(remarks)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); - sb.append(" isUnknown: ").append(toIndentedString(isUnknown)).append("\n"); + sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" vendor: ").append(toIndentedString(vendor)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -487,10 +487,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("vendor", "product", "version", "cve_number", "severity", "source", "cvss_version", "cvss_vector", "remarks", "score", "is_unknown")); + openapiFields = new HashSet(Arrays.asList("cve_number", "cvss_vector", "cvss_version", "is_unknown", "product", "remarks", "score", "severity", "source", "vendor", "version")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("vendor", "product", "version", "cve_number", "severity", "source", "cvss_version", "cvss_vector", "remarks", "score")); + openapiRequiredFields = new HashSet(Arrays.asList("cve_number", "cvss_vector", "cvss_version", "product", "remarks", "score", "severity", "source", "vendor", "version")); } /** @@ -513,17 +513,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("vendor").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `vendor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("vendor").toString())); + if (!jsonObj.get("cve_number").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cve_number` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cve_number").toString())); + } + if (!jsonObj.get("cvss_vector").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cvss_vector` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cvss_vector").toString())); + } + if (!jsonObj.get("cvss_version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cvss_version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cvss_version").toString())); } if (!jsonObj.get("product").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `product` to be a primitive type in the JSON string but got `%s`", jsonObj.get("product").toString())); } - if (!jsonObj.get("version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); - } - if (!jsonObj.get("cve_number").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cve_number` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cve_number").toString())); + if (!jsonObj.get("remarks").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `remarks` to be a primitive type in the JSON string but got `%s`", jsonObj.get("remarks").toString())); } if (!jsonObj.get("severity").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `severity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("severity").toString())); @@ -533,14 +536,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("source").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); } - if (!jsonObj.get("cvss_version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cvss_version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cvss_version").toString())); - } - if (!jsonObj.get("cvss_vector").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cvss_vector` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cvss_vector").toString())); + if (!jsonObj.get("vendor").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `vendor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("vendor").toString())); } - if (!jsonObj.get("remarks").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `remarks` to be a primitive type in the JSON string but got `%s`", jsonObj.get("remarks").toString())); + if (!jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } } diff --git a/src/main/java/ai/reveng/model/XrefFromResponse.java b/src/main/java/ai/reveng/model/XrefFromResponse.java index 9f6e53a..5cfeb4c 100644 --- a/src/main/java/ai/reveng/model/XrefFromResponse.java +++ b/src/main/java/ai/reveng/model/XrefFromResponse.java @@ -53,16 +53,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class XrefFromResponse { - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - @javax.annotation.Nullable - private String value; - - public static final String SERIALIZED_NAME_IS_SCALAR = "is_scalar"; - @SerializedName(SERIALIZED_NAME_IS_SCALAR) - @javax.annotation.Nullable - private Boolean isScalar; - public static final String SERIALIZED_NAME_IS_CALL = "is_call"; @SerializedName(SERIALIZED_NAME_IS_CALL) @javax.annotation.Nullable @@ -73,11 +63,21 @@ public class XrefFromResponse { @javax.annotation.Nullable private Boolean isData; + public static final String SERIALIZED_NAME_IS_SCALAR = "is_scalar"; + @SerializedName(SERIALIZED_NAME_IS_SCALAR) + @javax.annotation.Nullable + private Boolean isScalar; + public static final String SERIALIZED_NAME_IS_STRING = "is_string"; @SerializedName(SERIALIZED_NAME_IS_STRING) @javax.annotation.Nullable private Boolean isString; + public static final String SERIALIZED_NAME_ORIG_STR_ENCODING = "orig_str_encoding"; + @SerializedName(SERIALIZED_NAME_ORIG_STR_ENCODING) + @javax.annotation.Nullable + private String origStrEncoding; + public static final String SERIALIZED_NAME_RAW_DATA = "raw_data"; @SerializedName(SERIALIZED_NAME_RAW_DATA) @javax.annotation.Nullable @@ -88,10 +88,10 @@ public class XrefFromResponse { @javax.annotation.Nullable private SegmentInfo segment; - public static final String SERIALIZED_NAME_ORIG_STR_ENCODING = "orig_str_encoding"; - @SerializedName(SERIALIZED_NAME_ORIG_STR_ENCODING) + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) @javax.annotation.Nullable - private String origStrEncoding; + private String value; public static final String SERIALIZED_NAME_XREF_TO = "xref_to"; @SerializedName(SERIALIZED_NAME_XREF_TO) @@ -101,44 +101,6 @@ public class XrefFromResponse { public XrefFromResponse() { } - public XrefFromResponse value(@javax.annotation.Nullable String value) { - this.value = value; - return this; - } - - /** - * Get value - * @return value - */ - @javax.annotation.Nullable - public String getValue() { - return value; - } - - public void setValue(@javax.annotation.Nullable String value) { - this.value = value; - } - - - public XrefFromResponse isScalar(@javax.annotation.Nullable Boolean isScalar) { - this.isScalar = isScalar; - return this; - } - - /** - * Get isScalar - * @return isScalar - */ - @javax.annotation.Nullable - public Boolean getIsScalar() { - return isScalar; - } - - public void setIsScalar(@javax.annotation.Nullable Boolean isScalar) { - this.isScalar = isScalar; - } - - public XrefFromResponse isCall(@javax.annotation.Nullable Boolean isCall) { this.isCall = isCall; return this; @@ -177,6 +139,25 @@ public void setIsData(@javax.annotation.Nullable Boolean isData) { } + public XrefFromResponse isScalar(@javax.annotation.Nullable Boolean isScalar) { + this.isScalar = isScalar; + return this; + } + + /** + * Get isScalar + * @return isScalar + */ + @javax.annotation.Nullable + public Boolean getIsScalar() { + return isScalar; + } + + public void setIsScalar(@javax.annotation.Nullable Boolean isScalar) { + this.isScalar = isScalar; + } + + public XrefFromResponse isString(@javax.annotation.Nullable Boolean isString) { this.isString = isString; return this; @@ -196,6 +177,25 @@ public void setIsString(@javax.annotation.Nullable Boolean isString) { } + public XrefFromResponse origStrEncoding(@javax.annotation.Nullable String origStrEncoding) { + this.origStrEncoding = origStrEncoding; + return this; + } + + /** + * Get origStrEncoding + * @return origStrEncoding + */ + @javax.annotation.Nullable + public String getOrigStrEncoding() { + return origStrEncoding; + } + + public void setOrigStrEncoding(@javax.annotation.Nullable String origStrEncoding) { + this.origStrEncoding = origStrEncoding; + } + + public XrefFromResponse rawData(@javax.annotation.Nullable String rawData) { this.rawData = rawData; return this; @@ -234,22 +234,22 @@ public void setSegment(@javax.annotation.Nullable SegmentInfo segment) { } - public XrefFromResponse origStrEncoding(@javax.annotation.Nullable String origStrEncoding) { - this.origStrEncoding = origStrEncoding; + public XrefFromResponse value(@javax.annotation.Nullable String value) { + this.value = value; return this; } /** - * Get origStrEncoding - * @return origStrEncoding + * Get value + * @return value */ @javax.annotation.Nullable - public String getOrigStrEncoding() { - return origStrEncoding; + public String getValue() { + return value; } - public void setOrigStrEncoding(@javax.annotation.Nullable String origStrEncoding) { - this.origStrEncoding = origStrEncoding; + public void setValue(@javax.annotation.Nullable String value) { + this.value = value; } @@ -326,14 +326,14 @@ public boolean equals(Object o) { return false; } XrefFromResponse xrefFromResponse = (XrefFromResponse) o; - return Objects.equals(this.value, xrefFromResponse.value) && - Objects.equals(this.isScalar, xrefFromResponse.isScalar) && - Objects.equals(this.isCall, xrefFromResponse.isCall) && + return Objects.equals(this.isCall, xrefFromResponse.isCall) && Objects.equals(this.isData, xrefFromResponse.isData) && + Objects.equals(this.isScalar, xrefFromResponse.isScalar) && Objects.equals(this.isString, xrefFromResponse.isString) && + Objects.equals(this.origStrEncoding, xrefFromResponse.origStrEncoding) && Objects.equals(this.rawData, xrefFromResponse.rawData) && Objects.equals(this.segment, xrefFromResponse.segment) && - Objects.equals(this.origStrEncoding, xrefFromResponse.origStrEncoding) && + Objects.equals(this.value, xrefFromResponse.value) && Objects.equals(this.xrefTo, xrefFromResponse.xrefTo)&& Objects.equals(this.additionalProperties, xrefFromResponse.additionalProperties); } @@ -344,7 +344,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(value, isScalar, isCall, isData, isString, rawData, segment, origStrEncoding, xrefTo, additionalProperties); + return Objects.hash(isCall, isData, isScalar, isString, origStrEncoding, rawData, segment, value, xrefTo, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -358,14 +358,14 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class XrefFromResponse {\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" isScalar: ").append(toIndentedString(isScalar)).append("\n"); sb.append(" isCall: ").append(toIndentedString(isCall)).append("\n"); sb.append(" isData: ").append(toIndentedString(isData)).append("\n"); + sb.append(" isScalar: ").append(toIndentedString(isScalar)).append("\n"); sb.append(" isString: ").append(toIndentedString(isString)).append("\n"); + sb.append(" origStrEncoding: ").append(toIndentedString(origStrEncoding)).append("\n"); sb.append(" rawData: ").append(toIndentedString(rawData)).append("\n"); sb.append(" segment: ").append(toIndentedString(segment)).append("\n"); - sb.append(" origStrEncoding: ").append(toIndentedString(origStrEncoding)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" xrefTo: ").append(toIndentedString(xrefTo)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -389,7 +389,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("value", "is_scalar", "is_call", "is_data", "is_string", "raw_data", "segment", "orig_str_encoding", "xref_to")); + openapiFields = new HashSet(Arrays.asList("is_call", "is_data", "is_scalar", "is_string", "orig_str_encoding", "raw_data", "segment", "value", "xref_to")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("value", "xref_to")); @@ -415,8 +415,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !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())); + if ((jsonObj.get("orig_str_encoding") != null && !jsonObj.get("orig_str_encoding").isJsonNull()) && !jsonObj.get("orig_str_encoding").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `orig_str_encoding` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orig_str_encoding").toString())); } if ((jsonObj.get("raw_data") != null && !jsonObj.get("raw_data").isJsonNull()) && !jsonObj.get("raw_data").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `raw_data` to be a primitive type in the JSON string but got `%s`", jsonObj.get("raw_data").toString())); @@ -425,8 +425,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("segment") != null && !jsonObj.get("segment").isJsonNull()) { SegmentInfo.validateJsonElement(jsonObj.get("segment")); } - if ((jsonObj.get("orig_str_encoding") != null && !jsonObj.get("orig_str_encoding").isJsonNull()) && !jsonObj.get("orig_str_encoding").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `orig_str_encoding` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orig_str_encoding").toString())); + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !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())); } if ((jsonObj.get("xref_to") != null && !jsonObj.get("xref_to").isJsonNull()) && !jsonObj.get("xref_to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `xref_to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("xref_to").toString())); diff --git a/src/main/java/ai/reveng/model/XrefResponse.java b/src/main/java/ai/reveng/model/XrefResponse.java index 79b3aaf..570d0f2 100644 --- a/src/main/java/ai/reveng/model/XrefResponse.java +++ b/src/main/java/ai/reveng/model/XrefResponse.java @@ -55,70 +55,70 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class XrefResponse { - public static final String SERIALIZED_NAME_XREF_TO_LIST = "xref_to_list"; - @SerializedName(SERIALIZED_NAME_XREF_TO_LIST) - @javax.annotation.Nonnull - private List xrefToList = new ArrayList<>(); - public static final String SERIALIZED_NAME_XREF_FROM_LIST = "xref_from_list"; @SerializedName(SERIALIZED_NAME_XREF_FROM_LIST) @javax.annotation.Nonnull private List xrefFromList = new ArrayList<>(); + public static final String SERIALIZED_NAME_XREF_TO_LIST = "xref_to_list"; + @SerializedName(SERIALIZED_NAME_XREF_TO_LIST) + @javax.annotation.Nonnull + private List xrefToList = new ArrayList<>(); + public XrefResponse() { } - public XrefResponse xrefToList(@javax.annotation.Nonnull List xrefToList) { - this.xrefToList = xrefToList; + public XrefResponse xrefFromList(@javax.annotation.Nonnull List xrefFromList) { + this.xrefFromList = xrefFromList; return this; } - public XrefResponse addXrefToListItem(XrefToResponse xrefToListItem) { - if (this.xrefToList == null) { - this.xrefToList = new ArrayList<>(); + public XrefResponse addXrefFromListItem(XrefFromResponse xrefFromListItem) { + if (this.xrefFromList == null) { + this.xrefFromList = new ArrayList<>(); } - this.xrefToList.add(xrefToListItem); + this.xrefFromList.add(xrefFromListItem); return this; } /** - * Get xrefToList - * @return xrefToList + * Get xrefFromList + * @return xrefFromList */ @javax.annotation.Nonnull - public List getXrefToList() { - return xrefToList; + public List getXrefFromList() { + return xrefFromList; } - public void setXrefToList(@javax.annotation.Nonnull List xrefToList) { - this.xrefToList = xrefToList; + public void setXrefFromList(@javax.annotation.Nonnull List xrefFromList) { + this.xrefFromList = xrefFromList; } - public XrefResponse xrefFromList(@javax.annotation.Nonnull List xrefFromList) { - this.xrefFromList = xrefFromList; + public XrefResponse xrefToList(@javax.annotation.Nonnull List xrefToList) { + this.xrefToList = xrefToList; return this; } - public XrefResponse addXrefFromListItem(XrefFromResponse xrefFromListItem) { - if (this.xrefFromList == null) { - this.xrefFromList = new ArrayList<>(); + public XrefResponse addXrefToListItem(XrefToResponse xrefToListItem) { + if (this.xrefToList == null) { + this.xrefToList = new ArrayList<>(); } - this.xrefFromList.add(xrefFromListItem); + this.xrefToList.add(xrefToListItem); return this; } /** - * Get xrefFromList - * @return xrefFromList + * Get xrefToList + * @return xrefToList */ @javax.annotation.Nonnull - public List getXrefFromList() { - return xrefFromList; + public List getXrefToList() { + return xrefToList; } - public void setXrefFromList(@javax.annotation.Nonnull List xrefFromList) { - this.xrefFromList = xrefFromList; + public void setXrefToList(@javax.annotation.Nonnull List xrefToList) { + this.xrefToList = xrefToList; } /** @@ -176,22 +176,22 @@ public boolean equals(Object o) { return false; } XrefResponse xrefResponse = (XrefResponse) o; - return Objects.equals(this.xrefToList, xrefResponse.xrefToList) && - Objects.equals(this.xrefFromList, xrefResponse.xrefFromList)&& + return Objects.equals(this.xrefFromList, xrefResponse.xrefFromList) && + Objects.equals(this.xrefToList, xrefResponse.xrefToList)&& Objects.equals(this.additionalProperties, xrefResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(xrefToList, xrefFromList, additionalProperties); + return Objects.hash(xrefFromList, xrefToList, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class XrefResponse {\n"); - sb.append(" xrefToList: ").append(toIndentedString(xrefToList)).append("\n"); sb.append(" xrefFromList: ").append(toIndentedString(xrefFromList)).append("\n"); + sb.append(" xrefToList: ").append(toIndentedString(xrefToList)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -214,10 +214,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("xref_to_list", "xref_from_list")); + openapiFields = new HashSet(Arrays.asList("xref_from_list", "xref_to_list")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("xref_to_list", "xref_from_list")); + openapiRequiredFields = new HashSet(Arrays.asList("xref_from_list", "xref_to_list")); } /** @@ -241,16 +241,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array - if (!jsonObj.get("xref_to_list").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `xref_to_list` to be an array in the JSON string but got `%s`", jsonObj.get("xref_to_list").toString())); - } - - JsonArray jsonArrayxrefToList = jsonObj.getAsJsonArray("xref_to_list"); - // validate the required field `xref_to_list` (array) - for (int i = 0; i < jsonArrayxrefToList.size(); i++) { - XrefToResponse.validateJsonElement(jsonArrayxrefToList.get(i)); - }; - // ensure the json data is an array if (!jsonObj.get("xref_from_list").isJsonArray()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `xref_from_list` to be an array in the JSON string but got `%s`", jsonObj.get("xref_from_list").toString())); } @@ -260,6 +250,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti for (int i = 0; i < jsonArrayxrefFromList.size(); i++) { XrefFromResponse.validateJsonElement(jsonArrayxrefFromList.get(i)); }; + // ensure the json data is an array + if (!jsonObj.get("xref_to_list").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `xref_to_list` to be an array in the JSON string but got `%s`", jsonObj.get("xref_to_list").toString())); + } + + JsonArray jsonArrayxrefToList = jsonObj.getAsJsonArray("xref_to_list"); + // validate the required field `xref_to_list` (array) + for (int i = 0; i < jsonArrayxrefToList.size(); i++) { + XrefToResponse.validateJsonElement(jsonArrayxrefToList.get(i)); + }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/reveng/model/XrefToResponse.java b/src/main/java/ai/reveng/model/XrefToResponse.java index b35dfef..c12d5b2 100644 --- a/src/main/java/ai/reveng/model/XrefToResponse.java +++ b/src/main/java/ai/reveng/model/XrefToResponse.java @@ -53,16 +53,6 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class XrefToResponse { - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - @javax.annotation.Nullable - private String value; - - public static final String SERIALIZED_NAME_IS_SCALAR = "is_scalar"; - @SerializedName(SERIALIZED_NAME_IS_SCALAR) - @javax.annotation.Nullable - private Boolean isScalar; - public static final String SERIALIZED_NAME_IS_CALL = "is_call"; @SerializedName(SERIALIZED_NAME_IS_CALL) @javax.annotation.Nullable @@ -73,11 +63,21 @@ public class XrefToResponse { @javax.annotation.Nullable private Boolean isData; + public static final String SERIALIZED_NAME_IS_SCALAR = "is_scalar"; + @SerializedName(SERIALIZED_NAME_IS_SCALAR) + @javax.annotation.Nullable + private Boolean isScalar; + public static final String SERIALIZED_NAME_IS_STRING = "is_string"; @SerializedName(SERIALIZED_NAME_IS_STRING) @javax.annotation.Nullable private Boolean isString; + public static final String SERIALIZED_NAME_ORIG_STR_ENCODING = "orig_str_encoding"; + @SerializedName(SERIALIZED_NAME_ORIG_STR_ENCODING) + @javax.annotation.Nullable + private String origStrEncoding; + public static final String SERIALIZED_NAME_RAW_DATA = "raw_data"; @SerializedName(SERIALIZED_NAME_RAW_DATA) @javax.annotation.Nullable @@ -88,10 +88,10 @@ public class XrefToResponse { @javax.annotation.Nullable private SegmentInfo segment; - public static final String SERIALIZED_NAME_ORIG_STR_ENCODING = "orig_str_encoding"; - @SerializedName(SERIALIZED_NAME_ORIG_STR_ENCODING) + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) @javax.annotation.Nullable - private String origStrEncoding; + private String value; public static final String SERIALIZED_NAME_XREF_FROM = "xref_from"; @SerializedName(SERIALIZED_NAME_XREF_FROM) @@ -101,44 +101,6 @@ public class XrefToResponse { public XrefToResponse() { } - public XrefToResponse value(@javax.annotation.Nullable String value) { - this.value = value; - return this; - } - - /** - * Get value - * @return value - */ - @javax.annotation.Nullable - public String getValue() { - return value; - } - - public void setValue(@javax.annotation.Nullable String value) { - this.value = value; - } - - - public XrefToResponse isScalar(@javax.annotation.Nullable Boolean isScalar) { - this.isScalar = isScalar; - return this; - } - - /** - * Get isScalar - * @return isScalar - */ - @javax.annotation.Nullable - public Boolean getIsScalar() { - return isScalar; - } - - public void setIsScalar(@javax.annotation.Nullable Boolean isScalar) { - this.isScalar = isScalar; - } - - public XrefToResponse isCall(@javax.annotation.Nullable Boolean isCall) { this.isCall = isCall; return this; @@ -177,6 +139,25 @@ public void setIsData(@javax.annotation.Nullable Boolean isData) { } + public XrefToResponse isScalar(@javax.annotation.Nullable Boolean isScalar) { + this.isScalar = isScalar; + return this; + } + + /** + * Get isScalar + * @return isScalar + */ + @javax.annotation.Nullable + public Boolean getIsScalar() { + return isScalar; + } + + public void setIsScalar(@javax.annotation.Nullable Boolean isScalar) { + this.isScalar = isScalar; + } + + public XrefToResponse isString(@javax.annotation.Nullable Boolean isString) { this.isString = isString; return this; @@ -196,6 +177,25 @@ public void setIsString(@javax.annotation.Nullable Boolean isString) { } + public XrefToResponse origStrEncoding(@javax.annotation.Nullable String origStrEncoding) { + this.origStrEncoding = origStrEncoding; + return this; + } + + /** + * Get origStrEncoding + * @return origStrEncoding + */ + @javax.annotation.Nullable + public String getOrigStrEncoding() { + return origStrEncoding; + } + + public void setOrigStrEncoding(@javax.annotation.Nullable String origStrEncoding) { + this.origStrEncoding = origStrEncoding; + } + + public XrefToResponse rawData(@javax.annotation.Nullable String rawData) { this.rawData = rawData; return this; @@ -234,22 +234,22 @@ public void setSegment(@javax.annotation.Nullable SegmentInfo segment) { } - public XrefToResponse origStrEncoding(@javax.annotation.Nullable String origStrEncoding) { - this.origStrEncoding = origStrEncoding; + public XrefToResponse value(@javax.annotation.Nullable String value) { + this.value = value; return this; } /** - * Get origStrEncoding - * @return origStrEncoding + * Get value + * @return value */ @javax.annotation.Nullable - public String getOrigStrEncoding() { - return origStrEncoding; + public String getValue() { + return value; } - public void setOrigStrEncoding(@javax.annotation.Nullable String origStrEncoding) { - this.origStrEncoding = origStrEncoding; + public void setValue(@javax.annotation.Nullable String value) { + this.value = value; } @@ -326,14 +326,14 @@ public boolean equals(Object o) { return false; } XrefToResponse xrefToResponse = (XrefToResponse) o; - return Objects.equals(this.value, xrefToResponse.value) && - Objects.equals(this.isScalar, xrefToResponse.isScalar) && - Objects.equals(this.isCall, xrefToResponse.isCall) && + return Objects.equals(this.isCall, xrefToResponse.isCall) && Objects.equals(this.isData, xrefToResponse.isData) && + Objects.equals(this.isScalar, xrefToResponse.isScalar) && Objects.equals(this.isString, xrefToResponse.isString) && + Objects.equals(this.origStrEncoding, xrefToResponse.origStrEncoding) && Objects.equals(this.rawData, xrefToResponse.rawData) && Objects.equals(this.segment, xrefToResponse.segment) && - Objects.equals(this.origStrEncoding, xrefToResponse.origStrEncoding) && + Objects.equals(this.value, xrefToResponse.value) && Objects.equals(this.xrefFrom, xrefToResponse.xrefFrom)&& Objects.equals(this.additionalProperties, xrefToResponse.additionalProperties); } @@ -344,7 +344,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(value, isScalar, isCall, isData, isString, rawData, segment, origStrEncoding, xrefFrom, additionalProperties); + return Objects.hash(isCall, isData, isScalar, isString, origStrEncoding, rawData, segment, value, xrefFrom, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -358,14 +358,14 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class XrefToResponse {\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" isScalar: ").append(toIndentedString(isScalar)).append("\n"); sb.append(" isCall: ").append(toIndentedString(isCall)).append("\n"); sb.append(" isData: ").append(toIndentedString(isData)).append("\n"); + sb.append(" isScalar: ").append(toIndentedString(isScalar)).append("\n"); sb.append(" isString: ").append(toIndentedString(isString)).append("\n"); + sb.append(" origStrEncoding: ").append(toIndentedString(origStrEncoding)).append("\n"); sb.append(" rawData: ").append(toIndentedString(rawData)).append("\n"); sb.append(" segment: ").append(toIndentedString(segment)).append("\n"); - sb.append(" origStrEncoding: ").append(toIndentedString(origStrEncoding)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" xrefFrom: ").append(toIndentedString(xrefFrom)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -389,7 +389,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("value", "is_scalar", "is_call", "is_data", "is_string", "raw_data", "segment", "orig_str_encoding", "xref_from")); + openapiFields = new HashSet(Arrays.asList("is_call", "is_data", "is_scalar", "is_string", "orig_str_encoding", "raw_data", "segment", "value", "xref_from")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("value", "xref_from")); @@ -415,8 +415,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !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())); + if ((jsonObj.get("orig_str_encoding") != null && !jsonObj.get("orig_str_encoding").isJsonNull()) && !jsonObj.get("orig_str_encoding").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `orig_str_encoding` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orig_str_encoding").toString())); } if ((jsonObj.get("raw_data") != null && !jsonObj.get("raw_data").isJsonNull()) && !jsonObj.get("raw_data").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `raw_data` to be a primitive type in the JSON string but got `%s`", jsonObj.get("raw_data").toString())); @@ -425,8 +425,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("segment") != null && !jsonObj.get("segment").isJsonNull()) { SegmentInfo.validateJsonElement(jsonObj.get("segment")); } - if ((jsonObj.get("orig_str_encoding") != null && !jsonObj.get("orig_str_encoding").isJsonNull()) && !jsonObj.get("orig_str_encoding").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `orig_str_encoding` to be a primitive type in the JSON string but got `%s`", jsonObj.get("orig_str_encoding").toString())); + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !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())); } if ((jsonObj.get("xref_from") != null && !jsonObj.get("xref_from").isJsonNull()) && !jsonObj.get("xref_from").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `xref_from` to be a primitive type in the JSON string but got `%s`", jsonObj.get("xref_from").toString()));