From 77471f3e03af3b0ea71f3e7275a77438b7dcc551 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 12 Nov 2025 06:11:43 +0000 Subject: [PATCH] Update SDK to version v2.35.1 - Generated from OpenAPI spec version v2.35.1 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 15 +- docs/AnalysesCoreApi.md | 84 ----- docs/AnalysisTags.md | 3 +- docs/AppApiRestV2AnalysesResponsesTagItem.md | 31 -- docs/AppServicesBinaryAnnSchemaTagItem.md | 30 -- docs/BaseResponseBinaryAnnListResponse.md | 33 -- ...eResponseListTagOriginBoxPlotConfidence.md | 33 -- docs/BinaryAnnForm.md | 32 -- docs/BinaryAnnListResponse.md | 29 -- docs/BoxPlotConfidence.md | 36 -- docs/ConfidenceApi.md | 92 ----- docs/ExportedBinaryAnnResult.md | 37 -- docs/Origin.md | 24 -- docs/TagConfidenceBody.md | 29 -- docs/{Tags.md => TagItem.md} | 21 +- docs/TagOriginBoxPlotConfidence.md | 30 -- revengai/__init__.py | 30 +- revengai/api/__init__.py | 1 - revengai/api/analyses_core_api.py | 294 ---------------- revengai/api/confidence_api.py | 330 ------------------ revengai/api_client.py | 2 +- revengai/configuration.py | 4 +- revengai/models/__init__.py | 13 +- revengai/models/analysis_tags.py | 17 +- ...app_services_binary_ann_schema_tag_item.py | 98 ------ .../base_response_binary_ann_list_response.py | 125 ------- ...nse_list_tag_origin_box_plot_confidence.py | 129 ------- revengai/models/binary_ann_form.py | 93 ----- revengai/models/binary_ann_list_response.py | 94 ----- revengai/models/box_plot_confidence.py | 98 ------ revengai/models/exported_binary_ann_result.py | 110 ------ revengai/models/origin.py | 42 --- revengai/models/tag_confidence_body.py | 95 ----- ...yses_responses_tag_item.py => tag_item.py} | 8 +- .../models/tag_origin_box_plot_confidence.py | 96 ----- revengai/models/tags.py | 89 ----- test/test_analyses_core_api.py | 7 - test/test_analysis_tags.py | 12 - ...api_rest_v2_analyses_responses_tag_item.py | 54 --- ...app_services_binary_ann_schema_tag_item.py | 51 --- test/test_base_response_analysis_tags.py | 6 - ..._base_response_binary_ann_list_response.py | 82 ----- ...nse_list_tag_origin_box_plot_confidence.py | 75 ---- test/test_binary_ann_form.py | 57 --- test/test_binary_ann_list_response.py | 89 ----- test/test_box_plot_confidence.py | 63 ---- test/test_confidence_api.py | 37 -- test/test_exported_binary_ann_result.py | 78 ----- test/test_origin.py | 32 -- test/test_tag_confidence_body.py | 59 ---- test/{test_tags.py => test_tag_item.py} | 31 +- test/test_tag_origin_box_plot_confidence.py | 71 ---- 53 files changed, 45 insertions(+), 3088 deletions(-) delete mode 100644 docs/AppApiRestV2AnalysesResponsesTagItem.md delete mode 100644 docs/AppServicesBinaryAnnSchemaTagItem.md delete mode 100644 docs/BaseResponseBinaryAnnListResponse.md delete mode 100644 docs/BaseResponseListTagOriginBoxPlotConfidence.md delete mode 100644 docs/BinaryAnnForm.md delete mode 100644 docs/BinaryAnnListResponse.md delete mode 100644 docs/BoxPlotConfidence.md delete mode 100644 docs/ConfidenceApi.md delete mode 100644 docs/ExportedBinaryAnnResult.md delete mode 100644 docs/Origin.md delete mode 100644 docs/TagConfidenceBody.md rename docs/{Tags.md => TagItem.md} (51%) delete mode 100644 docs/TagOriginBoxPlotConfidence.md delete mode 100644 revengai/api/confidence_api.py delete mode 100644 revengai/models/app_services_binary_ann_schema_tag_item.py delete mode 100644 revengai/models/base_response_binary_ann_list_response.py delete mode 100644 revengai/models/base_response_list_tag_origin_box_plot_confidence.py delete mode 100644 revengai/models/binary_ann_form.py delete mode 100644 revengai/models/binary_ann_list_response.py delete mode 100644 revengai/models/box_plot_confidence.py delete mode 100644 revengai/models/exported_binary_ann_result.py delete mode 100644 revengai/models/origin.py delete mode 100644 revengai/models/tag_confidence_body.py rename revengai/models/{app_api_rest_v2_analyses_responses_tag_item.py => tag_item.py} (90%) delete mode 100644 revengai/models/tag_origin_box_plot_confidence.py delete mode 100644 revengai/models/tags.py delete mode 100644 test/test_app_api_rest_v2_analyses_responses_tag_item.py delete mode 100644 test/test_app_services_binary_ann_schema_tag_item.py delete mode 100644 test/test_base_response_binary_ann_list_response.py delete mode 100644 test/test_base_response_list_tag_origin_box_plot_confidence.py delete mode 100644 test/test_binary_ann_form.py delete mode 100644 test/test_binary_ann_list_response.py delete mode 100644 test/test_box_plot_confidence.py delete mode 100644 test/test_confidence_api.py delete mode 100644 test/test_exported_binary_ann_result.py delete mode 100644 test/test_origin.py delete mode 100644 test/test_tag_confidence_body.py rename test/{test_tags.py => test_tag_item.py} (59%) delete mode 100644 test/test_tag_origin_box_plot_confidence.py diff --git a/.sdk-version b/.sdk-version index f2bc310..01241e5 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.32.0 +v2.35.1 diff --git a/README.md b/README.md index 74f6c16..230430c 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,6 @@ Class | Method | HTTP request | Description *AnalysesCoreApi* | [**get_analysis_logs**](docs/AnalysesCoreApi.md#get_analysis_logs) | **GET** /v2/analyses/{analysis_id}/logs | Gets the logs of an analysis *AnalysesCoreApi* | [**get_analysis_params**](docs/AnalysesCoreApi.md#get_analysis_params) | **GET** /v2/analyses/{analysis_id}/params | Gets analysis param information *AnalysesCoreApi* | [**get_analysis_status**](docs/AnalysesCoreApi.md#get_analysis_status) | **GET** /v2/analyses/{analysis_id}/status | Gets the status of an analysis -*AnalysesCoreApi* | [**get_binary_ann**](docs/AnalysesCoreApi.md#get_binary_ann) | **POST** /v2/binary_ann/{analysis_id} | Binary Ann *AnalysesCoreApi* | [**list_analyses**](docs/AnalysesCoreApi.md#list_analyses) | **GET** /v2/analyses/list | Gets the most recent analyses *AnalysesCoreApi* | [**lookup_binary_id**](docs/AnalysesCoreApi.md#lookup_binary_id) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID *AnalysesCoreApi* | [**requeue_analysis**](docs/AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis @@ -94,7 +93,6 @@ Class | Method | HTTP request | Description *CollectionsApi* | [**update_collection**](docs/CollectionsApi.md#update_collection) | **PATCH** /v2/collections/{collection_id} | Updates a collection *CollectionsApi* | [**update_collection_binaries**](docs/CollectionsApi.md#update_collection_binaries) | **PATCH** /v2/collections/{collection_id}/binaries | Updates a collection binaries *CollectionsApi* | [**update_collection_tags**](docs/CollectionsApi.md#update_collection_tags) | **PATCH** /v2/collections/{collection_id}/tags | Updates a collection tags -*ConfidenceApi* | [**get_analysis_tag_score**](docs/ConfidenceApi.md#get_analysis_tag_score) | **POST** /v2/confidence/analysis/{analysis_id}/tag_score | Calculate Tag Confidence Score for an Analysis *ExternalSourcesApi* | [**create_external_task_mb**](docs/ExternalSourcesApi.md#create_external_task_mb) | **POST** /v2/analysis/{analysis_id}/external/mb | Pulls data from VirusTotal *ExternalSourcesApi* | [**create_external_task_vt**](docs/ExternalSourcesApi.md#create_external_task_vt) | **POST** /v2/analysis/{analysis_id}/external/vt | Pulls data from VirusTotal *ExternalSourcesApi* | [**get_mb_data**](docs/ExternalSourcesApi.md#get_mb_data) | **GET** /v2/analysis/{analysis_id}/external/mb | Get MalwareBazaar data @@ -170,11 +168,9 @@ Class | Method | HTTP request | Description - [AnalysisUpdateTagsResponse](docs/AnalysisUpdateTagsResponse.md) - [AppApiRestV2AnalysesEnumsDynamicExecutionStatus](docs/AppApiRestV2AnalysesEnumsDynamicExecutionStatus.md) - [AppApiRestV2AnalysesEnumsOrderBy](docs/AppApiRestV2AnalysesEnumsOrderBy.md) - - [AppApiRestV2AnalysesResponsesTagItem](docs/AppApiRestV2AnalysesResponsesTagItem.md) - [AppApiRestV2CollectionsEnumsOrderBy](docs/AppApiRestV2CollectionsEnumsOrderBy.md) - [AppApiRestV2FunctionsResponsesFunction](docs/AppApiRestV2FunctionsResponsesFunction.md) - [AppApiRestV2FunctionsTypesFunction](docs/AppApiRestV2FunctionsTypesFunction.md) - - [AppServicesBinaryAnnSchemaTagItem](docs/AppServicesBinaryAnnSchemaTagItem.md) - [AppServicesDynamicExecutionSchemasDynamicExecutionStatus](docs/AppServicesDynamicExecutionSchemasDynamicExecutionStatus.md) - [Argument](docs/Argument.md) - [AutoUnstripRequest](docs/AutoUnstripRequest.md) @@ -189,7 +185,6 @@ Class | Method | HTTP request | Description - [BaseResponseAnalysisUpdateTagsResponse](docs/BaseResponseAnalysisUpdateTagsResponse.md) - [BaseResponseBasic](docs/BaseResponseBasic.md) - [BaseResponseBinaryAdditionalResponse](docs/BaseResponseBinaryAdditionalResponse.md) - - [BaseResponseBinaryAnnListResponse](docs/BaseResponseBinaryAnnListResponse.md) - [BaseResponseBinaryDetailsResponse](docs/BaseResponseBinaryDetailsResponse.md) - [BaseResponseBinaryExternalsResponse](docs/BaseResponseBinaryExternalsResponse.md) - [BaseResponseBinarySearchResponse](docs/BaseResponseBinarySearchResponse.md) @@ -229,7 +224,6 @@ Class | Method | HTTP request | Description - [BaseResponseListDieMatch](docs/BaseResponseListDieMatch.md) - [BaseResponseListFunctionNameHistory](docs/BaseResponseListFunctionNameHistory.md) - [BaseResponseListSBOM](docs/BaseResponseListSBOM.md) - - [BaseResponseListTagOriginBoxPlotConfidence](docs/BaseResponseListTagOriginBoxPlotConfidence.md) - [BaseResponseListUserActivityResponse](docs/BaseResponseListUserActivityResponse.md) - [BaseResponseLoginResponse](docs/BaseResponseLoginResponse.md) - [BaseResponseLogs](docs/BaseResponseLogs.md) @@ -252,8 +246,6 @@ Class | Method | HTTP request | Description - [Basic](docs/Basic.md) - [BinaryAdditionalDetailsDataResponse](docs/BinaryAdditionalDetailsDataResponse.md) - [BinaryAdditionalResponse](docs/BinaryAdditionalResponse.md) - - [BinaryAnnForm](docs/BinaryAnnForm.md) - - [BinaryAnnListResponse](docs/BinaryAnnListResponse.md) - [BinaryConfig](docs/BinaryConfig.md) - [BinaryDetailsResponse](docs/BinaryDetailsResponse.md) - [BinaryExternalsResponse](docs/BinaryExternalsResponse.md) @@ -262,7 +254,6 @@ Class | Method | HTTP request | Description - [BinaryTaskStatus](docs/BinaryTaskStatus.md) - [Block](docs/Block.md) - [BlockCommentsGenerationForFunctionResponse](docs/BlockCommentsGenerationForFunctionResponse.md) - - [BoxPlotConfidence](docs/BoxPlotConfidence.md) - [CalleeFunctionInfo](docs/CalleeFunctionInfo.md) - [CalleesCallerFunctionsResponse](docs/CalleesCallerFunctionsResponse.md) - [CallerFunctionInfo](docs/CallerFunctionInfo.md) @@ -307,7 +298,6 @@ Class | Method | HTTP request | Description - [Enumeration](docs/Enumeration.md) - [ErrorModel](docs/ErrorModel.md) - [ExportModel](docs/ExportModel.md) - - [ExportedBinaryAnnResult](docs/ExportedBinaryAnnResult.md) - [ExternalResponse](docs/ExternalResponse.md) - [FileFormat](docs/FileFormat.md) - [FileHashes](docs/FileHashes.md) @@ -378,7 +368,6 @@ Class | Method | HTTP request | Description - [NetworkOverviewMetadata](docs/NetworkOverviewMetadata.md) - [NetworkOverviewResponse](docs/NetworkOverviewResponse.md) - [Order](docs/Order.md) - - [Origin](docs/Origin.md) - [PDBDebugModel](docs/PDBDebugModel.md) - [PEModel](docs/PEModel.md) - [PaginationModel](docs/PaginationModel.md) @@ -422,12 +411,10 @@ Class | Method | HTTP request | Description - [TTPSElement](docs/TTPSElement.md) - [TTPSOccurance](docs/TTPSOccurance.md) - [Tag](docs/Tag.md) - - [TagConfidenceBody](docs/TagConfidenceBody.md) - - [TagOriginBoxPlotConfidence](docs/TagOriginBoxPlotConfidence.md) + - [TagItem](docs/TagItem.md) - [TagResponse](docs/TagResponse.md) - [TagSearchResponse](docs/TagSearchResponse.md) - [TagSearchResult](docs/TagSearchResult.md) - - [Tags](docs/Tags.md) - [TaskResponse](docs/TaskResponse.md) - [TaskStatus](docs/TaskStatus.md) - [TimestampModel](docs/TimestampModel.md) diff --git a/docs/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index a725c12..dda07d3 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -11,7 +11,6 @@ Method | HTTP request | Description [**get_analysis_logs**](AnalysesCoreApi.md#get_analysis_logs) | **GET** /v2/analyses/{analysis_id}/logs | Gets the logs of an analysis [**get_analysis_params**](AnalysesCoreApi.md#get_analysis_params) | **GET** /v2/analyses/{analysis_id}/params | Gets analysis param information [**get_analysis_status**](AnalysesCoreApi.md#get_analysis_status) | **GET** /v2/analyses/{analysis_id}/status | Gets the status of an analysis -[**get_binary_ann**](AnalysesCoreApi.md#get_binary_ann) | **POST** /v2/binary_ann/{analysis_id} | Binary Ann [**list_analyses**](AnalysesCoreApi.md#list_analyses) | **GET** /v2/analyses/list | Gets the most recent analyses [**lookup_binary_id**](AnalysesCoreApi.md#lookup_binary_id) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID [**requeue_analysis**](AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis @@ -585,89 +584,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_binary_ann** -> BaseResponseBinaryAnnListResponse get_binary_ann(analysis_id, binary_ann_form) - -Binary Ann - -Binary Ann - -### Example - -* Api Key Authentication (APIKey): - -```python -import revengai -from revengai.models.base_response_binary_ann_list_response import BaseResponseBinaryAnnListResponse -from revengai.models.binary_ann_form import BinaryAnnForm -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.AnalysesCoreApi(api_client) - analysis_id = 56 # int | - binary_ann_form = revengai.BinaryAnnForm() # BinaryAnnForm | - - try: - # Binary Ann - api_response = api_instance.get_binary_ann(analysis_id, binary_ann_form) - print("The response of AnalysesCoreApi->get_binary_ann:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AnalysesCoreApi->get_binary_ann: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| | - **binary_ann_form** | [**BinaryAnnForm**](BinaryAnnForm.md)| | - -### Return type - -[**BaseResponseBinaryAnnListResponse**](BaseResponseBinaryAnnListResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **list_analyses** > BaseResponseRecent list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, sha256_hash=sha256_hash, limit=limit, offset=offset, order_by=order_by, order=order) diff --git a/docs/AnalysisTags.md b/docs/AnalysisTags.md index 8f290b3..d38fd72 100644 --- a/docs/AnalysisTags.md +++ b/docs/AnalysisTags.md @@ -5,8 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**analysis_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | | -**suggested_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | | +**analysis_tags** | [**List[TagItem]**](TagItem.md) | | ## Example diff --git a/docs/AppApiRestV2AnalysesResponsesTagItem.md b/docs/AppApiRestV2AnalysesResponsesTagItem.md deleted file mode 100644 index 2150145..0000000 --- a/docs/AppApiRestV2AnalysesResponsesTagItem.md +++ /dev/null @@ -1,31 +0,0 @@ -# AppApiRestV2AnalysesResponsesTagItem - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**origin** | **str** | | -**collection_id** | **int** | | [optional] - -## Example - -```python -from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem - -# TODO update the JSON string below -json = "{}" -# create an instance of AppApiRestV2AnalysesResponsesTagItem from a JSON string -app_api_rest_v2_analyses_responses_tag_item_instance = AppApiRestV2AnalysesResponsesTagItem.from_json(json) -# print the JSON string representation of the object -print(AppApiRestV2AnalysesResponsesTagItem.to_json()) - -# convert the object into a dict -app_api_rest_v2_analyses_responses_tag_item_dict = app_api_rest_v2_analyses_responses_tag_item_instance.to_dict() -# create an instance of AppApiRestV2AnalysesResponsesTagItem from a dict -app_api_rest_v2_analyses_responses_tag_item_from_dict = AppApiRestV2AnalysesResponsesTagItem.from_dict(app_api_rest_v2_analyses_responses_tag_item_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AppServicesBinaryAnnSchemaTagItem.md b/docs/AppServicesBinaryAnnSchemaTagItem.md deleted file mode 100644 index 24cc84b..0000000 --- a/docs/AppServicesBinaryAnnSchemaTagItem.md +++ /dev/null @@ -1,30 +0,0 @@ -# AppServicesBinaryAnnSchemaTagItem - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tag** | **str** | | [optional] -**origin** | **str** | | [optional] - -## Example - -```python -from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem - -# TODO update the JSON string below -json = "{}" -# create an instance of AppServicesBinaryAnnSchemaTagItem from a JSON string -app_services_binary_ann_schema_tag_item_instance = AppServicesBinaryAnnSchemaTagItem.from_json(json) -# print the JSON string representation of the object -print(AppServicesBinaryAnnSchemaTagItem.to_json()) - -# convert the object into a dict -app_services_binary_ann_schema_tag_item_dict = app_services_binary_ann_schema_tag_item_instance.to_dict() -# create an instance of AppServicesBinaryAnnSchemaTagItem from a dict -app_services_binary_ann_schema_tag_item_from_dict = AppServicesBinaryAnnSchemaTagItem.from_dict(app_services_binary_ann_schema_tag_item_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BaseResponseBinaryAnnListResponse.md b/docs/BaseResponseBinaryAnnListResponse.md deleted file mode 100644 index 6192e46..0000000 --- a/docs/BaseResponseBinaryAnnListResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseBinaryAnnListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**BinaryAnnListResponse**](BinaryAnnListResponse.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_binary_ann_list_response import BaseResponseBinaryAnnListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseBinaryAnnListResponse from a JSON string -base_response_binary_ann_list_response_instance = BaseResponseBinaryAnnListResponse.from_json(json) -# print the JSON string representation of the object -print(BaseResponseBinaryAnnListResponse.to_json()) - -# convert the object into a dict -base_response_binary_ann_list_response_dict = base_response_binary_ann_list_response_instance.to_dict() -# create an instance of BaseResponseBinaryAnnListResponse from a dict -base_response_binary_ann_list_response_from_dict = BaseResponseBinaryAnnListResponse.from_dict(base_response_binary_ann_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BaseResponseListTagOriginBoxPlotConfidence.md b/docs/BaseResponseListTagOriginBoxPlotConfidence.md deleted file mode 100644 index 933ec97..0000000 --- a/docs/BaseResponseListTagOriginBoxPlotConfidence.md +++ /dev/null @@ -1,33 +0,0 @@ -# BaseResponseListTagOriginBoxPlotConfidence - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**List[TagOriginBoxPlotConfidence]**](TagOriginBoxPlotConfidence.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.base_response_list_tag_origin_box_plot_confidence import BaseResponseListTagOriginBoxPlotConfidence - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponseListTagOriginBoxPlotConfidence from a JSON string -base_response_list_tag_origin_box_plot_confidence_instance = BaseResponseListTagOriginBoxPlotConfidence.from_json(json) -# print the JSON string representation of the object -print(BaseResponseListTagOriginBoxPlotConfidence.to_json()) - -# convert the object into a dict -base_response_list_tag_origin_box_plot_confidence_dict = base_response_list_tag_origin_box_plot_confidence_instance.to_dict() -# create an instance of BaseResponseListTagOriginBoxPlotConfidence from a dict -base_response_list_tag_origin_box_plot_confidence_from_dict = BaseResponseListTagOriginBoxPlotConfidence.from_dict(base_response_list_tag_origin_box_plot_confidence_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BinaryAnnForm.md b/docs/BinaryAnnForm.md deleted file mode 100644 index 6892a8c..0000000 --- a/docs/BinaryAnnForm.md +++ /dev/null @@ -1,32 +0,0 @@ -# BinaryAnnForm - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**confidence** | **float** | Confidence of the annotation | [optional] [default to 0.0] -**nns** | **int** | Number of nearest neighbors | [optional] [default to 1] -**collection_ids** | **List[int]** | Collection IDs to search for nearest neighbors | [optional] -**binary_ids** | **List[int]** | Binary IDs to search for nearest neighbors | [optional] - -## Example - -```python -from revengai.models.binary_ann_form import BinaryAnnForm - -# TODO update the JSON string below -json = "{}" -# create an instance of BinaryAnnForm from a JSON string -binary_ann_form_instance = BinaryAnnForm.from_json(json) -# print the JSON string representation of the object -print(BinaryAnnForm.to_json()) - -# convert the object into a dict -binary_ann_form_dict = binary_ann_form_instance.to_dict() -# create an instance of BinaryAnnForm from a dict -binary_ann_form_from_dict = BinaryAnnForm.from_dict(binary_ann_form_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BinaryAnnListResponse.md b/docs/BinaryAnnListResponse.md deleted file mode 100644 index 1035b10..0000000 --- a/docs/BinaryAnnListResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# BinaryAnnListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**list** | [**List[ExportedBinaryAnnResult]**](ExportedBinaryAnnResult.md) | | - -## Example - -```python -from revengai.models.binary_ann_list_response import BinaryAnnListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BinaryAnnListResponse from a JSON string -binary_ann_list_response_instance = BinaryAnnListResponse.from_json(json) -# print the JSON string representation of the object -print(BinaryAnnListResponse.to_json()) - -# convert the object into a dict -binary_ann_list_response_dict = binary_ann_list_response_instance.to_dict() -# create an instance of BinaryAnnListResponse from a dict -binary_ann_list_response_from_dict = BinaryAnnListResponse.from_dict(binary_ann_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BoxPlotConfidence.md b/docs/BoxPlotConfidence.md deleted file mode 100644 index 46d0933..0000000 --- a/docs/BoxPlotConfidence.md +++ /dev/null @@ -1,36 +0,0 @@ -# BoxPlotConfidence - -Format for confidence - returned in the box plot format - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**min** | **float** | | -**max** | **float** | | -**average** | **float** | | -**upper_quartile** | **float** | | -**lower_quartile** | **float** | | -**positive_count** | **int** | | -**negative_count** | **int** | | - -## Example - -```python -from revengai.models.box_plot_confidence import BoxPlotConfidence - -# TODO update the JSON string below -json = "{}" -# create an instance of BoxPlotConfidence from a JSON string -box_plot_confidence_instance = BoxPlotConfidence.from_json(json) -# print the JSON string representation of the object -print(BoxPlotConfidence.to_json()) - -# convert the object into a dict -box_plot_confidence_dict = box_plot_confidence_instance.to_dict() -# create an instance of BoxPlotConfidence from a dict -box_plot_confidence_from_dict = BoxPlotConfidence.from_dict(box_plot_confidence_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ConfidenceApi.md b/docs/ConfidenceApi.md deleted file mode 100644 index a4a53e4..0000000 --- a/docs/ConfidenceApi.md +++ /dev/null @@ -1,92 +0,0 @@ -# revengai.ConfidenceApi - -All URIs are relative to *https://api.reveng.ai* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_analysis_tag_score**](ConfidenceApi.md#get_analysis_tag_score) | **POST** /v2/confidence/analysis/{analysis_id}/tag_score | Calculate Tag Confidence Score for an Analysis - - -# **get_analysis_tag_score** -> BaseResponseListTagOriginBoxPlotConfidence get_analysis_tag_score(analysis_id, tag_confidence_body) - -Calculate Tag Confidence Score for an Analysis - -Accepts a analysis ID and a list of tags, returns the confidence score for each tag in the list - -### Example - -* Api Key Authentication (APIKey): - -```python -import revengai -from revengai.models.base_response_list_tag_origin_box_plot_confidence import BaseResponseListTagOriginBoxPlotConfidence -from revengai.models.tag_confidence_body import TagConfidenceBody -from revengai.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.reveng.ai -# See configuration.py for a list of all supported configuration parameters. -configuration = revengai.Configuration( - host = "https://api.reveng.ai" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: APIKey -configuration.api_key['APIKey'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['APIKey'] = 'Bearer' - -# Enter a context with an instance of the API client -with revengai.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = revengai.ConfidenceApi(api_client) - analysis_id = 56 # int | The analysis to calculate the tag scores for - tag_confidence_body = revengai.TagConfidenceBody() # TagConfidenceBody | - - try: - # Calculate Tag Confidence Score for an Analysis - api_response = api_instance.get_analysis_tag_score(analysis_id, tag_confidence_body) - print("The response of ConfidenceApi->get_analysis_tag_score:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfidenceApi->get_analysis_tag_score: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **analysis_id** | **int**| The analysis to calculate the tag scores for | - **tag_confidence_body** | [**TagConfidenceBody**](TagConfidenceBody.md)| | - -### Return type - -[**BaseResponseListTagOriginBoxPlotConfidence**](BaseResponseListTagOriginBoxPlotConfidence.md) - -### Authorization - -[APIKey](../README.md#APIKey) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Invalid request parameters | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/ExportedBinaryAnnResult.md b/docs/ExportedBinaryAnnResult.md deleted file mode 100644 index 979fc99..0000000 --- a/docs/ExportedBinaryAnnResult.md +++ /dev/null @@ -1,37 +0,0 @@ -# ExportedBinaryAnnResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_id** | **int** | | -**binary_id** | **int** | | -**binary_name** | **str** | | -**sha_256_hash** | **str** | | -**analysis_scope** | **str** | | -**embedding_3d** | **List[float]** | | -**embedding_1d** | **List[float]** | | -**confidence** | **float** | | -**tags** | [**List[AppServicesBinaryAnnSchemaTagItem]**](AppServicesBinaryAnnSchemaTagItem.md) | | [optional] - -## Example - -```python -from revengai.models.exported_binary_ann_result import ExportedBinaryAnnResult - -# TODO update the JSON string below -json = "{}" -# create an instance of ExportedBinaryAnnResult from a JSON string -exported_binary_ann_result_instance = ExportedBinaryAnnResult.from_json(json) -# print the JSON string representation of the object -print(ExportedBinaryAnnResult.to_json()) - -# convert the object into a dict -exported_binary_ann_result_dict = exported_binary_ann_result_instance.to_dict() -# create an instance of ExportedBinaryAnnResult from a dict -exported_binary_ann_result_from_dict = ExportedBinaryAnnResult.from_dict(exported_binary_ann_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Origin.md b/docs/Origin.md deleted file mode 100644 index e067563..0000000 --- a/docs/Origin.md +++ /dev/null @@ -1,24 +0,0 @@ -# Origin - - -## Enum - -* `REV_ENG_MINUS_MALWARE` (value: `'RevEng-Malware'`) - -* `REV_ENG_MINUS_LIBRARY` (value: `'RevEng-Library'`) - -* `REV_ENG_MINUS_BENIGN` (value: `'RevEng-Benign'`) - -* `REVENG` (value: `'RevEng'`) - -* `REV_ENG_MINUS_HEURISTIC` (value: `'RevEng-Heuristic'`) - -* `REV_ENG_MINUS_UNKNOWN` (value: `'RevEng-Unknown'`) - -* `VIRUSTOTAL` (value: `'VirusTotal'`) - -* `MALWAREBAZAAR` (value: `'MalwareBazaar'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/TagConfidenceBody.md b/docs/TagConfidenceBody.md deleted file mode 100644 index ee5d2fe..0000000 --- a/docs/TagConfidenceBody.md +++ /dev/null @@ -1,29 +0,0 @@ -# TagConfidenceBody - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | [**List[Tags]**](Tags.md) | | - -## Example - -```python -from revengai.models.tag_confidence_body import TagConfidenceBody - -# TODO update the JSON string below -json = "{}" -# create an instance of TagConfidenceBody from a JSON string -tag_confidence_body_instance = TagConfidenceBody.from_json(json) -# print the JSON string representation of the object -print(TagConfidenceBody.to_json()) - -# convert the object into a dict -tag_confidence_body_dict = tag_confidence_body_instance.to_dict() -# create an instance of TagConfidenceBody from a dict -tag_confidence_body_from_dict = TagConfidenceBody.from_dict(tag_confidence_body_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Tags.md b/docs/TagItem.md similarity index 51% rename from docs/Tags.md rename to docs/TagItem.md index 5cd630b..ff7945d 100644 --- a/docs/Tags.md +++ b/docs/TagItem.md @@ -1,29 +1,30 @@ -# Tags +# TagItem ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**tag** | **str** | The tag name | -**origin** | [**Origin**](Origin.md) | The origin of the tag | +**name** | **str** | | +**origin** | **str** | | +**collection_id** | **int** | | [optional] ## Example ```python -from revengai.models.tags import Tags +from revengai.models.tag_item import TagItem # TODO update the JSON string below json = "{}" -# create an instance of Tags from a JSON string -tags_instance = Tags.from_json(json) +# create an instance of TagItem from a JSON string +tag_item_instance = TagItem.from_json(json) # print the JSON string representation of the object -print(Tags.to_json()) +print(TagItem.to_json()) # convert the object into a dict -tags_dict = tags_instance.to_dict() -# create an instance of Tags from a dict -tags_from_dict = Tags.from_dict(tags_dict) +tag_item_dict = tag_item_instance.to_dict() +# create an instance of TagItem from a dict +tag_item_from_dict = TagItem.from_dict(tag_item_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TagOriginBoxPlotConfidence.md b/docs/TagOriginBoxPlotConfidence.md deleted file mode 100644 index 3fb5dcb..0000000 --- a/docs/TagOriginBoxPlotConfidence.md +++ /dev/null @@ -1,30 +0,0 @@ -# TagOriginBoxPlotConfidence - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tag** | [**Tags**](Tags.md) | | -**box_plot** | [**BoxPlotConfidence**](BoxPlotConfidence.md) | | - -## Example - -```python -from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence - -# TODO update the JSON string below -json = "{}" -# create an instance of TagOriginBoxPlotConfidence from a JSON string -tag_origin_box_plot_confidence_instance = TagOriginBoxPlotConfidence.from_json(json) -# print the JSON string representation of the object -print(TagOriginBoxPlotConfidence.to_json()) - -# convert the object into a dict -tag_origin_box_plot_confidence_dict = tag_origin_box_plot_confidence_instance.to_dict() -# create an instance of TagOriginBoxPlotConfidence from a dict -tag_origin_box_plot_confidence_from_dict = TagOriginBoxPlotConfidence.from_dict(tag_origin_box_plot_confidence_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/revengai/__init__.py b/revengai/__init__.py index 5cddd8c..b9bac32 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v2.32.0" +__version__ = "v2.35.1" # Define package exports __all__ = [ @@ -25,7 +25,6 @@ "AuthenticationUsersApi", "BinariesApi", "CollectionsApi", - "ConfidenceApi", "ExternalSourcesApi", "FirmwareApi", "FunctionsAIDecompilationApi", @@ -65,11 +64,9 @@ "AnalysisUpdateTagsResponse", "AppApiRestV2AnalysesEnumsDynamicExecutionStatus", "AppApiRestV2AnalysesEnumsOrderBy", - "AppApiRestV2AnalysesResponsesTagItem", "AppApiRestV2CollectionsEnumsOrderBy", "AppApiRestV2FunctionsResponsesFunction", "AppApiRestV2FunctionsTypesFunction", - "AppServicesBinaryAnnSchemaTagItem", "AppServicesDynamicExecutionSchemasDynamicExecutionStatus", "Argument", "AutoUnstripRequest", @@ -84,7 +81,6 @@ "BaseResponseAnalysisUpdateTagsResponse", "BaseResponseBasic", "BaseResponseBinaryAdditionalResponse", - "BaseResponseBinaryAnnListResponse", "BaseResponseBinaryDetailsResponse", "BaseResponseBinaryExternalsResponse", "BaseResponseBinarySearchResponse", @@ -124,7 +120,6 @@ "BaseResponseListDieMatch", "BaseResponseListFunctionNameHistory", "BaseResponseListSBOM", - "BaseResponseListTagOriginBoxPlotConfidence", "BaseResponseListUserActivityResponse", "BaseResponseLoginResponse", "BaseResponseLogs", @@ -147,8 +142,6 @@ "Basic", "BinaryAdditionalDetailsDataResponse", "BinaryAdditionalResponse", - "BinaryAnnForm", - "BinaryAnnListResponse", "BinaryConfig", "BinaryDetailsResponse", "BinaryExternalsResponse", @@ -157,7 +150,6 @@ "BinaryTaskStatus", "Block", "BlockCommentsGenerationForFunctionResponse", - "BoxPlotConfidence", "CalleeFunctionInfo", "CalleesCallerFunctionsResponse", "CallerFunctionInfo", @@ -202,7 +194,6 @@ "Enumeration", "ErrorModel", "ExportModel", - "ExportedBinaryAnnResult", "ExternalResponse", "FileFormat", "FileHashes", @@ -273,7 +264,6 @@ "NetworkOverviewMetadata", "NetworkOverviewResponse", "Order", - "Origin", "PDBDebugModel", "PEModel", "PaginationModel", @@ -317,12 +307,10 @@ "TTPSElement", "TTPSOccurance", "Tag", - "TagConfidenceBody", - "TagOriginBoxPlotConfidence", + "TagItem", "TagResponse", "TagSearchResponse", "TagSearchResult", - "Tags", "TaskResponse", "TaskStatus", "TimestampModel", @@ -347,7 +335,6 @@ from revengai.api.authentication_users_api import AuthenticationUsersApi as AuthenticationUsersApi from revengai.api.binaries_api import BinariesApi as BinariesApi from revengai.api.collections_api import CollectionsApi as CollectionsApi -from revengai.api.confidence_api import ConfidenceApi as ConfidenceApi from revengai.api.external_sources_api import ExternalSourcesApi as ExternalSourcesApi from revengai.api.firmware_api import FirmwareApi as FirmwareApi from revengai.api.functions_ai_decompilation_api import FunctionsAIDecompilationApi as FunctionsAIDecompilationApi @@ -391,11 +378,9 @@ from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse as AnalysisUpdateTagsResponse from revengai.models.app_api_rest_v2_analyses_enums_dynamic_execution_status import AppApiRestV2AnalysesEnumsDynamicExecutionStatus as AppApiRestV2AnalysesEnumsDynamicExecutionStatus from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy as AppApiRestV2AnalysesEnumsOrderBy -from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem as AppApiRestV2AnalysesResponsesTagItem from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy as AppApiRestV2CollectionsEnumsOrderBy from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction as AppApiRestV2FunctionsResponsesFunction from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction as AppApiRestV2FunctionsTypesFunction -from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem as AppServicesBinaryAnnSchemaTagItem from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus as AppServicesDynamicExecutionSchemasDynamicExecutionStatus from revengai.models.argument import Argument as Argument from revengai.models.auto_unstrip_request import AutoUnstripRequest as AutoUnstripRequest @@ -410,7 +395,6 @@ from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse as BaseResponseAnalysisUpdateTagsResponse from revengai.models.base_response_basic import BaseResponseBasic as BaseResponseBasic from revengai.models.base_response_binary_additional_response import BaseResponseBinaryAdditionalResponse as BaseResponseBinaryAdditionalResponse -from revengai.models.base_response_binary_ann_list_response import BaseResponseBinaryAnnListResponse as BaseResponseBinaryAnnListResponse from revengai.models.base_response_binary_details_response import BaseResponseBinaryDetailsResponse as BaseResponseBinaryDetailsResponse from revengai.models.base_response_binary_externals_response import BaseResponseBinaryExternalsResponse as BaseResponseBinaryExternalsResponse from revengai.models.base_response_binary_search_response import BaseResponseBinarySearchResponse as BaseResponseBinarySearchResponse @@ -450,7 +434,6 @@ from revengai.models.base_response_list_die_match import BaseResponseListDieMatch as BaseResponseListDieMatch from revengai.models.base_response_list_function_name_history import BaseResponseListFunctionNameHistory as BaseResponseListFunctionNameHistory from revengai.models.base_response_list_sbom import BaseResponseListSBOM as BaseResponseListSBOM -from revengai.models.base_response_list_tag_origin_box_plot_confidence import BaseResponseListTagOriginBoxPlotConfidence as BaseResponseListTagOriginBoxPlotConfidence from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse as BaseResponseListUserActivityResponse from revengai.models.base_response_login_response import BaseResponseLoginResponse as BaseResponseLoginResponse from revengai.models.base_response_logs import BaseResponseLogs as BaseResponseLogs @@ -473,8 +456,6 @@ from revengai.models.basic import Basic as Basic from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse as BinaryAdditionalDetailsDataResponse from revengai.models.binary_additional_response import BinaryAdditionalResponse as BinaryAdditionalResponse -from revengai.models.binary_ann_form import BinaryAnnForm as BinaryAnnForm -from revengai.models.binary_ann_list_response import BinaryAnnListResponse as BinaryAnnListResponse from revengai.models.binary_config import BinaryConfig as BinaryConfig from revengai.models.binary_details_response import BinaryDetailsResponse as BinaryDetailsResponse from revengai.models.binary_externals_response import BinaryExternalsResponse as BinaryExternalsResponse @@ -483,7 +464,6 @@ from revengai.models.binary_task_status import BinaryTaskStatus as BinaryTaskStatus from revengai.models.block import Block as Block from revengai.models.block_comments_generation_for_function_response import BlockCommentsGenerationForFunctionResponse as BlockCommentsGenerationForFunctionResponse -from revengai.models.box_plot_confidence import BoxPlotConfidence as BoxPlotConfidence from revengai.models.callee_function_info import CalleeFunctionInfo as CalleeFunctionInfo from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse as CalleesCallerFunctionsResponse from revengai.models.caller_function_info import CallerFunctionInfo as CallerFunctionInfo @@ -528,7 +508,6 @@ from revengai.models.enumeration import Enumeration as Enumeration from revengai.models.error_model import ErrorModel as ErrorModel from revengai.models.export_model import ExportModel as ExportModel -from revengai.models.exported_binary_ann_result import ExportedBinaryAnnResult as ExportedBinaryAnnResult from revengai.models.external_response import ExternalResponse as ExternalResponse from revengai.models.file_format import FileFormat as FileFormat from revengai.models.file_hashes import FileHashes as FileHashes @@ -599,7 +578,6 @@ from revengai.models.network_overview_metadata import NetworkOverviewMetadata as NetworkOverviewMetadata from revengai.models.network_overview_response import NetworkOverviewResponse as NetworkOverviewResponse from revengai.models.order import Order as Order -from revengai.models.origin import Origin as Origin from revengai.models.pdb_debug_model import PDBDebugModel as PDBDebugModel from revengai.models.pe_model import PEModel as PEModel from revengai.models.pagination_model import PaginationModel as PaginationModel @@ -643,12 +621,10 @@ from revengai.models.ttps_element import TTPSElement as TTPSElement from revengai.models.ttps_occurance import TTPSOccurance as TTPSOccurance from revengai.models.tag import Tag as Tag -from revengai.models.tag_confidence_body import TagConfidenceBody as TagConfidenceBody -from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence as TagOriginBoxPlotConfidence +from revengai.models.tag_item import TagItem as TagItem from revengai.models.tag_response import TagResponse as TagResponse from revengai.models.tag_search_response import TagSearchResponse as TagSearchResponse from revengai.models.tag_search_result import TagSearchResult as TagSearchResult -from revengai.models.tags import Tags as Tags from revengai.models.task_response import TaskResponse as TaskResponse from revengai.models.task_status import TaskStatus as TaskStatus from revengai.models.timestamp_model import TimestampModel as TimestampModel diff --git a/revengai/api/__init__.py b/revengai/api/__init__.py index e4e7c87..8d6f02d 100644 --- a/revengai/api/__init__.py +++ b/revengai/api/__init__.py @@ -9,7 +9,6 @@ from revengai.api.authentication_users_api import AuthenticationUsersApi from revengai.api.binaries_api import BinariesApi from revengai.api.collections_api import CollectionsApi -from revengai.api.confidence_api import ConfidenceApi from revengai.api.external_sources_api import ExternalSourcesApi from revengai.api.firmware_api import FirmwareApi from revengai.api.functions_ai_decompilation_api import FunctionsAIDecompilationApi diff --git a/revengai/api/analyses_core_api.py b/revengai/api/analyses_core_api.py index 9d67007..c6a33af 100644 --- a/revengai/api/analyses_core_api.py +++ b/revengai/api/analyses_core_api.py @@ -27,7 +27,6 @@ from revengai.models.base_response_analysis_function_mapping import BaseResponseAnalysisFunctionMapping from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse from revengai.models.base_response_basic import BaseResponseBasic -from revengai.models.base_response_binary_ann_list_response import BaseResponseBinaryAnnListResponse from revengai.models.base_response_created import BaseResponseCreated from revengai.models.base_response_dict import BaseResponseDict from revengai.models.base_response_logs import BaseResponseLogs @@ -35,7 +34,6 @@ from revengai.models.base_response_recent import BaseResponseRecent from revengai.models.base_response_status import BaseResponseStatus from revengai.models.base_response_upload_response import BaseResponseUploadResponse -from revengai.models.binary_ann_form import BinaryAnnForm from revengai.models.dynamic_execution_status_input import DynamicExecutionStatusInput from revengai.models.model_name import ModelName from revengai.models.order import Order @@ -1935,298 +1933,6 @@ def _get_analysis_status_serialize( - @validate_call - def get_binary_ann( - self, - analysis_id: StrictInt, - binary_ann_form: BinaryAnnForm, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseBinaryAnnListResponse: - """Binary Ann - - Binary Ann - - :param analysis_id: (required) - :type analysis_id: int - :param binary_ann_form: (required) - :type binary_ann_form: BinaryAnnForm - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_ann_serialize( - analysis_id=analysis_id, - binary_ann_form=binary_ann_form, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryAnnListResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_binary_ann_with_http_info( - self, - analysis_id: StrictInt, - binary_ann_form: BinaryAnnForm, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseBinaryAnnListResponse]: - """Binary Ann - - Binary Ann - - :param analysis_id: (required) - :type analysis_id: int - :param binary_ann_form: (required) - :type binary_ann_form: BinaryAnnForm - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_ann_serialize( - analysis_id=analysis_id, - binary_ann_form=binary_ann_form, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryAnnListResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_binary_ann_without_preload_content( - self, - analysis_id: StrictInt, - binary_ann_form: BinaryAnnForm, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Binary Ann - - Binary Ann - - :param analysis_id: (required) - :type analysis_id: int - :param binary_ann_form: (required) - :type binary_ann_form: BinaryAnnForm - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_binary_ann_serialize( - analysis_id=analysis_id, - binary_ann_form=binary_ann_form, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseBinaryAnnListResponse", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_binary_ann_serialize( - self, - analysis_id, - binary_ann_form, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if binary_ann_form is not None: - _body_params = binary_ann_form - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/binary_ann/{analysis_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def list_analyses( self, diff --git a/revengai/api/confidence_api.py b/revengai/api/confidence_api.py deleted file mode 100644 index c08f2d4..0000000 --- a/revengai/api/confidence_api.py +++ /dev/null @@ -1,330 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictInt -from typing_extensions import Annotated -from revengai.models.base_response_list_tag_origin_box_plot_confidence import BaseResponseListTagOriginBoxPlotConfidence -from revengai.models.tag_confidence_body import TagConfidenceBody - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class ConfidenceApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_analysis_tag_score( - self, - analysis_id: Annotated[StrictInt, Field(description="The analysis to calculate the tag scores for")], - tag_confidence_body: TagConfidenceBody, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseListTagOriginBoxPlotConfidence: - """Calculate Tag Confidence Score for an Analysis - - Accepts a analysis ID and a list of tags, returns the confidence score for each tag in the list - - :param analysis_id: The analysis to calculate the tag scores for (required) - :type analysis_id: int - :param tag_confidence_body: (required) - :type tag_confidence_body: TagConfidenceBody - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_tag_score_serialize( - analysis_id=analysis_id, - tag_confidence_body=tag_confidence_body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListTagOriginBoxPlotConfidence", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_tag_score_with_http_info( - self, - analysis_id: Annotated[StrictInt, Field(description="The analysis to calculate the tag scores for")], - tag_confidence_body: TagConfidenceBody, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseListTagOriginBoxPlotConfidence]: - """Calculate Tag Confidence Score for an Analysis - - Accepts a analysis ID and a list of tags, returns the confidence score for each tag in the list - - :param analysis_id: The analysis to calculate the tag scores for (required) - :type analysis_id: int - :param tag_confidence_body: (required) - :type tag_confidence_body: TagConfidenceBody - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_tag_score_serialize( - analysis_id=analysis_id, - tag_confidence_body=tag_confidence_body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListTagOriginBoxPlotConfidence", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_tag_score_without_preload_content( - self, - analysis_id: Annotated[StrictInt, Field(description="The analysis to calculate the tag scores for")], - tag_confidence_body: TagConfidenceBody, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Calculate Tag Confidence Score for an Analysis - - Accepts a analysis ID and a list of tags, returns the confidence score for each tag in the list - - :param analysis_id: The analysis to calculate the tag scores for (required) - :type analysis_id: int - :param tag_confidence_body: (required) - :type tag_confidence_body: TagConfidenceBody - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_analysis_tag_score_serialize( - analysis_id=analysis_id, - tag_confidence_body=tag_confidence_body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListTagOriginBoxPlotConfidence", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_tag_score_serialize( - self, - analysis_id, - tag_confidence_body, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if analysis_id is not None: - _path_params['analysis_id'] = analysis_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if tag_confidence_body is not None: - _body_params = tag_confidence_body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/confidence/analysis/{analysis_id}/tag_score', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api_client.py b/revengai/api_client.py index 9659c71..630f66e 100644 --- a/revengai/api_client.py +++ b/revengai/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/v2.32.0/python' + self.user_agent = 'OpenAPI-Generator/v2.35.1/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 4eb44b0..a0bff4d 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -533,8 +533,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v2.32.0\n"\ - "SDK Package Version: v2.32.0".\ + "Version of the API: v2.35.1\n"\ + "SDK Package Version: v2.35.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/revengai/models/__init__.py b/revengai/models/__init__.py index 3a29aa9..f98550c 100644 --- a/revengai/models/__init__.py +++ b/revengai/models/__init__.py @@ -32,11 +32,9 @@ from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse from revengai.models.app_api_rest_v2_analyses_enums_dynamic_execution_status import AppApiRestV2AnalysesEnumsDynamicExecutionStatus from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy -from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction -from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus from revengai.models.argument import Argument from revengai.models.auto_unstrip_request import AutoUnstripRequest @@ -51,7 +49,6 @@ from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse from revengai.models.base_response_basic import BaseResponseBasic from revengai.models.base_response_binary_additional_response import BaseResponseBinaryAdditionalResponse -from revengai.models.base_response_binary_ann_list_response import BaseResponseBinaryAnnListResponse from revengai.models.base_response_binary_details_response import BaseResponseBinaryDetailsResponse from revengai.models.base_response_binary_externals_response import BaseResponseBinaryExternalsResponse from revengai.models.base_response_binary_search_response import BaseResponseBinarySearchResponse @@ -91,7 +88,6 @@ from revengai.models.base_response_list_die_match import BaseResponseListDieMatch from revengai.models.base_response_list_function_name_history import BaseResponseListFunctionNameHistory from revengai.models.base_response_list_sbom import BaseResponseListSBOM -from revengai.models.base_response_list_tag_origin_box_plot_confidence import BaseResponseListTagOriginBoxPlotConfidence from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse from revengai.models.base_response_login_response import BaseResponseLoginResponse from revengai.models.base_response_logs import BaseResponseLogs @@ -114,8 +110,6 @@ from revengai.models.basic import Basic from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse from revengai.models.binary_additional_response import BinaryAdditionalResponse -from revengai.models.binary_ann_form import BinaryAnnForm -from revengai.models.binary_ann_list_response import BinaryAnnListResponse from revengai.models.binary_config import BinaryConfig from revengai.models.binary_details_response import BinaryDetailsResponse from revengai.models.binary_externals_response import BinaryExternalsResponse @@ -124,7 +118,6 @@ from revengai.models.binary_task_status import BinaryTaskStatus from revengai.models.block import Block from revengai.models.block_comments_generation_for_function_response import BlockCommentsGenerationForFunctionResponse -from revengai.models.box_plot_confidence import BoxPlotConfidence from revengai.models.callee_function_info import CalleeFunctionInfo from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse from revengai.models.caller_function_info import CallerFunctionInfo @@ -169,7 +162,6 @@ from revengai.models.enumeration import Enumeration from revengai.models.error_model import ErrorModel from revengai.models.export_model import ExportModel -from revengai.models.exported_binary_ann_result import ExportedBinaryAnnResult from revengai.models.external_response import ExternalResponse from revengai.models.file_format import FileFormat from revengai.models.file_hashes import FileHashes @@ -240,7 +232,6 @@ from revengai.models.network_overview_metadata import NetworkOverviewMetadata from revengai.models.network_overview_response import NetworkOverviewResponse from revengai.models.order import Order -from revengai.models.origin import Origin from revengai.models.pdb_debug_model import PDBDebugModel from revengai.models.pe_model import PEModel from revengai.models.pagination_model import PaginationModel @@ -284,12 +275,10 @@ from revengai.models.ttps_element import TTPSElement from revengai.models.ttps_occurance import TTPSOccurance from revengai.models.tag import Tag -from revengai.models.tag_confidence_body import TagConfidenceBody -from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence +from revengai.models.tag_item import TagItem from revengai.models.tag_response import TagResponse from revengai.models.tag_search_response import TagSearchResponse from revengai.models.tag_search_result import TagSearchResult -from revengai.models.tags import Tags from revengai.models.task_response import TaskResponse from revengai.models.task_status import TaskStatus from revengai.models.timestamp_model import TimestampModel diff --git a/revengai/models/analysis_tags.py b/revengai/models/analysis_tags.py index 09e238e..fcf50d3 100644 --- a/revengai/models/analysis_tags.py +++ b/revengai/models/analysis_tags.py @@ -18,7 +18,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem +from revengai.models.tag_item import TagItem from typing import Optional, Set from typing_extensions import Self @@ -26,9 +26,8 @@ class AnalysisTags(BaseModel): """ AnalysisTags """ # noqa: E501 - analysis_tags: List[AppApiRestV2AnalysesResponsesTagItem] - suggested_tags: List[AppApiRestV2AnalysesResponsesTagItem] - __properties: ClassVar[List[str]] = ["analysis_tags", "suggested_tags"] + analysis_tags: List[TagItem] + __properties: ClassVar[List[str]] = ["analysis_tags"] model_config = ConfigDict( populate_by_name=True, @@ -76,13 +75,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_analysis_tags: _items.append(_item_analysis_tags.to_dict()) _dict['analysis_tags'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in suggested_tags (list) - _items = [] - if self.suggested_tags: - for _item_suggested_tags in self.suggested_tags: - if _item_suggested_tags: - _items.append(_item_suggested_tags.to_dict()) - _dict['suggested_tags'] = _items return _dict @classmethod @@ -95,8 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "analysis_tags": [AppApiRestV2AnalysesResponsesTagItem.from_dict(_item) for _item in obj["analysis_tags"]] if obj.get("analysis_tags") is not None else None, - "suggested_tags": [AppApiRestV2AnalysesResponsesTagItem.from_dict(_item) for _item in obj["suggested_tags"]] if obj.get("suggested_tags") is not None else None + "analysis_tags": [TagItem.from_dict(_item) for _item in obj["analysis_tags"]] if obj.get("analysis_tags") is not None else None }) return _obj diff --git a/revengai/models/app_services_binary_ann_schema_tag_item.py b/revengai/models/app_services_binary_ann_schema_tag_item.py deleted file mode 100644 index 204bed9..0000000 --- a/revengai/models/app_services_binary_ann_schema_tag_item.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AppServicesBinaryAnnSchemaTagItem(BaseModel): - """ - AppServicesBinaryAnnSchemaTagItem - """ # noqa: E501 - tag: Optional[StrictStr] = None - origin: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["tag", "origin"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppServicesBinaryAnnSchemaTagItem from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if tag (nullable) is None - # and model_fields_set contains the field - if self.tag is None and "tag" in self.model_fields_set: - _dict['tag'] = None - - # set to None if origin (nullable) is None - # and model_fields_set contains the field - if self.origin is None and "origin" in self.model_fields_set: - _dict['origin'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppServicesBinaryAnnSchemaTagItem from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tag": obj.get("tag"), - "origin": obj.get("origin") - }) - return _obj - - diff --git a/revengai/models/base_response_binary_ann_list_response.py b/revengai/models/base_response_binary_ann_list_response.py deleted file mode 100644 index 225cf7c..0000000 --- a/revengai/models/base_response_binary_ann_list_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.binary_ann_list_response import BinaryAnnListResponse -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseBinaryAnnListResponse(BaseModel): - """ - BaseResponseBinaryAnnListResponse - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[BinaryAnnListResponse] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseBinaryAnnListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseBinaryAnnListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": BinaryAnnListResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/base_response_list_tag_origin_box_plot_confidence.py b/revengai/models/base_response_list_tag_origin_box_plot_confidence.py deleted file mode 100644 index 6829a83..0000000 --- a/revengai/models/base_response_list_tag_origin_box_plot_confidence.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.error_model import ErrorModel -from revengai.models.meta_model import MetaModel -from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence -from typing import Optional, Set -from typing_extensions import Self - -class BaseResponseListTagOriginBoxPlotConfidence(BaseModel): - """ - BaseResponseListTagOriginBoxPlotConfidence - """ # noqa: E501 - status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[List[TagOriginBoxPlotConfidence]] = None - message: Optional[StrictStr] = None - errors: Optional[List[ErrorModel]] = None - meta: Optional[MetaModel] = Field(default=None, description="Metadata") - __properties: ClassVar[List[str]] = ["status", "data", "message", "errors", "meta"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BaseResponseListTagOriginBoxPlotConfidence from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in errors (list) - _items = [] - if self.errors: - for _item_errors in self.errors: - if _item_errors: - _items.append(_item_errors.to_dict()) - _dict['errors'] = _items - # override the default output from pydantic by calling `to_dict()` of meta - if self.meta: - _dict['meta'] = self.meta.to_dict() - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if errors (nullable) is None - # and model_fields_set contains the field - if self.errors is None and "errors" in self.model_fields_set: - _dict['errors'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BaseResponseListTagOriginBoxPlotConfidence from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") if obj.get("status") is not None else True, - "data": [TagOriginBoxPlotConfidence.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "message": obj.get("message"), - "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, - "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None - }) - return _obj - - diff --git a/revengai/models/binary_ann_form.py b/revengai/models/binary_ann_form.py deleted file mode 100644 index 774076b..0000000 --- a/revengai/models/binary_ann_form.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing_extensions import Annotated -from typing import Optional, Set -from typing_extensions import Self - -class BinaryAnnForm(BaseModel): - """ - BinaryAnnForm - """ # noqa: E501 - confidence: Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=0.0, description="Confidence of the annotation") - nns: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = Field(default=1, description="Number of nearest neighbors") - collection_ids: Optional[List[StrictInt]] = Field(default=None, description="Collection IDs to search for nearest neighbors") - binary_ids: Optional[List[StrictInt]] = Field(default=None, description="Binary IDs to search for nearest neighbors") - __properties: ClassVar[List[str]] = ["confidence", "nns", "collection_ids", "binary_ids"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BinaryAnnForm from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BinaryAnnForm from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "confidence": obj.get("confidence") if obj.get("confidence") is not None else 0.0, - "nns": obj.get("nns") if obj.get("nns") is not None else 1, - "collection_ids": obj.get("collection_ids"), - "binary_ids": obj.get("binary_ids") - }) - return _obj - - diff --git a/revengai/models/binary_ann_list_response.py b/revengai/models/binary_ann_list_response.py deleted file mode 100644 index 5970089..0000000 --- a/revengai/models/binary_ann_list_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.exported_binary_ann_result import ExportedBinaryAnnResult -from typing import Optional, Set -from typing_extensions import Self - -class BinaryAnnListResponse(BaseModel): - """ - BinaryAnnListResponse - """ # noqa: E501 - list: List[ExportedBinaryAnnResult] - __properties: ClassVar[List[str]] = ["list"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BinaryAnnListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in list (list) - _items = [] - if self.list: - for _item_list in self.list: - if _item_list: - _items.append(_item_list.to_dict()) - _dict['list'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BinaryAnnListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "list": [ExportedBinaryAnnResult.from_dict(_item) for _item in obj["list"]] if obj.get("list") is not None else None - }) - return _obj - - diff --git a/revengai/models/box_plot_confidence.py b/revengai/models/box_plot_confidence.py deleted file mode 100644 index a42b3e8..0000000 --- a/revengai/models/box_plot_confidence.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt -from typing import Any, ClassVar, Dict, List, Union -from typing import Optional, Set -from typing_extensions import Self - -class BoxPlotConfidence(BaseModel): - """ - Format for confidence - returned in the box plot format - """ # noqa: E501 - min: Union[StrictFloat, StrictInt] - max: Union[StrictFloat, StrictInt] - average: Union[StrictFloat, StrictInt] - upper_quartile: Union[StrictFloat, StrictInt] - lower_quartile: Union[StrictFloat, StrictInt] - positive_count: StrictInt - negative_count: StrictInt - __properties: ClassVar[List[str]] = ["min", "max", "average", "upper_quartile", "lower_quartile", "positive_count", "negative_count"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BoxPlotConfidence from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BoxPlotConfidence from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "min": obj.get("min"), - "max": obj.get("max"), - "average": obj.get("average"), - "upper_quartile": obj.get("upper_quartile"), - "lower_quartile": obj.get("lower_quartile"), - "positive_count": obj.get("positive_count"), - "negative_count": obj.get("negative_count") - }) - return _obj - - diff --git a/revengai/models/exported_binary_ann_result.py b/revengai/models/exported_binary_ann_result.py deleted file mode 100644 index 8e504c4..0000000 --- a/revengai/models/exported_binary_ann_result.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem -from typing import Optional, Set -from typing_extensions import Self - -class ExportedBinaryAnnResult(BaseModel): - """ - ExportedBinaryAnnResult - """ # noqa: E501 - analysis_id: StrictInt - binary_id: StrictInt - binary_name: StrictStr - sha_256_hash: StrictStr - analysis_scope: StrictStr - embedding_3d: List[Union[StrictFloat, StrictInt]] - embedding_1d: List[Union[StrictFloat, StrictInt]] - confidence: Union[StrictFloat, StrictInt] - tags: Optional[List[AppServicesBinaryAnnSchemaTagItem]] = None - __properties: ClassVar[List[str]] = ["analysis_id", "binary_id", "binary_name", "sha_256_hash", "analysis_scope", "embedding_3d", "embedding_1d", "confidence", "tags"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExportedBinaryAnnResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item_tags in self.tags: - if _item_tags: - _items.append(_item_tags.to_dict()) - _dict['tags'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExportedBinaryAnnResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analysis_id": obj.get("analysis_id"), - "binary_id": obj.get("binary_id"), - "binary_name": obj.get("binary_name"), - "sha_256_hash": obj.get("sha_256_hash"), - "analysis_scope": obj.get("analysis_scope"), - "embedding_3d": obj.get("embedding_3d"), - "embedding_1d": obj.get("embedding_1d"), - "confidence": obj.get("confidence"), - "tags": [AppServicesBinaryAnnSchemaTagItem.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None - }) - return _obj - - diff --git a/revengai/models/origin.py b/revengai/models/origin.py deleted file mode 100644 index 76b8400..0000000 --- a/revengai/models/origin.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class Origin(str, Enum): - """ - Origin - """ - - """ - allowed enum values - """ - REV_ENG_MINUS_MALWARE = 'RevEng-Malware' - REV_ENG_MINUS_LIBRARY = 'RevEng-Library' - REV_ENG_MINUS_BENIGN = 'RevEng-Benign' - REVENG = 'RevEng' - REV_ENG_MINUS_HEURISTIC = 'RevEng-Heuristic' - REV_ENG_MINUS_UNKNOWN = 'RevEng-Unknown' - VIRUSTOTAL = 'VirusTotal' - MALWAREBAZAAR = 'MalwareBazaar' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Origin from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/tag_confidence_body.py b/revengai/models/tag_confidence_body.py deleted file mode 100644 index b604cd4..0000000 --- a/revengai/models/tag_confidence_body.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from typing_extensions import Annotated -from revengai.models.tags import Tags -from typing import Optional, Set -from typing_extensions import Self - -class TagConfidenceBody(BaseModel): - """ - TagConfidenceBody - """ # noqa: E501 - tags: Annotated[List[Tags], Field(min_length=1, max_length=10)] - __properties: ClassVar[List[str]] = ["tags"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TagConfidenceBody from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item_tags in self.tags: - if _item_tags: - _items.append(_item_tags.to_dict()) - _dict['tags'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TagConfidenceBody from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tags": [Tags.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_analyses_responses_tag_item.py b/revengai/models/tag_item.py similarity index 90% rename from revengai/models/app_api_rest_v2_analyses_responses_tag_item.py rename to revengai/models/tag_item.py index 845cd6f..e5521d2 100644 --- a/revengai/models/app_api_rest_v2_analyses_responses_tag_item.py +++ b/revengai/models/tag_item.py @@ -21,9 +21,9 @@ from typing import Optional, Set from typing_extensions import Self -class AppApiRestV2AnalysesResponsesTagItem(BaseModel): +class TagItem(BaseModel): """ - AppApiRestV2AnalysesResponsesTagItem + TagItem """ # noqa: E501 name: StrictStr origin: StrictStr @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2AnalysesResponsesTagItem from a JSON string""" + """Create an instance of TagItem from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2AnalysesResponsesTagItem from a dict""" + """Create an instance of TagItem from a dict""" if obj is None: return None diff --git a/revengai/models/tag_origin_box_plot_confidence.py b/revengai/models/tag_origin_box_plot_confidence.py deleted file mode 100644 index 6f7ce34..0000000 --- a/revengai/models/tag_origin_box_plot_confidence.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.box_plot_confidence import BoxPlotConfidence -from revengai.models.tags import Tags -from typing import Optional, Set -from typing_extensions import Self - -class TagOriginBoxPlotConfidence(BaseModel): - """ - TagOriginBoxPlotConfidence - """ # noqa: E501 - tag: Tags - box_plot: BoxPlotConfidence - __properties: ClassVar[List[str]] = ["tag", "box_plot"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TagOriginBoxPlotConfidence from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of tag - if self.tag: - _dict['tag'] = self.tag.to_dict() - # override the default output from pydantic by calling `to_dict()` of box_plot - if self.box_plot: - _dict['box_plot'] = self.box_plot.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TagOriginBoxPlotConfidence from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tag": Tags.from_dict(obj["tag"]) if obj.get("tag") is not None else None, - "box_plot": BoxPlotConfidence.from_dict(obj["box_plot"]) if obj.get("box_plot") is not None else None - }) - return _obj - - diff --git a/revengai/models/tags.py b/revengai/models/tags.py deleted file mode 100644 index be76a18..0000000 --- a/revengai/models/tags.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from revengai.models.origin import Origin -from typing import Optional, Set -from typing_extensions import Self - -class Tags(BaseModel): - """ - Tags - """ # noqa: E501 - tag: StrictStr = Field(description="The tag name") - origin: Origin = Field(description="The origin of the tag") - __properties: ClassVar[List[str]] = ["tag", "origin"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Tags from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Tags from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tag": obj.get("tag"), - "origin": obj.get("origin") - }) - return _obj - - diff --git a/test/test_analyses_core_api.py b/test/test_analyses_core_api.py index 6a8d972..da999c7 100644 --- a/test/test_analyses_core_api.py +++ b/test/test_analyses_core_api.py @@ -74,13 +74,6 @@ def test_get_analysis_status(self) -> None: """ pass - def test_get_binary_ann(self) -> None: - """Test case for get_binary_ann - - Binary Ann - """ - pass - def test_list_analyses(self) -> None: """Test case for list_analyses diff --git a/test/test_analysis_tags.py b/test/test_analysis_tags.py index 8cb18a0..69f8b3a 100644 --- a/test/test_analysis_tags.py +++ b/test/test_analysis_tags.py @@ -35,12 +35,6 @@ def make_instance(self, include_optional) -> AnalysisTags: if include_optional: return AnalysisTags( analysis_tags = [ - revengai.models.tag_item.TagItem( - name = '', - origin = '', - collection_id = 56, ) - ], - suggested_tags = [ revengai.models.tag_item.TagItem( name = '', origin = '', @@ -55,12 +49,6 @@ def make_instance(self, include_optional) -> AnalysisTags: origin = '', collection_id = 56, ) ], - suggested_tags = [ - revengai.models.tag_item.TagItem( - name = '', - origin = '', - collection_id = 56, ) - ], ) """ diff --git a/test/test_app_api_rest_v2_analyses_responses_tag_item.py b/test/test_app_api_rest_v2_analyses_responses_tag_item.py deleted file mode 100644 index a3be11d..0000000 --- a/test/test_app_api_rest_v2_analyses_responses_tag_item.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem - -class TestAppApiRestV2AnalysesResponsesTagItem(unittest.TestCase): - """AppApiRestV2AnalysesResponsesTagItem unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2AnalysesResponsesTagItem: - """Test AppApiRestV2AnalysesResponsesTagItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV2AnalysesResponsesTagItem` - """ - model = AppApiRestV2AnalysesResponsesTagItem() - if include_optional: - return AppApiRestV2AnalysesResponsesTagItem( - name = '', - origin = '', - collection_id = 56 - ) - else: - return AppApiRestV2AnalysesResponsesTagItem( - name = '', - origin = '', - ) - """ - - def testAppApiRestV2AnalysesResponsesTagItem(self): - """Test AppApiRestV2AnalysesResponsesTagItem""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_services_binary_ann_schema_tag_item.py b/test/test_app_services_binary_ann_schema_tag_item.py deleted file mode 100644 index 7456cbb..0000000 --- a/test/test_app_services_binary_ann_schema_tag_item.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem - -class TestAppServicesBinaryAnnSchemaTagItem(unittest.TestCase): - """AppServicesBinaryAnnSchemaTagItem unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppServicesBinaryAnnSchemaTagItem: - """Test AppServicesBinaryAnnSchemaTagItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppServicesBinaryAnnSchemaTagItem` - """ - model = AppServicesBinaryAnnSchemaTagItem() - if include_optional: - return AppServicesBinaryAnnSchemaTagItem( - tag = '', - origin = '' - ) - else: - return AppServicesBinaryAnnSchemaTagItem( - ) - """ - - def testAppServicesBinaryAnnSchemaTagItem(self): - """Test AppServicesBinaryAnnSchemaTagItem""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_base_response_analysis_tags.py b/test/test_base_response_analysis_tags.py index 527af75..16ac666 100644 --- a/test/test_base_response_analysis_tags.py +++ b/test/test_base_response_analysis_tags.py @@ -37,12 +37,6 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisTags: status = True, data = revengai.models.analysis_tags.AnalysisTags( analysis_tags = [ - revengai.models.tag_item.TagItem( - name = '', - origin = '', - collection_id = 56, ) - ], - suggested_tags = [ revengai.models.tag_item.TagItem( name = '', origin = '', diff --git a/test/test_base_response_binary_ann_list_response.py b/test/test_base_response_binary_ann_list_response.py deleted file mode 100644 index 8a1b1e5..0000000 --- a/test/test_base_response_binary_ann_list_response.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_binary_ann_list_response import BaseResponseBinaryAnnListResponse - -class TestBaseResponseBinaryAnnListResponse(unittest.TestCase): - """BaseResponseBinaryAnnListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseBinaryAnnListResponse: - """Test BaseResponseBinaryAnnListResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseBinaryAnnListResponse` - """ - model = BaseResponseBinaryAnnListResponse() - if include_optional: - return BaseResponseBinaryAnnListResponse( - status = True, - data = revengai.models.binary_ann_list_response.BinaryAnnListResponse( - list = [ - revengai.models.exported_binary_ann_result.ExportedBinaryAnnResult( - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - analysis_scope = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - confidence = 1.337, - tags = [ - revengai.models.tag_item.TagItem( - tag = '', - origin = '', ) - ], ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseBinaryAnnListResponse( - ) - """ - - def testBaseResponseBinaryAnnListResponse(self): - """Test BaseResponseBinaryAnnListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_base_response_list_tag_origin_box_plot_confidence.py b/test/test_base_response_list_tag_origin_box_plot_confidence.py deleted file mode 100644 index 65458e0..0000000 --- a/test/test_base_response_list_tag_origin_box_plot_confidence.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_list_tag_origin_box_plot_confidence import BaseResponseListTagOriginBoxPlotConfidence - -class TestBaseResponseListTagOriginBoxPlotConfidence(unittest.TestCase): - """BaseResponseListTagOriginBoxPlotConfidence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseListTagOriginBoxPlotConfidence: - """Test BaseResponseListTagOriginBoxPlotConfidence - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseListTagOriginBoxPlotConfidence` - """ - model = BaseResponseListTagOriginBoxPlotConfidence() - if include_optional: - return BaseResponseListTagOriginBoxPlotConfidence( - status = True, - data = [ - revengai.models.tag_origin_box_plot_confidence.TagOriginBoxPlotConfidence( - tag = revengai.models.tags.Tags( - tag = '', - origin = 'RevEng-Malware', ), - box_plot = revengai.models.box_plot_confidence.BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, ), ) - ], - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseListTagOriginBoxPlotConfidence( - ) - """ - - def testBaseResponseListTagOriginBoxPlotConfidence(self): - """Test BaseResponseListTagOriginBoxPlotConfidence""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_binary_ann_form.py b/test/test_binary_ann_form.py deleted file mode 100644 index 63ddf67..0000000 --- a/test/test_binary_ann_form.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_ann_form import BinaryAnnForm - -class TestBinaryAnnForm(unittest.TestCase): - """BinaryAnnForm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BinaryAnnForm: - """Test BinaryAnnForm - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BinaryAnnForm` - """ - model = BinaryAnnForm() - if include_optional: - return BinaryAnnForm( - confidence = 0.0, - nns = 1.0, - collection_ids = [ - 56 - ], - binary_ids = [ - 56 - ] - ) - else: - return BinaryAnnForm( - ) - """ - - def testBinaryAnnForm(self): - """Test BinaryAnnForm""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_binary_ann_list_response.py b/test/test_binary_ann_list_response.py deleted file mode 100644 index f60084c..0000000 --- a/test/test_binary_ann_list_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_ann_list_response import BinaryAnnListResponse - -class TestBinaryAnnListResponse(unittest.TestCase): - """BinaryAnnListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BinaryAnnListResponse: - """Test BinaryAnnListResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BinaryAnnListResponse` - """ - model = BinaryAnnListResponse() - if include_optional: - return BinaryAnnListResponse( - list = [ - revengai.models.exported_binary_ann_result.ExportedBinaryAnnResult( - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - analysis_scope = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - confidence = 1.337, - tags = [ - revengai.models.tag_item.TagItem( - tag = '', - origin = '', ) - ], ) - ] - ) - else: - return BinaryAnnListResponse( - list = [ - revengai.models.exported_binary_ann_result.ExportedBinaryAnnResult( - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - analysis_scope = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - confidence = 1.337, - tags = [ - revengai.models.tag_item.TagItem( - tag = '', - origin = '', ) - ], ) - ], - ) - """ - - def testBinaryAnnListResponse(self): - """Test BinaryAnnListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_box_plot_confidence.py b/test/test_box_plot_confidence.py deleted file mode 100644 index 3480cc6..0000000 --- a/test/test_box_plot_confidence.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.box_plot_confidence import BoxPlotConfidence - -class TestBoxPlotConfidence(unittest.TestCase): - """BoxPlotConfidence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BoxPlotConfidence: - """Test BoxPlotConfidence - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BoxPlotConfidence` - """ - model = BoxPlotConfidence() - if include_optional: - return BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56 - ) - else: - return BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, - ) - """ - - def testBoxPlotConfidence(self): - """Test BoxPlotConfidence""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_confidence_api.py b/test/test_confidence_api.py deleted file mode 100644 index 8bf59e6..0000000 --- a/test/test_confidence_api.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.confidence_api import ConfidenceApi - - -class TestConfidenceApi(unittest.TestCase): - """ConfidenceApi unit test stubs""" - - def setUp(self) -> None: - self.api = ConfidenceApi() - - def tearDown(self) -> None: - pass - - def test_get_analysis_tag_score(self) -> None: - """Test case for get_analysis_tag_score - - Calculate Tag Confidence Score for an Analysis - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_exported_binary_ann_result.py b/test/test_exported_binary_ann_result.py deleted file mode 100644 index 51e6d34..0000000 --- a/test/test_exported_binary_ann_result.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.exported_binary_ann_result import ExportedBinaryAnnResult - -class TestExportedBinaryAnnResult(unittest.TestCase): - """ExportedBinaryAnnResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportedBinaryAnnResult: - """Test ExportedBinaryAnnResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportedBinaryAnnResult` - """ - model = ExportedBinaryAnnResult() - if include_optional: - return ExportedBinaryAnnResult( - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - analysis_scope = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - confidence = 1.337, - tags = [ - revengai.models.tag_item.TagItem( - tag = '', - origin = '', ) - ] - ) - else: - return ExportedBinaryAnnResult( - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - analysis_scope = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - confidence = 1.337, - ) - """ - - def testExportedBinaryAnnResult(self): - """Test ExportedBinaryAnnResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_origin.py b/test/test_origin.py deleted file mode 100644 index 2eab0e6..0000000 --- a/test/test_origin.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.origin import Origin - -class TestOrigin(unittest.TestCase): - """Origin unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrigin(self): - """Test Origin""" - # inst = Origin() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tag_confidence_body.py b/test/test_tag_confidence_body.py deleted file mode 100644 index 831ea50..0000000 --- a/test/test_tag_confidence_body.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.tag_confidence_body import TagConfidenceBody - -class TestTagConfidenceBody(unittest.TestCase): - """TagConfidenceBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagConfidenceBody: - """Test TagConfidenceBody - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TagConfidenceBody` - """ - model = TagConfidenceBody() - if include_optional: - return TagConfidenceBody( - tags = [ - revengai.models.tags.Tags( - tag = '', - origin = 'RevEng-Malware', ) - ] - ) - else: - return TagConfidenceBody( - tags = [ - revengai.models.tags.Tags( - tag = '', - origin = 'RevEng-Malware', ) - ], - ) - """ - - def testTagConfidenceBody(self): - """Test TagConfidenceBody""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tags.py b/test/test_tag_item.py similarity index 59% rename from test/test_tags.py rename to test/test_tag_item.py index cbbab84..a6924ef 100644 --- a/test/test_tags.py +++ b/test/test_tag_item.py @@ -13,10 +13,10 @@ import unittest -from revengai.models.tags import Tags +from revengai.models.tag_item import TagItem -class TestTags(unittest.TestCase): - """Tags unit test stubs""" +class TestTagItem(unittest.TestCase): + """TagItem unit test stubs""" def setUp(self): pass @@ -24,28 +24,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Tags: - """Test Tags + def make_instance(self, include_optional) -> TagItem: + """Test TagItem include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Tags` + # uncomment below to create an instance of `TagItem` """ - model = Tags() + model = TagItem() if include_optional: - return Tags( - tag = '', - origin = 'RevEng-Malware' + return TagItem( + name = '', + origin = '', + collection_id = 56 ) else: - return Tags( - tag = '', - origin = 'RevEng-Malware', + return TagItem( + name = '', + origin = '', ) """ - def testTags(self): - """Test Tags""" + def testTagItem(self): + """Test TagItem""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_tag_origin_box_plot_confidence.py b/test/test_tag_origin_box_plot_confidence.py deleted file mode 100644 index a8cc7cf..0000000 --- a/test/test_tag_origin_box_plot_confidence.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence - -class TestTagOriginBoxPlotConfidence(unittest.TestCase): - """TagOriginBoxPlotConfidence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagOriginBoxPlotConfidence: - """Test TagOriginBoxPlotConfidence - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TagOriginBoxPlotConfidence` - """ - model = TagOriginBoxPlotConfidence() - if include_optional: - return TagOriginBoxPlotConfidence( - tag = revengai.models.tags.Tags( - tag = '', - origin = 'RevEng-Malware', ), - box_plot = revengai.models.box_plot_confidence.BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, ) - ) - else: - return TagOriginBoxPlotConfidence( - tag = revengai.models.tags.Tags( - tag = '', - origin = 'RevEng-Malware', ), - box_plot = revengai.models.box_plot_confidence.BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, ), - ) - """ - - def testTagOriginBoxPlotConfidence(self): - """Test TagOriginBoxPlotConfidence""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main()