Skip to content

Commit 30ab208

Browse files
Update SDK to version v3.15.0
- Generated from OpenAPI spec version v3.15.0 - Auto-generated by GitHub Actions
1 parent cee27f2 commit 30ab208

5 files changed

Lines changed: 12 additions & 7 deletions

File tree

.sdk-version

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

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

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

revengai/models/binary_details_response.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
from datetime import datetime
2020
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
21-
from typing import Any, ClassVar, Dict, List, Union
21+
from typing import Any, ClassVar, Dict, List, Optional, Union
2222
from typing import Optional, Set
2323
from typing_extensions import Self
2424

@@ -38,7 +38,7 @@ class BinaryDetailsResponse(BaseModel):
3838
os: StrictStr = Field(description="OS target of the binary")
3939
sha1: StrictStr = Field(description="SHA1 hash of the binary")
4040
sha256: StrictStr = Field(description="SHA256 hash of the binary")
41-
ssdeep: StrictStr
41+
ssdeep: Optional[StrictStr]
4242
static: StrictBool
4343
stripped: StrictBool
4444
sub_sys: StrictStr
@@ -87,6 +87,11 @@ def to_dict(self) -> Dict[str, Any]:
8787
exclude=excluded_fields,
8888
exclude_none=True,
8989
)
90+
# set to None if ssdeep (nullable) is None
91+
# and model_fields_set contains the field
92+
if self.ssdeep is None and "ssdeep" in self.model_fields_set:
93+
_dict['ssdeep'] = None
94+
9095
return _dict
9196

9297
@classmethod

0 commit comments

Comments
 (0)