code
stringlengths
73
34.1k
label
stringclasses
1 value
public static aaa_stats get(nitro_service service) throws Exception{ aaa_stats obj = new aaa_stats(); aaa_stats[] response = (aaa_stats[])obj.stat_resources(service); return response[0]; }
java
public static aaagroup_aaauser_binding[] get(nitro_service service, String groupname) throws Exception{ aaagroup_aaauser_binding obj = new aaagroup_aaauser_binding(); obj.set_groupname(groupname); aaagroup_aaauser_binding response[] = (aaagroup_aaauser_binding[]) obj.get_resources(service); return response; }
java
public static lbvserver[] get(nitro_service service) throws Exception{ lbvserver obj = new lbvserver(); lbvserver[] response = (lbvserver[])obj.get_resources(service); return response; }
java
public static lbvserver get(nitro_service service, String name) throws Exception{ lbvserver obj = new lbvserver(); obj.set_name(name); lbvserver response = (lbvserver) obj.get_resource(service); return response; }
java
public static lbvserver[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ lbvserver obj = new lbvserver(); options option = new options(); option.set_filter(filter); lbvserver[] response = (lbvserver[]) obj.getfiltered(service, option); return response; }
java
public static csvserver_cspolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_cspolicy_binding obj = new csvserver_cspolicy_binding(); obj.set_name(name); csvserver_cspolicy_binding response[] = (csvserver_cspolicy_binding[]) obj.get_resources(service); return response; }
java
public static sslservicegroup_sslcertkey_binding[] get(nitro_service service, String servicegroupname) throws Exception{ sslservicegroup_sslcertkey_binding obj = new sslservicegroup_sslcertkey_binding(); obj.set_servicegroupname(servicegroupname); sslservicegroup_sslcertkey_binding response[] = (sslservicegroup_sslcertkey_binding[]) obj.get_resources(service); return response; }
java
public static base_response Import(nitro_service client, application resource) throws Exception { application Importresource = new application(); Importresource.apptemplatefilename = resource.apptemplatefilename; Importresource.appname = resource.appname; Importresource.deploymentfilename = resource.deploymentfilename; return Importresource.perform_operation(client,"Import"); }
java
public static base_response export(nitro_service client, application resource) throws Exception { application exportresource = new application(); exportresource.appname = resource.appname; exportresource.apptemplatefilename = resource.apptemplatefilename; exportresource.deploymentfilename = resource.deploymentfilename; return exportresource.perform_operation(client,"export"); }
java
public static base_response delete(nitro_service client, application resource) throws Exception { application deleteresource = new application(); deleteresource.appname = resource.appname; return deleteresource.delete_resource(client); }
java
public static vpnglobal_binding get(nitro_service service) throws Exception{ vpnglobal_binding obj = new vpnglobal_binding(); vpnglobal_binding response = (vpnglobal_binding) obj.get_resource(service); return response; }
java
public static authenticationtacacspolicy_systemglobal_binding[] get(nitro_service service, String name) throws Exception{ authenticationtacacspolicy_systemglobal_binding obj = new authenticationtacacspolicy_systemglobal_binding(); obj.set_name(name); authenticationtacacspolicy_systemglobal_binding response[] = (authenticationtacacspolicy_systemglobal_binding[]) obj.get_resources(service); return response; }
java
public static base_response update(nitro_service client, cmpparameter resource) throws Exception { cmpparameter updateresource = new cmpparameter(); updateresource.cmplevel = resource.cmplevel; updateresource.quantumsize = resource.quantumsize; updateresource.servercmp = resource.servercmp; updateresource.heurexpiry = resource.heurexpiry; updateresource.heurexpirythres = resource.heurexpirythres; updateresource.heurexpiryhistwt = resource.heurexpiryhistwt; updateresource.minressize = resource.minressize; updateresource.cmpbypasspct = resource.cmpbypasspct; updateresource.cmponpush = resource.cmponpush; updateresource.policytype = resource.policytype; updateresource.addvaryheader = resource.addvaryheader; updateresource.externalcache = resource.externalcache; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, cmpparameter resource, String[] args) throws Exception{ cmpparameter unsetresource = new cmpparameter(); return unsetresource.unset_resource(client,args); }
java
public static cmpparameter get(nitro_service service) throws Exception{ cmpparameter obj = new cmpparameter(); cmpparameter[] response = (cmpparameter[])obj.get_resources(service); return response[0]; }
java
public static cmpglobal_cmppolicy_binding[] get(nitro_service service) throws Exception{ cmpglobal_cmppolicy_binding obj = new cmpglobal_cmppolicy_binding(); cmpglobal_cmppolicy_binding response[] = (cmpglobal_cmppolicy_binding[]) obj.get_resources(service); return response; }
java
public static sslcertkey_crldistribution_binding[] get(nitro_service service, String certkey) throws Exception{ sslcertkey_crldistribution_binding obj = new sslcertkey_crldistribution_binding(); obj.set_certkey(certkey); sslcertkey_crldistribution_binding response[] = (sslcertkey_crldistribution_binding[]) obj.get_resources(service); return response; }
java
public static long count(nitro_service service, String certkey) throws Exception{ sslcertkey_crldistribution_binding obj = new sslcertkey_crldistribution_binding(); obj.set_certkey(certkey); options option = new options(); option.set_count(true); sslcertkey_crldistribution_binding response[] = (sslcertkey_crldistribution_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
java
public static base_response Force(nitro_service client, clustersync resource) throws Exception { clustersync Forceresource = new clustersync(); return Forceresource.perform_operation(client,"Force"); }
java
private List<T> computePagedList(List<T> result, HeaderAndBody httpResponse, JSONObject where, Pipe<T> requestingPipe) { ReadFilter previousRead = null; ReadFilter nextRead = null; if (PageConfig.MetadataLocations.WEB_LINKING.equals(pageConfig.getMetadataLocation())) { String webLinksRaw = ""; final String relHeader = "rel"; final String nextIdentifier = pageConfig.getNextIdentifier(); final String prevIdentifier = pageConfig.getPreviousIdentifier(); try { webLinksRaw = getWebLinkHeader(httpResponse); if (webLinksRaw == null) { // no paging, return result return result; } List<WebLink> webLinksParsed = WebLinkParser.parse(webLinksRaw); for (WebLink link : webLinksParsed) { if (nextIdentifier.equals(link.getParameters().get(relHeader))) { nextRead = new ReadFilter(); nextRead.setLinkUri(new URI(link.getUri())); } else if (prevIdentifier.equals(link.getParameters().get(relHeader))) { previousRead = new ReadFilter(); previousRead.setLinkUri(new URI(link.getUri())); } } } catch (URISyntaxException ex) { Log.e(TAG, webLinksRaw + " did not contain a valid context URI", ex); throw new RuntimeException(ex); } catch (ParseException ex) { Log.e(TAG, webLinksRaw + " could not be parsed as a web link header", ex); throw new RuntimeException(ex); } } else if (pageConfig.getMetadataLocation().equals(PageConfig.MetadataLocations.HEADERS)) { nextRead = pageConfig.getPageParameterExtractor().getNextFilter(httpResponse, RestAdapter.this.pageConfig); previousRead = pageConfig.getPageParameterExtractor().getPreviousFilter(httpResponse, RestAdapter.this.pageConfig); } else if (pageConfig.getMetadataLocation().equals(PageConfig.MetadataLocations.BODY)) { nextRead = pageConfig.getPageParameterExtractor().getNextFilter(httpResponse, RestAdapter.this.pageConfig); previousRead = pageConfig.getPageParameterExtractor().getPreviousFilter(httpResponse, RestAdapter.this.pageConfig); } else { throw new IllegalStateException("Not supported"); } if (nextRead != null) { nextRead.setWhere(where); } if (previousRead != null) { previousRead.setWhere(where); } return new WrappingPagedList<T>(requestingPipe, result, nextRead, previousRead); }
java
public static ipset_nsip6_binding[] get(nitro_service service, String name) throws Exception{ ipset_nsip6_binding obj = new ipset_nsip6_binding(); obj.set_name(name); ipset_nsip6_binding response[] = (ipset_nsip6_binding[]) obj.get_resources(service); return response; }
java
public static nstimer_binding get(nitro_service service, String name) throws Exception{ nstimer_binding obj = new nstimer_binding(); obj.set_name(name); nstimer_binding response = (nstimer_binding) obj.get_resource(service); return response; }
java
public static responderpolicylabel_binding get(nitro_service service, String labelname) throws Exception{ responderpolicylabel_binding obj = new responderpolicylabel_binding(); obj.set_labelname(labelname); responderpolicylabel_binding response = (responderpolicylabel_binding) obj.get_resource(service); return response; }
java
public static filterglobal_filterpolicy_binding[] get(nitro_service service) throws Exception{ filterglobal_filterpolicy_binding obj = new filterglobal_filterpolicy_binding(); filterglobal_filterpolicy_binding response[] = (filterglobal_filterpolicy_binding[]) obj.get_resources(service); return response; }
java
public static streamidentifier_stats get(nitro_service service, String name) throws Exception{ streamidentifier_stats obj = new streamidentifier_stats(); obj.set_name(name); streamidentifier_stats response = (streamidentifier_stats) obj.stat_resource(service); return response; }
java
public static configstatus[] get(nitro_service service) throws Exception{ configstatus obj = new configstatus(); configstatus[] response = (configstatus[])obj.get_resources(service); return response; }
java
public static base_response add(nitro_service client, dnspolicylabel resource) throws Exception { dnspolicylabel addresource = new dnspolicylabel(); addresource.labelname = resource.labelname; addresource.transform = resource.transform; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, dnspolicylabel resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnspolicylabel addresources[] = new dnspolicylabel[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnspolicylabel(); addresources[i].labelname = resources[i].labelname; addresources[i].transform = resources[i].transform; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, String labelname) throws Exception { dnspolicylabel deleteresource = new dnspolicylabel(); deleteresource.labelname = labelname; return deleteresource.delete_resource(client); }
java
public static dnspolicylabel[] get(nitro_service service) throws Exception{ dnspolicylabel obj = new dnspolicylabel(); dnspolicylabel[] response = (dnspolicylabel[])obj.get_resources(service); return response; }
java
public static dnspolicylabel get(nitro_service service, String labelname) throws Exception{ dnspolicylabel obj = new dnspolicylabel(); obj.set_labelname(labelname); dnspolicylabel response = (dnspolicylabel) obj.get_resource(service); return response; }
java
public static auditsyslogpolicy_systemglobal_binding[] get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_systemglobal_binding obj = new auditsyslogpolicy_systemglobal_binding(); obj.set_name(name); auditsyslogpolicy_systemglobal_binding response[] = (auditsyslogpolicy_systemglobal_binding[]) obj.get_resources(service); return response; }
java
public static base_response add(nitro_service client, sslcertkey resource) throws Exception { sslcertkey addresource = new sslcertkey(); addresource.certkey = resource.certkey; addresource.cert = resource.cert; addresource.key = resource.key; addresource.password = resource.password; addresource.fipskey = resource.fipskey; addresource.inform = resource.inform; addresource.passplain = resource.passplain; addresource.expirymonitor = resource.expirymonitor; addresource.notificationperiod = resource.notificationperiod; addresource.bundle = resource.bundle; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, sslcertkey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslcertkey addresources[] = new sslcertkey[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new sslcertkey(); addresources[i].certkey = resources[i].certkey; addresources[i].cert = resources[i].cert; addresources[i].key = resources[i].key; addresources[i].password = resources[i].password; addresources[i].fipskey = resources[i].fipskey; addresources[i].inform = resources[i].inform; addresources[i].passplain = resources[i].passplain; addresources[i].expirymonitor = resources[i].expirymonitor; addresources[i].notificationperiod = resources[i].notificationperiod; addresources[i].bundle = resources[i].bundle; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, sslcertkey resource) throws Exception { sslcertkey deleteresource = new sslcertkey(); deleteresource.certkey = resource.certkey; return deleteresource.delete_resource(client); }
java
public static base_responses delete(nitro_service client, String certkey[]) throws Exception { base_responses result = null; if (certkey != null && certkey.length > 0) { sslcertkey deleteresources[] = new sslcertkey[certkey.length]; for (int i=0;i<certkey.length;i++){ deleteresources[i] = new sslcertkey(); deleteresources[i].certkey = certkey[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_response update(nitro_service client, sslcertkey resource) throws Exception { sslcertkey updateresource = new sslcertkey(); updateresource.certkey = resource.certkey; updateresource.expirymonitor = resource.expirymonitor; updateresource.notificationperiod = resource.notificationperiod; return updateresource.update_resource(client); }
java
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; }
java
public static base_response unset(nitro_service client, sslcertkey resource, String[] args) throws Exception{ sslcertkey unsetresource = new sslcertkey(); unsetresource.certkey = resource.certkey; return unsetresource.unset_resource(client,args); }
java
public static base_responses unset(nitro_service client, String certkey[], String args[]) throws Exception { base_responses result = null; if (certkey != null && certkey.length > 0) { sslcertkey unsetresources[] = new sslcertkey[certkey.length]; for (int i=0;i<certkey.length;i++){ unsetresources[i] = new sslcertkey(); unsetresources[i].certkey = certkey[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
public static base_response link(nitro_service client, sslcertkey resource) throws Exception { sslcertkey linkresource = new sslcertkey(); linkresource.certkey = resource.certkey; linkresource.linkcertkeyname = resource.linkcertkeyname; return linkresource.perform_operation(client,"link"); }
java
public static base_responses link(nitro_service client, sslcertkey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslcertkey linkresources[] = new sslcertkey[resources.length]; for (int i=0;i<resources.length;i++){ linkresources[i] = new sslcertkey(); linkresources[i].certkey = resources[i].certkey; linkresources[i].linkcertkeyname = resources[i].linkcertkeyname; } result = perform_operation_bulk_request(client, linkresources,"link"); } return result; }
java
public static base_response unlink(nitro_service client, sslcertkey resource) throws Exception { sslcertkey unlinkresource = new sslcertkey(); unlinkresource.certkey = resource.certkey; return unlinkresource.perform_operation(client,"unlink"); }
java
public static base_responses unlink(nitro_service client, sslcertkey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslcertkey unlinkresources[] = new sslcertkey[resources.length]; for (int i=0;i<resources.length;i++){ unlinkresources[i] = new sslcertkey(); unlinkresources[i].certkey = resources[i].certkey; } result = perform_operation_bulk_request(client, unlinkresources,"unlink"); } return result; }
java
public static base_response change(nitro_service client, sslcertkey resource) throws Exception { sslcertkey updateresource = new sslcertkey(); updateresource.certkey = resource.certkey; updateresource.cert = resource.cert; updateresource.key = resource.key; updateresource.password = resource.password; updateresource.fipskey = resource.fipskey; updateresource.inform = resource.inform; updateresource.passplain = resource.passplain; updateresource.nodomaincheck = resource.nodomaincheck; return updateresource.perform_operation(client,"update"); }
java
public static base_responses change(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].cert = resources[i].cert; updateresources[i].key = resources[i].key; updateresources[i].password = resources[i].password; updateresources[i].fipskey = resources[i].fipskey; updateresources[i].inform = resources[i].inform; updateresources[i].passplain = resources[i].passplain; updateresources[i].nodomaincheck = resources[i].nodomaincheck; } result = perform_operation_bulk_request(client, updateresources,"update"); } return result; }
java
public static sslcertkey[] get(nitro_service service) throws Exception{ sslcertkey obj = new sslcertkey(); sslcertkey[] response = (sslcertkey[])obj.get_resources(service); return response; }
java
public static sslcertkey get(nitro_service service, String certkey) throws Exception{ sslcertkey obj = new sslcertkey(); obj.set_certkey(certkey); sslcertkey response = (sslcertkey) obj.get_resource(service); return response; }
java
public static sslcertkey[] get(nitro_service service, String certkey[]) throws Exception{ if (certkey !=null && certkey.length>0) { sslcertkey response[] = new sslcertkey[certkey.length]; sslcertkey obj[] = new sslcertkey[certkey.length]; for (int i=0;i<certkey.length;i++) { obj[i] = new sslcertkey(); obj[i].set_certkey(certkey[i]); response[i] = (sslcertkey) obj[i].get_resource(service); } return response; } return null; }
java
public static base_response clear(nitro_service client, nsconfig resource) throws Exception { nsconfig clearresource = new nsconfig(); clearresource.force = resource.force; clearresource.level = resource.level; return clearresource.perform_operation(client,"clear"); }
java
public static base_response update(nitro_service client, nsconfig resource) throws Exception { nsconfig updateresource = new nsconfig(); updateresource.ipaddress = resource.ipaddress; updateresource.netmask = resource.netmask; updateresource.nsvlan = resource.nsvlan; updateresource.ifnum = resource.ifnum; updateresource.tagged = resource.tagged; updateresource.httpport = resource.httpport; updateresource.maxconn = resource.maxconn; updateresource.maxreq = resource.maxreq; updateresource.cip = resource.cip; updateresource.cipheader = resource.cipheader; updateresource.cookieversion = resource.cookieversion; updateresource.securecookie = resource.securecookie; updateresource.pmtumin = resource.pmtumin; updateresource.pmtutimeout = resource.pmtutimeout; updateresource.ftpportrange = resource.ftpportrange; updateresource.crportrange = resource.crportrange; updateresource.timezone = resource.timezone; updateresource.grantquotamaxclient = resource.grantquotamaxclient; updateresource.exclusivequotamaxclient = resource.exclusivequotamaxclient; updateresource.grantquotaspillover = resource.grantquotaspillover; updateresource.exclusivequotaspillover = resource.exclusivequotaspillover; updateresource.nwfwmode = resource.nwfwmode; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, nsconfig resource, String[] args) throws Exception{ nsconfig unsetresource = new nsconfig(); return unsetresource.unset_resource(client,args); }
java
public static base_response save(nitro_service client) throws Exception { nsconfig saveresource = new nsconfig(); return saveresource.perform_operation(client,"save"); }
java
public static nsconfig diff(nitro_service client, nsconfig resource) throws Exception { nsconfig diffresource = new nsconfig(); diffresource.config1 = resource.config1; diffresource.config2 = resource.config2; diffresource.outtype = resource.outtype; diffresource.template = resource.template; diffresource.ignoredevicespecific = resource.ignoredevicespecific; return (nsconfig)diffresource.perform_operationEx(client,"diff"); }
java
public static nsconfig get(nitro_service service) throws Exception{ nsconfig obj = new nsconfig(); nsconfig[] response = (nsconfig[])obj.get_resources(service); return response[0]; }
java
public static aaauser_aaagroup_binding[] get(nitro_service service, String username) throws Exception{ aaauser_aaagroup_binding obj = new aaauser_aaagroup_binding(); obj.set_username(username); aaauser_aaagroup_binding response[] = (aaauser_aaagroup_binding[]) obj.get_resources(service); return response; }
java
public static authenticationlocalpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationlocalpolicy_authenticationvserver_binding obj = new authenticationlocalpolicy_authenticationvserver_binding(); obj.set_name(name); authenticationlocalpolicy_authenticationvserver_binding response[] = (authenticationlocalpolicy_authenticationvserver_binding[]) obj.get_resources(service); return response; }
java
public static base_response update(nitro_service client, responderparam resource) throws Exception { responderparam updateresource = new responderparam(); updateresource.undefaction = resource.undefaction; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, responderparam resource, String[] args) throws Exception{ responderparam unsetresource = new responderparam(); return unsetresource.unset_resource(client,args); }
java
public static responderparam get(nitro_service service) throws Exception{ responderparam obj = new responderparam(); responderparam[] response = (responderparam[])obj.get_resources(service); return response[0]; }
java
public static base_response add(nitro_service client, tmtrafficaction resource) throws Exception { tmtrafficaction addresource = new tmtrafficaction(); addresource.name = resource.name; addresource.apptimeout = resource.apptimeout; addresource.sso = resource.sso; addresource.formssoaction = resource.formssoaction; addresource.persistentcookie = resource.persistentcookie; addresource.initiatelogout = resource.initiatelogout; addresource.kcdaccount = resource.kcdaccount; addresource.samlssoprofile = resource.samlssoprofile; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, tmtrafficaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { tmtrafficaction addresources[] = new tmtrafficaction[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new tmtrafficaction(); addresources[i].name = resources[i].name; addresources[i].apptimeout = resources[i].apptimeout; addresources[i].sso = resources[i].sso; addresources[i].formssoaction = resources[i].formssoaction; addresources[i].persistentcookie = resources[i].persistentcookie; addresources[i].initiatelogout = resources[i].initiatelogout; addresources[i].kcdaccount = resources[i].kcdaccount; addresources[i].samlssoprofile = resources[i].samlssoprofile; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response update(nitro_service client, tmtrafficaction resource) throws Exception { tmtrafficaction updateresource = new tmtrafficaction(); updateresource.name = resource.name; updateresource.apptimeout = resource.apptimeout; updateresource.sso = resource.sso; updateresource.formssoaction = resource.formssoaction; updateresource.persistentcookie = resource.persistentcookie; updateresource.initiatelogout = resource.initiatelogout; updateresource.kcdaccount = resource.kcdaccount; updateresource.samlssoprofile = resource.samlssoprofile; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, tmtrafficaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { tmtrafficaction updateresources[] = new tmtrafficaction[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new tmtrafficaction(); updateresources[i].name = resources[i].name; updateresources[i].apptimeout = resources[i].apptimeout; updateresources[i].sso = resources[i].sso; updateresources[i].formssoaction = resources[i].formssoaction; updateresources[i].persistentcookie = resources[i].persistentcookie; updateresources[i].initiatelogout = resources[i].initiatelogout; updateresources[i].kcdaccount = resources[i].kcdaccount; updateresources[i].samlssoprofile = resources[i].samlssoprofile; } result = update_bulk_request(client, updateresources); } return result; }
java
public static tmtrafficaction[] get(nitro_service service) throws Exception{ tmtrafficaction obj = new tmtrafficaction(); tmtrafficaction[] response = (tmtrafficaction[])obj.get_resources(service); return response; }
java
public static tmtrafficaction get(nitro_service service, String name) throws Exception{ tmtrafficaction obj = new tmtrafficaction(); obj.set_name(name); tmtrafficaction response = (tmtrafficaction) obj.get_resource(service); return response; }
java
public static tmglobal_binding get(nitro_service service) throws Exception{ tmglobal_binding obj = new tmglobal_binding(); tmglobal_binding response = (tmglobal_binding) obj.get_resource(service); return response; }
java
public static csvserver_spilloverpolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_spilloverpolicy_binding obj = new csvserver_spilloverpolicy_binding(); obj.set_name(name); csvserver_spilloverpolicy_binding response[] = (csvserver_spilloverpolicy_binding[]) obj.get_resources(service); return response; }
java
public int compareTo(WordLemmaTag wordLemmaTag) { int first = word().compareTo(wordLemmaTag.word()); if (first != 0) return first; int second = lemma().compareTo(wordLemmaTag.lemma()); if (second != 0) return second; else return tag().compareTo(wordLemmaTag.tag()); }
java
public static base_response add(nitro_service client, autoscaleprofile resource) throws Exception { autoscaleprofile addresource = new autoscaleprofile(); addresource.name = resource.name; addresource.type = resource.type; addresource.url = resource.url; addresource.apikey = resource.apikey; addresource.sharedsecret = resource.sharedsecret; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, autoscaleprofile resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { autoscaleprofile addresources[] = new autoscaleprofile[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new autoscaleprofile(); addresources[i].name = resources[i].name; addresources[i].type = resources[i].type; addresources[i].url = resources[i].url; addresources[i].apikey = resources[i].apikey; addresources[i].sharedsecret = resources[i].sharedsecret; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response update(nitro_service client, autoscaleprofile resource) throws Exception { autoscaleprofile updateresource = new autoscaleprofile(); updateresource.name = resource.name; updateresource.url = resource.url; updateresource.apikey = resource.apikey; updateresource.sharedsecret = resource.sharedsecret; return updateresource.update_resource(client); }
java
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; }
java
public static autoscaleprofile[] get(nitro_service service) throws Exception{ autoscaleprofile obj = new autoscaleprofile(); autoscaleprofile[] response = (autoscaleprofile[])obj.get_resources(service); return response; }
java
public static autoscaleprofile get(nitro_service service, String name) throws Exception{ autoscaleprofile obj = new autoscaleprofile(); obj.set_name(name); autoscaleprofile response = (autoscaleprofile) obj.get_resource(service); return response; }
java
public static servicegroupbindings get(nitro_service service, String servicegroupname) throws Exception{ servicegroupbindings obj = new servicegroupbindings(); obj.set_servicegroupname(servicegroupname); servicegroupbindings response = (servicegroupbindings) obj.get_resource(service); return response; }
java
public static lbmonitor_binding get(nitro_service service, String monitorname) throws Exception{ lbmonitor_binding obj = new lbmonitor_binding(); obj.set_monitorname(monitorname); lbmonitor_binding response = (lbmonitor_binding) obj.get_resource(service); return response; }
java
public static lbmonitor_binding[] get(nitro_service service, String monitorname[]) throws Exception{ if (monitorname !=null && monitorname.length>0) { lbmonitor_binding response[] = new lbmonitor_binding[monitorname.length]; lbmonitor_binding obj[] = new lbmonitor_binding[monitorname.length]; for (int i=0;i<monitorname.length;i++) { obj[i] = new lbmonitor_binding(); obj[i].set_monitorname(monitorname[i]); response[i] = (lbmonitor_binding) obj[i].get_resource(service); } return response; } return null; }
java
private static int med3(int a, int b, int c, IntComparator comp) { int ab = comp.compare(a,b); int ac = comp.compare(a,c); int bc = comp.compare(b,c); return (ab<0 ? (bc<0 ? b : ac<0 ? c : a) : (bc>0 ? b : ac>0 ? c : a)); }
java
private static void reverse(int first, int last, Swapper swapper) { // no more needed since manually inlined while (first < --last) { swapper.swap(first++,last); } }
java
public static authenticationradiuspolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationradiuspolicy_vpnvserver_binding obj = new authenticationradiuspolicy_vpnvserver_binding(); obj.set_name(name); authenticationradiuspolicy_vpnvserver_binding response[] = (authenticationradiuspolicy_vpnvserver_binding[]) obj.get_resources(service); return response; }
java
public static rnat6_nsip6_binding[] get(nitro_service service, String name) throws Exception{ rnat6_nsip6_binding obj = new rnat6_nsip6_binding(); obj.set_name(name); rnat6_nsip6_binding response[] = (rnat6_nsip6_binding[]) obj.get_resources(service); return response; }
java
public static authorizationpolicylabel_binding get(nitro_service service, String labelname) throws Exception{ authorizationpolicylabel_binding obj = new authorizationpolicylabel_binding(); obj.set_labelname(labelname); authorizationpolicylabel_binding response = (authorizationpolicylabel_binding) obj.get_resource(service); return response; }
java
private void createCodeMappings(MtasTokenIdFactory mtasTokenIdFactory, Level level, String stringValue, int offsetStart, int offsetEnd, int realOffsetStart, int realOffsetEnd, List<Integer> codePositions) throws IOException { String[] stringValues = MtasPennTreebankReader.createStrings(stringValue, Pattern.quote(STRING_SPLITTER)); MtasToken token = new MtasTokenString(mtasTokenIdFactory.createTokenId(), level.node, filterString(stringValues[0].trim())); token.setOffset(offsetStart, offsetEnd); token.setRealOffset(realOffsetStart, realOffsetEnd); token.addPositions(codePositions.stream().mapToInt(i -> i).toArray()); tokenCollection.add(token); level.tokens.add(token); }
java
private void createNodeMappings(MtasTokenIdFactory mtasTokenIdFactory, Level level, Level parentLevel) { MtasToken nodeToken; if (level.node != null && level.positionStart != null && level.positionEnd != null) { nodeToken = new MtasTokenString(mtasTokenIdFactory.createTokenId(), level.node, ""); nodeToken.setOffset(level.offsetStart, level.offsetEnd); nodeToken.setRealOffset(level.realOffsetStart, level.realOffsetEnd); nodeToken.addPositionRange(level.positionStart, level.positionEnd); tokenCollection.add(nodeToken); if (parentLevel != null) { parentLevel.tokens.add(nodeToken); } // only for first mapping(?) for (MtasToken token : level.tokens) { token.setParentId(nodeToken.getId()); } } }
java
private void createStringMappings(MtasTokenIdFactory mtasTokenIdFactory, Level level, String stringValue, int offsetStart, int offsetEnd, int position) throws IOException { // System.out.println("createStringMappings string "); String[] stringValues = MtasPennTreebankReader.createStrings(stringValue, Pattern.quote(STRING_SPLITTER)); if (stringValues.length > 0 && !stringValues[0].trim().isEmpty()) { MtasToken token = new MtasTokenString(mtasTokenIdFactory.createTokenId(), "t", filterString(stringValues[0].trim()), position); token.setOffset(offsetStart, offsetEnd); tokenCollection.add(token); level.tokens.add(token); } if (stringValues.length > 1 && !stringValues[1].trim().isEmpty()) { MtasToken token = new MtasTokenString(mtasTokenIdFactory.createTokenId(), "lemma", filterString(stringValues[1].trim()), position); token.setOffset(offsetStart, offsetEnd); tokenCollection.add(token); level.tokens.add(token); } }
java
public static base_response add(nitro_service client, dospolicy resource) throws Exception { dospolicy addresource = new dospolicy(); addresource.name = resource.name; addresource.qdepth = resource.qdepth; addresource.cltdetectrate = resource.cltdetectrate; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, dospolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dospolicy addresources[] = new dospolicy[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dospolicy(); addresources[i].name = resources[i].name; addresources[i].qdepth = resources[i].qdepth; addresources[i].cltdetectrate = resources[i].cltdetectrate; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response update(nitro_service client, dospolicy resource) throws Exception { dospolicy updateresource = new dospolicy(); updateresource.name = resource.name; updateresource.qdepth = resource.qdepth; updateresource.cltdetectrate = resource.cltdetectrate; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, dospolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dospolicy updateresources[] = new dospolicy[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new dospolicy(); updateresources[i].name = resources[i].name; updateresources[i].qdepth = resources[i].qdepth; updateresources[i].cltdetectrate = resources[i].cltdetectrate; } result = update_bulk_request(client, updateresources); } return result; }
java
public static dospolicy[] get(nitro_service service) throws Exception{ dospolicy obj = new dospolicy(); dospolicy[] response = (dospolicy[])obj.get_resources(service); return response; }
java
public static dospolicy get(nitro_service service, String name) throws Exception{ dospolicy obj = new dospolicy(); obj.set_name(name); dospolicy response = (dospolicy) obj.get_resource(service); return response; }
java
public static dospolicy[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ dospolicy obj = new dospolicy(); options option = new options(); option.set_filter(filter); dospolicy[] response = (dospolicy[]) obj.getfiltered(service, option); return response; }
java
public static base_responses add(nitro_service client, cacheselector resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { cacheselector addresources[] = new cacheselector[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new cacheselector(); addresources[i].selectorname = resources[i].selectorname; addresources[i].rule = resources[i].rule; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, String selectorname) throws Exception { cacheselector deleteresource = new cacheselector(); deleteresource.selectorname = selectorname; return deleteresource.delete_resource(client); }
java
public static base_responses delete(nitro_service client, String selectorname[]) throws Exception { base_responses result = null; if (selectorname != null && selectorname.length > 0) { cacheselector deleteresources[] = new cacheselector[selectorname.length]; for (int i=0;i<selectorname.length;i++){ deleteresources[i] = new cacheselector(); deleteresources[i].selectorname = selectorname[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_response update(nitro_service client, cacheselector resource) throws Exception { cacheselector updateresource = new cacheselector(); updateresource.selectorname = resource.selectorname; updateresource.rule = resource.rule; return updateresource.update_resource(client); }
java
public static cacheselector[] get(nitro_service service, options option) throws Exception{ cacheselector obj = new cacheselector(); cacheselector[] response = (cacheselector[])obj.get_resources(service,option); return response; }
java
public static cacheselector get(nitro_service service, String selectorname) throws Exception{ cacheselector obj = new cacheselector(); obj.set_selectorname(selectorname); cacheselector response = (cacheselector) obj.get_resource(service); return response; }
java
public static cacheselector[] get(nitro_service service, String selectorname[]) throws Exception{ if (selectorname !=null && selectorname.length>0) { cacheselector response[] = new cacheselector[selectorname.length]; cacheselector obj[] = new cacheselector[selectorname.length]; for (int i=0;i<selectorname.length;i++) { obj[i] = new cacheselector(); obj[i].set_selectorname(selectorname[i]); response[i] = (cacheselector) obj[i].get_resource(service); } return response; } return null; }
java