Use this method to perform a modify operation on multiple MPS resources.
@param service nitro_service object.
@return status of the operation performed.
@throws Exception
332532
protected static base_resource[] update_bulk_request(nitro_service service,base_resource resources[]) throws Exception
	{
		if (!service.isLogin())
			service.login();
		
		String objtype = resources[0].get_object_type();

		String onerror = service.get_onerror();
		//String id = service.get_sessionid();
		String request = service.get_payload_formatter().resource_to_string(resources, null, onerror);
		String result = put_bulk_data(service,request,objtype);
		if(resources.length == 1)
			return resources[0].get_nitro_response(service, result);
		
		return resources[0].get_nitro_bulk_response(service, result);
	}
15911
public static nsmode get(nitro_service service) throws Exception{
		nsmode obj = new nsmode();
		nsmode[] response = (nsmode[])obj.get_resources(service);
		return response[0];
	}
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];
	}
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];
	}
90684
public static service_stats get(nitro_service service, String name) throws Exception{
		service_stats obj = new service_stats();
		obj.set_name(name);
		service_stats response = (service_stats) obj.stat_resource(service);
		return response;
	}
1271975
public static snmp_user update(nitro_service client, snmp_user resource) throws Exception
	{
		resource.validate("modify");
		return ((snmp_user[]) resource.update_resource(client))[0];
	}
1176723
public static nsip[] get(nitro_service service) throws Exception{
		nsip obj = new nsip();
		nsip[] response = (nsip[])obj.get_resources(service);
		return response;
	}
401809
public static base_response disable(nitro_service client, service resource) throws Exception {
		service disableresource = new service();
		disableresource.name = resource.name;
		disableresource.delay = resource.delay;
		disableresource.graceful = resource.graceful;
		return disableresource.perform_operation(client,"disable");
	}
933242
public static mps_upgrade[] upgrade(nitro_service client, mps_upgrade[] resources) throws Exception
	{
		if(resources == null)
			throw new Exception("Null resource array");
		
		
		if(resources.length == 1)
			return ((mps_upgrade[]) resources[0].perform_operation(client, "upgrade"));
		
		return ((mps_upgrade[]) perform_operation_bulk_request(client, resources, "upgrade"));
	}
1164714
public static base_response update(nitro_service client, systemparameter resource) throws Exception {
		systemparameter updateresource = new systemparameter();
		updateresource.rbaonresponse = resource.rbaonresponse;
		updateresource.promptstring = resource.promptstring;
		updateresource.natpcbforceflushlimit = resource.natpcbforceflushlimit;
		updateresource.natpcbrstontimeout = resource.natpcbrstontimeout;
		updateresource.timeout = resource.timeout;
		return updateresource.update_resource(client);
	}
702981
public static systemcounters get(nitro_service service) throws Exception{
		systemcounters obj = new systemcounters();
		systemcounters[] response = (systemcounters[])obj.get_resources(service);
		return response[0];
	}
272919
public static base_response update(nitro_service client, snmpoption resource) throws Exception {
		snmpoption updateresource = new snmpoption();
		updateresource.snmpset = resource.snmpset;
		updateresource.snmptraplogging = resource.snmptraplogging;
		return updateresource.update_resource(client);
	}
732222
public static snmpalarm[] get(nitro_service service) throws Exception{
		snmpalarm obj = new snmpalarm();
		snmpalarm[] response = (snmpalarm[])obj.get_resources(service);
		return response;
	}
696807
public static long count(nitro_service service, String name) throws Exception{
		netbridge_nsip6_binding obj = new netbridge_nsip6_binding();
		obj.set_name(name);
		options option = new options();
		option.set_count(true);
		netbridge_nsip6_binding response[] = (netbridge_nsip6_binding[]) obj.get_resources(service,option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
342411
public static base_response clear(nitro_service client) throws Exception {
		nspbrs clearresource = new nspbrs();
		return clearresource.perform_operation(client,"clear");
	}
653234
public static base_responses enable(nitro_service client, nspbr resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nspbr enableresources[] = new nspbr[resources.length];
			for (int i=0;i<resources.length;i++){
				enableresources[i] = new nspbr();
				enableresources[i].name = resources[i].name;
			}
			result = perform_operation_bulk_request(client, enableresources,"enable");
		}
		return result;
	}
493543
public static base_response clear(nitro_service client) throws Exception {
		nspbr6 clearresource = new nspbr6();
		return clearresource.perform_operation(client,"clear");
	}