Use this API to update scpolicy resources.
338341
public static base_responses update(nitro_service client, scpolicy resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			scpolicy updateresources[] = new scpolicy[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new scpolicy();
				updateresources[i].name = resources[i].name;
				updateresources[i].url = resources[i].url;
				updateresources[i].rule = resources[i].rule;
				updateresources[i].delay = resources[i].delay;
				updateresources[i].maxconn = resources[i].maxconn;
				updateresources[i].action = resources[i].action;
				updateresources[i].altcontentsvcname = resources[i].altcontentsvcname;
				updateresources[i].altcontentpath = resources[i].altcontentpath;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
1114581
public static base_responses update(nitro_service client, ntpserver resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			ntpserver updateresources[] = new ntpserver[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new ntpserver();
				updateresources[i].serverip = resources[i].serverip;
				updateresources[i].servername = resources[i].servername;
				updateresources[i].minpoll = resources[i].minpoll;
				updateresources[i].maxpoll = resources[i].maxpoll;
				updateresources[i].preferredntpserver = resources[i].preferredntpserver;
				updateresources[i].autokey = resources[i].autokey;
				updateresources[i].key = resources[i].key;
			}
			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];
	}
1321953
public static base_responses update(nitro_service client, autoscaleprofile resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			autoscaleprofile updateresources[] = new autoscaleprofile[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new autoscaleprofile();
				updateresources[i].name = resources[i].name;
				updateresources[i].url = resources[i].url;
				updateresources[i].apikey = resources[i].apikey;
				updateresources[i].sharedsecret = resources[i].sharedsecret;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
810548
def update(self, resource, resource_id, data):
        '''
        
        '''
        service_def, resource_def, path = self._get_service_information(
            resource)

        update_path = "{0}{1}/" . format(path, resource_id)
        return self.call(path=update_path, data=data, method='patch')
312104
def _update(self, resource, update_dict=None, params=None, **kwargs):
        """"""
        url = self._client._build_url(resource, **kwargs)
        response = self._client._request('PUT', url, json=update_dict, params=params)

        if response.status_code != requests.codes.ok:  # pragma: no cover
            raise APIError("Could not update {} ({})".format(self.__class__.__name__, response.json().get('results')))
        else:
            self.refresh()
552771
public static base_responses update(nitro_service client, sslcertkey resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			sslcertkey updateresources[] = new sslcertkey[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new sslcertkey();
				updateresources[i].certkey = resources[i].certkey;
				updateresources[i].expirymonitor = resources[i].expirymonitor;
				updateresources[i].notificationperiod = resources[i].notificationperiod;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
604010
def update(self, *args, **kwargs):
        
        if request.method == 'PUT':
            logging.warning("Called not implemented resource method PUT")

        resource = super(JsonServerResource, self).update(*args, **kwargs)

        if resource:
            return resource
        else:
            return NOT_FOUND
456728
protected void updateApiVersionResource(Object resource) {
    if (resource instanceof HasMetadata) {
      HasMetadata hasMetadata = (HasMetadata) resource;
      updateApiVersion(hasMetadata);
    } else if (resource instanceof KubernetesResourceList) {
      KubernetesResourceList list = (KubernetesResourceList) resource;
      updateApiVersion(list);
    }
  }
1186309
public void setS3ResourcesUpdate(java.util.Collection<S3ResourceClassificationUpdate> s3ResourcesUpdate) {
        if (s3ResourcesUpdate == null) {
            this.s3ResourcesUpdate = null;
            return;
        }

        this.s3ResourcesUpdate = new java.util.ArrayList<S3ResourceClassificationUpdate>(s3ResourcesUpdate);
    }
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);
	}
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);
	}
142523
public static base_responses update(nitro_service client, nsip resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsip updateresources[] = new nsip[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new nsip();
				updateresources[i].ipaddress = resources[i].ipaddress;
				updateresources[i].td = resources[i].td;
				updateresources[i].netmask = resources[i].netmask;
				updateresources[i].arp = resources[i].arp;
				updateresources[i].icmp = resources[i].icmp;
				updateresources[i].vserver = resources[i].vserver;
				updateresources[i].telnet = resources[i].telnet;
				updateresources[i].ftp = resources[i].ftp;
				updateresources[i].gui = resources[i].gui;
				updateresources[i].ssh = resources[i].ssh;
				updateresources[i].snmp = resources[i].snmp;
				updateresources[i].mgmtaccess = resources[i].mgmtaccess;
				updateresources[i].restrictaccess = resources[i].restrictaccess;
				updateresources[i].dynamicrouting = resources[i].dynamicrouting;
				updateresources[i].ospf = resources[i].ospf;
				updateresources[i].bgp = resources[i].bgp;
				updateresources[i].rip = resources[i].rip;
				updateresources[i].hostroute = resources[i].hostroute;
				updateresources[i].hostrtgw = resources[i].hostrtgw;
				updateresources[i].metric = resources[i].metric;
				updateresources[i].vserverrhilevel = resources[i].vserverrhilevel;
				updateresources[i].ospflsatype = resources[i].ospflsatype;
				updateresources[i].ospfarea = resources[i].ospfarea;
				updateresources[i].vrid = resources[i].vrid;
				updateresources[i].icmpresponse = resources[i].icmpresponse;
				updateresources[i].arpresponse = resources[i].arpresponse;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
1046664
def update_resource(self, resource, underlined=None):
        """"""
        try:
            pymodule = self.project.get_pymodule(resource)
            modname = self._module_name(resource)
            self._add_names(pymodule, modname, underlined)
        except exceptions.ModuleSyntaxError:
            pass
161182
public static base_response add(nitro_service client, scpolicy resource) throws Exception {
		scpolicy addresource = new scpolicy();
		addresource.name = resource.name;
		addresource.url = resource.url;
		addresource.rule = resource.rule;
		addresource.delay = resource.delay;
		addresource.maxconn = resource.maxconn;
		addresource.action = resource.action;
		addresource.altcontentsvcname = resource.altcontentsvcname;
		addresource.altcontentpath = resource.altcontentpath;
		return addresource.add_resource(client);
	}
986633
public static ns update(nitro_service client, ns resource) throws Exception
	{
		resource.validate("modify");
		return ((ns[]) resource.update_resource(client))[0];
	}
656974
def resource_collections_update(self, data, **kwargs):
        ""
        api_path = "/api/v2/resource_collections.json"
        return self.call(api_path, method="PUT", data=data, **kwargs)