module documentation
Remote API connection map.
| Class | |
Map resource to method. |
| Class | |
Undocumented |
| Function | |
Returns all supported resources and their handlers. |
| Constant | CONNECTOR |
Undocumented |
| Function | _ |
Compiles path for RAPI resource into regular expression. |
| Function | _ |
Converts URI pattern into a regular expression group. |
| Constant | _DISK |
Undocumented |
| Constant | _NAME |
Undocumented |
def GetHandlers(node_name_pattern, instance_name_pattern, group_name_pattern, network_name_pattern, job_id_pattern, disk_pattern, filter_pattern, query_res_pattern, translate=None):
¶
Returns all supported resources and their handlers.
node_name_pattern and the other *_pattern parameters are wrapped in UriPattern and, if used in a URI, passed to the function specified using translate. translate receives 1..N parameters which are either plain strings or instances of UriPattern and returns a dictionary key suitable for the caller of GetHandlers. The default implementation in _CompileHandlerPath returns a compiled regular expression in which each pattern is a group.
| Returns | |
| dict | Undocumented |