Skip to content

Commit 3d41a79

Browse files
Update SDK to version v3.45.0
- Generated from OpenAPI spec version v3.45.0 - Auto-generated by GitHub Actions
1 parent fa6006c commit 3d41a79

9 files changed

Lines changed: 23 additions & 12 deletions

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.44.0
1+
v3.45.0

docs/FunctionBoundary.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**mangled_name** | **str** | |
99
**start_address** | **int** | |
1010
**end_address** | **int** | |
11+
**include_in_analysis** | **bool** | | [optional]
1112

1213
## Example
1314

revengai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
""" # noqa: E501
1414

1515

16-
__version__ = "v3.44.0"
16+
__version__ = "v3.45.0"
1717

1818
# Define package exports
1919
__all__ = [

revengai/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/v3.44.0/python'
93+
self.user_agent = 'OpenAPI-Generator/v3.45.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

revengai/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,8 @@ def to_debug_report(self) -> str:
533533
return "Python SDK Debug Report:\n"\
534534
"OS: {env}\n"\
535535
"Python Version: {pyversion}\n"\
536-
"Version of the API: v3.44.0\n"\
537-
"SDK Package Version: v3.44.0".\
536+
"Version of the API: v3.45.0\n"\
537+
"SDK Package Version: v3.45.0".\
538538
format(env=sys.platform, pyversion=sys.version)
539539

540540
def get_host_settings(self) -> List[HostSetting]:

revengai/models/function_boundary.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import re # noqa: F401
1717
import json
1818

19-
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
20-
from typing import Any, ClassVar, Dict, List
19+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
20+
from typing import Any, ClassVar, Dict, List, Optional
2121
from typing import Optional, Set
2222
from typing_extensions import Self
2323

@@ -28,7 +28,8 @@ class FunctionBoundary(BaseModel):
2828
mangled_name: StrictStr
2929
start_address: StrictInt
3030
end_address: StrictInt
31-
__properties: ClassVar[List[str]] = ["mangled_name", "start_address", "end_address"]
31+
include_in_analysis: Optional[StrictBool] = None
32+
__properties: ClassVar[List[str]] = ["mangled_name", "start_address", "end_address", "include_in_analysis"]
3233

3334
model_config = ConfigDict(
3435
populate_by_name=True,
@@ -69,6 +70,11 @@ def to_dict(self) -> Dict[str, Any]:
6970
exclude=excluded_fields,
7071
exclude_none=True,
7172
)
73+
# set to None if include_in_analysis (nullable) is None
74+
# and model_fields_set contains the field
75+
if self.include_in_analysis is None and "include_in_analysis" in self.model_fields_set:
76+
_dict['include_in_analysis'] = None
77+
7278
return _dict
7379

7480
@classmethod
@@ -83,7 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8389
_obj = cls.model_validate({
8490
"mangled_name": obj.get("mangled_name"),
8591
"start_address": obj.get("start_address"),
86-
"end_address": obj.get("end_address")
92+
"end_address": obj.get("end_address"),
93+
"include_in_analysis": obj.get("include_in_analysis")
8794
})
8895
return _obj
8996

test/test_analysis_create_request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def make_instance(self, include_optional) -> AnalysisCreateRequest:
4747
revengai.models.function_boundary.FunctionBoundary(
4848
mangled_name = '',
4949
start_address = 56,
50-
end_address = 56, )
50+
end_address = 56,
51+
include_in_analysis = True, )
5152
], ),
5253
debug_hash = '',
5354
analysis_config = revengai.models.analysis_config.AnalysisConfig(

test/test_function_boundary.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def make_instance(self, include_optional) -> FunctionBoundary:
3636
return FunctionBoundary(
3737
mangled_name = '',
3838
start_address = 56,
39-
end_address = 56
39+
end_address = 56,
40+
include_in_analysis = True
4041
)
4142
else:
4243
return FunctionBoundary(

test/test_symbols.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def make_instance(self, include_optional) -> Symbols:
3939
revengai.models.function_boundary.FunctionBoundary(
4040
mangled_name = '',
4141
start_address = 56,
42-
end_address = 56, )
42+
end_address = 56,
43+
include_in_analysis = True, )
4344
]
4445
)
4546
else:

0 commit comments

Comments
 (0)