Use this API to update cmppolicy.
323728
public static base_response update(nitro_service client, cmppolicy resource) throws Exception {
		cmppolicy updateresource = new cmppolicy();
		updateresource.name = resource.name;
		updateresource.rule = resource.rule;
		updateresource.resaction = resource.resaction;
		return updateresource.update_resource(client);
	}
295482
def update(self):
        """"""
        # For each plugins, call the update method
        for p in self._plugins:
            if self._plugins[p].is_disable():
                # If current plugin is disable
                # then continue to next plugin
                continue

            # Set the input method to SNMP
            self._plugins[p].input_method = 'snmp'
            self._plugins[p].short_system_name = self.system_name

            # Update the stats...
            try:
                self._plugins[p].update()
            except Exception as e:
                logger.error("Update {} failed: {}".format(p, e))
            else:
                # ... the history
                self._plugins[p].update_stats_history()
                # ... and the views
                self._plugins[p].update_views()
1331536
def update_ikepolicy(self, ikepolicy, body=None):
        """"""
        return self.put(self.ikepolicy_path % (ikepolicy), body=body)
657546
def updateMktDepth(self, id, position, operation, side, price, size):
        """"""
        return _swigibpy.EWrapper_updateMktDepth(self, id, position, operation, side, price, size)
1069191
function updateDepsTo (arg, cb) {
  asyncMap(arg._others, function (o, cb) {
    updateOtherVersionDeps(o, arg, cb)
  }, cb)
}
376988
public static base_response add(nitro_service client, cmppolicy resource) throws Exception {
		cmppolicy addresource = new cmppolicy();
		addresource.name = resource.name;
		addresource.rule = resource.rule;
		addresource.resaction = resource.resaction;
		return addresource.add_resource(client);
	}
365364
def update(self, update_finished_cb):
        """"""
        if not self._update_finished_cb:
            self._update_finished_cb = update_finished_cb
            self.anchor_data = []
            self.nr_of_anchors = 0
            self.valid = False
            logger.debug('Updating content of memory {}'.format(self.id))

            # Start reading the header
            self.mem_handler.read(self, LocoMemory.MEM_LOCO_INFO,
                                  LocoMemory.MEM_LOCO_INFO_LEN)
967583
def update(cls, id, params):
        """"""
        cls.echo('Updating your vlan.')
        result = cls.call('hosting.vlan.update', cls.usable_id(id), params)
        return result
219382
public void update(CmsPublishItemStatus status) {

        if (status.isDisabled()) {
            m_selectedCheckBox.setEnabled(false);
            m_selectedCheckBox.setChecked(false);
            m_removeCheckBox.setChecked(status.getState() == State.remove);
            updateRemoval(status.getState() == State.remove);
        } else {
            switch (status.getState()) {
                case remove:
                    m_selectedCheckBox.setChecked(false);
                    m_selectedCheckBox.setEnabled(false);
                    m_removeCheckBox.setChecked(true);
                    updateRemoval(true);
                    break;
                case publish:
                    m_selectedCheckBox.setEnabled(true);
                    m_selectedCheckBox.setChecked(true);
                    m_removeCheckBox.setChecked(false);
                    updateRemoval(false);
                    break;
                case normal:
                default:
                    m_selectedCheckBox.setChecked(false);
                    m_selectedCheckBox.setEnabled(true);
                    m_removeCheckBox.setChecked(false);
                    updateRemoval(false);
                    break;

            }
        }
    }
518624
def update(self, *pkgs, **kwargs):
        """"""
        cmd_list = ['update', '--json', '--yes']

        if not pkgs and not kwargs.get('all'):
            raise TypeError("Must specify at least one package to update, or "
                            "all=True.")

        cmd_list.extend(
            self._setup_install_commands_from_kwargs(
                kwargs,
                ('dry_run', 'no_deps', 'override_channels',
                 'no_pin', 'force', 'all', 'use_index_cache', 'use_local',
                 'alt_hint')))

        cmd_list.extend(pkgs)

        return self._call_and_parse(cmd_list, abspath=kwargs.get('abspath',
                                                                 True))
584863
private void updateLetsEncrypt() {

        getReport().println(Messages.get().container(Messages.RPT_STARTING_LETSENCRYPT_UPDATE_0));

        CmsLetsEncryptConfiguration config = OpenCms.getLetsEncryptConfig();
        if ((config == null) || !config.isValidAndEnabled()) {
            return;
        }
        CmsSiteConfigToLetsEncryptConfigConverter converter = new CmsSiteConfigToLetsEncryptConfigConverter(config);
        boolean ok = converter.run(getReport(), OpenCms.getSiteManager());
        if (ok) {
            getReport().println(
                org.opencms.ui.apps.Messages.get().container(org.opencms.ui.apps.Messages.RPT_LETSENCRYPT_FINISHED_0),
                I_CmsReport.FORMAT_OK);
        }

    }
516591
def update(connection, silent, hgnc_file_path, hcop_file_path, low_memory):
    """"""
    database.update(connection=connection,
                    silent=silent,
                    hgnc_file_path=hgnc_file_path,
                    hcop_file_path=hcop_file_path,
                    low_memory=low_memory)
691553
void updateUserInfo() {

        try {
            m_user = m_context.getCms().readUser(m_user.getId());
            displayResourceInfoDirectly(Collections.singletonList(CmsAccountsApp.getPrincipalInfo(m_user)));
        } catch (CmsException e) {
            LOG.error("Error updating user info.", e);
        }
    }
669617
public void update(CmsEntity entity) {

        List<Object> baseObjects = CmsEntity.getValuesForPath(entity, m_basePath);
        LinkedHashMap<String, String> options = Maps.newLinkedHashMap();
        for (Object baseObject : baseObjects) {
            List<Object> valueValues = CmsEntity.getValuesForPath(baseObject, m_valuePath);
            List<Object> descriptionValues = CmsEntity.getValuesForPath(baseObject, m_descriptionPath);
            if (valueValues.size() > 0) {
                String value = (String)valueValues.get(0);
                String description = value;
                if (descriptionValues.size() > 0) {
                    description = (String)descriptionValues.get(0);
                }
                options.put(value, description);
            }
        }
        replaceOptions(options);
    }
760846
public static base_response update(nitro_service client, csparameter resource) throws Exception {
		csparameter updateresource = new csparameter();
		updateresource.stateupdate = resource.stateupdate;
		return updateresource.update_resource(client);
	}
786051
def update(self):
        """"""
        # For standalone and server modes
        # For each plugins, call the update method
        for p in self._plugins:
            if self._plugins[p].is_disable():
                # If current plugin is disable
                # then continue to next plugin
                continue
            # Update the stats...
            self._plugins[p].update()
            # ... the history
            self._plugins[p].update_stats_history()
            # ... and the views
            self._plugins[p].update_views()
275769
def update(self, **kwargs):
        ""
        kw = dict(index=self.name, doc_type=self.doc_type, ignore=[404])
        kw.update(**kwargs)
        return self._client.update(**kw)