Updates an agent.
519192
def update_agent(self, agent, body=None):
        """"""
        return self.put(self.agent_path % (agent), body=body)
733007
def update(self, pci):
        """"""
        self.pduUserData = pci.pduUserData
        self.pduSource = pci.pduSource
        self.pduDestination = pci.pduDestination
918016
private void updateAgentDetailsIfNeeded(HttpServletRequest pReq) {
        // Lookup the Agent URL if needed
        AgentDetails details = backendManager.getAgentDetails();
        if (details.isInitRequired()) {
            synchronized (details) {
                if (details.isInitRequired()) {
                    if (details.isUrlMissing()) {
                        String url = getBaseUrl(NetworkUtil.sanitizeLocalUrl(pReq.getRequestURL().toString()),
                                extractServletPath(pReq));
                        details.setUrl(url);
                    }
                    if (details.isSecuredMissing()) {
                        details.setSecured(pReq.getAuthType() != null);
                    }
                    details.seal();
                }
            }
        }
    }
429090
def update(d, e):
    """"""
    res = copy.copy(d)
    res.update(e)
    return res
967583
def update(cls, id, params):
        """"""
        cls.echo('Updating your vlan.')
        result = cls.call('hosting.vlan.update', cls.usable_id(id), params)
        return result
850178
def update_properties(self) -> None:
        """"""
        self.update(path=URL_GET + GROUP.format(group=PROPERTIES))
799037
def update(connection, force_download):
    """"""
    manager.database.update(
        connection=connection,
        force_download=force_download
    )
886111
function update() {
    var $this = this,
      self = User.resourceConstructor().call(this, this.id);

    return self.update.apply(self, arguments).then(function (updated) {
      Utils.extend($this, updated, true);
      return updated;
    });
  }
1110378
def add_update(self, *args, **kwargs):
        """"""

        if not self._ai_rec_id:
            self._ai_rec_id = self.add(*args, **kwargs)
        else:
            au_save = self._ai_rec_id
            self.update(*args, **kwargs)
            self._ai_rec_id = au_save

        return self._ai_rec_id
1239305
function Agent(session, agentInfo) {
  this.info         = utils.roCopy(agentInfo)
  this._session     = session
  this._isDestroyed = false
  this._receiveCBs  = new SMap()
}
55267
def update_ext(self, path, id, body=None):
        """"""
        return self.put(path % id, body=body)
330986
async def update_houses(self):
        """"""
        houses = await self.fetch_houses()
        for house_id in houses:
            asyncio.Task(self.update_house(house_id))
186053
def update(self, *args, **kwargs):
        """"""
        self._extend(args, kwargs, 'update', self._update_items)
12328
def _update(self):
        """"""
        self.clear()
        self._set_boutons_communs()
        if self.interface:
            self.addSeparator()
            l_actions = self.interface.get_actions_toolbar()
            self._set_boutons_interface(l_actions)
1253226
def update(self, n=1):
    """"""
    with self._lock:
      self._pbar.update(n)
      self.refresh()
960203
def _add_modification_to_agent(agent, mod_type, residue, position):
    """"""
    new_mod = ModCondition(mod_type, residue, position)
    # Check if this modification already exists
    for old_mod in agent.mods:
        if old_mod.equals(new_mod):
            return agent
    new_agent = deepcopy(agent)
    new_agent.mods.append(new_mod)
    return new_agent
768736
def process_update(self, update):
        """"""
        data = json.loads(update)
        NetworkTables.getEntry(data["k"]).setValue(data["v"])