Use this API to update gslbservice.
341071
public static base_response update(nitro_service client, gslbservice resource) throws Exception {
		gslbservice updateresource = new gslbservice();
		updateresource.servicename = resource.servicename;
		updateresource.ipaddress = resource.ipaddress;
		updateresource.publicip = resource.publicip;
		updateresource.publicport = resource.publicport;
		updateresource.cip = resource.cip;
		updateresource.cipheader = resource.cipheader;
		updateresource.sitepersistence = resource.sitepersistence;
		updateresource.siteprefix = resource.siteprefix;
		updateresource.maxclient = resource.maxclient;
		updateresource.healthmonitor = resource.healthmonitor;
		updateresource.maxbandwidth = resource.maxbandwidth;
		updateresource.downstateflush = resource.downstateflush;
		updateresource.maxaaausers = resource.maxaaausers;
		updateresource.viewname = resource.viewname;
		updateresource.viewip = resource.viewip;
		updateresource.monthreshold = resource.monthreshold;
		updateresource.weight = resource.weight;
		updateresource.monitor_name_svc = resource.monitor_name_svc;
		updateresource.hashid = resource.hashid;
		updateresource.comment = resource.comment;
		updateresource.appflowlog = resource.appflowlog;
		return updateresource.update_resource(client);
	}
157404
private void updateServiceCache(String serviceName, ConcurrentHashMap<String, List<URL>> serviceUrls, boolean needNotify) {
        if (serviceUrls != null && !serviceUrls.isEmpty()) {
            List<URL> urls = serviceCache.get(serviceName);
            if (urls == null) {
                if(logger.isDebugEnabled()) {
                    try {
                        logger.debug("serviceUrls = " + Config.getInstance().getMapper().writeValueAsString(serviceUrls));
                    } catch(Exception e) {
                    }
                }
                serviceCache.put(serviceName, serviceUrls.get(serviceName));
            }
            for (Map.Entry<String, List<URL>> entry : serviceUrls.entrySet()) {
                boolean change = true;
                if (urls != null) {
                    List<URL> newUrls = entry.getValue();
                    if (newUrls == null || newUrls.isEmpty() || ConsulUtils.isSame(newUrls, urls)) {
                        change = false;
                    } else {
                        serviceCache.put(serviceName, newUrls);
                    }
                }
                if (change && needNotify) {
                    notifyExecutor.execute(new NotifyService(entry.getKey(), entry.getValue()));
                    logger.info("light service notify-service: " + entry.getKey());
                    StringBuilder sb = new StringBuilder();
                    for (URL url : entry.getValue()) {
                        sb.append(url.getUri()).append(";");
                    }
                    logger.info("consul notify urls:" + sb.toString());
                }
            }
        }
    }
619715
public static base_response add(nitro_service client, gslbservice resource) throws Exception {
		gslbservice addresource = new gslbservice();
		addresource.servicename = resource.servicename;
		addresource.cnameentry = resource.cnameentry;
		addresource.ip = resource.ip;
		addresource.servername = resource.servername;
		addresource.servicetype = resource.servicetype;
		addresource.port = resource.port;
		addresource.publicip = resource.publicip;
		addresource.publicport = resource.publicport;
		addresource.maxclient = resource.maxclient;
		addresource.healthmonitor = resource.healthmonitor;
		addresource.sitename = resource.sitename;
		addresource.state = resource.state;
		addresource.cip = resource.cip;
		addresource.cipheader = resource.cipheader;
		addresource.sitepersistence = resource.sitepersistence;
		addresource.cookietimeout = resource.cookietimeout;
		addresource.siteprefix = resource.siteprefix;
		addresource.clttimeout = resource.clttimeout;
		addresource.svrtimeout = resource.svrtimeout;
		addresource.maxbandwidth = resource.maxbandwidth;
		addresource.downstateflush = resource.downstateflush;
		addresource.maxaaausers = resource.maxaaausers;
		addresource.monthreshold = resource.monthreshold;
		addresource.hashid = resource.hashid;
		addresource.comment = resource.comment;
		addresource.appflowlog = resource.appflowlog;
		return addresource.add_resource(client);
	}
1228879
public static base_response update(nitro_service client, sslfips resource) throws Exception {
		sslfips updateresource = new sslfips();
		updateresource.inithsm = resource.inithsm;
		updateresource.sopassword = resource.sopassword;
		updateresource.oldsopassword = resource.oldsopassword;
		updateresource.userpassword = resource.userpassword;
		updateresource.hsmlabel = resource.hsmlabel;
		return updateresource.update_resource(client);
	}
535940
def update(self, *args, **kwargs):
        """"""
        for system in self.systems:
            system.update(self, *args, **kwargs)
814639
public static base_response update(nitro_service client, lbparameter resource) throws Exception {
		lbparameter updateresource = new lbparameter();
		updateresource.httponlycookieflag = resource.httponlycookieflag;
		updateresource.consolidatedlconn = resource.consolidatedlconn;
		updateresource.useportforhashlb = resource.useportforhashlb;
		updateresource.preferdirectroute = resource.preferdirectroute;
		updateresource.startuprrfactor = resource.startuprrfactor;
		updateresource.monitorskipmaxclient = resource.monitorskipmaxclient;
		updateresource.monitorconnectionclose = resource.monitorconnectionclose;
		updateresource.vserverspecificmac = resource.vserverspecificmac;
		return updateresource.update_resource(client);
	}
764164
def do_upgrade():
    """"""
    op.alter_column(
        table_name='knwKBRVAL',
        column_name='id_knwKB',
        type_=db.MediumInteger(8, unsigned=True),
        existing_nullable=False,
        existing_server_default='0'
    )
1257226
def update_service_profile(self, service_profile, body):
        """"""
        return self.put(self.service_profile_path % (service_profile),
                        body=body)
805135
def update(self, data, key):
        """"""
        og_data = self.read()
        og_data[key] = data
        self.write(og_data)
725927
public static base_response rename(nitro_service client, gslbservice resource, String new_servicename) throws Exception {
		gslbservice renameresource = new gslbservice();
		renameresource.servicename = resource.servicename;
		return renameresource.rename_resource(client,new_servicename);
	}
684822
public static gslbservice_binding get(nitro_service service, String servicename) throws Exception{
		gslbservice_binding obj = new gslbservice_binding();
		obj.set_servicename(servicename);
		gslbservice_binding response = (gslbservice_binding) obj.get_resource(service);
		return response;
	}
1197712
private void updateSecurityReadyState() {
        if (!activated) {
            return;
        }

        String unavailableServices = getUnavailableServices();
        if (unavailableServices == null) {
            Tr.info(tc, "SECURITY_SERVICE_READY");
            securityReady = true;

            Dictionary<String, Object> props = new Hashtable<String, Object>();
            props.put("service.vendor", "IBM");
            reg = cc.getBundleContext().registerService(SecurityReadyService.class, this, props);
        } else {
            if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
                Tr.event(tc, "The following required security services are not available: " + unavailableServices);
            }
            securityReady = false;
            if (reg != null) {
                reg.unregister();
                reg = null;
            }
        }
    }
269922
async def update_state(self, msg, _context):
        """"""

        name = msg.get('name')
        status = msg.get('new_status')

        await self.service_manager.update_state(name, status)
754130
public static base_responses update(nitro_service client, lbvserver resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			lbvserver updateresources[] = new lbvserver[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new lbvserver();
				updateresources[i].name = resources[i].name;
				updateresources[i].ipv46 = resources[i].ipv46;
				updateresources[i].ippattern = resources[i].ippattern;
				updateresources[i].ipmask = resources[i].ipmask;
				updateresources[i].weight = resources[i].weight;
				updateresources[i].servicename = resources[i].servicename;
				updateresources[i].persistencetype = resources[i].persistencetype;
				updateresources[i].timeout = resources[i].timeout;
				updateresources[i].persistencebackup = resources[i].persistencebackup;
				updateresources[i].backuppersistencetimeout = resources[i].backuppersistencetimeout;
				updateresources[i].lbmethod = resources[i].lbmethod;
				updateresources[i].hashlength = resources[i].hashlength;
				updateresources[i].netmask = resources[i].netmask;
				updateresources[i].v6netmasklen = resources[i].v6netmasklen;
				updateresources[i].rule = resources[i].rule;
				updateresources[i].cookiename = resources[i].cookiename;
				updateresources[i].resrule = resources[i].resrule;
				updateresources[i].persistmask = resources[i].persistmask;
				updateresources[i].v6persistmasklen = resources[i].v6persistmasklen;
				updateresources[i].pq = resources[i].pq;
				updateresources[i].sc = resources[i].sc;
				updateresources[i].rtspnat = resources[i].rtspnat;
				updateresources[i].m = resources[i].m;
				updateresources[i].tosid = resources[i].tosid;
				updateresources[i].datalength = resources[i].datalength;
				updateresources[i].dataoffset = resources[i].dataoffset;
				updateresources[i].sessionless = resources[i].sessionless;
				updateresources[i].connfailover = resources[i].connfailover;
				updateresources[i].backupvserver = resources[i].backupvserver;
				updateresources[i].redirurl = resources[i].redirurl;
				updateresources[i].cacheable = resources[i].cacheable;
				updateresources[i].clttimeout = resources[i].clttimeout;
				updateresources[i].somethod = resources[i].somethod;
				updateresources[i].sothreshold = resources[i].sothreshold;
				updateresources[i].sopersistence = resources[i].sopersistence;
				updateresources[i].sopersistencetimeout = resources[i].sopersistencetimeout;
				updateresources[i].healththreshold = resources[i].healththreshold;
				updateresources[i].sobackupaction = resources[i].sobackupaction;
				updateresources[i].redirectportrewrite = resources[i].redirectportrewrite;
				updateresources[i].downstateflush = resources[i].downstateflush;
				updateresources[i].insertvserveripport = resources[i].insertvserveripport;
				updateresources[i].vipheader = resources[i].vipheader;
				updateresources[i].disableprimaryondown = resources[i].disableprimaryondown;
				updateresources[i].authenticationhost = resources[i].authenticationhost;
				updateresources[i].authentication = resources[i].authentication;
				updateresources[i].authn401 = resources[i].authn401;
				updateresources[i].authnvsname = resources[i].authnvsname;
				updateresources[i].push = resources[i].push;
				updateresources[i].pushvserver = resources[i].pushvserver;
				updateresources[i].pushlabel = resources[i].pushlabel;
				updateresources[i].pushmulticlients = resources[i].pushmulticlients;
				updateresources[i].listenpolicy = resources[i].listenpolicy;
				updateresources[i].listenpriority = resources[i].listenpriority;
				updateresources[i].tcpprofilename = resources[i].tcpprofilename;
				updateresources[i].httpprofilename = resources[i].httpprofilename;
				updateresources[i].dbprofilename = resources[i].dbprofilename;
				updateresources[i].comment = resources[i].comment;
				updateresources[i].l2conn = resources[i].l2conn;
				updateresources[i].mssqlserverversion = resources[i].mssqlserverversion;
				updateresources[i].mysqlprotocolversion = resources[i].mysqlprotocolversion;
				updateresources[i].mysqlserverversion = resources[i].mysqlserverversion;
				updateresources[i].mysqlcharacterset = resources[i].mysqlcharacterset;
				updateresources[i].mysqlservercapabilities = resources[i].mysqlservercapabilities;
				updateresources[i].appflowlog = resources[i].appflowlog;
				updateresources[i].netprofile = resources[i].netprofile;
				updateresources[i].icmpvsrresponse = resources[i].icmpvsrresponse;
				updateresources[i].newservicerequest = resources[i].newservicerequest;
				updateresources[i].newservicerequestunit = resources[i].newservicerequestunit;
				updateresources[i].newservicerequestincrementinterval = resources[i].newservicerequestincrementinterval;
				updateresources[i].minautoscalemembers = resources[i].minautoscalemembers;
				updateresources[i].maxautoscalemembers = resources[i].maxautoscalemembers;
				updateresources[i].persistavpno = resources[i].persistavpno;
				updateresources[i].skippersistency = resources[i].skippersistency;
				updateresources[i].authnprofile = resources[i].authnprofile;
				updateresources[i].macmoderetainvlan = resources[i].macmoderetainvlan;
				updateresources[i].dbslb = resources[i].dbslb;
				updateresources[i].dns64 = resources[i].dns64;
				updateresources[i].bypassaaaa = resources[i].bypassaaaa;
				updateresources[i].recursionavailable = resources[i].recursionavailable;
			}
			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
389867
def update(self):
        """"""
        vehicle = self.api.vehicles(vid=self.vid)['vehicle']
        newbus = self.fromapi(self.api, vehicle)
        self.__dict__ = newbus.__dict__
        del newbus
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')