Skip to content

Commit 823f376

Browse files
Update SDK to version v3.20.0
- Generated from OpenAPI spec version v3.20.0 - Auto-generated by GitHub Actions
1 parent 2cf605b commit 823f376

19 files changed

Lines changed: 51 additions & 17 deletions

.sdk-version

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

docs/AnalysisDetailResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**binary_size** | **int** | |
1616
**binary_type** | **str** | |
1717
**creation** | **str** | |
18+
**dashboard_url** | **str** | URL to view this analysis in the dashboard |
1819
**debug** | **bool** | |
1920
**model_name** | **str** | |
2021
**sbom** | **Dict[str, object]** | | [optional]

docs/NameSourceType.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**type** | **str** | The source (process) the function name came from |
99
**function_id** | **int** | | [optional]
1010
**binary_id** | **int** | | [optional]
11+
**analysis_id** | **int** | | [optional]
1112

1213
## Example
1314

docs/RelativeBinaryResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**binary_id** | **int** | ID of the relative binary |
9+
**analysis_id** | **int** | | [optional]
910
**name** | **str** | Name of the relative binary |
1011
**sha256** | **str** | SHA256 hash of the relative binary |
1112

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.18.1"
16+
__version__ = "v3.20.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.18.1/python'
93+
self.user_agent = 'OpenAPI-Generator/v3.20.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.18.1\n"\
537-
"SDK Package Version: v3.18.1".\
536+
"Version of the API: v3.20.0\n"\
537+
"SDK Package Version: v3.20.0".\
538538
format(env=sys.platform, pyversion=sys.version)
539539

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

revengai/models/analysis_detail_response.py

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

19-
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
19+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
2020
from typing import Any, ClassVar, Dict, List, Optional
2121
from revengai.models.analysis_access_info import AnalysisAccessInfo
2222
from typing import Optional, Set
@@ -36,11 +36,12 @@ class AnalysisDetailResponse(BaseModel):
3636
binary_size: StrictInt
3737
binary_type: StrictStr
3838
creation: StrictStr
39+
dashboard_url: StrictStr = Field(description="URL to view this analysis in the dashboard")
3940
debug: StrictBool
4041
model_name: StrictStr
4142
sbom: Optional[Dict[str, Any]] = None
4243
sha_256_hash: StrictStr
43-
__properties: ClassVar[List[str]] = ["access", "analysis_id", "analysis_scope", "architecture", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "debug", "model_name", "sbom", "sha_256_hash"]
44+
__properties: ClassVar[List[str]] = ["access", "analysis_id", "analysis_scope", "architecture", "binary_dynamic", "binary_format", "binary_name", "binary_size", "binary_type", "creation", "dashboard_url", "debug", "model_name", "sbom", "sha_256_hash"]
4445

4546
model_config = ConfigDict(
4647
populate_by_name=True,
@@ -111,6 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
111112
"binary_size": obj.get("binary_size"),
112113
"binary_type": obj.get("binary_type"),
113114
"creation": obj.get("creation"),
115+
"dashboard_url": obj.get("dashboard_url"),
114116
"debug": obj.get("debug"),
115117
"model_name": obj.get("model_name"),
116118
"sbom": obj.get("sbom"),

revengai/models/name_source_type.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class NameSourceType(BaseModel):
2828
type: StrictStr = Field(description="The source (process) the function name came from")
2929
function_id: Optional[StrictInt] = None
3030
binary_id: Optional[StrictInt] = None
31-
__properties: ClassVar[List[str]] = ["type", "function_id", "binary_id"]
31+
analysis_id: Optional[StrictInt] = None
32+
__properties: ClassVar[List[str]] = ["type", "function_id", "binary_id", "analysis_id"]
3233

3334
@field_validator('type')
3435
def type_validate_enum(cls, value):
@@ -86,6 +87,11 @@ def to_dict(self) -> Dict[str, Any]:
8687
if self.binary_id is None and "binary_id" in self.model_fields_set:
8788
_dict['binary_id'] = None
8889

90+
# set to None if analysis_id (nullable) is None
91+
# and model_fields_set contains the field
92+
if self.analysis_id is None and "analysis_id" in self.model_fields_set:
93+
_dict['analysis_id'] = None
94+
8995
return _dict
9096

9197
@classmethod
@@ -100,7 +106,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
100106
_obj = cls.model_validate({
101107
"type": obj.get("type"),
102108
"function_id": obj.get("function_id"),
103-
"binary_id": obj.get("binary_id")
109+
"binary_id": obj.get("binary_id"),
110+
"analysis_id": obj.get("analysis_id")
104111
})
105112
return _obj
106113

revengai/models/relative_binary_response.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import json
1818

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

@@ -26,9 +26,10 @@ class RelativeBinaryResponse(BaseModel):
2626
RelativeBinaryResponse
2727
""" # noqa: E501
2828
binary_id: StrictInt = Field(description="ID of the relative binary")
29+
analysis_id: Optional[StrictInt] = None
2930
name: StrictStr = Field(description="Name of the relative binary")
3031
sha256: StrictStr = Field(description="SHA256 hash of the relative binary")
31-
__properties: ClassVar[List[str]] = ["binary_id", "name", "sha256"]
32+
__properties: ClassVar[List[str]] = ["binary_id", "analysis_id", "name", "sha256"]
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 analysis_id (nullable) is None
74+
# and model_fields_set contains the field
75+
if self.analysis_id is None and "analysis_id" in self.model_fields_set:
76+
_dict['analysis_id'] = None
77+
7278
return _dict
7379

7480
@classmethod
@@ -82,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8288

8389
_obj = cls.model_validate({
8490
"binary_id": obj.get("binary_id"),
91+
"analysis_id": obj.get("analysis_id"),
8592
"name": obj.get("name"),
8693
"sha256": obj.get("sha256")
8794
})

0 commit comments

Comments
 (0)