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.94.0
v3.94.1
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.94.0"
__version__ = "v3.94.1"

# Define package exports
__all__ = [
Expand Down
36 changes: 24 additions & 12 deletions revengai/api/functions_renaming_history_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def batch_rename_function(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> BaseResponse:
"""Batch Rename Functions
"""(Deprecated) Batch Rename Functions

Renames a list of functions using the function IDs Will record name changes in history

Expand All @@ -90,6 +90,7 @@ def batch_rename_function(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("POST /v2/functions/rename/batch is deprecated.", DeprecationWarning)

_param = self._batch_rename_function_serialize(
functions_list_rename=functions_list_rename,
Expand Down Expand Up @@ -131,7 +132,7 @@ def batch_rename_function_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[BaseResponse]:
"""Batch Rename Functions
"""(Deprecated) Batch Rename Functions

Renames a list of functions using the function IDs Will record name changes in history

Expand All @@ -158,6 +159,7 @@ def batch_rename_function_with_http_info(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("POST /v2/functions/rename/batch is deprecated.", DeprecationWarning)

_param = self._batch_rename_function_serialize(
functions_list_rename=functions_list_rename,
Expand Down Expand Up @@ -199,7 +201,7 @@ def batch_rename_function_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
"""Batch Rename Functions
"""(Deprecated) Batch Rename Functions

Renames a list of functions using the function IDs Will record name changes in history

Expand All @@ -226,6 +228,7 @@ def batch_rename_function_without_preload_content(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("POST /v2/functions/rename/batch is deprecated.", DeprecationWarning)

_param = self._batch_rename_function_serialize(
functions_list_rename=functions_list_rename,
Expand Down Expand Up @@ -899,7 +902,7 @@ def get_function_name_history(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> BaseResponseListFunctionNameHistory:
"""Get Function Name History
"""(Deprecated) Get Function Name History

Gets the name history of a function using the function ID

Expand All @@ -926,6 +929,7 @@ def get_function_name_history(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("GET /v2/functions/history/{function_id} is deprecated.", DeprecationWarning)

_param = self._get_function_name_history_serialize(
function_id=function_id,
Expand Down Expand Up @@ -967,7 +971,7 @@ def get_function_name_history_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[BaseResponseListFunctionNameHistory]:
"""Get Function Name History
"""(Deprecated) Get Function Name History

Gets the name history of a function using the function ID

Expand All @@ -994,6 +998,7 @@ def get_function_name_history_with_http_info(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("GET /v2/functions/history/{function_id} is deprecated.", DeprecationWarning)

_param = self._get_function_name_history_serialize(
function_id=function_id,
Expand Down Expand Up @@ -1035,7 +1040,7 @@ def get_function_name_history_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
"""Get Function Name History
"""(Deprecated) Get Function Name History

Gets the name history of a function using the function ID

Expand All @@ -1062,6 +1067,7 @@ def get_function_name_history_without_preload_content(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("GET /v2/functions/history/{function_id} is deprecated.", DeprecationWarning)

_param = self._get_function_name_history_serialize(
function_id=function_id,
Expand Down Expand Up @@ -1465,7 +1471,7 @@ def rename_function_id(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> BaseResponse:
"""Rename Function
"""(Deprecated) Rename Function

Renames a function using the function ID Will record name change history

Expand Down Expand Up @@ -1494,6 +1500,7 @@ def rename_function_id(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("POST /v2/functions/rename/{function_id} is deprecated.", DeprecationWarning)

_param = self._rename_function_id_serialize(
function_id=function_id,
Expand Down Expand Up @@ -1537,7 +1544,7 @@ def rename_function_id_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[BaseResponse]:
"""Rename Function
"""(Deprecated) Rename Function

Renames a function using the function ID Will record name change history

Expand Down Expand Up @@ -1566,6 +1573,7 @@ def rename_function_id_with_http_info(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("POST /v2/functions/rename/{function_id} is deprecated.", DeprecationWarning)

_param = self._rename_function_id_serialize(
function_id=function_id,
Expand Down Expand Up @@ -1609,7 +1617,7 @@ def rename_function_id_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
"""Rename Function
"""(Deprecated) Rename Function

Renames a function using the function ID Will record name change history

Expand Down Expand Up @@ -1638,6 +1646,7 @@ def rename_function_id_without_preload_content(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("POST /v2/functions/rename/{function_id} is deprecated.", DeprecationWarning)

_param = self._rename_function_id_serialize(
function_id=function_id,
Expand Down Expand Up @@ -1757,7 +1766,7 @@ def revert_function_name(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> BaseResponse:
"""Revert the function name
"""(Deprecated) Revert the function name

Reverts the function name to a previous name using the function ID and history ID

Expand Down Expand Up @@ -1786,6 +1795,7 @@ def revert_function_name(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("POST /v2/functions/history/{function_id}/{history_id} is deprecated.", DeprecationWarning)

_param = self._revert_function_name_serialize(
function_id=function_id,
Expand Down Expand Up @@ -1829,7 +1839,7 @@ def revert_function_name_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[BaseResponse]:
"""Revert the function name
"""(Deprecated) Revert the function name

Reverts the function name to a previous name using the function ID and history ID

Expand Down Expand Up @@ -1858,6 +1868,7 @@ def revert_function_name_with_http_info(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("POST /v2/functions/history/{function_id}/{history_id} is deprecated.", DeprecationWarning)

_param = self._revert_function_name_serialize(
function_id=function_id,
Expand Down Expand Up @@ -1901,7 +1912,7 @@ def revert_function_name_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
"""Revert the function name
"""(Deprecated) Revert the function name

Reverts the function name to a previous name using the function ID and history ID

Expand Down Expand Up @@ -1930,6 +1941,7 @@ def revert_function_name_without_preload_content(
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501
warnings.warn("POST /v2/functions/history/{function_id}/{history_id} is deprecated.", DeprecationWarning)

_param = self._revert_function_name_serialize(
function_id=function_id,
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.94.0/python'
self.user_agent = 'OpenAPI-Generator/v3.94.1/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.94.0\n"\
"SDK Package Version: v3.94.0".\
"Version of the API: v3.94.1\n"\
"SDK Package Version: v3.94.1".\
format(env=sys.platform, pyversion=sys.version)

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