Use this API to update ntpparam.
337937
public static base_response update(nitro_service client, ntpparam resource) throws Exception {
		ntpparam updateresource = new ntpparam();
		updateresource.authentication = resource.authentication;
		updateresource.trustedkey = resource.trustedkey;
		updateresource.autokeylogsec = resource.autokeylogsec;
		updateresource.revokelogsec = resource.revokelogsec;
		return updateresource.update_resource(client);
	}
62825
def _update(self, **kwargs):
        """"""
        if 'content' in kwargs:
            content = kwargs.pop('content')
            path = self._construct_path_to_source_content()
            self._http.put(path, json.dumps({'content': content}))
        super(Resource, self)._update(**kwargs)
387801
public static base_responses update(nitro_service client, nspbr resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nspbr updateresources[] = new nspbr[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new nspbr();
				updateresources[i].name = resources[i].name;
				updateresources[i].action = resources[i].action;
				updateresources[i].srcip = resources[i].srcip;
				updateresources[i].srcipop = resources[i].srcipop;
				updateresources[i].srcipval = resources[i].srcipval;
				updateresources[i].srcport = resources[i].srcport;
				updateresources[i].srcportop = resources[i].srcportop;
				updateresources[i].srcportval = resources[i].srcportval;
				updateresources[i].destip = resources[i].destip;
				updateresources[i].destipop = resources[i].destipop;
				updateresources[i].destipval = resources[i].destipval;
				updateresources[i].destport = resources[i].destport;
				updateresources[i].destportop = resources[i].destportop;
				updateresources[i].destportval = resources[i].destportval;
				updateresources[i].nexthop = resources[i].nexthop;
				updateresources[i].nexthopval = resources[i].nexthopval;
				updateresources[i].iptunnel = resources[i].iptunnel;
				updateresources[i].iptunnelname = resources[i].iptunnelname;
				updateresources[i].srcmac = resources[i].srcmac;
				updateresources[i].protocol = resources[i].protocol;
				updateresources[i].protocolnumber = resources[i].protocolnumber;
				updateresources[i].vlan = resources[i].vlan;
				updateresources[i].Interface = resources[i].Interface;
				updateresources[i].priority = resources[i].priority;
				updateresources[i].msr = resources[i].msr;
				updateresources[i].monitor = resources[i].monitor;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
1067065
public void update() {

        m_maxMemory = Runtime.getRuntime().maxMemory() / 1048576;
        m_totalMemory = Runtime.getRuntime().totalMemory() / 1048576;
        m_usedMemory = (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1048576;
        m_freeMemory = m_maxMemory - m_usedMemory;
        m_usage = (m_usedMemory * 100) / m_maxMemory;
    }
417924
public void update(long aStarted, long aDaemon, long aCurrent){
		current.setValueAsLong(aCurrent);
		started.setValueAsLong(aStarted);
		daemon.setValueAsLong(aDaemon);
		
		minCurrent.setValueIfLesserThanCurrentAsLong(aCurrent);
		maxCurrent.setValueIfGreaterThanCurrentAsLong(aCurrent);
	}
1106802
public static base_response update(nitro_service client, nstcpprofile resource) throws Exception {
		nstcpprofile updateresource = new nstcpprofile();
		updateresource.name = resource.name;
		updateresource.ws = resource.ws;
		updateresource.sack = resource.sack;
		updateresource.wsval = resource.wsval;
		updateresource.nagle = resource.nagle;
		updateresource.ackonpush = resource.ackonpush;
		updateresource.mss = resource.mss;
		updateresource.maxburst = resource.maxburst;
		updateresource.initialcwnd = resource.initialcwnd;
		updateresource.delayedack = resource.delayedack;
		updateresource.oooqsize = resource.oooqsize;
		updateresource.maxpktpermss = resource.maxpktpermss;
		updateresource.pktperretx = resource.pktperretx;
		updateresource.minrto = resource.minrto;
		updateresource.slowstartincr = resource.slowstartincr;
		updateresource.buffersize = resource.buffersize;
		updateresource.syncookie = resource.syncookie;
		updateresource.kaprobeupdatelastactivity = resource.kaprobeupdatelastactivity;
		updateresource.flavor = resource.flavor;
		updateresource.dynamicreceivebuffering = resource.dynamicreceivebuffering;
		updateresource.ka = resource.ka;
		updateresource.kaconnidletime = resource.kaconnidletime;
		updateresource.kamaxprobes = resource.kamaxprobes;
		updateresource.kaprobeinterval = resource.kaprobeinterval;
		updateresource.sendbuffsize = resource.sendbuffsize;
		updateresource.mptcp = resource.mptcp;
		updateresource.establishclientconn = resource.establishclientconn;
		return updateresource.update_resource(client);
	}
960140
def update(self, pbar):
        ''

        if pbar.seconds_elapsed < 2e-6 or pbar.currval < 2e-6:  # =~ 0
            scaled = power = 0
        else:
            scaled, power = self._speed(pbar)

        return self.format % (scaled, self.prefixes[power], self.unit)
664626
protected void update() {
        if(conHandler.shouldStop()) {
            Utils.closeQuietly(this);
            return;
        }

        String line;

        try {
            line = reader.readLine();
        } catch(SocketTimeoutException ex) {
            // Check if the socket has timed out
            if(!dataConnections.isEmpty() && (System.currentTimeMillis() - lastUpdate) >= timeout) {
                Utils.closeQuietly(this);
            }
            return;
        } catch(IOException ex) {
            return;
        }

        if(line == null) {
            Utils.closeQuietly(this);
            return;
        }

        if(line.isEmpty()) return;

        process(line);
    }
576797
public static base_response update(nitro_service client, arpparam resource) throws Exception {
		arpparam updateresource = new arpparam();
		updateresource.timeout = resource.timeout;
		updateresource.spoofvalidation = resource.spoofvalidation;
		return updateresource.update_resource(client);
	}
1215888
def update(self, **kwargs):
        """"""
        assert not self.called
        self.kw.update(kwargs)
        return self
433860
def update(self, key, value=None, dir=False, ttl=None, refresh=False,
               prev_value=None, prev_index=None, timeout=None):
        """"""
        return self.adapter.set(key, value, dir=dir, ttl=ttl, refresh=refresh,
                                prev_value=prev_value, prev_index=prev_index,
                                prev_exist=True, timeout=timeout)
932474
public void update()
  {
    byte []code = new byte[_code.size()];

    System.arraycopy(_code.getBuffer(), 0, code, 0, _code.size());

    _codeAttr.setCode(code);

    if (_changeLength) {
      // XXX: really need more sophisticated solution
      ArrayList<Attribute> attrList = getCodeAttribute().getAttributes();
      for (int i = attrList.size() - 1; i >= 0; i--) {
        Attribute attr = attrList.get(i);

        if (attr.getName().equals("LineNumberTable"))
          attrList.remove(i);
      }
    }
  }
994335
public void update() {
        final long time = System.currentTimeMillis();
        elapsedTime += time - lastUpdateTime;
        lastUpdateTime = time;
        frameCount++;
        if (elapsedTime >= 1000) {
            tps = frameCount;
            frameCount = 0;
            elapsedTime = 0;
        }
    }
1029350
def update(self, pbar):
        """"""

        if pbar.seconds_elapsed < 2e-6 or pbar.currval < 2e-6:
            scaled = bitmath.Byte()
        else:
            speed = pbar.currval / pbar.seconds_elapsed
            scaled = bitmath.Byte(speed).best_prefix(system=self.system)

        return scaled.format(self.format)
585603
public void update()
	{
		IProcess process = fConsole.getProcess();
		if (process != null)
		{
			setEnabled(process.canTerminate());
		}
	}
527883
public static base_response update(nitro_service client, nspbr6 resource) throws Exception {
		nspbr6 updateresource = new nspbr6();
		updateresource.name = resource.name;
		updateresource.action = resource.action;
		updateresource.srcipv6 = resource.srcipv6;
		updateresource.srcipop = resource.srcipop;
		updateresource.srcipv6val = resource.srcipv6val;
		updateresource.srcport = resource.srcport;
		updateresource.srcportop = resource.srcportop;
		updateresource.srcportval = resource.srcportval;
		updateresource.destipv6 = resource.destipv6;
		updateresource.destipop = resource.destipop;
		updateresource.destipv6val = resource.destipv6val;
		updateresource.destport = resource.destport;
		updateresource.destportop = resource.destportop;
		updateresource.destportval = resource.destportval;
		updateresource.srcmac = resource.srcmac;
		updateresource.protocol = resource.protocol;
		updateresource.protocolnumber = resource.protocolnumber;
		updateresource.vlan = resource.vlan;
		updateresource.Interface = resource.Interface;
		updateresource.priority = resource.priority;
		updateresource.msr = resource.msr;
		updateresource.monitor = resource.monitor;
		updateresource.nexthop = resource.nexthop;
		updateresource.nexthopval = resource.nexthopval;
		updateresource.nexthopvlan = resource.nexthopvlan;
		return updateresource.update_resource(client);
	}
751065
def update_resource(self, path, data, if_match=None):
        """"""
        response = self._http_request(resource=path, method="PUT", body=data,
                                      if_match=if_match)
        try:
            return response.json()
        except ValueError:
            raise exception.ServiceException("Invalid service response.")