1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-10-26 07:33:41 +03:00

Refactor REST API item classes and access methods

- Changed various item classes from ItemDictType to BaseRestItem for consistency.
- Updated ManagedObjectDictType to ManagedObjectItem.
- Replaced ensure_has_access method calls with check_access for improved clarity.
- Refactored GUI composition methods to utilize the new GuiBuilder utility.
- Adjusted return types in get_items methods to use ItemsResult for better type safety.
- Removed deprecated field handling in BaseModelHandler.
- Enhanced type annotations across multiple modules for better type checking.
This commit is contained in:
Adolfo Gómez García
2025-07-29 01:44:10 +02:00
parent a265dfb754
commit 53f95c6733
29 changed files with 136 additions and 221 deletions

View File

@@ -50,7 +50,7 @@ if typing.TYPE_CHECKING:
# Enclosed methods under /item path
class ServicePoolGroupItem(types.rest.ItemDictType):
class ServicePoolGroupItem(types.rest.BaseRestItem):
id: str
name: str
comments: str