code: def parent(self, resource):
          
          resource.check()
          self['parent_type'] = resource.type
          self['parent_uuid'] = resource.uuid
docs: Set parent resource
  
          :param resource: parent resource
          :type resource: Resource
  
          :raises ResourceNotFound: resource not found on the API