Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.37.4
v2.42.0
1 change: 1 addition & 0 deletions docs/FunctionsDetailResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**function_id** | **int** | Function id |
**function_name** | **str** | |
**function_name_mangled** | **str** | |
**function_vaddr** | **int** | |
**function_size** | **int** | |
**analysis_id** | **int** | |
Expand Down
2 changes: 1 addition & 1 deletion revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" # noqa: E501


__version__ = "v2.37.4"
__version__ = "v2.42.0"

# Define package exports
__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion revengai/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.37.4/python'
self.user_agent = 'OpenAPI-Generator/v2.42.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
4 changes: 2 additions & 2 deletions revengai/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.37.4\n"\
"SDK Package Version: v2.37.4".\
"Version of the API: v2.42.0\n"\
"SDK Package Version: v2.42.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
7 changes: 2 additions & 5 deletions revengai/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,8 @@ def __str__(self):
error_message += "HTTP response headers: {0}\n".format(
self.headers)

if self.body:
error_message += "HTTP response body: {0}\n".format(self.body)

if self.data:
error_message += "HTTP response data: {0}\n".format(self.data)
if self.data or self.body:
error_message += "HTTP response body: {0}\n".format(self.data or self.body)

return error_message

Expand Down
4 changes: 3 additions & 1 deletion revengai/models/functions_detail_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class FunctionsDetailResponse(BaseModel):
""" # noqa: E501
function_id: StrictInt = Field(description="Function id")
function_name: StrictStr
function_name_mangled: StrictStr
function_vaddr: StrictInt
function_size: StrictInt
analysis_id: StrictInt
Expand All @@ -37,7 +38,7 @@ class FunctionsDetailResponse(BaseModel):
debug: StrictBool
embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None
embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None
__properties: ClassVar[List[str]] = ["function_id", "function_name", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug", "embedding_3d", "embedding_1d"]
__properties: ClassVar[List[str]] = ["function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug", "embedding_3d", "embedding_1d"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -107,6 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"function_id": obj.get("function_id"),
"function_name": obj.get("function_name"),
"function_name_mangled": obj.get("function_name_mangled"),
"function_vaddr": obj.get("function_vaddr"),
"function_size": obj.get("function_size"),
"analysis_id": obj.get("analysis_id"),
Expand Down
1 change: 1 addition & 0 deletions test/test_base_response_functions_detail_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> BaseResponseFunctionsDetailResponse
data = revengai.models.functions_detail_response.FunctionsDetailResponse(
function_id = 56,
function_name = '',
function_name_mangled = '',
function_vaddr = 56,
function_size = 56,
analysis_id = 56,
Expand Down
2 changes: 2 additions & 0 deletions test/test_functions_detail_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def make_instance(self, include_optional) -> FunctionsDetailResponse:
return FunctionsDetailResponse(
function_id = 56,
function_name = '',
function_name_mangled = '',
function_vaddr = 56,
function_size = 56,
analysis_id = 56,
Expand All @@ -55,6 +56,7 @@ def make_instance(self, include_optional) -> FunctionsDetailResponse:
return FunctionsDetailResponse(
function_id = 56,
function_name = '',
function_name_mangled = '',
function_vaddr = 56,
function_size = 56,
analysis_id = 56,
Expand Down