'Initialise with data about the resource processed by the node.
:param primary_key: the ID of the resource in the database
:param name: the logical resource name
:param uuid: the UUID of the resource
:param reference_id: the value to be returned by get_resource
:param attributes: dict of attributes values to be returned by get_attr
:param action: the last resource action
:param status: the status of the last action'

def __init__(self, primary_key, resource_name, uuid, reference_id, attributes, action, status):

    self.primary_key = primary_key
    self.name = resource_name
    self.uuid = uuid
    self._reference_id = reference_id
    self._attributes = attributes
    self.action = action
    self.status = status
