katana_public_api_client.api_wrapper._resource¶
katana_public_api_client.api_wrapper._resource
¶
Generic async CRUD resource that delegates to generated API modules.
Classes¶
Resource(client, config)
¶
Thin async CRUD wrapper around a single Katana API resource.
Each method delegates to the corresponding generated asyncio_detailed
function, unwraps the response, and returns the raw attrs model.
Generated modules are imported lazily on first call and cached for reuse.
Source code in katana_public_api_client/api_wrapper/_resource.py
Functions¶
create(body, **kwargs)
async
¶
Create a new resource.
Source code in katana_public_api_client/api_wrapper/_resource.py
delete(resource_id, **kwargs)
async
¶
Delete a resource by ID. Raises on error, returns None.
Source code in katana_public_api_client/api_wrapper/_resource.py
get(resource_id, **kwargs)
async
¶
Fetch a single resource by ID.
Source code in katana_public_api_client/api_wrapper/_resource.py
list(**kwargs)
async
¶
Fetch all resources (with optional filters).
Source code in katana_public_api_client/api_wrapper/_resource.py
update(resource_id, body, **kwargs)
async
¶
Update an existing resource by ID.