old_contents: from omtdrspub.elastic.model.location import Location
  
  
  class Link(object):
  
      def __init__(self, href: Location, rel: str, mime: str):
          self._href = href
          self._rel = rel
          self._mime = mime
  
      @property
      def href(self):
          return self._href
  
      @property
      def rel(self):
          return self._rel
  
      @property
      def mime(self):
          return self._mime
  
      @mime.setter
      def rel(self, rel):
          self._rel = rel
  
      @mime.setter
      def mime(self, mime):
          self._mime = mime
  
      @href.setter
      def href(self, href: Location):
          self._href = href
  
      @staticmethod
      def as_link(dct):
          return Link(href=Location.as_location(dct['href']),
                      rel=dct['rel'],
                      mime=dct['mime'])
  
      def to_dict(self) -> dict:
          return {
              'href': self.href.to_dict(),
              'rel': self.rel,
              'mime': self.mime
          }
  
  
  
  
new_contents: from omtdrspub.elastic.model.location import Location
  
  
  class Link(object):
  
      def __init__(self, href: Location, rel: str, mime: str):
          self._href = href
          self._rel = rel
          self._mime = mime
  
      @property
      def href(self):
          return self._href
  
      @property
      def rel(self):
          return self._rel
  
      @property
      def mime(self):
          return self._mime
  
      @rel.setter
      def rel(self, rel):
          self._rel = rel
  
      @mime.setter
      def mime(self, mime):
          self._mime = mime
  
      @href.setter
      def href(self, href: Location):
          self._href = href
  
      @staticmethod
      def as_link(dct):
          return Link(href=Location.as_location(dct['href']),
                      rel=dct['rel'],
                      mime=dct['mime'])
  
      def to_dict(self) -> dict:
          return {
              'href': self.href.to_dict(),
              'rel': self.rel,
              'mime': self.mime
          }
  
  
  
  
subject: Fix Link.rel setter