Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.4 KB

PlugInterface.md

File metadata and controls

31 lines (22 loc) · 1.4 KB

PlugInterface

Properties

Name Type Description Notes
states List[str] The states of a plug as implemented in the plug code. Required and supported for `type=sensor` plugs only. [optional]
input List[PlugProperty] The named input parameters of a plug. Supported for `type=sensor` plugs; fixed with input attributes `data` and `resource` for `type=transformer`plugs. [optional]
output List[PlugProperty] The named output parameters of a plug. Supported for all plug types. [optional]

Example

from waylay.services.registry.models.plug_interface import PlugInterface

# TODO update the JSON string below
json = "{}"
# create an instance of PlugInterface from a JSON string
plug_interface_instance = PlugInterface.from_json(json)
# print the JSON string representation of the object
print PlugInterface.to_json()

# convert the object into a dict
plug_interface_dict = plug_interface_instance.to_dict()
# create an instance of PlugInterface from a dict
plug_interface_form_dict = plug_interface.from_dict(plug_interface_dict)

[Back to Model list] [Back to API list] [Back to README]