Use this API to add lbwlm.
16581
public static base_response add(nitro_service client, lbwlm resource) throws Exception {
		lbwlm addresource = new lbwlm();
		addresource.wlmname = resource.wlmname;
		addresource.ipaddress = resource.ipaddress;
		addresource.port = resource.port;
		addresource.lbuid = resource.lbuid;
		addresource.katimeout = resource.katimeout;
		return addresource.add_resource(client);
	}
755397
def attach_lb(kwargs=None, call=None):
    '''
    
    '''
    if call != 'function':
        raise SaltCloudSystemExit(
            'The attach_lb function must be called with -f or --function.'
        )

    if not kwargs or 'name' not in kwargs:
        log.error(
            'A load-balancer name must be specified.'
        )
        return False
    if 'member' not in kwargs:
        log.error(
            'A node name name must be specified.'
        )
        return False

    conn = get_conn()
    node = conn.ex_get_node(kwargs['member'])

    lb_conn = get_lb_conn(conn)
    lb = lb_conn.get_balancer(kwargs['name'])

    __utils__['cloud.fire_event'](
        'event',
        'attach load_balancer',
        'salt/cloud/loadbalancer/attaching',
        args=kwargs,
        sock_dir=__opts__['sock_dir'],
        transport=__opts__['transport']
    )

    result = lb_conn.balancer_attach_compute_node(lb, node)

    __utils__['cloud.fire_event'](
        'event',
        'attached load_balancer',
        'salt/cloud/loadbalancer/attached',
        args=kwargs,
        sock_dir=__opts__['sock_dir'],
        transport=__opts__['transport']
    )
    return _expand_item(result)
906780
private void addTrunkLayer() {
    LineLayer trunk = TrafficLayer.getLineLayer(
      Trunk.BASE_LAYER_ID,
      Trunk.ZOOM_LEVEL,
      Trunk.FILTER,
      Trunk.FUNCTION_LINE_COLOR,
      Trunk.FUNCTION_LINE_WIDTH,
      Trunk.FUNCTION_LINE_OFFSET
    );

    LineLayer trunkCase = TrafficLayer.getLineLayer(
      Trunk.CASE_LAYER_ID,
      Trunk.ZOOM_LEVEL,
      Trunk.FILTER,
      Trunk.FUNCTION_LINE_COLOR_CASE,
      Trunk.FUNCTION_LINE_WIDTH_CASE,
      Trunk.FUNCTION_LINE_OFFSET
    );

    addTrafficLayersToMap(trunkCase, trunk, getLastAddedLayerId());
  }
1311697
public static base_response add(nitro_service client, lbmonitor resource) throws Exception {
		lbmonitor addresource = new lbmonitor();
		addresource.monitorname = resource.monitorname;
		addresource.type = resource.type;
		addresource.action = resource.action;
		addresource.respcode = resource.respcode;
		addresource.httprequest = resource.httprequest;
		addresource.rtsprequest = resource.rtsprequest;
		addresource.customheaders = resource.customheaders;
		addresource.maxforwards = resource.maxforwards;
		addresource.sipmethod = resource.sipmethod;
		addresource.sipuri = resource.sipuri;
		addresource.sipreguri = resource.sipreguri;
		addresource.send = resource.send;
		addresource.recv = resource.recv;
		addresource.query = resource.query;
		addresource.querytype = resource.querytype;
		addresource.scriptname = resource.scriptname;
		addresource.scriptargs = resource.scriptargs;
		addresource.dispatcherip = resource.dispatcherip;
		addresource.dispatcherport = resource.dispatcherport;
		addresource.username = resource.username;
		addresource.password = resource.password;
		addresource.secondarypassword = resource.secondarypassword;
		addresource.logonpointname = resource.logonpointname;
		addresource.lasversion = resource.lasversion;
		addresource.radkey = resource.radkey;
		addresource.radnasid = resource.radnasid;
		addresource.radnasip = resource.radnasip;
		addresource.radaccounttype = resource.radaccounttype;
		addresource.radframedip = resource.radframedip;
		addresource.radapn = resource.radapn;
		addresource.radmsisdn = resource.radmsisdn;
		addresource.radaccountsession = resource.radaccountsession;
		addresource.lrtm = resource.lrtm;
		addresource.deviation = resource.deviation;
		addresource.units1 = resource.units1;
		addresource.interval = resource.interval;
		addresource.units3 = resource.units3;
		addresource.resptimeout = resource.resptimeout;
		addresource.units4 = resource.units4;
		addresource.resptimeoutthresh = resource.resptimeoutthresh;
		addresource.retries = resource.retries;
		addresource.failureretries = resource.failureretries;
		addresource.alertretries = resource.alertretries;
		addresource.successretries = resource.successretries;
		addresource.downtime = resource.downtime;
		addresource.units2 = resource.units2;
		addresource.destip = resource.destip;
		addresource.destport = resource.destport;
		addresource.state = resource.state;
		addresource.reverse = resource.reverse;
		addresource.transparent = resource.transparent;
		addresource.iptunnel = resource.iptunnel;
		addresource.tos = resource.tos;
		addresource.tosid = resource.tosid;
		addresource.secure = resource.secure;
		addresource.validatecred = resource.validatecred;
		addresource.domain = resource.domain;
		addresource.ipaddress = resource.ipaddress;
		addresource.group = resource.group;
		addresource.filename = resource.filename;
		addresource.basedn = resource.basedn;
		addresource.binddn = resource.binddn;
		addresource.filter = resource.filter;
		addresource.attribute = resource.attribute;
		addresource.database = resource.database;
		addresource.sqlquery = resource.sqlquery;
		addresource.evalrule = resource.evalrule;
		addresource.mssqlprotocolversion = resource.mssqlprotocolversion;
		addresource.Snmpoid = resource.Snmpoid;
		addresource.snmpcommunity = resource.snmpcommunity;
		addresource.snmpthreshold = resource.snmpthreshold;
		addresource.snmpversion = resource.snmpversion;
		addresource.metrictable = resource.metrictable;
		addresource.application = resource.application;
		addresource.sitepath = resource.sitepath;
		addresource.storename = resource.storename;
		addresource.storefrontacctservice = resource.storefrontacctservice;
		addresource.hostname = resource.hostname;
		addresource.netprofile = resource.netprofile;
		addresource.originhost = resource.originhost;
		addresource.originrealm = resource.originrealm;
		addresource.hostipaddress = resource.hostipaddress;
		addresource.vendorid = resource.vendorid;
		addresource.productname = resource.productname;
		addresource.firmwarerevision = resource.firmwarerevision;
		addresource.authapplicationid = resource.authapplicationid;
		addresource.acctapplicationid = resource.acctapplicationid;
		addresource.inbandsecurityid = resource.inbandsecurityid;
		addresource.supportedvendorids = resource.supportedvendorids;
		addresource.vendorspecificvendorid = resource.vendorspecificvendorid;
		addresource.vendorspecificauthapplicationids = resource.vendorspecificauthapplicationids;
		addresource.vendorspecificacctapplicationids = resource.vendorspecificacctapplicationids;
		addresource.kcdaccount = resource.kcdaccount;
		addresource.storedb = resource.storedb;
		return addresource.add_resource(client);
	}
243430
public void addTTL(int ttlValue, String ttlUnit, String ttlColumn, int batchSize,
            int maxFrequency, String streamName) {
        dropTTL();
        timeToLive = new TimeToLiveVoltDB(ttlValue, ttlUnit, getColumn(findColumn(ttlColumn)),
                batchSize, maxFrequency, streamName);
    }
613868
public static base_response add(nitro_service client, lbroute resource) throws Exception {
		lbroute addresource = new lbroute();
		addresource.network = resource.network;
		addresource.netmask = resource.netmask;
		addresource.gatewayname = resource.gatewayname;
		return addresource.add_resource(client);
	}
37332
public static lbwlm_lbvserver_binding[] get_filtered(nitro_service service, String wlmname, filtervalue[] filter) throws Exception{
		lbwlm_lbvserver_binding obj = new lbwlm_lbvserver_binding();
		obj.set_wlmname(wlmname);
		options option = new options();
		option.set_filter(filter);
		lbwlm_lbvserver_binding[] response = (lbwlm_lbvserver_binding[]) obj.getfiltered(service, option);
		return response;
	}
914825
def register_plugin(self):
        """"""
        self.main.restore_scrollbar_position.connect(
                                               self.restore_scrollbar_position)
        self.main.add_dockwidget(self)
109220
def add_listener(self, listener, message_type, data=None, one_shot=False):
        """"""
        lst = self._one_shots if one_shot else self._listeners

        if message_type not in lst:
            lst[message_type] = []

        lst[message_type].append(Listener(listener, data))
932465
private void addWindowManager(WindowManager wm) {
        if (subManagers == null) {
            subManagers = new ArrayList();
        }
        if (!subManagers.contains(wm)) {
            subManagers.add(wm);
            wm.parentManager = this;
        }
    }
1297748
def vlm_add_input(self, psz_name, psz_input):
        '''
        '''
        return libvlc_vlm_add_input(self, str_to_bytes(psz_name), str_to_bytes(psz_input))
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);
	}
1036823
def add_bus(self, bus):
        
        if self._loop is not None and hasattr(bus, 'fileno') and bus.fileno() >= 0:
            # Use file descriptor to watch for messages
            reader = bus.fileno()
            self._loop.add_reader(reader, self._on_message_available, bus)
        else:
            reader = threading.Thread(target=self._rx_thread, args=(bus,),
                name='can.notifier for bus "{}"'.format(bus.channel_info))
            reader.daemon = True
            reader.start()
        self._readers.append(reader)
1108737
public function add()
    {
        $this->dirs = array_merge($this->dirs, func_get_args());
        $this->dirs = array_filter($this->dirs);
        $this->dirs = array_values($this->dirs);
    }
135637
public static base_responses update(nitro_service client, lbwlm resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			lbwlm updateresources[] = new lbwlm[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new lbwlm();
				updateresources[i].wlmname = resources[i].wlmname;
				updateresources[i].katimeout = resources[i].katimeout;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
645066
public static base_response update(nitro_service client, lbgroup resource) throws Exception {
		lbgroup updateresource = new lbgroup();
		updateresource.name = resource.name;
		updateresource.persistencetype = resource.persistencetype;
		updateresource.persistencebackup = resource.persistencebackup;
		updateresource.backuppersistencetimeout = resource.backuppersistencetimeout;
		updateresource.persistmask = resource.persistmask;
		updateresource.cookiename = resource.cookiename;
		updateresource.v6persistmasklen = resource.v6persistmasklen;
		updateresource.cookiedomain = resource.cookiedomain;
		updateresource.timeout = resource.timeout;
		updateresource.rule = resource.rule;
		return updateresource.update_resource(client);
	}
239619
def add(self, text="", default_continuousAdd=True):
		""""""
		if not text and default_continuousAdd:
			self.continuousAdd()
		else:
			pprefix = ""
			for x,y in self.rdflib_graph.namespaces():
				pprefix += "@prefix %s: <%s> . \n" % (x, y)
			# add final . if missing
			if text and (not text.strip().endswith(".")):
				text += " ."
			# smart replacements
			text = text.replace(" sub ", " rdfs:subClassOf ")
			text = text.replace(" class ", " owl:Class ")
			# finally
			self.rdflib_graph.parse(data=pprefix+text, format="turtle")