-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The API spec defines the required role and system state for an API call, e. g.:
Lines 209 to 212 in c1ab14f
| x-annotation-role: | |
| - Operator | |
| x-annotation-state: | |
| - Operational |
Currently, there is no way to access this data programmatically. Therefore we to duplicate this information in the code:
nethsm-sdk-py/nethsm/__init__.py
Lines 717 to 718 in c1ab14f
| state=State.OPERATIONAL, | |
| roles=[Role.OPERATOR], |
Ideally, we would extract the information from the API spec, either using the OpenAPI generator or manually, and re-use in the code.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request