pyisyox.runtime.network_resource module

Runtime NetworkResource — fire-trigger wrapper for the IoX networking module.

Network resources are user-defined HTTP / TCP / UDP fire-triggers configured in the IoX admin UI. They have no live state and no parameters: the only operation is “fire by id”. The wrapper exposes the structural fields (address, name) and a single run() coroutine.

Sourced from the legacy GET /rest/networking/resources XML endpoint (<NetConfig><NetRule>...). Modern IoX 6 firmware keeps this endpoint for compatibility; no /api/networking equivalent has been observed.

class NetworkResource(record, client)[source]

Bases: object

User-facing handle for one networking module resource.

Parameters:
property address: str

Resource id (string for symmetry with node / group records).

property name: str

User-assigned label.

async run()[source]

Fire this network resource.

Wire shape: GET /rest/networking/resources/{id}. The controller acknowledges receipt only — the response doesn’t carry the result of the underlying HTTP / TCP / UDP fire, and there’s no progress event on the WebSocket. Treat this as fire-and-forget.

Return type:

None

to_dict()[source]

Flatten this resource to a JSON-compatible dict.

Return type:

dict[str, Any]