Use this API to add gslbsite.
500985
public static base_response add(nitro_service client, gslbsite resource) throws Exception {
		gslbsite addresource = new gslbsite();
		addresource.sitename = resource.sitename;
		addresource.sitetype = resource.sitetype;
		addresource.siteipaddress = resource.siteipaddress;
		addresource.publicip = resource.publicip;
		addresource.metricexchange = resource.metricexchange;
		addresource.nwmetricexchange = resource.nwmetricexchange;
		addresource.sessionexchange = resource.sessionexchange;
		addresource.triggermonitor = resource.triggermonitor;
		addresource.parentsite = resource.parentsite;
		return addresource.add_resource(client);
	}
779160
def add_lambda_integration(self):
        """"""
        lambda_uri = self.generate_uris()['lambda_uri']
        self.client.put_integration(
            restApiId=self.api_id,
            resourceId=self.resource_id,
            httpMethod=self.trigger_settings['method'],
            integrationHttpMethod='POST',
            uri=lambda_uri,
            type='AWS')
        self.add_integration_response()
        self.log.info("Successfully added Lambda intergration to API")
773061
def add_backend(self, backend):
        ""
        if backend in self.get_backends():
            return
        backend_link, created = BackendLink.all_tenants.get_or_create(backend=backend)
        self.backendlink_set.add(backend_link)
517965
public void addGoogRequire(GoogRequire require) {
    GoogRequire oldRequire = googRequires.put(require.symbol(), require);
    if (oldRequire != null) {
      googRequires.put(require.symbol(), require.merge(oldRequire));
    }
  }
1041442
public void addSite(String siteKey) {
		ValueMap gv = new ValueMap(siteKey);
		if (!this.valueMaps.contains(gv)) {
			this.valueMaps.add(gv);
		}
	}
518745
public static base_responses add(nitro_service client, lbmetrictable resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			lbmetrictable addresources[] = new lbmetrictable[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new lbmetrictable();
				addresources[i].metrictable = resources[i].metrictable;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
861928
@Override
    public T addAsWebResource(Asset resource, String target) throws IllegalArgumentException {
        Validate.notNull(resource, "Resource should be specified");
        Validate.notNull(target, "Target should be specified");

        return addAsWebResource(resource, new BasicPath(target));
    }
1107382
public static base_responses add(nitro_service client, gslbservice resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			gslbservice addresources[] = new gslbservice[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new gslbservice();
				addresources[i].servicename = resources[i].servicename;
				addresources[i].cnameentry = resources[i].cnameentry;
				addresources[i].ip = resources[i].ip;
				addresources[i].servername = resources[i].servername;
				addresources[i].servicetype = resources[i].servicetype;
				addresources[i].port = resources[i].port;
				addresources[i].publicip = resources[i].publicip;
				addresources[i].publicport = resources[i].publicport;
				addresources[i].maxclient = resources[i].maxclient;
				addresources[i].healthmonitor = resources[i].healthmonitor;
				addresources[i].sitename = resources[i].sitename;
				addresources[i].state = resources[i].state;
				addresources[i].cip = resources[i].cip;
				addresources[i].cipheader = resources[i].cipheader;
				addresources[i].sitepersistence = resources[i].sitepersistence;
				addresources[i].cookietimeout = resources[i].cookietimeout;
				addresources[i].siteprefix = resources[i].siteprefix;
				addresources[i].clttimeout = resources[i].clttimeout;
				addresources[i].svrtimeout = resources[i].svrtimeout;
				addresources[i].maxbandwidth = resources[i].maxbandwidth;
				addresources[i].downstateflush = resources[i].downstateflush;
				addresources[i].maxaaausers = resources[i].maxaaausers;
				addresources[i].monthreshold = resources[i].monthreshold;
				addresources[i].hashid = resources[i].hashid;
				addresources[i].comment = resources[i].comment;
				addresources[i].appflowlog = resources[i].appflowlog;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
1115794
def add_noFill_bgPr(self):
        """"""
        xml = (
            '<p:bgPr %s>\n'
            '  <a:noFill/>\n'
            '  <a:effectLst/>\n'
            '</p:bgPr>' % nsdecls('a', 'p')
        )
        bgPr = parse_xml(xml)
        self._insert_bgPr(bgPr)
        return bgPr
392061
def vserver_servicegroup_add(v_name, sg_name, **connection_args):
    '''
    
    '''
    ret = True
    if vserver_servicegroup_exists(v_name, sg_name, **connection_args):
        return False
    nitro = _connect(**connection_args)
    if nitro is None:
        return False
    vsg = NSLBVServerServiceGroupBinding()
    vsg.set_name(v_name)
    vsg.set_servicegroupname(sg_name)
    try:
        NSLBVServerServiceGroupBinding.add(nitro, vsg)
    except NSNitroError as error:
        log.debug('netscaler module error - NSLBVServerServiceGroupBinding.add() failed: %s', error)
        ret = False
    _disconnect(nitro)
    return ret
1334330
def add_gau(self,oid,value,label=None):
		""""""
		self.add_oid_entry(oid,'GAUGE',value,label=label)
1019214
@Override
    public T addAsWebResource(Asset resource, ArchivePath target) throws IllegalArgumentException {
        Validate.notNull(resource, "Resource should be specified");
        Validate.notNull(target, "Target should be specified");

        ArchivePath location = new BasicPath(getWebPath(), target);
        return add(resource, location);
    }
337619
public static gslbsite get(nitro_service service, String sitename) throws Exception{
		gslbsite obj = new gslbsite();
		obj.set_sitename(sitename);
		gslbsite response = (gslbsite) obj.get_resource(service);
		return response;
	}
916033
def add_site (site)
      return nil if @sites.map{|s| s[:name]}.include? site
      raise JSS::InvalidDataError, "No site in the JSS named #{site}" unless JSS::Site.all_names(api: @api).include? site
      @sites << {:name => site}
      @need_to_update = true
    end
516061
def addSource(self, sourceUri, weight):
        
        assert isinstance(weight, (float, int)), "weight value has to be a positive or negative integer"
        self.topicPage["sources"].append({"uri": sourceUri, "wgt": weight})
1205268
public static base_responses add(nitro_service client, lbvserver resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			lbvserver addresources[] = new lbvserver[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new lbvserver();
				addresources[i].name = resources[i].name;
				addresources[i].servicetype = resources[i].servicetype;
				addresources[i].ipv46 = resources[i].ipv46;
				addresources[i].ippattern = resources[i].ippattern;
				addresources[i].ipmask = resources[i].ipmask;
				addresources[i].port = resources[i].port;
				addresources[i].range = resources[i].range;
				addresources[i].persistencetype = resources[i].persistencetype;
				addresources[i].timeout = resources[i].timeout;
				addresources[i].persistencebackup = resources[i].persistencebackup;
				addresources[i].backuppersistencetimeout = resources[i].backuppersistencetimeout;
				addresources[i].lbmethod = resources[i].lbmethod;
				addresources[i].hashlength = resources[i].hashlength;
				addresources[i].netmask = resources[i].netmask;
				addresources[i].v6netmasklen = resources[i].v6netmasklen;
				addresources[i].cookiename = resources[i].cookiename;
				addresources[i].rule = resources[i].rule;
				addresources[i].listenpolicy = resources[i].listenpolicy;
				addresources[i].listenpriority = resources[i].listenpriority;
				addresources[i].resrule = resources[i].resrule;
				addresources[i].persistmask = resources[i].persistmask;
				addresources[i].v6persistmasklen = resources[i].v6persistmasklen;
				addresources[i].pq = resources[i].pq;
				addresources[i].sc = resources[i].sc;
				addresources[i].rtspnat = resources[i].rtspnat;
				addresources[i].m = resources[i].m;
				addresources[i].tosid = resources[i].tosid;
				addresources[i].datalength = resources[i].datalength;
				addresources[i].dataoffset = resources[i].dataoffset;
				addresources[i].sessionless = resources[i].sessionless;
				addresources[i].state = resources[i].state;
				addresources[i].connfailover = resources[i].connfailover;
				addresources[i].redirurl = resources[i].redirurl;
				addresources[i].cacheable = resources[i].cacheable;
				addresources[i].clttimeout = resources[i].clttimeout;
				addresources[i].somethod = resources[i].somethod;
				addresources[i].sopersistence = resources[i].sopersistence;
				addresources[i].sopersistencetimeout = resources[i].sopersistencetimeout;
				addresources[i].healththreshold = resources[i].healththreshold;
				addresources[i].sothreshold = resources[i].sothreshold;
				addresources[i].sobackupaction = resources[i].sobackupaction;
				addresources[i].redirectportrewrite = resources[i].redirectportrewrite;
				addresources[i].downstateflush = resources[i].downstateflush;
				addresources[i].backupvserver = resources[i].backupvserver;
				addresources[i].disableprimaryondown = resources[i].disableprimaryondown;
				addresources[i].insertvserveripport = resources[i].insertvserveripport;
				addresources[i].vipheader = resources[i].vipheader;
				addresources[i].authenticationhost = resources[i].authenticationhost;
				addresources[i].authentication = resources[i].authentication;
				addresources[i].authn401 = resources[i].authn401;
				addresources[i].authnvsname = resources[i].authnvsname;
				addresources[i].push = resources[i].push;
				addresources[i].pushvserver = resources[i].pushvserver;
				addresources[i].pushlabel = resources[i].pushlabel;
				addresources[i].pushmulticlients = resources[i].pushmulticlients;
				addresources[i].tcpprofilename = resources[i].tcpprofilename;
				addresources[i].httpprofilename = resources[i].httpprofilename;
				addresources[i].dbprofilename = resources[i].dbprofilename;
				addresources[i].comment = resources[i].comment;
				addresources[i].l2conn = resources[i].l2conn;
				addresources[i].mssqlserverversion = resources[i].mssqlserverversion;
				addresources[i].mysqlprotocolversion = resources[i].mysqlprotocolversion;
				addresources[i].mysqlserverversion = resources[i].mysqlserverversion;
				addresources[i].mysqlcharacterset = resources[i].mysqlcharacterset;
				addresources[i].mysqlservercapabilities = resources[i].mysqlservercapabilities;
				addresources[i].appflowlog = resources[i].appflowlog;
				addresources[i].netprofile = resources[i].netprofile;
				addresources[i].icmpvsrresponse = resources[i].icmpvsrresponse;
				addresources[i].newservicerequest = resources[i].newservicerequest;
				addresources[i].newservicerequestunit = resources[i].newservicerequestunit;
				addresources[i].newservicerequestincrementinterval = resources[i].newservicerequestincrementinterval;
				addresources[i].minautoscalemembers = resources[i].minautoscalemembers;
				addresources[i].maxautoscalemembers = resources[i].maxautoscalemembers;
				addresources[i].persistavpno = resources[i].persistavpno;
				addresources[i].skippersistency = resources[i].skippersistency;
				addresources[i].td = resources[i].td;
				addresources[i].authnprofile = resources[i].authnprofile;
				addresources[i].macmoderetainvlan = resources[i].macmoderetainvlan;
				addresources[i].dbslb = resources[i].dbslb;
				addresources[i].dns64 = resources[i].dns64;
				addresources[i].bypassaaaa = resources[i].bypassaaaa;
				addresources[i].recursionavailable = resources[i].recursionavailable;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
166093
public static base_response add(nitro_service client, server resource) throws Exception {
		server addresource = new server();
		addresource.name = resource.name;
		addresource.ipaddress = resource.ipaddress;
		addresource.domain = resource.domain;
		addresource.translationip = resource.translationip;
		addresource.translationmask = resource.translationmask;
		addresource.domainresolveretry = resource.domainresolveretry;
		addresource.state = resource.state;
		addresource.ipv6address = resource.ipv6address;
		addresource.comment = resource.comment;
		addresource.td = resource.td;
		return addresource.add_resource(client);
	}