diff --git a/.sdk-version b/.sdk-version index 49f49f4..f6a594d 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.94.0 +v3.94.1 diff --git a/revengai/__init__.py b/revengai/__init__.py index 36c9360..ac6733e 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v3.94.0" +__version__ = "v3.94.1" # Define package exports __all__ = [ diff --git a/revengai/api/functions_renaming_history_api.py b/revengai/api/functions_renaming_history_api.py index 739ffd5..3a44a37 100644 --- a/revengai/api/functions_renaming_history_api.py +++ b/revengai/api/functions_renaming_history_api.py @@ -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 @@ -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, @@ -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 @@ -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, @@ -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 @@ -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, @@ -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 @@ -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, @@ -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 @@ -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, @@ -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 @@ -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, @@ -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 @@ -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, @@ -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 @@ -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, @@ -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 @@ -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, @@ -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 @@ -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, @@ -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 @@ -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, @@ -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 @@ -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, diff --git a/revengai/api_client.py b/revengai/api_client.py index 3ebca18..379dd83 100644 --- a/revengai/api_client.py +++ b/revengai/api_client.py @@ -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): diff --git a/revengai/configuration.py b/revengai/configuration.py index f66fa7c..c07c010 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -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]: