code: def update(self, async_=False, **kw):
          
          async_ = kw.get('async', async_)
          headers = {'Content-Type': 'application/xml'}
  
          new_kw = dict()
          if self.offline_model_name:
              upload_keys = ('_parent', 'name', 'offline_model_name', 'offline_model_project', 'qos', 'instance_num')
          else:
              upload_keys = ('_parent', 'name', 'qos', '_model_resource', 'instance_num', 'predictor', 'runtime')
  
          for k in upload_keys:
              new_kw[k] = getattr(self, k)
          new_kw.update(kw)
  
          obj = type(self)(version='0', **new_kw)
  
          data = obj.serialize()
          self._client.put(self.resource(), data, headers=headers)
          self.reload()
  
          if not async_:
              self.wait_for_service()
docs: Update online model parameters to server.