Use this API to update snmptrap.
164027
public static base_response update(nitro_service client, snmptrap resource) throws Exception {
		snmptrap updateresource = new snmptrap();
		updateresource.trapclass = resource.trapclass;
		updateresource.trapdestination = resource.trapdestination;
		updateresource.destport = resource.destport;
		updateresource.version = resource.version;
		updateresource.communityname = resource.communityname;
		updateresource.srcip = resource.srcip;
		updateresource.severity = resource.severity;
		return updateresource.update_resource(client);
	}
592689
def refresh(self):
        # type: () -> None
        """"""
        from pykechain.client import API_EXTRA_PARAMS
        src = self._client.reload(self, extra_params=API_EXTRA_PARAMS['activity'])
        self.__dict__.update(src.__dict__)
618090
def update(self):
        """"""
        # Init new stats
        stats = self.get_init_value()

        if self.input_method == 'local':
            # Update stats using the standard system lib
            self.uptime = datetime.now() - datetime.fromtimestamp(psutil.boot_time())

            # Convert uptime to string (because datetime is not JSONifi)
            stats = str(self.uptime).split('.')[0]
        elif self.input_method == 'snmp':
            # Update stats using SNMP
            uptime = self.get_stats_snmp(snmp_oid=snmp_oid)['_uptime']
            try:
                # In hundredths of seconds
                stats = str(timedelta(seconds=int(uptime) / 100))
            except Exception:
                pass

        # Update the stats
        self.stats = stats

        return self.stats
585603
public void update()
	{
		IProcess process = fConsole.getProcess();
		if (process != null)
		{
			setEnabled(process.canTerminate());
		}
	}
56227
public static base_response update(nitro_service client, ptp resource) throws Exception {
		ptp updateresource = new ptp();
		updateresource.state = resource.state;
		return updateresource.update_resource(client);
	}
989825
public static snmp_trap update(nitro_service client, snmp_trap resource) throws Exception
	{
		resource.validate("modify");
		return ((snmp_trap[]) resource.update_resource(client))[0];
	}
508369
public static snmp_manager update(nitro_service client, snmp_manager resource) throws Exception
	{
		resource.validate("modify");
		return ((snmp_manager[]) resource.update_resource(client))[0];
	}
1219621
private void update() {
                if (!uptodate) {
                        summary.clear();
                        distinctTraces.clear();
                        traces.clear();
                        addTraces(allTraces, false);
                        uptodate = true;
                }
        }
740063
@RequirePOST
    public void doUpdateNow( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException {
        Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER);
        
        for (NodeMonitor nodeMonitor : NodeMonitor.getAll()) {
            Thread t = nodeMonitor.triggerUpdate();
            String columnCaption = nodeMonitor.getColumnCaption();
            if (columnCaption != null) {
                t.setName(columnCaption);
            }
        }
        rsp.forwardToPreviousPage(req);
    }
768736
def process_update(self, update):
        """"""
        data = json.loads(update)
        NetworkTables.getEntry(data["k"]).setValue(data["v"])
1067656
def update(self, callback=None, errback=None, **kwargs):
        
        if not self.data:
            raise NetworkException('Network not loaded')

        def success(result, *args):
            self.data = result
            self.id = result['id']
            self.name = result['name']
            self.report = self._rest.report(self.id)
            if callback:
                return callback(self)
            else:
                return self

        return self._rest.update(self.id, callback=success, errback=errback,
                                 **kwargs)
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);
	}
620806
@Override
    void update(JSONObject pJSONObject, MBeanInfo pMBeanInfo, Stack<String> pPathStack) {
        verifyThatPathIsEmpty(pPathStack);
        pJSONObject.put(getKey(), pMBeanInfo.getClassName());
    }
627902
@GuardedBy("lock")
  private void updateStats() {
    mInternalStatFs = updateStatsHelper(mInternalStatFs, mInternalPath);
    mExternalStatFs = updateStatsHelper(mExternalStatFs, mExternalPath);
    mLastRestatTime = SystemClock.uptimeMillis();
  }
882697
def update(self):
        '''
        
        '''
        self._json = self._request(
            method='GET',
            url=self.API
        )._json
282281
public static base_response update(nitro_service client, lbmetrictable resource) throws Exception {
		lbmetrictable updateresource = new lbmetrictable();
		updateresource.metrictable = resource.metrictable;
		updateresource.metric = resource.metric;
		updateresource.Snmpoid = resource.Snmpoid;
		return updateresource.update_resource(client);
	}
793393
public static base_response update(nitro_service client, protocolhttpband resource) throws Exception {
		protocolhttpband updateresource = new protocolhttpband();
		updateresource.reqbandsize = resource.reqbandsize;
		updateresource.respbandsize = resource.respbandsize;
		return updateresource.update_resource(client);
	}