code
stringlengths
73
34.1k
label
stringclasses
1 value
public static appqoecustomresp[] get(nitro_service service, options option) throws Exception{ appqoecustomresp obj = new appqoecustomresp(); appqoecustomresp[] response = (appqoecustomresp[])obj.get_resources(service,option); return response; }
java
@SuppressWarnings("unchecked") public static CodecInfo getCodecInfoFromTerms(Terms t) throws IOException { try { HashMap<String, IndexInput> indexInputList = null; HashMap<String, Long> indexInputOffsetList = null; Object version = null; Method[] methods = t.getClass().getMethods(); ...
java
public MtasToken getObjectById(String field, int docId, int mtasId) throws IOException { try { Long ref; Long objectRefApproxCorrection; IndexDoc doc = getDoc(field, docId); IndexInput inObjectId = indexInputList.get("indexObjectId"); IndexInput inObject = indexInputList.get("obj...
java
public List<MtasTokenString> getObjectsByParentId(String field, int docId, int position) throws IOException { IndexDoc doc = getDoc(field, docId); IndexInput inIndexObjectParent = indexInputList.get("indexObjectParent"); ArrayList<MtasTreeHit<?>> hits = CodecSearchTree.searchMtasTree(position, ...
java
public ArrayList<MtasTokenString> getObjectsByPosition(String field, int docId, int position) throws IOException { IndexDoc doc = getDoc(field, docId); IndexInput inIndexObjectPosition = indexInputList .get("indexObjectPosition"); ArrayList<MtasTreeHit<?>> hits = CodecSearchTree.searchMtasTree...
java
public List<MtasTokenString> getPrefixFilteredObjectsByPositions(String field, int docId, List<String> prefixes, int startPosition, int endPosition) throws IOException { IndexDoc doc = getDoc(field, docId); IndexInput inIndexObjectPosition = indexInputList .get("indexObjectPosition"); if...
java
private List<MtasTokenString> getPrefixFilteredObjects( List<MtasTreeHit<?>> hits, List<String> prefixes) throws IOException { ArrayList<MtasTokenString> tokens = new ArrayList<>(); IndexInput inObject = indexInputList.get("object"); IndexInput inTerm = indexInputList.get("term"); for (MtasTreeHit...
java
public List<MtasTreeHit<String>> getPositionedTermsByPrefixesAndPosition( String field, int docId, List<String> prefixes, int position) throws IOException { return getPositionedTermsByPrefixesAndPositionRange(field, docId, prefixes, position, position); }
java
public List<MtasTreeHit<String>> getPositionedTermsByPrefixesAndPositionRange( String field, int docId, List<String> prefixes, int startPosition, int endPosition) throws IOException { IndexDoc doc = getDoc(field, docId); IndexInput inIndexObjectPosition = indexInputList .get("indexObjectPosi...
java
public void collectTermsByPrefixesForListOfHitPositions(String field, int docId, ArrayList<String> prefixes, ArrayList<IntervalTreeNodeData<String>> positionsHits) throws IOException { IndexDoc doc = getDoc(field, docId); IndexInput inIndexObjectPosition = indexInputList .get("indexObj...
java
public ArrayList<MtasTreeHit<String>> getTerms(ArrayList<MtasTreeHit<?>> refs) throws IOException { try { ArrayList<MtasTreeHit<String>> terms = new ArrayList<MtasTreeHit<String>>(); IndexInput inTerm = indexInputList.get("term"); for (MtasTreeHit<?> hit : refs) { inTerm.seek(hit.ref...
java
Map<String, Integer> getPrefixesIds(String field, List<String> prefixes) { LinkedHashMap<String, Long> refs = getPrefixRefs(field); if (refs != null) { List<String> list = new ArrayList<>(refs.keySet()); Map<String, Integer> result = new HashMap<>(); for (String prefix : prefixes) { in...
java
private LinkedHashMap<String, Long> getPrefixRefs(String field) { if (fieldReferences.containsKey(field)) { FieldReferences fr = fieldReferences.get(field); if (!prefixReferences.containsKey(field)) { LinkedHashMap<String, Long> refs = new LinkedHashMap<String, Long>(); try { I...
java
public IndexDoc getDoc(String field, int docId) { if (fieldReferences.containsKey(field)) { FieldReferences fr = fieldReferences.get(field); try { IndexInput inIndexDocId = indexInputList.get("indexDocId"); ArrayList<MtasTreeHit<?>> list = CodecSearchTree.searchMtasTree(docId, ...
java
public IndexDoc getNextDoc(String field, int previousDocId) { if (fieldReferences.containsKey(field)) { FieldReferences fr = fieldReferences.get(field); try { if (previousDocId < 0) { return new IndexDoc(fr.refIndexDoc); } else { int nextDocId = previousDocId + 1; ...
java
public int getNumberOfDocs(String field) { if (fieldReferences.containsKey(field)) { FieldReferences fr = fieldReferences.get(field); return fr.numberOfDocs; } else { return 0; } }
java
public Integer getNumberOfPositions(String field, int docId) { if (fieldReferences.containsKey(field)) { IndexDoc doc = getDoc(field, docId); if (doc != null) { return 1 + doc.maxPosition - doc.minPosition; } } return null; }
java
public HashMap<Integer, Integer> getAllNumberOfPositions(String field, int docBase) throws IOException { HashMap<Integer, Integer> numbers = new HashMap<Integer, Integer>(); if (fieldReferences.containsKey(field)) { FieldReferences fr = fieldReferences.get(field); IndexInput inIndexDoc = index...
java
public Integer getNumberOfTokens(String field, int docId) { if (fieldReferences.containsKey(field)) { IndexDoc doc = getDoc(field, docId); if (doc != null) { return doc.size; } } return null; }
java
@SuppressWarnings({"MethodMayBeStatic"}) protected void addAllInterningAndSuffixing(Collection<String> accumulator, Collection<String> addend, String suffix) { boolean nonNullSuffix = suffix != null && ! "".equals(suffix); if (nonNullSuffix) { suffix = '|' + suffix; } // boolean intern2 = ...
java
protected String getWord(CoreLabel label) { String word = label.getString(TextAnnotation.class); if (flags.wordFunction != null) { word = flags.wordFunction.apply(word); } return word; }
java
private MutableDouble mutableRemove(E key) { MutableDouble md = map.remove(key); if (md != null) { totalCount -= md.doubleValue(); } return md; }
java
public static base_response renumber(nitro_service client) throws Exception { nsacls renumberresource = new nsacls(); return renumberresource.perform_operation(client,"renumber"); }
java
public static base_response clear(nitro_service client) throws Exception { nsacls clearresource = new nsacls(); return clearresource.perform_operation(client,"clear"); }
java
public static base_response apply(nitro_service client) throws Exception { nsacls applyresource = new nsacls(); return applyresource.perform_operation(client,"apply"); }
java
public static vlan_linkset_binding[] get(nitro_service service, Long id) throws Exception{ vlan_linkset_binding obj = new vlan_linkset_binding(); obj.set_id(id); vlan_linkset_binding response[] = (vlan_linkset_binding[]) obj.get_resources(service); return response; }
java
public static base_response update(nitro_service client, nsencryptionparams resource) throws Exception { nsencryptionparams updateresource = new nsencryptionparams(); updateresource.method = resource.method; updateresource.keyvalue = resource.keyvalue; return updateresource.update_resource(client); }
java
public static nsencryptionparams get(nitro_service service) throws Exception{ nsencryptionparams obj = new nsencryptionparams(); nsencryptionparams[] response = (nsencryptionparams[])obj.get_resources(service); return response[0]; }
java
public static vpnvserver_auditsyslogpolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_auditsyslogpolicy_binding obj = new vpnvserver_auditsyslogpolicy_binding(); obj.set_name(name); vpnvserver_auditsyslogpolicy_binding response[] = (vpnvserver_auditsyslogpolicy_binding[]) obj.g...
java
public static appfwprofile_xmldosurl_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_xmldosurl_binding obj = new appfwprofile_xmldosurl_binding(); obj.set_name(name); appfwprofile_xmldosurl_binding response[] = (appfwprofile_xmldosurl_binding[]) obj.get_resources(service); retur...
java
public TregexPattern compile(String tregex) { for (Pair<String, String> macro : macros) { tregex = tregex.replaceAll(macro.first(), macro.second()); } TregexPattern pattern; try { TregexParser parser = new TregexParser(new StringReader(tregex + '\n'), ...
java
public static responderpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{ responderpolicy_csvserver_binding obj = new responderpolicy_csvserver_binding(); obj.set_name(name); responderpolicy_csvserver_binding response[] = (responderpolicy_csvserver_binding[]) obj.get_resources(se...
java
public static sslcrl_serialnumber_binding[] get(nitro_service service, String crlname) throws Exception{ sslcrl_serialnumber_binding obj = new sslcrl_serialnumber_binding(); obj.set_crlname(crlname); sslcrl_serialnumber_binding response[] = (sslcrl_serialnumber_binding[]) obj.get_resources(service); return resp...
java
public static long count(nitro_service service, String crlname) throws Exception{ sslcrl_serialnumber_binding obj = new sslcrl_serialnumber_binding(); obj.set_crlname(crlname); options option = new options(); option.set_count(true); sslcrl_serialnumber_binding response[] = (sslcrl_serialnumber_binding[]) obj....
java
public static base_response add(nitro_service client, aaauser resource) throws Exception { aaauser addresource = new aaauser(); addresource.username = resource.username; addresource.password = resource.password; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, aaauser resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { aaauser addresources[] = new aaauser[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new aaauser(); a...
java
public static base_response update(nitro_service client, aaauser resource) throws Exception { aaauser updateresource = new aaauser(); updateresource.username = resource.username; updateresource.password = resource.password; return updateresource.update_resource(client); }
java
public static aaauser[] get(nitro_service service) throws Exception{ aaauser obj = new aaauser(); aaauser[] response = (aaauser[])obj.get_resources(service); return response; }
java
public static aaauser[] get(nitro_service service, aaauser_args args) throws Exception{ aaauser obj = new aaauser(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); aaauser[] response = (aaauser[])obj.get_resources(service, option); return response; }
java
public static aaauser get(nitro_service service, String username) throws Exception{ aaauser obj = new aaauser(); obj.set_username(username); aaauser response = (aaauser) obj.get_resource(service); return response; }
java
public static aaauser[] get(nitro_service service, String username[]) throws Exception{ if (username !=null && username.length>0) { aaauser response[] = new aaauser[username.length]; aaauser obj[] = new aaauser[username.length]; for (int i=0;i<username.length;i++) { obj[i] = new aaauser(); obj[i].set...
java
public static authenticationcertpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationcertpolicy_authenticationvserver_binding obj = new authenticationcertpolicy_authenticationvserver_binding(); obj.set_name(name); authenticationcertpolicy_authenticationvse...
java
public void addRule(IntDependency dependency, double count) { if ( ! directional) { dependency = new IntDependency(dependency.head, dependency.arg, false, dependency.distance); } if (verbose) System.err.println("Adding dep " + dependency); // coreDependencies.incrementCount(dependency, cou...
java
private IntTaggedWord getCachedITW(short tag) { // The +2 below is because -1 and -2 are used with special meanings (see IntTaggedWord). if (tagITWList == null) { tagITWList = new ArrayList<IntTaggedWord>(numTagBins + 2); for (int i=0; i<numTagBins + 2; i++) { tagITWList.add(i, null); ...
java
protected void expandDependency(IntDependency dependency, double count) { //if (Test.prunePunc && pruneTW(dependency.arg)) // return; if (dependency.head == null || dependency.arg == null) { return; } if (dependency.arg.word != STOP_WORD_INT) { expandArg(dependency, valenceBin(...
java
public double scoreTB(IntDependency dependency) { return op.testOptions.depWeight * Math.log(probTB(dependency)); }
java
@Override public void readData(BufferedReader in) throws IOException { final String LEFT = "left"; int lineNum = 1; // all lines have one rule per line boolean doingStop = false; for (String line = in.readLine(); line != null && line.length() > 0; line = in.readLine()) { try { ...
java
@Override public void writeData(PrintWriter out) throws IOException { // all lines have one rule per line for (IntDependency dependency : argCounter.keySet()) { if (dependency.head != wildTW && dependency.arg != wildTW && dependency.head.word != -1 && dependency.arg.word != -1) { ...
java
public static base_response add(nitro_service client, vpnintranetapplication resource) throws Exception { vpnintranetapplication addresource = new vpnintranetapplication(); addresource.intranetapplication = resource.intranetapplication; addresource.protocol = resource.protocol; addresource.destip = resource.des...
java
public static base_responses add(nitro_service client, vpnintranetapplication resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { vpnintranetapplication addresources[] = new vpnintranetapplication[resources.length]; for (int i=0;i<resources.length;i++...
java
public static base_response delete(nitro_service client, String intranetapplication) throws Exception { vpnintranetapplication deleteresource = new vpnintranetapplication(); deleteresource.intranetapplication = intranetapplication; return deleteresource.delete_resource(client); }
java
public static vpnintranetapplication[] get(nitro_service service) throws Exception{ vpnintranetapplication obj = new vpnintranetapplication(); vpnintranetapplication[] response = (vpnintranetapplication[])obj.get_resources(service); return response; }
java
public static vpnintranetapplication get(nitro_service service, String intranetapplication) throws Exception{ vpnintranetapplication obj = new vpnintranetapplication(); obj.set_intranetapplication(intranetapplication); vpnintranetapplication response = (vpnintranetapplication) obj.get_resource(service); return ...
java
public static vpnintranetapplication[] get(nitro_service service, String intranetapplication[]) throws Exception{ if (intranetapplication !=null && intranetapplication.length>0) { vpnintranetapplication response[] = new vpnintranetapplication[intranetapplication.length]; vpnintranetapplication obj[] = new vpnin...
java
public static sslpolicy_sslvserver_binding[] get(nitro_service service, String name) throws Exception{ sslpolicy_sslvserver_binding obj = new sslpolicy_sslvserver_binding(); obj.set_name(name); sslpolicy_sslvserver_binding response[] = (sslpolicy_sslvserver_binding[]) obj.get_resources(service); return response...
java
public static tmsessionpolicy_tmglobal_binding[] get(nitro_service service, String name) throws Exception{ tmsessionpolicy_tmglobal_binding obj = new tmsessionpolicy_tmglobal_binding(); obj.set_name(name); tmsessionpolicy_tmglobal_binding response[] = (tmsessionpolicy_tmglobal_binding[]) obj.get_resources(service...
java
public static base_response update(nitro_service client, nsweblogparam resource) throws Exception { nsweblogparam updateresource = new nsweblogparam(); updateresource.buffersizemb = resource.buffersizemb; updateresource.customreqhdrs = resource.customreqhdrs; updateresource.customrsphdrs = resource.customrsphdr...
java
public static base_response unset(nitro_service client, nsweblogparam resource, String[] args) throws Exception{ nsweblogparam unsetresource = new nsweblogparam(); return unsetresource.unset_resource(client,args); }
java
public static nsweblogparam get(nitro_service service, options option) throws Exception{ nsweblogparam obj = new nsweblogparam(); nsweblogparam[] response = (nsweblogparam[])obj.get_resources(service,option); return response[0]; }
java
public static nslicense get(nitro_service service) throws Exception{ nslicense obj = new nslicense(); nslicense[] response = (nslicense[])obj.get_resources(service); return response[0]; }
java
public static ipset_binding get(nitro_service service, String name) throws Exception{ ipset_binding obj = new ipset_binding(); obj.set_name(name); ipset_binding response = (ipset_binding) obj.get_resource(service); return response; }
java
public long[] elements() { long[] myElements = new long[size]; for (int i=size; --i >= 0; ) myElements[i]=getQuick(i); return myElements; } /** * Sets the receiver's elements to be the specified array. * The size and capacity of the list is the length of the array. * <b>WARNING:</b> For efficiency reasons...
java
public static auditsyslogpolicy_binding get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_binding obj = new auditsyslogpolicy_binding(); obj.set_name(name); auditsyslogpolicy_binding response = (auditsyslogpolicy_binding) obj.get_resource(service); return response; }
java
public static sslcipher_sslciphersuite_binding[] get(nitro_service service, String ciphergroupname) throws Exception{ sslcipher_sslciphersuite_binding obj = new sslcipher_sslciphersuite_binding(); obj.set_ciphergroupname(ciphergroupname); sslcipher_sslciphersuite_binding response[] = (sslcipher_sslciphersuite_bin...
java
public static sslcipher_binding get(nitro_service service, String ciphergroupname) throws Exception{ sslcipher_binding obj = new sslcipher_binding(); obj.set_ciphergroupname(ciphergroupname); sslcipher_binding response = (sslcipher_binding) obj.get_resource(service); return response; }
java
public static auditnslogpolicy_tmglobal_binding[] get(nitro_service service, String name) throws Exception{ auditnslogpolicy_tmglobal_binding obj = new auditnslogpolicy_tmglobal_binding(); obj.set_name(name); auditnslogpolicy_tmglobal_binding response[] = (auditnslogpolicy_tmglobal_binding[]) obj.get_resources(se...
java
public static base_response update(nitro_service client, nsdhcpparams resource) throws Exception { nsdhcpparams updateresource = new nsdhcpparams(); updateresource.dhcpclient = resource.dhcpclient; updateresource.saveroute = resource.saveroute; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, nsdhcpparams resource, String[] args) throws Exception{ nsdhcpparams unsetresource = new nsdhcpparams(); return unsetresource.unset_resource(client,args); }
java
public static nsdhcpparams get(nitro_service service) throws Exception{ nsdhcpparams obj = new nsdhcpparams(); nsdhcpparams[] response = (nsdhcpparams[])obj.get_resources(service); return response[0]; }
java
public static base_response update(nitro_service client, filterprebodyinjection resource) throws Exception { filterprebodyinjection updateresource = new filterprebodyinjection(); updateresource.prebody = resource.prebody; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, filterprebodyinjection resource, String[] args) throws Exception{ filterprebodyinjection unsetresource = new filterprebodyinjection(); return unsetresource.unset_resource(client,args); }
java
public static filterprebodyinjection get(nitro_service service) throws Exception{ filterprebodyinjection obj = new filterprebodyinjection(); filterprebodyinjection[] response = (filterprebodyinjection[])obj.get_resources(service); return response[0]; }
java
public static vpntrafficpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{ vpntrafficpolicy_aaauser_binding obj = new vpntrafficpolicy_aaauser_binding(); obj.set_name(name); vpntrafficpolicy_aaauser_binding response[] = (vpntrafficpolicy_aaauser_binding[]) obj.get_resources(service...
java
public static sslpolicylabel_sslpolicy_binding[] get(nitro_service service, String labelname) throws Exception{ sslpolicylabel_sslpolicy_binding obj = new sslpolicylabel_sslpolicy_binding(); obj.set_labelname(labelname); sslpolicylabel_sslpolicy_binding response[] = (sslpolicylabel_sslpolicy_binding[]) obj.get_re...
java
void init() { numnegative = new int[numSamples() + 1]; numpositive = new int[numSamples() + 1]; numnegative[0] = 0; numpositive[0] = 0; int num = numSamples(); for (int i = 1; i <= num; i++) { numnegative[i] = numnegative[i - 1] + (classes[i - 1] == 0 ? 1 : 0); } for (int ...
java
public int precision(int recall) { int optimum = 0; for (int right = 0; right <= recall; right++) { int candidate = numpositive[right] + numnegative[recall - right]; if (candidate > optimum) { optimum = candidate; } } return optimum; }
java
public double fmeasure(int numleft, int numright) { int tp = 0, fp = 0, fn = 0; tp = numpositive[numright]; fp = numright - tp; fn = numleft - numnegative[numleft]; return f1(tp, fp, fn); }
java
public int logPrecision(int recall) { int totaltaken = 0; int rightIndex = numSamples() - 1; //next right candidate int leftIndex = 0; //next left candidate int totalcorrect = 0; while (totaltaken < recall) { double confr = Math.abs(scores[rightIndex] - .5); double confl = Math....
java
public double optFmeasure(int recall) { double max = 0; for (int i = 0; i < (recall + 1); i++) { double f = fmeasure(i, recall - i); if (f > max) { max = f; } } return max; }
java
public double fmeasure(int recall) { int totaltaken = 0; int rightIndex = numSamples() - 1; //next right candidate int leftIndex = 0; //next left candidate int tp = 0, fp = 0, fn = 0; while (totaltaken < recall) { double confr = Math.abs(scores[rightIndex] - .5); double confl = Ma...
java
public double logLikelihood() { double loglik = 0; for (int i = 0; i < scores.length; i++) { loglik += Math.log(classes[i] == 0 ? 1 - scores[i] : scores[i]); } return loglik; }
java
public double optimalCwa() { double acc = 0; for (int recall = 1; recall <= numSamples(); recall++) { acc += precision(recall) / (double) recall; } return acc / numSamples(); }
java
public static nssimpleacl6_stats get(nitro_service service) throws Exception{ nssimpleacl6_stats obj = new nssimpleacl6_stats(); nssimpleacl6_stats[] response = (nssimpleacl6_stats[])obj.stat_resources(service); return response[0]; }
java
public static Pair<TregexPattern, TsurgeonPattern> getOperationFromReader(BufferedReader reader, TregexPatternCompiler compiler) throws IOException { String patternString = getPatternFromFile(reader); // System.err.println("Read tregex pattern: " + patternString); if ("".equals(patternString)) { r...
java
public static String getPatternFromFile(BufferedReader reader) throws IOException { StringBuilder matchString = new StringBuilder(); for (String thisLine; (thisLine = reader.readLine()) != null; ) { if (matchString.length() > 0 && emptyLinePattern.matcher(thisLine).matches()) { // A blank line...
java
public static List<Pair<TregexPattern, TsurgeonPattern>> getOperationsFromFile(String filename, String encoding, TregexPatternCompiler compiler) throws IOException { List<Pair<TregexPattern,TsurgeonPattern>> operations = new ArrayList<Pair<TregexPattern, TsurgeonPattern>>(); BufferedReader reader = new Buffer...
java
public static Tree processPatternsOnTree(List<Pair<TregexPattern, TsurgeonPattern>> ops, Tree t) { matchedOnTree = false; for (Pair<TregexPattern,TsurgeonPattern> op : ops) { try { if (DEBUG) { System.err.println("Running pattern " + op.first()); } TregexMatcher m ...
java
public static TsurgeonPattern collectOperations(List<TsurgeonPattern> patterns) { return new TsurgeonPatternRoot(patterns.toArray(new TsurgeonPattern[patterns.size()])); }
java
public static dnspolicylabel_stats[] get(nitro_service service, options option) throws Exception{ dnspolicylabel_stats obj = new dnspolicylabel_stats(); dnspolicylabel_stats[] response = (dnspolicylabel_stats[])obj.stat_resources(service,option); return response; }
java
public static dnspolicylabel_stats get(nitro_service service, String labelname) throws Exception{ dnspolicylabel_stats obj = new dnspolicylabel_stats(); obj.set_labelname(labelname); dnspolicylabel_stats response = (dnspolicylabel_stats) obj.stat_resource(service); return response; }
java
public static gslbvserver_domain_binding[] get(nitro_service service, String name) throws Exception{ gslbvserver_domain_binding obj = new gslbvserver_domain_binding(); obj.set_name(name); gslbvserver_domain_binding response[] = (gslbvserver_domain_binding[]) obj.get_resources(service); return response; }
java
public static base_response add(nitro_service client, nsip resource) throws Exception { nsip addresource = new nsip(); addresource.ipaddress = resource.ipaddress; addresource.netmask = resource.netmask; addresource.type = resource.type; addresource.arp = resource.arp; addresource.icmp = resource.icmp; add...
java
public static base_responses add(nitro_service client, nsip resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsip addresources[] = new nsip[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new nsip(); addresources[...
java
public static base_response delete(nitro_service client, nsip resource) throws Exception { nsip deleteresource = new nsip(); deleteresource.ipaddress = resource.ipaddress; deleteresource.td = resource.td; return deleteresource.delete_resource(client); }
java
public static base_response update(nitro_service client, nsip resource) throws Exception { nsip updateresource = new nsip(); updateresource.ipaddress = resource.ipaddress; updateresource.td = resource.td; updateresource.netmask = resource.netmask; updateresource.arp = resource.arp; updateresource.icmp = res...
java
public static base_responses update(nitro_service client, nsip resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsip updateresources[] = new nsip[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nsip(); upda...
java
public static base_response unset(nitro_service client, nsip resource, String[] args) throws Exception{ nsip unsetresource = new nsip(); unsetresource.ipaddress = resource.ipaddress; unsetresource.td = resource.td; return unsetresource.unset_resource(client,args); }
java
public static base_response enable(nitro_service client, String ipaddress) throws Exception { nsip enableresource = new nsip(); enableresource.ipaddress = ipaddress; return enableresource.perform_operation(client,"enable"); }
java
public static base_response enable(nitro_service client, nsip resource) throws Exception { nsip enableresource = new nsip(); enableresource.ipaddress = resource.ipaddress; enableresource.td = resource.td; return enableresource.perform_operation(client,"enable"); }
java
public static base_responses enable(nitro_service client, String ipaddress[]) throws Exception { base_responses result = null; if (ipaddress != null && ipaddress.length > 0) { nsip enableresources[] = new nsip[ipaddress.length]; for (int i=0;i<ipaddress.length;i++){ enableresources[i] = new nsip(); en...
java