From 15a99890fba31bd00f7b504d0c84850d2f57af12 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 3 Oct 2025 06:10:39 +0000 Subject: [PATCH] Update SDK to version v1.98.1 - Generated from OpenAPI spec version v1.98.1 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 2 - ...AppApiRestV2SimilaritySchemaANNFunction.md | 4 +- docs/MatchedFunctionSuggestion.md | 3 +- docs/SearchBinaryIds.md | 29 ---- docs/SearchFunctionIds.md | 29 ---- revengai/__init__.py | 6 +- revengai/api_client.py | 2 +- revengai/configuration.py | 4 +- revengai/models/__init__.py | 2 - ..._rest_v2_similarity_schema_ann_function.py | 26 ++-- .../models/matched_function_suggestion.py | 15 +- revengai/models/search_binary_ids.py | 137 ------------------ revengai/models/search_function_ids.py | 137 ------------------ ..._rest_v2_similarity_schema_ann_function.py | 8 +- test/test_auto_unstrip_response.py | 3 +- test/test_matched_function_suggestion.py | 5 +- test/test_search_binary_ids.py | 49 ------- test/test_search_function_ids.py | 49 ------- 19 files changed, 45 insertions(+), 467 deletions(-) delete mode 100644 docs/SearchBinaryIds.md delete mode 100644 docs/SearchFunctionIds.md delete mode 100644 revengai/models/search_binary_ids.py delete mode 100644 revengai/models/search_function_ids.py delete mode 100644 test/test_search_binary_ids.py delete mode 100644 test/test_search_function_ids.py diff --git a/.sdk-version b/.sdk-version index b936018..b3e49df 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v1.96.1 +v1.98.1 diff --git a/README.md b/README.md index 4e2ee07..488db9d 100644 --- a/README.md +++ b/README.md @@ -421,8 +421,6 @@ Class | Method | HTTP request | Description - [SBOMPackage](docs/SBOMPackage.md) - [SandboxOptions](docs/SandboxOptions.md) - [ScrapeThirdPartyConfig](docs/ScrapeThirdPartyConfig.md) - - [SearchBinaryIds](docs/SearchBinaryIds.md) - - [SearchFunctionIds](docs/SearchFunctionIds.md) - [SectionModel](docs/SectionModel.md) - [SecurityChecksResponse](docs/SecurityChecksResponse.md) - [SecurityChecksResult](docs/SecurityChecksResult.md) diff --git a/docs/AppApiRestV2SimilaritySchemaANNFunction.md b/docs/AppApiRestV2SimilaritySchemaANNFunction.md index ef1490f..d2d4e61 100644 --- a/docs/AppApiRestV2SimilaritySchemaANNFunction.md +++ b/docs/AppApiRestV2SimilaritySchemaANNFunction.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **distance** | **float** | The distance between two neighbours | [optional] [default to 0.1] **analysis_search_ids** | **List[Optional[int]]** | Perform a search on functions within a list of analyses | [optional] [default to []] **collection_search_ids** | **List[Optional[int]]** | Search only within these collections | [optional] [default to []] -**search_binary_ids** | [**SearchBinaryIds**](SearchBinaryIds.md) | | [optional] -**search_function_ids** | [**SearchFunctionIds**](SearchFunctionIds.md) | | [optional] +**search_binary_ids** | **List[int]** | | [optional] +**search_function_ids** | **List[int]** | | [optional] **debug_only** | **bool** | Searches for only functions which are debug | [optional] [default to False] ## Example diff --git a/docs/MatchedFunctionSuggestion.md b/docs/MatchedFunctionSuggestion.md index a0a2888..fc08b75 100644 --- a/docs/MatchedFunctionSuggestion.md +++ b/docs/MatchedFunctionSuggestion.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **function_id** | **int** | Unique identifier of the matched function | **function_vaddr** | **int** | Virtual address of the matched function | -**suggested_name** | **str** | Name of the function group that contains the matched functions | +**suggested_name** | **str** | | [optional] +**suggested_demangled_name** | **str** | De-mangled name of the function group that contains the matched functions | ## Example diff --git a/docs/SearchBinaryIds.md b/docs/SearchBinaryIds.md deleted file mode 100644 index 0d11c43..0000000 --- a/docs/SearchBinaryIds.md +++ /dev/null @@ -1,29 +0,0 @@ -# SearchBinaryIds - -Optionally perform the search on matching functions from binaries in this list - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from revengai.models.search_binary_ids import SearchBinaryIds - -# TODO update the JSON string below -json = "{}" -# create an instance of SearchBinaryIds from a JSON string -search_binary_ids_instance = SearchBinaryIds.from_json(json) -# print the JSON string representation of the object -print(SearchBinaryIds.to_json()) - -# convert the object into a dict -search_binary_ids_dict = search_binary_ids_instance.to_dict() -# create an instance of SearchBinaryIds from a dict -search_binary_ids_from_dict = SearchBinaryIds.from_dict(search_binary_ids_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/SearchFunctionIds.md b/docs/SearchFunctionIds.md deleted file mode 100644 index e674112..0000000 --- a/docs/SearchFunctionIds.md +++ /dev/null @@ -1,29 +0,0 @@ -# SearchFunctionIds - -Optionally perform the search on matching functions within this list of functions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from revengai.models.search_function_ids import SearchFunctionIds - -# TODO update the JSON string below -json = "{}" -# create an instance of SearchFunctionIds from a JSON string -search_function_ids_instance = SearchFunctionIds.from_json(json) -# print the JSON string representation of the object -print(SearchFunctionIds.to_json()) - -# convert the object into a dict -search_function_ids_dict = search_function_ids_instance.to_dict() -# create an instance of SearchFunctionIds from a dict -search_function_ids_from_dict = SearchFunctionIds.from_dict(search_function_ids_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 b86f89b..6b6c1e0 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v1.96.1" +__version__ = "v1.98.1" # Define package exports __all__ = [ @@ -307,8 +307,6 @@ "SBOMPackage", "SandboxOptions", "ScrapeThirdPartyConfig", - "SearchBinaryIds", - "SearchFunctionIds", "SectionModel", "SecurityChecksResponse", "SecurityChecksResult", @@ -649,8 +647,6 @@ from revengai.models.sbom_package import SBOMPackage as SBOMPackage from revengai.models.sandbox_options import SandboxOptions as SandboxOptions from revengai.models.scrape_third_party_config import ScrapeThirdPartyConfig as ScrapeThirdPartyConfig -from revengai.models.search_binary_ids import SearchBinaryIds as SearchBinaryIds -from revengai.models.search_function_ids import SearchFunctionIds as SearchFunctionIds from revengai.models.section_model import SectionModel as SectionModel from revengai.models.security_checks_response import SecurityChecksResponse as SecurityChecksResponse from revengai.models.security_checks_result import SecurityChecksResult as SecurityChecksResult diff --git a/revengai/api_client.py b/revengai/api_client.py index ef46ea0..4756db8 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/v1.96.1/python' + self.user_agent = 'OpenAPI-Generator/v1.98.1/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 929a6f5..328342f 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -529,8 +529,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v1.96.1\n"\ - "SDK Package Version: v1.96.1".\ + "Version of the API: v1.98.1\n"\ + "SDK Package Version: v1.98.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 1161b1e..dea9068 100644 --- a/revengai/models/__init__.py +++ b/revengai/models/__init__.py @@ -274,8 +274,6 @@ from revengai.models.sbom_package import SBOMPackage from revengai.models.sandbox_options import SandboxOptions from revengai.models.scrape_third_party_config import ScrapeThirdPartyConfig -from revengai.models.search_binary_ids import SearchBinaryIds -from revengai.models.search_function_ids import SearchFunctionIds from revengai.models.section_model import SectionModel from revengai.models.security_checks_response import SecurityChecksResponse from revengai.models.security_checks_result import SecurityChecksResult diff --git a/revengai/models/app_api_rest_v2_similarity_schema_ann_function.py b/revengai/models/app_api_rest_v2_similarity_schema_ann_function.py index d659c70..e78c4e7 100644 --- a/revengai/models/app_api_rest_v2_similarity_schema_ann_function.py +++ b/revengai/models/app_api_rest_v2_similarity_schema_ann_function.py @@ -19,8 +19,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from revengai.models.search_binary_ids import SearchBinaryIds -from revengai.models.search_function_ids import SearchFunctionIds from typing import Optional, Set from typing_extensions import Self @@ -32,8 +30,8 @@ class AppApiRestV2SimilaritySchemaANNFunction(BaseModel): distance: Optional[Union[StrictFloat, StrictInt]] = Field(default=0.1, description="The distance between two neighbours") analysis_search_ids: Optional[List[Optional[StrictInt]]] = Field(default=None, description="Perform a search on functions within a list of analyses") collection_search_ids: Optional[Annotated[List[Optional[StrictInt]], Field(max_length=5)]] = Field(default=None, description="Search only within these collections") - search_binary_ids: Optional[SearchBinaryIds] = None - search_function_ids: Optional[SearchFunctionIds] = None + search_binary_ids: Optional[List[StrictInt]] = None + search_function_ids: Optional[List[StrictInt]] = None debug_only: Optional[StrictBool] = Field(default=False, description="Searches for only functions which are debug") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["limit", "distance", "analysis_search_ids", "collection_search_ids", "search_binary_ids", "search_function_ids", "debug_only"] @@ -79,17 +77,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of search_binary_ids - if self.search_binary_ids: - _dict['search_binary_ids'] = self.search_binary_ids.to_dict() - # override the default output from pydantic by calling `to_dict()` of search_function_ids - if self.search_function_ids: - _dict['search_function_ids'] = self.search_function_ids.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if search_binary_ids (nullable) is None + # and model_fields_set contains the field + if self.search_binary_ids is None and "search_binary_ids" in self.model_fields_set: + _dict['search_binary_ids'] = None + + # set to None if search_function_ids (nullable) is None + # and model_fields_set contains the field + if self.search_function_ids is None and "search_function_ids" in self.model_fields_set: + _dict['search_function_ids'] = None + return _dict @classmethod @@ -106,8 +108,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "distance": obj.get("distance") if obj.get("distance") is not None else 0.1, "analysis_search_ids": obj.get("analysis_search_ids"), "collection_search_ids": obj.get("collection_search_ids"), - "search_binary_ids": SearchBinaryIds.from_dict(obj["search_binary_ids"]) if obj.get("search_binary_ids") is not None else None, - "search_function_ids": SearchFunctionIds.from_dict(obj["search_function_ids"]) if obj.get("search_function_ids") is not None else None, + "search_binary_ids": obj.get("search_binary_ids"), + "search_function_ids": obj.get("search_function_ids"), "debug_only": obj.get("debug_only") if obj.get("debug_only") is not None else False }) # store additional fields in additional_properties diff --git a/revengai/models/matched_function_suggestion.py b/revengai/models/matched_function_suggestion.py index 9eb6f1a..acf591e 100644 --- a/revengai/models/matched_function_suggestion.py +++ b/revengai/models/matched_function_suggestion.py @@ -17,7 +17,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,9 @@ class MatchedFunctionSuggestion(BaseModel): """ # noqa: E501 function_id: StrictInt = Field(description="Unique identifier of the matched function") function_vaddr: StrictInt = Field(description="Virtual address of the matched function") - suggested_name: StrictStr = Field(description="Name of the function group that contains the matched functions") - __properties: ClassVar[List[str]] = ["function_id", "function_vaddr", "suggested_name"] + suggested_name: Optional[StrictStr] = None + suggested_demangled_name: StrictStr = Field(description="De-mangled name of the function group that contains the matched functions") + __properties: ClassVar[List[str]] = ["function_id", "function_vaddr", "suggested_name", "suggested_demangled_name"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +70,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if suggested_name (nullable) is None + # and model_fields_set contains the field + if self.suggested_name is None and "suggested_name" in self.model_fields_set: + _dict['suggested_name'] = None + return _dict @classmethod @@ -83,7 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "function_id": obj.get("function_id"), "function_vaddr": obj.get("function_vaddr"), - "suggested_name": obj.get("suggested_name") + "suggested_name": obj.get("suggested_name"), + "suggested_demangled_name": obj.get("suggested_demangled_name") }) return _obj diff --git a/revengai/models/search_binary_ids.py b/revengai/models/search_binary_ids.py deleted file mode 100644 index 0edbf6e..0000000 --- a/revengai/models/search_binary_ids.py +++ /dev/null @@ -1,137 +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 -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -SEARCHBINARYIDS_ANY_OF_SCHEMAS = ["List[int]", "object"] - -class SearchBinaryIds(BaseModel): - """ - Optionally perform the search on matching functions from binaries in this list - """ - - # data type: List[int] - anyof_schema_1_validator: Optional[List[StrictInt]] = None - # data type: object - anyof_schema_2_validator: Optional[Any] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[List[int], object]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "List[int]", "object" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = SearchBinaryIds.model_construct() - error_messages = [] - # validate data type: List[int] - try: - instance.anyof_schema_1_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: object - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in SearchBinaryIds with anyOf schemas: List[int], object. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # deserialize data into List[int] - try: - # validation - instance.anyof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_1_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into object - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into SearchBinaryIds with anyOf schemas: List[int], object. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], List[int], object]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/revengai/models/search_function_ids.py b/revengai/models/search_function_ids.py deleted file mode 100644 index b569512..0000000 --- a/revengai/models/search_function_ids.py +++ /dev/null @@ -1,137 +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 -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -SEARCHFUNCTIONIDS_ANY_OF_SCHEMAS = ["List[int]", "object"] - -class SearchFunctionIds(BaseModel): - """ - Optionally perform the search on matching functions within this list of functions - """ - - # data type: List[int] - anyof_schema_1_validator: Optional[List[StrictInt]] = None - # data type: object - anyof_schema_2_validator: Optional[Any] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[List[int], object]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "List[int]", "object" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = SearchFunctionIds.model_construct() - error_messages = [] - # validate data type: List[int] - try: - instance.anyof_schema_1_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: object - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in SearchFunctionIds with anyOf schemas: List[int], object. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # deserialize data into List[int] - try: - # validation - instance.anyof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_1_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into object - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into SearchFunctionIds with anyOf schemas: List[int], object. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], List[int], object]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/test/test_app_api_rest_v2_similarity_schema_ann_function.py b/test/test_app_api_rest_v2_similarity_schema_ann_function.py index 5c47aec..2929d67 100644 --- a/test/test_app_api_rest_v2_similarity_schema_ann_function.py +++ b/test/test_app_api_rest_v2_similarity_schema_ann_function.py @@ -42,8 +42,12 @@ def make_instance(self, include_optional) -> AppApiRestV2SimilaritySchemaANNFunc collection_search_ids = [ 56 ], - search_binary_ids = None, - search_function_ids = None, + search_binary_ids = [ + 56 + ], + search_function_ids = [ + 56 + ], debug_only = True ) else: diff --git a/test/test_auto_unstrip_response.py b/test/test_auto_unstrip_response.py index 0d42410..20379be 100644 --- a/test/test_auto_unstrip_response.py +++ b/test/test_auto_unstrip_response.py @@ -41,7 +41,8 @@ def make_instance(self, include_optional) -> AutoUnstripResponse: revengai.models.matched_function_suggestion.MatchedFunctionSuggestion( function_id = 56, function_vaddr = 56, - suggested_name = '', ) + suggested_name = '', + suggested_demangled_name = '', ) ], applied = True, error_message = '' diff --git a/test/test_matched_function_suggestion.py b/test/test_matched_function_suggestion.py index 06e0d1d..24d3975 100644 --- a/test/test_matched_function_suggestion.py +++ b/test/test_matched_function_suggestion.py @@ -36,13 +36,14 @@ def make_instance(self, include_optional) -> MatchedFunctionSuggestion: return MatchedFunctionSuggestion( function_id = 56, function_vaddr = 56, - suggested_name = '' + suggested_name = '', + suggested_demangled_name = '' ) else: return MatchedFunctionSuggestion( function_id = 56, function_vaddr = 56, - suggested_name = '', + suggested_demangled_name = '', ) """ diff --git a/test/test_search_binary_ids.py b/test/test_search_binary_ids.py deleted file mode 100644 index 9df4ffa..0000000 --- a/test/test_search_binary_ids.py +++ /dev/null @@ -1,49 +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.search_binary_ids import SearchBinaryIds - -class TestSearchBinaryIds(unittest.TestCase): - """SearchBinaryIds unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SearchBinaryIds: - """Test SearchBinaryIds - 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 `SearchBinaryIds` - """ - model = SearchBinaryIds() - if include_optional: - return SearchBinaryIds( - ) - else: - return SearchBinaryIds( - ) - """ - - def testSearchBinaryIds(self): - """Test SearchBinaryIds""" - # 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_search_function_ids.py b/test/test_search_function_ids.py deleted file mode 100644 index 083d506..0000000 --- a/test/test_search_function_ids.py +++ /dev/null @@ -1,49 +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.search_function_ids import SearchFunctionIds - -class TestSearchFunctionIds(unittest.TestCase): - """SearchFunctionIds unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SearchFunctionIds: - """Test SearchFunctionIds - 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 `SearchFunctionIds` - """ - model = SearchFunctionIds() - if include_optional: - return SearchFunctionIds( - ) - else: - return SearchFunctionIds( - ) - """ - - def testSearchFunctionIds(self): - """Test SearchFunctionIds""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main()