List plugins by bundle_id. :param bundle_id: the bundle id to filter by. :return: a list of plugins
(
bundle_id: Optional[str],
)
| 121 | |
| 122 | |
| 123 | def list_plugins( |
| 124 | bundle_id: Optional[str], |
| 125 | ): |
| 126 | """ |
| 127 | List plugins by bundle_id. |
| 128 | |
| 129 | :param bundle_id: the bundle id to filter by. |
| 130 | :return: a list of plugins |
| 131 | """ |
| 132 | |
| 133 | plugins = _bundle_plugin_dict.get(bundle_id, None) |
| 134 | if plugins is None: |
| 135 | raise_http_error(ErrorCode.OBJECT_NOT_FOUND, message=f"Bundle {bundle_id} not found.") |
| 136 | |
| 137 | return plugins |
| 138 | |
| 139 | |
| 140 | def get_bundle(bundle_id: str) -> Optional[Bundle]: |
no test coverage detected