ExternalizableAbstractModel#

class ExternalizableAbstractModel(ext_id=None, links=None, tenant_id=None, *args, **kwargs)#

Bases: TenantAwareModel

A model that represents an object instance that is accessible through an API endpoint. Instances of this type get an extId field that contains the globally unique identifier for that instance. Externally accessible instances are always tenant aware and, therefore, extend the TenantAwareModel

Parameters:
  • ext_id – (ext_id) A globally unique identifier of an instance that is suitable for external consumption.

  • links – (links) A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.

property ext_id#

A globally unique identifier of an instance that is suitable for external consumption.

Type:

str

A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.

Type:

list[ ApiLink ]

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model