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.131.1
v3.131.2
1 change: 1 addition & 0 deletions docs/FunctionRename.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**new_name** | **str** | The new name for the function |
**new_mangled_name** | **str** | The new mangled name for the function |
**source_type** | [**FunctionSourceType**](FunctionSourceType.md) | The source that triggered the rename | [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.131.1"
__version__ = "v3.131.2"

# 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.131.1/python'
self.user_agent = 'OpenAPI-Generator/v3.131.2/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 @@ -541,8 +541,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.131.1\n"\
"SDK Package Version: v3.131.1".\
"Version of the API: v3.131.2\n"\
"SDK Package Version: v3.131.2".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
9 changes: 6 additions & 3 deletions revengai/models/function_rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
import json

from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List
from typing import Any, ClassVar, Dict, List, Optional
from revengai.models.function_source_type import FunctionSourceType
from typing import Optional, Set
from typing_extensions import Self

Expand All @@ -27,7 +28,8 @@ class FunctionRename(BaseModel):
""" # noqa: E501
new_name: StrictStr = Field(description="The new name for the function")
new_mangled_name: StrictStr = Field(description="The new mangled name for the function")
__properties: ClassVar[List[str]] = ["new_name", "new_mangled_name"]
source_type: Optional[FunctionSourceType] = Field(default=None, description="The source that triggered the rename")
__properties: ClassVar[List[str]] = ["new_name", "new_mangled_name", "source_type"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -81,7 +83,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:

_obj = cls.model_validate({
"new_name": obj.get("new_name"),
"new_mangled_name": obj.get("new_mangled_name")
"new_mangled_name": obj.get("new_mangled_name"),
"source_type": obj.get("source_type")
})
return _obj

Expand Down