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.6.0
v3.8.0
2 changes: 2 additions & 0 deletions docs/Basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Name | Type | Description | Notes
**function_count** | **int** | The number of functions in the binary |
**is_advanced** | **bool** | Whether the analysis was advanced |
**base_address** | **int** | |
**binary_uuid** | **str** | | [optional]
**sequencer_version** | **str** | | [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.6.0"
__version__ = "v3.8.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.6.0/python'
self.user_agent = 'OpenAPI-Generator/v3.8.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.6.0\n"\
"SDK Package Version: v3.6.0".\
"Version of the API: v3.8.0\n"\
"SDK Package Version: v3.8.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
18 changes: 16 additions & 2 deletions revengai/models/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ class Basic(BaseModel):
function_count: StrictInt = Field(description="The number of functions in the binary")
is_advanced: StrictBool = Field(description="Whether the analysis was advanced")
base_address: Optional[StrictInt]
__properties: ClassVar[List[str]] = ["binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address"]
binary_uuid: Optional[StrictStr] = None
sequencer_version: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "is_system", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address", "binary_uuid", "sequencer_version"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -86,6 +88,16 @@ def to_dict(self) -> Dict[str, Any]:
if self.base_address is None and "base_address" in self.model_fields_set:
_dict['base_address'] = None

# set to None if binary_uuid (nullable) is None
# and model_fields_set contains the field
if self.binary_uuid is None and "binary_uuid" in self.model_fields_set:
_dict['binary_uuid'] = None

# set to None if sequencer_version (nullable) is None
# and model_fields_set contains the field
if self.sequencer_version is None and "sequencer_version" in self.model_fields_set:
_dict['sequencer_version'] = None

return _dict

@classmethod
Expand All @@ -111,7 +123,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"debug": obj.get("debug"),
"function_count": obj.get("function_count"),
"is_advanced": obj.get("is_advanced"),
"base_address": obj.get("base_address")
"base_address": obj.get("base_address"),
"binary_uuid": obj.get("binary_uuid"),
"sequencer_version": obj.get("sequencer_version")
})
return _obj

Expand Down
4 changes: 3 additions & 1 deletion test/test_base_response_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def make_instance(self, include_optional) -> BaseResponseBasic:
debug = True,
function_count = 56,
is_advanced = True,
base_address = 56, ),
base_address = 56,
binary_uuid = '',
sequencer_version = '', ),
message = '',
errors = [
revengai.models.error_model.ErrorModel(
Expand Down
4 changes: 3 additions & 1 deletion test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def make_instance(self, include_optional) -> Basic:
debug = True,
function_count = 56,
is_advanced = True,
base_address = 56
base_address = 56,
binary_uuid = '',
sequencer_version = ''
)
else:
return Basic(
Expand Down