Conversation
|
it is not generating docs due to the sidebar position? not sure adding @joeperpetua |
|
The sidebar position is computed from the docs_status file. Gotta add an entry there for the docs Metadata to be generated correctly. |
ec693cf to
03e50bc
Compare
Sorry for the omission. Should be fine now |
|
FYI your approach of using an internal field for the API name will not update the supported APIs docs. The docs parser is looking for You may want to modify your request approach or update the parser to handle the current one. |
|
Now ready to merge. Internal APIs are properly listed in the docs, based on #334's new |
This is an implementation of the basic methods for the APIs
SYNO.Core.ISCSI.LUNandSYNO.Core.ISCSI.Target; dedicated to iSCSI LUNs & targets management.The implementation was mostly guided by the usage message of
/var/packages/ScsiTarget/target/bin/synoiscsiwebapiand reverse-engineering of the requests triggered by the Diskstation GUI.I've implemented specific errors/exceptions for LUN- and Target-related errors, with a few commonly occurring error codes.
Summary of implemented methods, included in new file
synology_api/core_iscsi.pyLUN(base_api.BaseApi):createdeletesafe_delete: a higher-level wrapper, waiting for complete LUN deletion.listgetsetclonestop_clonemap_targetunmap_targetTarget(base_api.BaseApi):createdeletelistgetsetenabledisablemap_lununmap_lunAll basic methods & features have been tested.
Note that I've made a (single) modification in the existing code, related to the
SynoBaseExceptionclass. The error message was not previously passed to the parent (Exception) constructor, yielding empty exception messages in the interpreter.I'll spend some more time adding examples in the main classes' docstrings. A few are already present for
LUN(), e.g.