code
stringlengths
73
34.1k
label
stringclasses
1 value
public static tunnelglobal_tunneltrafficpolicy_binding[] get(nitro_service service) throws Exception{ tunnelglobal_tunneltrafficpolicy_binding obj = new tunnelglobal_tunneltrafficpolicy_binding(); tunnelglobal_tunneltrafficpolicy_binding response[] = (tunnelglobal_tunneltrafficpolicy_binding[]) obj.get_resources(se...
java
public static pq_stats get(nitro_service service) throws Exception{ pq_stats obj = new pq_stats(); pq_stats[] response = (pq_stats[])obj.stat_resources(service); return response[0]; }
java
public static csvserver_authorizationpolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_authorizationpolicy_binding obj = new csvserver_authorizationpolicy_binding(); obj.set_name(name); csvserver_authorizationpolicy_binding response[] = (csvserver_authorizationpolicy_binding[]) ...
java
@Override public Tree newTreeNode(Label parentLabel, List<Tree> children) { return new LabeledScoredTreeNode(lf.newLabel(parentLabel), children); }
java
public static policystringmap_binding get(nitro_service service, String name) throws Exception{ policystringmap_binding obj = new policystringmap_binding(); obj.set_name(name); policystringmap_binding response = (policystringmap_binding) obj.get_resource(service); return response; }
java
public static long count(nitro_service service, clusternodegroup_crvserver_binding obj) throws Exception{ options option = new options(); option.set_count(true); option.set_args(nitro_util.object_to_string_withoutquotes(obj)); clusternodegroup_crvserver_binding response[] = (clusternodegroup_crvserver_binding[]...
java
public static <T> Set<T> asSet(T[] a) { return new HashSet<T>(Arrays.asList(a)); }
java
public static double[] toDouble(float[] a) { double[] d = new double[a.length]; for (int i = 0; i < a.length; i++) { d[i] = a[i]; } return d; }
java
public static double[] toDouble(int[] array) { double[] rv = new double[array.length]; for (int i = 0; i < array.length; i++) { rv[i] = array[i]; } return rv; }
java
public static base_response add(nitro_service client, vpnsessionpolicy resource) throws Exception { vpnsessionpolicy addresource = new vpnsessionpolicy(); addresource.name = resource.name; addresource.rule = resource.rule; addresource.action = resource.action; return addresource.add_resource(client); }
java
public static base_response update(nitro_service client, vpnsessionpolicy resource) throws Exception { vpnsessionpolicy updateresource = new vpnsessionpolicy(); updateresource.name = resource.name; updateresource.rule = resource.rule; updateresource.action = resource.action; return updateresource.update_resou...
java
public static vpnsessionpolicy[] get(nitro_service service) throws Exception{ vpnsessionpolicy obj = new vpnsessionpolicy(); vpnsessionpolicy[] response = (vpnsessionpolicy[])obj.get_resources(service); return response; }
java
public static vpnsessionpolicy get(nitro_service service, String name) throws Exception{ vpnsessionpolicy obj = new vpnsessionpolicy(); obj.set_name(name); vpnsessionpolicy response = (vpnsessionpolicy) obj.get_resource(service); return response; }
java
private static Pair<Double, ClassicCounter<Integer>> readModel(File modelFile, boolean multiclass) { int modelLineCount = 0; try { int numLinesToSkip = multiclass ? 13 : 10; String stopToken = "#"; BufferedReader in = new BufferedReader(new FileReader(modelFile)); for (int ...
java
private ClassicCounter<Pair<F, L>> convertWeights(ClassicCounter<Integer> weights, Index<F> featureIndex, Index<L> labelIndex, boolean multiclass) { return multiclass ? convertSVMStructWeights(weights, featureIndex, labelIndex) : convertSVMLightWeights(weights, featureIndex, labelIndex); }
java
private LinearClassifier<L, L> fitSigmoid(SVMLightClassifier<L, F> classifier, GeneralDataset<L, F> dataset) { RVFDataset<L, L> plattDataset = new RVFDataset<L, L>(); for (int i = 0; i < dataset.size(); i++) { RVFDatum<L, F> d = dataset.getRVFDatum(i); Counter<L> scores = classifier.scoresOf((Da...
java
public static gslbservice_binding get(nitro_service service, String servicename) throws Exception{ gslbservice_binding obj = new gslbservice_binding(); obj.set_servicename(servicename); gslbservice_binding response = (gslbservice_binding) obj.get_resource(service); return response; }
java
public Reader getUrl(String prefix, String postfix) throws MtasParserException { String url = getString(); if ((url != null) && !url.equals("")) { if (prefix != null) { url = prefix + url; } if (postfix != null) { url = url + postfix; } if (url.startsWith("htt...
java
public Reader getFile(String prefix, String postfix) throws MtasParserException { String file = getString(); if ((file != null) && !file.equals("")) { if (prefix != null) { file = prefix + file; } if (postfix != null) { file = file + postfix; } Path path = (ne...
java
public static service_binding get(nitro_service service, String name) throws Exception{ service_binding obj = new service_binding(); obj.set_name(name); service_binding response = (service_binding) obj.get_resource(service); return response; }
java
public static systemglobal_authenticationlocalpolicy_binding[] get(nitro_service service) throws Exception{ systemglobal_authenticationlocalpolicy_binding obj = new systemglobal_authenticationlocalpolicy_binding(); systemglobal_authenticationlocalpolicy_binding response[] = (systemglobal_authenticationlocalpolicy_b...
java
public static auditsyslogpolicy_tmglobal_binding[] get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_tmglobal_binding obj = new auditsyslogpolicy_tmglobal_binding(); obj.set_name(name); auditsyslogpolicy_tmglobal_binding response[] = (auditsyslogpolicy_tmglobal_binding[]) obj.get_resourc...
java
String readLine(boolean ignoreLF) throws IOException { StringBuffer s = null; int startChar; synchronized (lock) { ensureOpen(); boolean omitLF = ignoreLF || skipLF; for (;;) { if (nextChar >= nChars) fill(); if (nextChar >= nChars) { /* EOF */ if (s ...
java
public static base_response unset(nitro_service client, vpnparameter resource, String[] args) throws Exception{ vpnparameter unsetresource = new vpnparameter(); return unsetresource.unset_resource(client,args); }
java
public static vpnparameter get(nitro_service service, options option) throws Exception{ vpnparameter obj = new vpnparameter(); vpnparameter[] response = (vpnparameter[])obj.get_resources(service,option); return response[0]; }
java
public Iterator<List<IN>> getIterator(Reader r) { Tokenizer<IN> tokenizer = tokenizerFactory.getTokenizer(r); // PTBTokenizer.newPTBTokenizer(r, false, true); List<IN> words = new ArrayList<IN>(); IN previous = tokenFactory.makeToken(); StringBuilder prepend = new StringBuilder(); /* ...
java
public static lbvserver_dospolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_dospolicy_binding obj = new lbvserver_dospolicy_binding(); obj.set_name(name); lbvserver_dospolicy_binding response[] = (lbvserver_dospolicy_binding[]) obj.get_resources(service); return response; }
java
public static nsrunningconfig get(nitro_service service) throws Exception{ nsrunningconfig obj = new nsrunningconfig(); nsrunningconfig[] response = (nsrunningconfig[])obj.get_resources(service); return response[0]; }
java
public static nsrunningconfig[] get(nitro_service service, nsrunningconfig_args args) throws Exception{ nsrunningconfig obj = new nsrunningconfig(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); nsrunningconfig[] response = (nsrunningconfig[])obj.get_resources...
java
public static servicegroup_servicegroupmember_binding[] get(nitro_service service, String servicegroupname) throws Exception{ servicegroup_servicegroupmember_binding obj = new servicegroup_servicegroupmember_binding(); obj.set_servicegroupname(servicegroupname); servicegroup_servicegroupmember_binding response[] ...
java
public static aaagroup_auditnslogpolicy_binding[] get(nitro_service service, String groupname) throws Exception{ aaagroup_auditnslogpolicy_binding obj = new aaagroup_auditnslogpolicy_binding(); obj.set_groupname(groupname); aaagroup_auditnslogpolicy_binding response[] = (aaagroup_auditnslogpolicy_binding[]) obj.g...
java
public static nd6ravariables_onlinkipv6prefix_binding[] get(nitro_service service, Long vlan) throws Exception{ nd6ravariables_onlinkipv6prefix_binding obj = new nd6ravariables_onlinkipv6prefix_binding(); obj.set_vlan(vlan); nd6ravariables_onlinkipv6prefix_binding response[] = (nd6ravariables_onlinkipv6prefix_bin...
java
public static double[] exp(double[] a) { double[] result = new double[a.length]; for (int i = 0; i < a.length; i++) { result[i] = Math.exp(a[i]); } return result; }
java
public static void expInPlace(double[] a) { for (int i = 0; i < a.length; i++) { a[i] = Math.exp(a[i]); } }
java
public static void addInPlace(double[] a, double b) { for (int i = 0; i < a.length; i++) { a[i] = a[i] + b; } }
java
public static void addMultInPlace(double[] a, double[] b, double c) { for (int i=0; i<a.length; i++) { a[i] += b[i] * c; } }
java
public static void multiplyInPlace(double[] a, double b) { for (int i = 0; i < a.length; i++) { a[i] = a[i] * b; } }
java
public static double[] add(double[] a, double c) { double[] result = new double[a.length]; for (int i = 0; i < a.length; i++) { result[i] = a[i] + c; } return result; }
java
public static double[] pow(double[] a, double c) { double[] result = new double[a.length]; for (int i = 0; i < a.length; i++) { result[i] = Math.pow(a[i], c); } return result; }
java
public static int[] pairwiseAdd(int[] a, int[] b) { int[] result = new int[a.length]; for (int i = 0; i < a.length; i++) { result[i] = a[i] + b[i]; } return result; }
java
public static double[] pairwiseMultiply(double[] a, double[] b) { if (a.length != b.length) { throw new RuntimeException("Can't pairwise multiple different lengths: a.length=" + a.length + " b.length=" + b.length); } double[] result = new double[a.length]; for (int i = 0; i < result.length; i...
java
public static double norm_1(double[] a) { double sum = 0; for (double anA : a) { sum += (anA < 0 ? -anA : anA); } return sum; }
java
public static double norm(double[] a) { double squaredSum = 0; for (double anA : a) { squaredSum += anA * anA; } return Math.sqrt(squaredSum); }
java
public static double innerProduct(double[] a, double[] b) { double result = 0.0; int len = Math.min(a.length, b.length); for (int i = 0; i < len; i++) { result += a[i] * b[i]; } return result; }
java
public static void normalize(double[] a) { double total = sum(a); if (total == 0.0 || Double.isNaN(total)) { throw new RuntimeException("Can't normalize an array with sum 0.0 or NaN: " + Arrays.toString(a)); } multiplyInPlace(a, 1.0/total); // divide each value by total }
java
public static void standardize(double[] a) { double m = mean(a); if (Double.isNaN(m)) throw new RuntimeException("Can't standardize array whose mean is NaN"); double s = stdev(a); if(s == 0.0 || Double.isNaN(s)) throw new RuntimeException("Can't standardize array whose standard deviati...
java
public static int sampleFromDistribution(double[] d, Random random) { // sample from the uniform [0,1] double r = random.nextDouble(); // now compare its value to cumulative values to find what interval it falls in double total = 0; for (int i = 0; i < d.length - 1; i++) { if (Double.isN...
java
public static void sampleWithoutReplacement(int[] array, int numArgClasses, Random rand) { int[] temp = new int[numArgClasses]; for (int i = 0; i < temp.length; i++) { temp[i] = i; } shuffle(temp, rand); System.arraycopy(temp, 0, array, 0, array.length); }
java
private static double absDiffOfMeans(double[] A, double[] B, boolean randomize) { Random random = new Random(); double aTotal = 0.0; double bTotal = 0.0; for (int i = 0; i < A.length; i++) { if (randomize && random.nextBoolean()) { aTotal += B[i]; bTotal += A[i]; } el...
java
public static appfwpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{ appfwpolicy_lbvserver_binding obj = new appfwpolicy_lbvserver_binding(); obj.set_name(name); appfwpolicy_lbvserver_binding response[] = (appfwpolicy_lbvserver_binding[]) obj.get_resources(service); return res...
java
public static Session getSession(String wrapper, Object... parameters) { // This will be the session loaded depending the selected wrapper org.riverframework.wrapper.Session<?> _session = null; // Trying to retrieve the session from the map Session session = map.get(wrapper); if (session != null && session....
java
public static void closeSession(String wrapper) { Session session = map.get(wrapper); if (session != null) { Method method; try { method = session.getClass().getDeclaredMethod("protectedClose"); method.setAccessible(true); method.invoke(session); } catch (InvocationTargetException e) { thro...
java
public static base_response update(nitro_service client, ntpparam resource) throws Exception { ntpparam updateresource = new ntpparam(); updateresource.authentication = resource.authentication; updateresource.trustedkey = resource.trustedkey; updateresource.autokeylogsec = resource.autokeylogsec; updateresour...
java
public static base_response unset(nitro_service client, ntpparam resource, String[] args) throws Exception{ ntpparam unsetresource = new ntpparam(); return unsetresource.unset_resource(client,args); }
java
public static ntpparam get(nitro_service service) throws Exception{ ntpparam obj = new ntpparam(); ntpparam[] response = (ntpparam[])obj.get_resources(service); return response[0]; }
java
public static base_response update(nitro_service client, snmpengineid resource) throws Exception { snmpengineid updateresource = new snmpengineid(); updateresource.engineid = resource.engineid; updateresource.ownernode = resource.ownernode; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, snmpengineid resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmpengineid updateresources[] = new snmpengineid[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i...
java
public static base_response unset(nitro_service client, Long ownernode, String args[]) throws Exception { snmpengineid unsetresource = new snmpengineid(); unsetresource.ownernode = ownernode; return unsetresource.unset_resource(client, args); }
java
public static base_responses unset(nitro_service client, Long ownernode[], String args[]) throws Exception { base_responses result = null; if (ownernode != null && ownernode.length > 0) { snmpengineid unsetresources[] = new snmpengineid[ownernode.length]; for (int i=0;i<ownernode.length;i++){ unsetresourc...
java
public static snmpengineid[] get(nitro_service service) throws Exception{ snmpengineid obj = new snmpengineid(); snmpengineid[] response = (snmpengineid[])obj.get_resources(service); return response; }
java
public static snmpengineid get(nitro_service service, Long ownernode) throws Exception{ snmpengineid obj = new snmpengineid(); obj.set_ownernode(ownernode); snmpengineid response = (snmpengineid) obj.get_resource(service); return response; }
java
public static snmpengineid[] get(nitro_service service, Long ownernode[]) throws Exception{ if (ownernode !=null && ownernode.length>0) { snmpengineid response[] = new snmpengineid[ownernode.length]; snmpengineid obj[] = new snmpengineid[ownernode.length]; for (int i=0;i<ownernode.length;i++) { obj[i] = ...
java
public static base_response enable(nitro_service client, sslfipssimsource resource) throws Exception { sslfipssimsource enableresource = new sslfipssimsource(); enableresource.targetsecret = resource.targetsecret; enableresource.sourcesecret = resource.sourcesecret; return enableresource.perform_operation(clien...
java
public static base_response init(nitro_service client, sslfipssimsource resource) throws Exception { sslfipssimsource initresource = new sslfipssimsource(); initresource.certfile = resource.certfile; return initresource.perform_operation(client,"init"); }
java
public static base_response renumber(nitro_service client) throws Exception { nspbrs renumberresource = new nspbrs(); return renumberresource.perform_operation(client,"renumber"); }
java
public static base_response clear(nitro_service client) throws Exception { nspbrs clearresource = new nspbrs(); return clearresource.perform_operation(client,"clear"); }
java
public static base_response apply(nitro_service client) throws Exception { nspbrs applyresource = new nspbrs(); return applyresource.perform_operation(client,"apply"); }
java
public static appflowpolicylabel_appflowpolicy_binding[] get(nitro_service service, String labelname) throws Exception{ appflowpolicylabel_appflowpolicy_binding obj = new appflowpolicylabel_appflowpolicy_binding(); obj.set_labelname(labelname); appflowpolicylabel_appflowpolicy_binding response[] = (appflowpolicyl...
java
@SuppressWarnings("unchecked") private void repairPrefixItems(NamedList<Object> mtasResponse) { // repair prefix lists try { ArrayList<NamedList<?>> list = (ArrayList<NamedList<?>>) mtasResponse .findRecursive(NAME); // MtasSolrResultUtil.rewrite(list); if (list != null) { ...
java
private static Set<String> collectKnownPrefixes(FieldInfo fi) throws IOException { if (fi != null) { HashSet<String> result = new HashSet<>(); String singlePositionPrefixes = fi.getAttribute( MtasCodecPostingsFormat.MTAS_FIELDINFO_ATTRIBUTE_PREFIX_SINGLE_POSITION); String multipleP...
java
private static Set<String> collectIntersectionPrefixes(FieldInfo fi) throws IOException { if (fi != null) { Set<String> result = new HashSet<>(); String intersectingPrefixes = fi.getAttribute( MtasCodecPostingsFormat.MTAS_FIELDINFO_ATTRIBUTE_PREFIX_INTERSECTION); if (intersectingPr...
java
private static void collectPrefixes(FieldInfos fieldInfos, String field, ComponentField fieldInfo, Status status) throws IOException { if (fieldInfo.prefix != null) { FieldInfo fi = fieldInfos.fieldInfo(field); if (fi != null) { String singlePositionPrefixes = fi.getAttribute( ...
java
private static Map<GroupHit, Spans> collectSpansForOccurences( Set<GroupHit> occurences, Set<String> prefixes, String field, IndexSearcher searcher, LeafReaderContext lrc) throws IOException { Map<GroupHit, Spans> list = new HashMap<>(); IndexReader reader = searcher.getIndexReader(); final floa...
java
private static MtasSpanQuery createQueryFromGroupHit(Set<String> prefixes, String field, GroupHit hit) { // initial check if (prefixes == null || field == null || hit == null) { return null; } else { MtasSpanQuery query = null; // check for missing if (hit.missingLeft != null &...
java
private static MtasSpanQuery createSubQueryFromGroupHit(List<String>[] subHit, boolean reverse, String field) { MtasSpanQuery query = null; if (subHit != null && subHit.length > 0) { List<MtasSpanSequenceItem> items = new ArrayList<>(); List<String> subHitItem; for (int i = 0; i < subHit...
java
private static Map<Integer, Integer> computePositions(CodecInfo mtasCodecInfo, LeafReader r, LeafReaderContext lrc, String field, List<Integer> docSet) throws IOException { HashMap<Integer, Integer> positionsData; if (mtasCodecInfo != null) { // for relatively small numbers, compute only what ...
java
private static Map<Integer, long[]> computeArguments( Map<MtasSpanQuery, Map<Integer, Integer>> spansNumberData, MtasSpanQuery[] queries, Integer[] docSet) { Map<Integer, long[]> args = new HashMap<>(); for (int q = 0; q < queries.length; q++) { Map<Integer, Integer> tmpData = spansNumberData....
java
private static Integer[] intersectedDocList(int[] facetDocList, Integer[] docSet) { if (facetDocList != null && docSet != null) { Integer[] c = new Integer[Math.min(facetDocList.length, docSet.length)]; int ai = 0; int bi = 0; int ci = 0; while (ai < facetDocList.length && bi < d...
java
private static void createPositions(List<ComponentPosition> statsPositionList, Map<Integer, Integer> positionsData, List<Integer> docSet) throws IOException { if (statsPositionList != null) { for (ComponentPosition position : statsPositionList) { position.dataCollector.initNewList(1); ...
java
private static void createTokens(List<ComponentToken> statsTokenList, Map<Integer, Integer> tokensData, List<Integer> docSet) throws IOException { if (statsTokenList != null) { for (ComponentToken token : statsTokenList) { token.dataCollector.initNewList(1); Integer tmpValue; ...
java
private static boolean availablePrefixes(ComponentGroup group, Set<String> knownPrefixes) { if (knownPrefixes != null) { for (String prefix : group.prefixes) { if (knownPrefixes.contains(prefix)) { return true; } } } return false; }
java
private static boolean intersectionPrefixes(ComponentGroup group, Set<String> intersectionPrefixes) { if (intersectionPrefixes != null) { for (String prefix : group.prefixes) { if (intersectionPrefixes.contains(prefix)) { return true; } } } return false; }
java
private static IntervalTreeNodeData<String> createPositionHit(Match m, ComponentGroup group) { Integer start = null; Integer end = null; if (group.hitInside != null || group.hitInsideLeft != null || group.hitInsideRight != null) { start = m.startPosition; end = m.endPosition - 1; ...
java
private static void sortMatchList(List<Match> list) { if (list != null) { // light sorting on start position Collections.sort(list, (Match m1, Match m2) -> (Integer.compare(m1.startPosition, m2.startPosition))); } }
java
private static String groupedKeyName(String key, Double baseRangeSize, Double baseRangeBase) { final double precision = 0.000001; if (baseRangeSize == null || baseRangeSize <= 0) { return key; } else { Double doubleKey; Double doubleBase; Double doubleNumber; Double doubl...
java
private static Integer[] mergeDocLists(Integer[] a, Integer[] b) { Integer[] answer = new Integer[a.length + b.length]; int i = 0; int j = 0; int k = 0; Integer tmp; while (i < a.length && j < b.length) { tmp = a[i] < b[j] ? a[i++] : b[j++]; for (; i < a.length && a[i].equals(tmp); i...
java
private static void createFacet(List<ComponentFacet> facetList, Map<Integer, Integer> positionsData, Map<MtasSpanQuery, Map<Integer, Integer>> spansNumberData, Map<String, SortedMap<String, int[]>> facetData, List<Integer> docSet) throws IOException { if (facetList != null) { for (Com...
java
private static boolean validateTermWithStartValue(BytesRef term, ComponentTermVector termVector) { if (termVector.startValue == null) { return true; } else if (termVector.subComponentFunction.sortType .equals(CodecUtil.SORT_TERM)) { if (term.length > termVector.startValue.length) { ...
java
private static boolean validateTermWithDistance(BytesRef term, ComponentTermVector termVector) throws IOException { if (termVector.distances == null || termVector.distances.isEmpty()) { return true; } else { // first check maximum for all distances for (SubComponentDistance item : termVe...
java
private static boolean needSecondRoundTermvector( List<ComponentTermVector> termVectorList) throws IOException { boolean needSecondRound = false; for (ComponentTermVector termVector : termVectorList) { if (!termVector.full && termVector.list == null) { boolean doCheck; doCheck = term...
java
private static boolean preliminaryRegisterValue(BytesRef term, ComponentTermVector termVector, TermvectorNumberBasic number, Integer termNumberMaximum, Integer segmentNumber, String[] mutableKey) throws IOException { long sortValue = 0; if (termVector.subComponentFunction.sortDirection ...
java
private static TermvectorNumberFull computeTermvectorNumberFull( List<Integer> docSet, int termDocId, TermsEnum termsEnum, LeafReaderContext lrc, PostingsEnum postingsEnum, Map<Integer, Integer> positionsData) throws IOException { TermvectorNumberFull result = new TermvectorNumberFull(docSet.size(...
java
public boolean containsKey(String key) { key = key.toLowerCase(); key = key.trim(); return map.containsKey(key); }
java
public Map<String, Set<String>> getReverseMap() { Set<Map.Entry<String,Set<String>>> entries = map.entrySet(); Map<String, Set<String>> rMap = new HashMap<String, Set<String>>(entries.size()); for (Map.Entry<String,Set<String>> me : entries) { String k = me.getKey(); Set<String> transList =...
java
public int addMap(Map<String, Set<String>> addM) { int newTrans = 0; for (Map.Entry<String,Set<String>> me : addM.entrySet()) { String k = me.getKey(); Set<String> addList = me.getValue(); Set<String> origList = map.get(k); if (origList == null) { map.put(k, new LinkedHa...
java
public static base_response add(nitro_service client, dnssoarec resource) throws Exception { dnssoarec addresource = new dnssoarec(); addresource.domain = resource.domain; addresource.originserver = resource.originserver; addresource.contact = resource.contact; addresource.serial = resource.serial; addresou...
java
public static base_responses add(nitro_service client, dnssoarec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnssoarec addresources[] = new dnssoarec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnssoarec(...
java
public static base_responses delete(nitro_service client, dnssoarec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnssoarec deleteresources[] = new dnssoarec[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new d...
java
public static base_response update(nitro_service client, dnssoarec resource) throws Exception { dnssoarec updateresource = new dnssoarec(); updateresource.domain = resource.domain; updateresource.originserver = resource.originserver; updateresource.contact = resource.contact; updateresource.serial = resource....
java
public static base_responses update(nitro_service client, dnssoarec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnssoarec updateresources[] = new dnssoarec[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new d...
java