TwinRegistration

registration of a digital twin item on a template.

Attributes

NameTypeDescription
twin_registration_iduuid.UUIDtechnical id of the registration.
twin_iduuid.UUIDtechnical id of the twin item.
template_iduuid.UUIDtechnical id of the template.
propertieslistlist of wizata_dsapi.TwinRegistrationProperty or dict { name , datapoint, float, integer, string }
createdByIduuid.UUIDunique identifier of creating user.
createdDateinttimestamp of created date.
updatedByIduuid.UUIDunique identifier of updating user.
updatedDateinttimestamp of updated date.

Methods

api_id()

return current object id on Web API format.

append()

append a twin registration property.

NameTypeDefaultDescription
registration_propertyTwinRegistrationProperty

endpoint()

return endpoint name used to contact backend.

from_json()

load the object from a dict originating of a JSON format.

NameTypeDefaultDescription
objobject to load information from.

get_properties()

return a list of TwinRegistrationProperty (replacing dict properties)

get_value()

get value of a property based on name and type.

NameTypeDefaultDescription
namestrname of property.
p_typestrtype of property.

return: value.

set_id()

specify the id_value neutrally

NameTypeDefaultDescription
id_value

return:

to_json()

transform current object into a dict that could be JSONIFY.

NameTypeDefaultDescription
targetstrNone

return: dumpable dict.