registration of a digital twin item on a template.
Attributes
Name | Type | Description |
---|---|---|
twin_registration_id | uuid.UUID | technical id of the registration. |
twin_id | uuid.UUID | technical id of the twin item. |
template_id | uuid.UUID | technical id of the template. |
properties | list | list of wizata_dsapi.TwinRegistrationProperty or dict { name , datapoint, float, integer, string } |
createdById | uuid.UUID | unique identifier of creating user. |
createdDate | int | timestamp of created date. |
updatedById | uuid.UUID | unique identifier of updating user. |
updatedDate | int | timestamp of updated date. |
Methods
api_id()
return current object id on Web API format.
append()
append a twin registration property.
Name | Type | Default | Description |
---|---|---|---|
registration_property | TwinRegistrationProperty |
endpoint()
return endpoint name used to contact backend.
from_json()
load the object from a dict originating of a JSON format.
Name | Type | Default | Description |
---|---|---|---|
obj | object 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.
Name | Type | Default | Description |
---|---|---|---|
name | str | name of property. | |
p_type | str | type of property. |
return: value.
set_id()
specify the id_value neutrally
Name | Type | Default | Description |
---|---|---|---|
id_value |
return:
to_json()
transform current object into a dict that could be JSONIFY.
Name | Type | Default | Description |
---|---|---|---|
target | str | None |
return: dumpable dict.