<pre>
Use this operation to modify SNMP Manager.
</pre>
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];
	}
1260537
def modify(self, service_name, json, **kwargs):
        """"""
        return self._send(requests.put, service_name, json, **kwargs)
1005758
public static snmp_view update(nitro_service client, snmp_view resource) throws Exception
	{
		resource.validate("modify");
		return ((snmp_view[]) resource.update_resource(client))[0];
	}
205245
public static ns_cluster modify_password(nitro_service client, ns_cluster resource) throws Exception
	{
		return ((ns_cluster[]) resource.perform_operation(client, "modify_password"))[0];
	}
865857
public static snmp_user add(nitro_service client, snmp_user resource) throws Exception
	{
		resource.validate("add");
		return ((snmp_user[]) resource.perform_operation(client, "add"))[0];
	}
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];
	}
531698
public void addStructuralNodeModifier(StructuralNodeModifier snm){
		this.snms.add(snm);
		this.fireTableRowsInserted(this.snms.size()-1, this.snms.size()-1);
	}
157568
public static ntp_server update(nitro_service client, ntp_server resource) throws Exception
	{
		resource.validate("modify");
		return ((ntp_server[]) resource.update_resource(client))[0];
	}
1248709
private void changeReplicas(PrimaryTerm term) {
    threadContext.execute(() -> {
      if (this.term == null || term.term() > this.term.term()) {
        this.term = term;
        consumer.register(term.primary().memberId());
      }
    });
  }
1283539
public static smtp_server update(nitro_service client, smtp_server resource) throws Exception
	{
		resource.validate("modify");
		return ((smtp_server[]) resource.update_resource(client))[0];
	}
805128
public static base_responses update(nitro_service client, snmpview resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			snmpview updateresources[] = new snmpview[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new snmpview();
				updateresources[i].name = resources[i].name;
				updateresources[i].subtree = resources[i].subtree;
				updateresources[i].type = resources[i].type;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
137856
public static ns_ssl_certkey_policy update(nitro_service client, ns_ssl_certkey_policy resource) throws Exception
	{
		resource.validate("modify");
		return ((ns_ssl_certkey_policy[]) resource.update_resource(client))[0];
	}
767083
private static void setSnmpInfo(SnmpType snmpType) {
        if (snmpType == null || !snmpType.isEnabled()) {
            return;
        }
        //Validate Snmp Configuration.
        if (snmpType.getTarget() == null || snmpType.getTarget().trim().length() == 0) {
            throw new IllegalArgumentException("Target must be specified for SNMP configuration.");
        }
        if (snmpType.getAuthkey() != null && snmpType.getAuthkey().length() < 8) {
            throw new IllegalArgumentException("SNMP Authkey must be > 8 characters.");
        }
        if (snmpType.getPrivacykey() != null && snmpType.getPrivacykey().length() < 8) {
            throw new IllegalArgumentException("SNMP Privacy Key must be > 8 characters.");
        }
    }
1188503
public static snmpmanager[] get(nitro_service service) throws Exception{
		snmpmanager obj = new snmpmanager();
		snmpmanager[] response = (snmpmanager[])obj.get_resources(service);
		return response;
	}
296050
protected void modify(Transaction t) {
        try {
            this.lock.writeLock().lock();
            t.perform();
        } finally {
            this.lock.writeLock().unlock();
        }
    }
1260733
@Process(actionType = ModifyEndpointConfiguration.class)
    public void modifyEndpointConfiguration(final ModifyEndpointConfiguration action, final Dispatcher.Channel channel) {
        operationDelegate.onSaveResource(ENDPOINT_CONFIGURATION_ADDRESS, null, action.getChangedValues(),
                new CrudOperationDelegate.Callback() {
                    @Override
                    public void onSuccess(final AddressTemplate addressTemplate, final String name) {
                        final ModelNode op = readEndpointConfiguration();
                        dispatcher.execute(new DMRAction(op), new AsyncCallback<DMRResponse>() {
                            @Override
                            public void onFailure(Throwable caught) {
                                channel.nack(caught);
                            }

                            @Override
                            public void onSuccess(DMRResponse dmrResponse) {
                                ModelNode response = dmrResponse.get();
                                if (response.isFailure()) {
                                    channel.nack(new RuntimeException("Failed to read " + addressTemplate + " using " + op + ": " +
                                            response.getFailureDescription()));
                                } else {
                                    endpointConfiguration = response.get(RESULT);
                                    channel.ack();
                                }
                            }
                        });
                    }

                    @Override
                    public void onFailure(AddressTemplate addressTemplate, String name, Throwable t) {
                        channel.nack(t);
                    }
                });
    }
1314724
public static boolean executeModifyOperation(final String currentDn, final ConnectionFactory connectionFactory,
                                                 final Map<String, Set<String>> attributes) {
        try (val modifyConnection = createConnection(connectionFactory)) {
            val operation = new ModifyOperation(modifyConnection);
            val mods = attributes.entrySet()
                .stream()
                .map(entry -> {
                    val values = entry.getValue().toArray(ArrayUtils.EMPTY_STRING_ARRAY);
                    val attr = new LdapAttribute(entry.getKey(), values);
                    return new AttributeModification(AttributeModificationType.REPLACE, attr);
                })
                .toArray(value -> new AttributeModification[attributes.size()]);
            val request = new ModifyRequest(currentDn, mods);
            request.setReferralHandler(new ModifyReferralHandler());
            operation.execute(request);
            return true;
        } catch (final LdapException e) {
            LOGGER.error(e.getMessage(), e);
        }
        return false;
    }