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.0.0
v2.0.4
2 changes: 1 addition & 1 deletion docs/AnalysesCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ Name | Type | Description | Notes

Gets basic analysis information

Just a random placeholder for now
Returns basic analysis information for an analysis

### Example

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.0.0"
__version__ = "v2.0.4"

# Define package exports
__all__ = [
Expand Down
6 changes: 3 additions & 3 deletions revengai/api/analyses_core_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ def get_analysis_basic_info(
) -> BaseResponseBasic:
"""Gets basic analysis information

Just a random placeholder for now
Returns basic analysis information for an analysis

:param analysis_id: (required)
:type analysis_id: int
Expand Down Expand Up @@ -996,7 +996,7 @@ def get_analysis_basic_info_with_http_info(
) -> ApiResponse[BaseResponseBasic]:
"""Gets basic analysis information

Just a random placeholder for now
Returns basic analysis information for an analysis

:param analysis_id: (required)
:type analysis_id: int
Expand Down Expand Up @@ -1064,7 +1064,7 @@ def get_analysis_basic_info_without_preload_content(
) -> RESTResponseType:
"""Gets basic analysis information

Just a random placeholder for now
Returns basic analysis information for an analysis

:param analysis_id: (required)
:type analysis_id: int
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.0.0/python'
self.user_agent = 'OpenAPI-Generator/v2.0.4/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 @@ -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: v2.0.0\n"\
"SDK Package Version: v2.0.0".\
"Version of the API: v2.0.4\n"\
"SDK Package Version: v2.0.4".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
7 changes: 1 addition & 6 deletions revengai/models/matched_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class MatchedFunction(BaseModel):
binary_id: StrictInt
function_name: StrictStr
function_vaddr: StrictInt
mangled_name: Optional[StrictStr]
mangled_name: StrictStr
debug: StrictBool
binary_name: StrictStr
sha_256_hash: StrictStr
Expand Down Expand Up @@ -77,11 +77,6 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
# set to None if mangled_name (nullable) is None
# and model_fields_set contains the field
if self.mangled_name is None and "mangled_name" in self.model_fields_set:
_dict['mangled_name'] = None

# set to None if similarity (nullable) is None
# and model_fields_set contains the field
if self.similarity is None and "similarity" in self.model_fields_set:
Expand Down