code: def version(self):
          
          ver = Version()
          ver.conn = self.conn
  
          ver.attrs = {
              # Parent params
              'service_id': self.attrs['id'],
          }
  
          ver.save()
  
          return ver
docs: Create a new version under this service.