code
stringlengths
73
34.1k
label
stringclasses
1 value
public static base_response update(nitro_service client, snmpmib resource) throws Exception { snmpmib updateresource = new snmpmib(); updateresource.contact = resource.contact; updateresource.name = resource.name; updateresource.location = resource.location; updateresource.customid = resource.customid; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, snmpmib resource, String[] args) throws Exception{ snmpmib unsetresource = new snmpmib(); return unsetresource.unset_resource(client,args); }
java
public static snmpmib get(nitro_service service, options option) throws Exception{ snmpmib obj = new snmpmib(); snmpmib[] response = (snmpmib[])obj.get_resources(service,option); return response[0]; }
java
public static base_response add(nitro_service client, systemgroup resource) throws Exception { systemgroup addresource = new systemgroup(); addresource.groupname = resource.groupname; addresource.promptstring = resource.promptstring; addresource.timeout = resource.timeout; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, systemgroup resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemgroup addresources[] = new systemgroup[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new systemgroup(); addresources[i].groupname = resources[i].groupname; addresources[i].promptstring = resources[i].promptstring; addresources[i].timeout = resources[i].timeout; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, String groupname) throws Exception { systemgroup deleteresource = new systemgroup(); deleteresource.groupname = groupname; return deleteresource.delete_resource(client); }
java
public static base_response update(nitro_service client, systemgroup resource) throws Exception { systemgroup updateresource = new systemgroup(); updateresource.groupname = resource.groupname; updateresource.promptstring = resource.promptstring; updateresource.timeout = resource.timeout; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, systemgroup resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemgroup updateresources[] = new systemgroup[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new systemgroup(); updateresources[i].groupname = resources[i].groupname; updateresources[i].promptstring = resources[i].promptstring; updateresources[i].timeout = resources[i].timeout; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_response unset(nitro_service client, systemgroup resource, String[] args) throws Exception{ systemgroup unsetresource = new systemgroup(); unsetresource.groupname = resource.groupname; return unsetresource.unset_resource(client,args); }
java
public static base_responses unset(nitro_service client, String groupname[], String args[]) throws Exception { base_responses result = null; if (groupname != null && groupname.length > 0) { systemgroup unsetresources[] = new systemgroup[groupname.length]; for (int i=0;i<groupname.length;i++){ unsetresources[i] = new systemgroup(); unsetresources[i].groupname = groupname[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
public static systemgroup[] get(nitro_service service) throws Exception{ systemgroup obj = new systemgroup(); systemgroup[] response = (systemgroup[])obj.get_resources(service); return response; }
java
public static systemgroup get(nitro_service service, String groupname) throws Exception{ systemgroup obj = new systemgroup(); obj.set_groupname(groupname); systemgroup response = (systemgroup) obj.get_resource(service); return response; }
java
public static systemgroup[] get(nitro_service service, String groupname[]) throws Exception{ if (groupname !=null && groupname.length>0) { systemgroup response[] = new systemgroup[groupname.length]; systemgroup obj[] = new systemgroup[groupname.length]; for (int i=0;i<groupname.length;i++) { obj[i] = new systemgroup(); obj[i].set_groupname(groupname[i]); response[i] = (systemgroup) obj[i].get_resource(service); } return response; } return null; }
java
public static base_response join(nitro_service client, cluster resource) throws Exception { cluster joinresource = new cluster(); joinresource.clip = resource.clip; joinresource.password = resource.password; return joinresource.perform_operation(client,"join"); }
java
public void beforeRecover() { if (data.getPeriod() > 0) { final long now = System.currentTimeMillis(); long startTime = data.getStartTime(); while(startTime <= now) { startTime += data.getPeriod(); data.setStartTime(startTime); } if (logger.isDebugEnabled()) { logger.debug("Task with id " + data.getTaskID() + " start time reset to " + data.getStartTime()); } } }
java
public static tunnelglobal_binding get(nitro_service service) throws Exception{ tunnelglobal_binding obj = new tunnelglobal_binding(); tunnelglobal_binding response = (tunnelglobal_binding) obj.get_resource(service); return response; }
java
public static base_response add(nitro_service client, snmpview resource) throws Exception { snmpview addresource = new snmpview(); addresource.name = resource.name; addresource.subtree = resource.subtree; addresource.type = resource.type; return addresource.add_resource(client); }
java
public static base_response delete(nitro_service client, snmpview resource) throws Exception { snmpview deleteresource = new snmpview(); deleteresource.name = resource.name; deleteresource.subtree = resource.subtree; return deleteresource.delete_resource(client); }
java
public static base_response update(nitro_service client, snmpview resource) throws Exception { snmpview updateresource = new snmpview(); updateresource.name = resource.name; updateresource.subtree = resource.subtree; updateresource.type = resource.type; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, snmpview resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmpview updateresources[] = new snmpview[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new snmpview(); updateresources[i].name = resources[i].name; updateresources[i].subtree = resources[i].subtree; updateresources[i].type = resources[i].type; } result = update_bulk_request(client, updateresources); } return result; }
java
public static snmpview[] get(nitro_service service, options option) throws Exception{ snmpview obj = new snmpview(); snmpview[] response = (snmpview[])obj.get_resources(service,option); return response; }
java
public static void endDoing() { long elapsed = System.currentTimeMillis() - startTime; System.err.println("done [" + nf.format(((double) elapsed) / 1000) + " sec]."); }
java
public static inatsession_stats get(nitro_service service, String name) throws Exception{ inatsession_stats obj = new inatsession_stats(); obj.set_name(name); inatsession_stats response = (inatsession_stats) obj.stat_resource(service); return response; }
java
public static inatsession_stats get(nitro_service service, inatsession_stats obj) throws Exception{ options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(obj)); inatsession_stats response = (inatsession_stats) obj.stat_resource(service,option); return response; }
java
public static responderpolicy_responderglobal_binding[] get(nitro_service service, String name) throws Exception{ responderpolicy_responderglobal_binding obj = new responderpolicy_responderglobal_binding(); obj.set_name(name); responderpolicy_responderglobal_binding response[] = (responderpolicy_responderglobal_binding[]) obj.get_resources(service); return response; }
java
public static base_response update(nitro_service client, ip6tunnelparam resource) throws Exception { ip6tunnelparam updateresource = new ip6tunnelparam(); updateresource.srcip = resource.srcip; updateresource.dropfrag = resource.dropfrag; updateresource.dropfragcputhreshold = resource.dropfragcputhreshold; updateresource.srciproundrobin = resource.srciproundrobin; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, ip6tunnelparam resource, String[] args) throws Exception{ ip6tunnelparam unsetresource = new ip6tunnelparam(); return unsetresource.unset_resource(client,args); }
java
public static ip6tunnelparam get(nitro_service service) throws Exception{ ip6tunnelparam obj = new ip6tunnelparam(); ip6tunnelparam[] response = (ip6tunnelparam[])obj.get_resources(service); return response[0]; }
java
public static base_response add(nitro_service client, appflowaction resource) throws Exception { appflowaction addresource = new appflowaction(); addresource.name = resource.name; addresource.collectors = resource.collectors; addresource.comment = resource.comment; return addresource.add_resource(client); }
java
public static base_response update(nitro_service client, appflowaction resource) throws Exception { appflowaction updateresource = new appflowaction(); updateresource.name = resource.name; updateresource.collectors = resource.collectors; updateresource.comment = resource.comment; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, appflowaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appflowaction updateresources[] = new appflowaction[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new appflowaction(); updateresources[i].name = resources[i].name; updateresources[i].collectors = resources[i].collectors; updateresources[i].comment = resources[i].comment; } result = update_bulk_request(client, updateresources); } return result; }
java
public static appflowaction[] get(nitro_service service, options option) throws Exception{ appflowaction obj = new appflowaction(); appflowaction[] response = (appflowaction[])obj.get_resources(service,option); return response; }
java
public static appflowaction get(nitro_service service, String name) throws Exception{ appflowaction obj = new appflowaction(); obj.set_name(name); appflowaction response = (appflowaction) obj.get_resource(service); return response; }
java
public static base_response create(nitro_service client, sslcert resource) throws Exception { sslcert createresource = new sslcert(); createresource.certfile = resource.certfile; createresource.reqfile = resource.reqfile; createresource.certtype = resource.certtype; createresource.keyfile = resource.keyfile; createresource.keyform = resource.keyform; createresource.pempassphrase = resource.pempassphrase; createresource.days = resource.days; createresource.certform = resource.certform; createresource.cacert = resource.cacert; createresource.cacertform = resource.cacertform; createresource.cakey = resource.cakey; createresource.cakeyform = resource.cakeyform; createresource.caserial = resource.caserial; return createresource.perform_operation(client,"create"); }
java
public static techsupport get(nitro_service service) throws Exception{ techsupport obj = new techsupport(); techsupport[] response = (techsupport[])obj.get_resources(service); return response[0]; }
java
public static techsupport[] get(nitro_service service, techsupport_args args) throws Exception{ techsupport obj = new techsupport(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); techsupport[] response = (techsupport[])obj.get_resources(service, option); return response; }
java
public static vrid_nsip_binding[] get(nitro_service service, Long id) throws Exception{ vrid_nsip_binding obj = new vrid_nsip_binding(); obj.set_id(id); vrid_nsip_binding response[] = (vrid_nsip_binding[]) obj.get_resources(service); return response; }
java
public static crvserver_stats[] get(nitro_service service) throws Exception{ crvserver_stats obj = new crvserver_stats(); crvserver_stats[] response = (crvserver_stats[])obj.stat_resources(service); return response; }
java
public static crvserver_stats get(nitro_service service, String name) throws Exception{ crvserver_stats obj = new crvserver_stats(); obj.set_name(name); crvserver_stats response = (crvserver_stats) obj.stat_resource(service); return response; }
java
public static authorizationaction[] get(nitro_service service) throws Exception{ authorizationaction obj = new authorizationaction(); authorizationaction[] response = (authorizationaction[])obj.get_resources(service); return response; }
java
public static authorizationaction get(nitro_service service, String name) throws Exception{ authorizationaction obj = new authorizationaction(); obj.set_name(name); authorizationaction response = (authorizationaction) obj.get_resource(service); return response; }
java
public static nstrafficdomain_stats[] get(nitro_service service, options option) throws Exception{ nstrafficdomain_stats obj = new nstrafficdomain_stats(); nstrafficdomain_stats[] response = (nstrafficdomain_stats[])obj.stat_resources(service,option); return response; }
java
public static nstrafficdomain_stats get(nitro_service service, Long td) throws Exception{ nstrafficdomain_stats obj = new nstrafficdomain_stats(); obj.set_td(td); nstrafficdomain_stats response = (nstrafficdomain_stats) obj.stat_resource(service); return response; }
java
public static netbridge_iptunnel_binding[] get(nitro_service service, String name) throws Exception{ netbridge_iptunnel_binding obj = new netbridge_iptunnel_binding(); obj.set_name(name); netbridge_iptunnel_binding response[] = (netbridge_iptunnel_binding[]) obj.get_resources(service); return response; }
java
public static crvserver_lbvserver_binding[] get(nitro_service service, String name) throws Exception{ crvserver_lbvserver_binding obj = new crvserver_lbvserver_binding(); obj.set_name(name); crvserver_lbvserver_binding response[] = (crvserver_lbvserver_binding[]) obj.get_resources(service); return response; }
java
public static base_response add(nitro_service client, dnsaction resource) throws Exception { dnsaction addresource = new dnsaction(); addresource.actionname = resource.actionname; addresource.actiontype = resource.actiontype; addresource.ipaddress = resource.ipaddress; addresource.ttl = resource.ttl; addresource.viewname = resource.viewname; addresource.preferredloclist = resource.preferredloclist; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, dnsaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaction addresources[] = new dnsaction[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnsaction(); addresources[i].actionname = resources[i].actionname; addresources[i].actiontype = resources[i].actiontype; addresources[i].ipaddress = resources[i].ipaddress; addresources[i].ttl = resources[i].ttl; addresources[i].viewname = resources[i].viewname; addresources[i].preferredloclist = resources[i].preferredloclist; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_responses delete(nitro_service client, String actionname[]) throws Exception { base_responses result = null; if (actionname != null && actionname.length > 0) { dnsaction deleteresources[] = new dnsaction[actionname.length]; for (int i=0;i<actionname.length;i++){ deleteresources[i] = new dnsaction(); deleteresources[i].actionname = actionname[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_response update(nitro_service client, dnsaction resource) throws Exception { dnsaction updateresource = new dnsaction(); updateresource.actionname = resource.actionname; updateresource.ipaddress = resource.ipaddress; updateresource.ttl = resource.ttl; updateresource.viewname = resource.viewname; updateresource.preferredloclist = resource.preferredloclist; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, dnsaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaction updateresources[] = new dnsaction[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new dnsaction(); updateresources[i].actionname = resources[i].actionname; updateresources[i].ipaddress = resources[i].ipaddress; updateresources[i].ttl = resources[i].ttl; updateresources[i].viewname = resources[i].viewname; updateresources[i].preferredloclist = resources[i].preferredloclist; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_response unset(nitro_service client, dnsaction resource, String[] args) throws Exception{ dnsaction unsetresource = new dnsaction(); unsetresource.actionname = resource.actionname; return unsetresource.unset_resource(client,args); }
java
public static dnsaction[] get(nitro_service service) throws Exception{ dnsaction obj = new dnsaction(); dnsaction[] response = (dnsaction[])obj.get_resources(service); return response; }
java
public static dnsaction get(nitro_service service, String actionname) throws Exception{ dnsaction obj = new dnsaction(); obj.set_actionname(actionname); dnsaction response = (dnsaction) obj.get_resource(service); return response; }
java
public static crvserver_cmppolicy_binding[] get(nitro_service service, String name) throws Exception{ crvserver_cmppolicy_binding obj = new crvserver_cmppolicy_binding(); obj.set_name(name); crvserver_cmppolicy_binding response[] = (crvserver_cmppolicy_binding[]) obj.get_resources(service); return response; }
java
public static Dataset<String, String> readSVMLightFormat(String filename) { return readSVMLightFormat(filename, new HashIndex<String>(), new HashIndex<String>()); }
java
public Counter<F> getFeatureCounter() { Counter<F> featureCounts = new ClassicCounter<F>(); for (int i=0; i < this.size(); i++) { BasicDatum<L, F> datum = (BasicDatum<L, F>) getDatum(i); Set<F> featureSet = new HashSet<F>(datum.asFeatures()); for (F key : featureSet) { featureCounts.incrementCount(key, 1.0); } } return featureCounts; }
java
public RVFDatum<L,F> getL1NormalizedTFIDFDatum(Datum<L,F> datum,Counter<F> featureDocCounts){ Counter<F> tfidfFeatures = new ClassicCounter<F>(); for(F feature : datum.asFeatures()){ if(featureDocCounts.containsKey(feature)) tfidfFeatures.incrementCount(feature,1.0); } double l1norm = 0; for(F feature: tfidfFeatures.keySet()){ double idf = Math.log(((double)(this.size()+1))/(featureDocCounts.getCount(feature)+0.5)); double tf = tfidfFeatures.getCount(feature); tfidfFeatures.setCount(feature, tf*idf); l1norm += tf*idf; } for(F feature: tfidfFeatures.keySet()){ double tfidf = tfidfFeatures.getCount(feature); tfidfFeatures.setCount(feature, tfidf/l1norm); } RVFDatum<L,F> rvfDatum = new RVFDatum<L,F>(tfidfFeatures,datum.label()); return rvfDatum; }
java
public RVFDataset<L,F> getL1NormalizedTFIDFDataset(){ RVFDataset<L,F> rvfDataset = new RVFDataset<L,F>(this.size(),this.featureIndex,this.labelIndex); Counter<F> featureDocCounts = getFeatureCounter(); for(int i = 0; i < this.size(); i++){ Datum<L,F> datum = this.getDatum(i); RVFDatum<L,F> rvfDatum = getL1NormalizedTFIDFDatum(datum,featureDocCounts); rvfDataset.add(rvfDatum); } return rvfDataset; }
java
public void printFullFeatureMatrix(PrintWriter pw) { String sep = "\t"; for (int i = 0; i < featureIndex.size(); i++) { pw.print(sep + featureIndex.get(i)); } pw.println(); for (int i = 0; i < labels.length; i++) { pw.print(labelIndex.get(i)); Set<Integer> feats = new HashSet<Integer>(); for (int j = 0; j < data[i].length; j++) { int feature = data[i][j]; feats.add(Integer.valueOf(feature)); } for (int j = 0; j < featureIndex.size(); j++) { if (feats.contains(Integer.valueOf(j))) { pw.print(sep + '1'); } else { pw.print(sep + '0'); } } } }
java
public void selectFeatures(int numFeatures, double[] scores) { List<ScoredObject<F>> scoredFeatures = new ArrayList<ScoredObject<F>>(); for (int i = 0; i < scores.length; i++) { scoredFeatures.add(new ScoredObject<F>(featureIndex.get(i), scores[i])); } Collections.sort(scoredFeatures, ScoredComparator.DESCENDING_COMPARATOR); Index<F> newFeatureIndex = new HashIndex<F>(); for (int i = 0; i < scoredFeatures.size() && i < numFeatures; i++) { newFeatureIndex.add(scoredFeatures.get(i).object()); //System.err.println(scoredFeatures.get(i)); } for (int i = 0; i < size; i++) { int[] newData = new int[data[i].length]; int curIndex = 0; for (int j = 0; j < data[i].length; j++) { int index; if ((index = newFeatureIndex.indexOf(featureIndex.get(data[i][j]))) != -1) { newData[curIndex++] = index; } } int[] newDataTrimmed = new int[curIndex]; System.arraycopy(newData, 0, newDataTrimmed, 0, curIndex); data[i] = newDataTrimmed; } featureIndex = newFeatureIndex; }
java
public static void printSVMLightFormat(PrintWriter pw, ClassicCounter<Integer> c, int classNo) { Integer[] features = c.keySet().toArray(new Integer[c.keySet().size()]); Arrays.sort(features); StringBuilder sb = new StringBuilder(); sb.append(classNo); sb.append(' '); for (int f: features) { sb.append(f + 1).append(':').append(c.getCount(f)).append(' '); } pw.println(sb.toString()); }
java
public static systemglobaldata[] get(nitro_service service, systemglobaldata_args args) throws Exception{ systemglobaldata obj = new systemglobaldata(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); systemglobaldata[] response = (systemglobaldata[])obj.get_resources(service, option); return response; }
java
public static lbvserver_copolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_copolicy_binding obj = new lbvserver_copolicy_binding(); obj.set_name(name); lbvserver_copolicy_binding response[] = (lbvserver_copolicy_binding[]) obj.get_resources(service); return response; }
java
public static auditsyslogpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_aaagroup_binding obj = new auditsyslogpolicy_aaagroup_binding(); obj.set_name(name); auditsyslogpolicy_aaagroup_binding response[] = (auditsyslogpolicy_aaagroup_binding[]) obj.get_resources(service); return response; }
java
public static sslcertkey_binding get(nitro_service service, String certkey) throws Exception{ sslcertkey_binding obj = new sslcertkey_binding(); obj.set_certkey(certkey); sslcertkey_binding response = (sslcertkey_binding) obj.get_resource(service); return response; }
java
public static nslimitidentifier_nslimitsessions_binding[] get(nitro_service service, String limitidentifier) throws Exception{ nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding(); obj.set_limitidentifier(limitidentifier); nslimitidentifier_nslimitsessions_binding response[] = (nslimitidentifier_nslimitsessions_binding[]) obj.get_resources(service); return response; }
java
public static nslimitidentifier_nslimitsessions_binding[] get_filtered(nitro_service service, String limitidentifier, filtervalue[] filter) throws Exception{ nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding(); obj.set_limitidentifier(limitidentifier); options option = new options(); option.set_filter(filter); nslimitidentifier_nslimitsessions_binding[] response = (nslimitidentifier_nslimitsessions_binding[]) obj.getfiltered(service, option); return response; }
java
public static long count(nitro_service service, String limitidentifier) throws Exception{ nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding(); obj.set_limitidentifier(limitidentifier); options option = new options(); option.set_count(true); nslimitidentifier_nslimitsessions_binding response[] = (nslimitidentifier_nslimitsessions_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
java
public static base_response add(nitro_service client, cacheforwardproxy resource) throws Exception { cacheforwardproxy addresource = new cacheforwardproxy(); addresource.ipaddress = resource.ipaddress; addresource.port = resource.port; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, cacheforwardproxy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { cacheforwardproxy addresources[] = new cacheforwardproxy[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new cacheforwardproxy(); addresources[i].ipaddress = resources[i].ipaddress; addresources[i].port = resources[i].port; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, String ipaddress) throws Exception { cacheforwardproxy deleteresource = new cacheforwardproxy(); deleteresource.ipaddress = ipaddress; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, cacheforwardproxy resource) throws Exception { cacheforwardproxy deleteresource = new cacheforwardproxy(); deleteresource.ipaddress = resource.ipaddress; deleteresource.port = resource.port; return deleteresource.delete_resource(client); }
java
public static base_responses delete(nitro_service client, String ipaddress[]) throws Exception { base_responses result = null; if (ipaddress != null && ipaddress.length > 0) { cacheforwardproxy deleteresources[] = new cacheforwardproxy[ipaddress.length]; for (int i=0;i<ipaddress.length;i++){ deleteresources[i] = new cacheforwardproxy(); deleteresources[i].ipaddress = ipaddress[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_responses delete(nitro_service client, cacheforwardproxy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { cacheforwardproxy deleteresources[] = new cacheforwardproxy[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new cacheforwardproxy(); deleteresources[i].ipaddress = resources[i].ipaddress; deleteresources[i].port = resources[i].port; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static cacheforwardproxy[] get(nitro_service service) throws Exception{ cacheforwardproxy obj = new cacheforwardproxy(); cacheforwardproxy[] response = (cacheforwardproxy[])obj.get_resources(service); return response; }
java
public static autoscalepolicy_nstimer_binding[] get(nitro_service service, String name) throws Exception{ autoscalepolicy_nstimer_binding obj = new autoscalepolicy_nstimer_binding(); obj.set_name(name); autoscalepolicy_nstimer_binding response[] = (autoscalepolicy_nstimer_binding[]) obj.get_resources(service); return response; }
java
public static cmppolicy_cmpglobal_binding[] get(nitro_service service, String name) throws Exception{ cmppolicy_cmpglobal_binding obj = new cmppolicy_cmpglobal_binding(); obj.set_name(name); cmppolicy_cmpglobal_binding response[] = (cmppolicy_cmpglobal_binding[]) obj.get_resources(service); return response; }
java
public static appfwglobal_binding get(nitro_service service) throws Exception{ appfwglobal_binding obj = new appfwglobal_binding(); appfwglobal_binding response = (appfwglobal_binding) obj.get_resource(service); return response; }
java
public static base_response delete(nitro_service client, String monitorname) throws Exception { lbmonitor deleteresource = new lbmonitor(); deleteresource.monitorname = monitorname; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, lbmonitor resource) throws Exception { lbmonitor deleteresource = new lbmonitor(); deleteresource.monitorname = resource.monitorname; deleteresource.type = resource.type; deleteresource.respcode = resource.respcode; return deleteresource.delete_resource(client); }
java
public static base_responses delete(nitro_service client, String monitorname[]) throws Exception { base_responses result = null; if (monitorname != null && monitorname.length > 0) { lbmonitor deleteresources[] = new lbmonitor[monitorname.length]; for (int i=0;i<monitorname.length;i++){ deleteresources[i] = new lbmonitor(); deleteresources[i].monitorname = monitorname[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_responses delete(nitro_service client, lbmonitor resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { lbmonitor deleteresources[] = new lbmonitor[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new lbmonitor(); deleteresources[i].monitorname = resources[i].monitorname; deleteresources[i].type = resources[i].type; deleteresources[i].respcode = resources[i].respcode; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_response unset(nitro_service client, lbmonitor resource, String[] args) throws Exception{ lbmonitor unsetresource = new lbmonitor(); unsetresource.monitorname = resource.monitorname; unsetresource.type = resource.type; unsetresource.ipaddress = resource.ipaddress; return unsetresource.unset_resource(client,args); }
java
public static base_responses unset(nitro_service client, lbmonitor resources[], String[] args) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { lbmonitor unsetresources[] = new lbmonitor[resources.length]; for (int i=0;i<resources.length;i++){ unsetresources[i] = new lbmonitor(); unsetresources[i].monitorname = resources[i].monitorname; unsetresources[i].type = resources[i].type; unsetresources[i].ipaddress = resources[i].ipaddress; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
public static base_response enable(nitro_service client, String monitorname) throws Exception { lbmonitor enableresource = new lbmonitor(); enableresource.monitorname = monitorname; return enableresource.perform_operation(client,"enable"); }
java
public static base_response enable(nitro_service client, lbmonitor resource) throws Exception { lbmonitor enableresource = new lbmonitor(); enableresource.servicename = resource.servicename; enableresource.servicegroupname = resource.servicegroupname; enableresource.monitorname = resource.monitorname; return enableresource.perform_operation(client,"enable"); }
java
public static base_responses enable(nitro_service client, String monitorname[]) throws Exception { base_responses result = null; if (monitorname != null && monitorname.length > 0) { lbmonitor enableresources[] = new lbmonitor[monitorname.length]; for (int i=0;i<monitorname.length;i++){ enableresources[i] = new lbmonitor(); enableresources[i].monitorname = monitorname[i]; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
java
public static base_responses enable(nitro_service client, lbmonitor resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { lbmonitor enableresources[] = new lbmonitor[resources.length]; for (int i=0;i<resources.length;i++){ enableresources[i] = new lbmonitor(); enableresources[i].servicename = resources[i].servicename; enableresources[i].servicegroupname = resources[i].servicegroupname; enableresources[i].monitorname = resources[i].monitorname; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
java
public static base_response disable(nitro_service client, String monitorname) throws Exception { lbmonitor disableresource = new lbmonitor(); disableresource.monitorname = monitorname; return disableresource.perform_operation(client,"disable"); }
java
public static base_response disable(nitro_service client, lbmonitor resource) throws Exception { lbmonitor disableresource = new lbmonitor(); disableresource.servicename = resource.servicename; disableresource.servicegroupname = resource.servicegroupname; disableresource.monitorname = resource.monitorname; return disableresource.perform_operation(client,"disable"); }
java
public static base_responses disable(nitro_service client, String monitorname[]) throws Exception { base_responses result = null; if (monitorname != null && monitorname.length > 0) { lbmonitor disableresources[] = new lbmonitor[monitorname.length]; for (int i=0;i<monitorname.length;i++){ disableresources[i] = new lbmonitor(); disableresources[i].monitorname = monitorname[i]; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
java
public static base_responses disable(nitro_service client, lbmonitor resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { lbmonitor disableresources[] = new lbmonitor[resources.length]; for (int i=0;i<resources.length;i++){ disableresources[i] = new lbmonitor(); disableresources[i].servicename = resources[i].servicename; disableresources[i].servicegroupname = resources[i].servicegroupname; disableresources[i].monitorname = resources[i].monitorname; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
java
public static lbmonitor[] get(nitro_service service) throws Exception{ lbmonitor obj = new lbmonitor(); lbmonitor[] response = (lbmonitor[])obj.get_resources(service); return response; }
java
public static lbmonitor[] get(nitro_service service, lbmonitor_args args) throws Exception{ lbmonitor obj = new lbmonitor(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); lbmonitor[] response = (lbmonitor[])obj.get_resources(service, option); return response; }
java
public static lbmonitor get(nitro_service service, String monitorname) throws Exception{ lbmonitor obj = new lbmonitor(); obj.set_monitorname(monitorname); lbmonitor response = (lbmonitor) obj.get_resource(service); return response; }
java
public static lbvserver_spilloverpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_spilloverpolicy_binding obj = new lbvserver_spilloverpolicy_binding(); obj.set_name(name); lbvserver_spilloverpolicy_binding response[] = (lbvserver_spilloverpolicy_binding[]) obj.get_resources(service); return response; }
java
public static base_response clear(nitro_service client, nsstats resource) throws Exception { nsstats clearresource = new nsstats(); clearresource.cleanuplevel = resource.cleanuplevel; return clearresource.perform_operation(client,"clear"); }
java
public static base_response Import(nitro_service client, appqoecustomresp resource) throws Exception { appqoecustomresp Importresource = new appqoecustomresp(); Importresource.src = resource.src; Importresource.name = resource.name; return Importresource.perform_operation(client,"Import"); }
java
public static base_responses Import(nitro_service client, appqoecustomresp resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appqoecustomresp Importresources[] = new appqoecustomresp[resources.length]; for (int i=0;i<resources.length;i++){ Importresources[i] = new appqoecustomresp(); Importresources[i].src = resources[i].src; Importresources[i].name = resources[i].name; } result = perform_operation_bulk_request(client, Importresources,"Import"); } return result; }
java
public static base_responses change(nitro_service client, appqoecustomresp resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appqoecustomresp updateresources[] = new appqoecustomresp[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new appqoecustomresp(); updateresources[i].name = resources[i].name; } result = perform_operation_bulk_request(client, updateresources,"update"); } return result; }
java