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 @@
v3.44.0
v3.45.0
1 change: 1 addition & 0 deletions docs/FunctionBoundary.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**mangled_name** | **str** | |
**start_address** | **int** | |
**end_address** | **int** | |
**include_in_analysis** | **bool** | | [optional]

## 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__ = "v3.44.0"
__version__ = "v3.45.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/v3.44.0/python'
self.user_agent = 'OpenAPI-Generator/v3.45.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: v3.44.0\n"\
"SDK Package Version: v3.44.0".\
"Version of the API: v3.45.0\n"\
"SDK Package Version: v3.45.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
15 changes: 11 additions & 4 deletions revengai/models/function_boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self

Expand All @@ -28,7 +28,8 @@ class FunctionBoundary(BaseModel):
mangled_name: StrictStr
start_address: StrictInt
end_address: StrictInt
__properties: ClassVar[List[str]] = ["mangled_name", "start_address", "end_address"]
include_in_analysis: Optional[StrictBool] = None
__properties: ClassVar[List[str]] = ["mangled_name", "start_address", "end_address", "include_in_analysis"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -69,6 +70,11 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
# set to None if include_in_analysis (nullable) is None
# and model_fields_set contains the field
if self.include_in_analysis is None and "include_in_analysis" in self.model_fields_set:
_dict['include_in_analysis'] = None

return _dict

@classmethod
Expand All @@ -83,7 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"mangled_name": obj.get("mangled_name"),
"start_address": obj.get("start_address"),
"end_address": obj.get("end_address")
"end_address": obj.get("end_address"),
"include_in_analysis": obj.get("include_in_analysis")
})
return _obj

Expand Down
3 changes: 2 additions & 1 deletion test/test_analysis_create_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def make_instance(self, include_optional) -> AnalysisCreateRequest:
revengai.models.function_boundary.FunctionBoundary(
mangled_name = '',
start_address = 56,
end_address = 56, )
end_address = 56,
include_in_analysis = True, )
], ),
debug_hash = '',
analysis_config = revengai.models.analysis_config.AnalysisConfig(
Expand Down
3 changes: 2 additions & 1 deletion test/test_function_boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def make_instance(self, include_optional) -> FunctionBoundary:
return FunctionBoundary(
mangled_name = '',
start_address = 56,
end_address = 56
end_address = 56,
include_in_analysis = True
)
else:
return FunctionBoundary(
Expand Down
3 changes: 2 additions & 1 deletion test/test_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def make_instance(self, include_optional) -> Symbols:
revengai.models.function_boundary.FunctionBoundary(
mangled_name = '',
start_address = 56,
end_address = 56, )
end_address = 56,
include_in_analysis = True, )
]
)
else:
Expand Down