Template

template represents a common reusable asset, concept or data model within Wizata.

Attributes

NameTypeDescription
template_iduuid.UUIDtechnical id of the template.
keystrunique logical str key identifier of your template.
namestrlogical display name of the Template.
propertieslistlist of template properties associated with the template.
createdByIduuid.UUIDunique identifier of creating user.
createdDateinttimestamp of created date.
updatedByIduuid.UUIDunique identifier of updating user.
updatedDateinttimestamp of updated date.

Methods

add()

add a property to the template.

NameTypeDefaultDescription
namestr
p_typeVarType
requiredboolTrue
template_property_idUUIDNone
descriptionstrNone

add_property()

add a property in list of properties

by default - a property is required

NameTypeDefaultDescription
property_valuedict or TemplateProperty

api_id()

return current object id on Web API format.

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 TemplateProperty (replacing dict properties)

get_property()

get a property from its name.

NameTypeDefaultDescription
property_namename of the property.

return: template property

remove_property()

remove a property from the list based on its name

NameTypeDefaultDescription
namestrproperty to remove

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.