code
stringlengths
73
34.1k
label
stringclasses
1 value
public static base_response Import(nitro_service client, responderhtmlpage resource) throws Exception { responderhtmlpage Importresource = new responderhtmlpage(); Importresource.src = resource.src; Importresource.name = resource.name; Importresource.comment = resource.comment; Importresource.overwrite = reso...
java
public static base_response change(nitro_service client, responderhtmlpage resource) throws Exception { responderhtmlpage updateresource = new responderhtmlpage(); updateresource.name = resource.name; return updateresource.perform_operation(client,"update"); }
java
public static responderhtmlpage get(nitro_service service) throws Exception{ responderhtmlpage obj = new responderhtmlpage(); responderhtmlpage[] response = (responderhtmlpage[])obj.get_resources(service); return response[0]; }
java
public static responderhtmlpage get(nitro_service service, String name) throws Exception{ responderhtmlpage obj = new responderhtmlpage(); obj.set_name(name); responderhtmlpage response = (responderhtmlpage) obj.get_resource(service); return response; }
java
private double goldenMean(double a, double b) { if (geometric) { return a * Math.pow(b / a, GOLDEN_SECTION); } else { return a + (b - a) * GOLDEN_SECTION; } }
java
public int getNumWeights() { if (weights == null) return 0; int numWeights = 0; for (double[] wts : weights) { numWeights += wts.length; } return numWeights; }
java
public void scaleWeights(double scale) { for (int i = 0; i < weights.length; i++) { for (int j = 0; j < weights[i].length; j++) { weights[i][j] *= scale; } } }
java
public void combine(CRFClassifier<IN> crf, double weight) { Timing timer = new Timing(); // Check the CRFClassifiers are compatible if (!this.pad.equals(crf.pad)) { throw new RuntimeException("Incompatible CRFClassifier: pad does not match"); } if (this.windowSize != crf.windowSize) { ...
java
public Pair<int[][][], int[]> documentToDataAndLabels(List<IN> document) { int docSize = document.size(); // first index is position in the document also the index of the // clique/factor table // second index is the number of elements in the clique/window these // features are for (starting ...
java
public Pair<int[][][][], int[][]> documentsToDataAndLabels(Collection<List<IN>> documents) { // first index is the number of the document // second index is position in the document also the index of the // clique/factor table // third index is the number of elements in the clique/window these fea...
java
public List<Pair<int[][][], int[]>> documentsToDataAndLabelsList(Collection<List<IN>> documents) { int numDatums = 0; List<Pair<int[][][], int[]>> docList = new ArrayList<Pair<int[][][], int[]>>(); for (List<IN> doc : documents) { Pair<int[][][], int[]> docPair = documentToDataAndLabels(doc); ...
java
public CRFDatum<List<String>, CRFLabel> makeDatum(List<IN> info, int loc, edu.stanford.nlp.sequences.FeatureFactory<IN> featureFactory) { pad.set(AnswerAnnotation.class, flags.backgroundSymbol); PaddedList<IN> pInfo = new PaddedList<IN>(info, pad); ArrayList<List<String>> features = new ArrayLis...
java
public List<CRFCliqueTree> getCliqueTrees(String filename, DocumentReaderAndWriter<IN> readerAndWriter) { // only for the OCR data does this matter flags.ocrTrain = false; List<CRFCliqueTree> cts = new ArrayList<CRFCliqueTree>(); ObjectBank<List<IN>> docs = makeObjectBankFromFile(filename, readerA...
java
protected List<CRFDatum> extractDatumSequence(int[][][] allData, int beginPosition, int endPosition, List<IN> labeledWordInfos) { List<CRFDatum> result = new ArrayList<CRFDatum>(); int beginContext = beginPosition - windowSize + 1; if (beginContext < 0) { beginContext = 0; } // fo...
java
protected void addProcessedData(List<List<CRFDatum<Collection<String>, String>>> processedData, int[][][][] data, int[][] labels, int offset) { for (int i = 0, pdSize = processedData.size(); i < pdSize; i++) { int dataIndex = i + offset; List<CRFDatum<Collection<String>, String>> document = pr...
java
public static <IN extends CoreMap> CRFClassifier<IN> getJarClassifier(String resourceName, Properties props) { CRFClassifier<IN> crf = new CRFClassifier<IN>(); crf.loadJarClassifier(resourceName, props); return crf; }
java
public static <IN extends CoreMap> CRFClassifier<IN> getClassifier(File file) throws IOException, ClassCastException, ClassNotFoundException { CRFClassifier<IN> crf = new CRFClassifier<IN>(); crf.loadClassifier(file); return crf; }
java
public static CRFClassifier getClassifier(InputStream in) throws IOException, ClassCastException, ClassNotFoundException { CRFClassifier crf = new CRFClassifier(); crf.loadClassifier(in); return crf; }
java
public static void main(String[] args) throws Exception { StringUtils.printErrInvocationString("CRFClassifier", args); Properties props = StringUtils.argsToProperties(args); CRFClassifier<CoreLabel> crf = new CRFClassifier<CoreLabel>(props); String testFile = crf.flags.testFile; String textFi...
java
public static appfwglobal_auditsyslogpolicy_binding[] get(nitro_service service) throws Exception{ appfwglobal_auditsyslogpolicy_binding obj = new appfwglobal_auditsyslogpolicy_binding(); appfwglobal_auditsyslogpolicy_binding response[] = (appfwglobal_auditsyslogpolicy_binding[]) obj.get_resources(service); retur...
java
public static csvserver_cmppolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_cmppolicy_binding obj = new csvserver_cmppolicy_binding(); obj.set_name(name); csvserver_cmppolicy_binding response[] = (csvserver_cmppolicy_binding[]) obj.get_resources(service); return response; }
java
public static ipset_nsip_binding[] get(nitro_service service, String name) throws Exception{ ipset_nsip_binding obj = new ipset_nsip_binding(); obj.set_name(name); ipset_nsip_binding response[] = (ipset_nsip_binding[]) obj.get_resources(service); return response; }
java
public static base_response delete(nitro_service client, appfwlearningdata resource) throws Exception { appfwlearningdata deleteresource = new appfwlearningdata(); deleteresource.profilename = resource.profilename; deleteresource.starturl = resource.starturl; deleteresource.cookieconsistency = resource.cookieco...
java
public static base_responses delete(nitro_service client, appfwlearningdata resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwlearningdata deleteresources[] = new appfwlearningdata[resources.length]; for (int i=0;i<resources.length;i++){ de...
java
public static base_response reset(nitro_service client) throws Exception { appfwlearningdata resetresource = new appfwlearningdata(); return resetresource.perform_operation(client,"reset"); }
java
public static base_responses reset(nitro_service client, appfwlearningdata resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwlearningdata resetresources[] = new appfwlearningdata[resources.length]; for (int i=0;i<resources.length;i++){ rese...
java
public static base_response export(nitro_service client, appfwlearningdata resource) throws Exception { appfwlearningdata exportresource = new appfwlearningdata(); exportresource.profilename = resource.profilename; exportresource.securitycheck = resource.securitycheck; exportresource.target = resource.target; ...
java
public static base_responses export(nitro_service client, appfwlearningdata resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwlearningdata exportresources[] = new appfwlearningdata[resources.length]; for (int i=0;i<resources.length;i++){ ex...
java
public static appfwlearningdata[] get(nitro_service service, appfwlearningdata_args args) throws Exception{ appfwlearningdata obj = new appfwlearningdata(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); appfwlearningdata[] response = (appfwlearningdata[])obj.g...
java
public static appfwprofile_safeobject_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_safeobject_binding obj = new appfwprofile_safeobject_binding(); obj.set_name(name); appfwprofile_safeobject_binding response[] = (appfwprofile_safeobject_binding[]) obj.get_resources(service); ...
java
public static tmsessionpolicy_binding get(nitro_service service, String name) throws Exception{ tmsessionpolicy_binding obj = new tmsessionpolicy_binding(); obj.set_name(name); tmsessionpolicy_binding response = (tmsessionpolicy_binding) obj.get_resource(service); return response; }
java
public static vpnvserver_auditnslogpolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_auditnslogpolicy_binding obj = new vpnvserver_auditnslogpolicy_binding(); obj.set_name(name); vpnvserver_auditnslogpolicy_binding response[] = (vpnvserver_auditnslogpolicy_binding[]) obj.get_re...
java
private void calculateSCL(double[] x) { //System.out.println("Checking at: "+x[0]+" "+x[1]+" "+x[2]); value = 0.0; Arrays.fill(derivative, 0.0); double[] sums = new double[numClasses]; double[] probs = new double[numClasses]; double[] counts = new double[numClasses]; Arrays.fill(count...
java
public static vrid6[] get(nitro_service service) throws Exception{ vrid6 obj = new vrid6(); vrid6[] response = (vrid6[])obj.get_resources(service); return response; }
java
public static vrid6 get(nitro_service service, Long id) throws Exception{ vrid6 obj = new vrid6(); obj.set_id(id); vrid6 response = (vrid6) obj.get_resource(service); return response; }
java
private static Iterator<String> splitIntoDocs(Reader r) { if (TREAT_FILE_AS_ONE_DOCUMENT) { return Collections.singleton(IOUtils.slurpReader(r)).iterator(); } else { Collection<String> docs = new ArrayList<String>(); ObjectBank<String> ob = ObjectBank.getLineIterator(r); StringBuil...
java
private CoreLabel makeCoreLabel(String line) { CoreLabel wi = new CoreLabel(); // wi.line = line; String[] bits = line.split("\\s+"); switch (bits.length) { case 0: case 1: wi.setWord(BOUNDARY); wi.set(AnswerAnnotation.class, OTHER); break; case 2: wi.setWo...
java
private void deEndify(List<CoreLabel> tokens) { if (flags.retainEntitySubclassification) { return; } tokens = new PaddedList<CoreLabel>(tokens, new CoreLabel()); int k = tokens.size(); String[] newAnswers = new String[k]; for (int i = 0; i < k; i++) { CoreLabel c = tokens.get...
java
public void printAnswers(List<CoreLabel> doc, PrintWriter out) { // boolean tagsMerged = flags.mergeTags; // boolean useHead = flags.splitOnHead; if ( ! "iob1".equalsIgnoreCase(flags.entitySubclassification)) { deEndify(doc); } for (CoreLabel fl : doc) { String word = fl.word(...
java
public static void main(String[] args) throws IOException, ClassNotFoundException { CoNLLDocumentReaderAndWriter f = new CoNLLDocumentReaderAndWriter(); f.init(new SeqClassifierFlags()); int numDocs = 0; int numTokens = 0; int numEntities = 0; String lastAnsBase = ""; for (Iterator<Li...
java
protected void getBatch(int batchSize){ // if (numCalls == 0) { // for (int i = 0; i < 1538*\15; i++) { // randGenerator.nextInt(this.dataDimension()); // } // } // numCalls++; if (thisBatch == null || thisBatch.length != batchSize){ thisBatch = new int[batchS...
java
public static server_service_binding[] get(nitro_service service, String name) throws Exception{ server_service_binding obj = new server_service_binding(); obj.set_name(name); server_service_binding response[] = (server_service_binding[]) obj.get_resources(service); return response; }
java
@SuppressWarnings("rawtypes") public void setReplicationClassLoader(Fqn regionFqn, ClassLoader classLoader) { if (!isLocalMode()) { final Region region = jBossCache.getRegion(regionFqn, true); region.registerContextClassLoader(classLoader); if (!region.isActive() && jBossCache.getCacheStatus() == CacheStatu...
java
@SuppressWarnings("rawtypes") public void unsetReplicationClassLoader(Fqn regionFqn, ClassLoader classLoader) { if (!isLocalMode()) { final Region region = jBossCache.getRegion(regionFqn, true); if (region != null) { if (region.isActive()) { region.deactivate(); } region.unregisterContextC...
java
public static systemglobal_authenticationradiuspolicy_binding[] get(nitro_service service) throws Exception{ systemglobal_authenticationradiuspolicy_binding obj = new systemglobal_authenticationradiuspolicy_binding(); systemglobal_authenticationradiuspolicy_binding response[] = (systemglobal_authenticationradiuspol...
java
public static auditsyslogpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_authenticationvserver_binding obj = new auditsyslogpolicy_authenticationvserver_binding(); obj.set_name(name); auditsyslogpolicy_authenticationvserver_binding response[] = (a...
java
public static lbgroup_lbvserver_binding[] get(nitro_service service, String name) throws Exception{ lbgroup_lbvserver_binding obj = new lbgroup_lbvserver_binding(); obj.set_name(name); lbgroup_lbvserver_binding response[] = (lbgroup_lbvserver_binding[]) obj.get_resources(service); return response; }
java
public static base_response add(nitro_service client, nspbr resource) throws Exception { nspbr addresource = new nspbr(); addresource.name = resource.name; addresource.action = resource.action; addresource.td = resource.td; addresource.srcip = resource.srcip; addresource.srcipop = resource.srcipop; addres...
java
public static base_responses add(nitro_service client, nspbr resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr addresources[] = new nspbr[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new nspbr(); addresour...
java
public static base_response update(nitro_service client, nspbr resource) throws Exception { nspbr updateresource = new nspbr(); updateresource.name = resource.name; updateresource.action = resource.action; updateresource.srcip = resource.srcip; updateresource.srcipop = resource.srcipop; updateresource.srcip...
java
public static base_responses update(nitro_service client, nspbr resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr updateresources[] = new nspbr[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nspbr(); ...
java
public static base_response enable(nitro_service client, nspbr resource) throws Exception { nspbr enableresource = new nspbr(); enableresource.name = resource.name; return enableresource.perform_operation(client,"enable"); }
java
public static base_responses enable(nitro_service client, nspbr resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr enableresources[] = new nspbr[resources.length]; for (int i=0;i<resources.length;i++){ enableresources[i] = new nspbr(); ...
java
public static nspbr[] get(nitro_service service) throws Exception{ nspbr obj = new nspbr(); nspbr[] response = (nspbr[])obj.get_resources(service); return response; }
java
public static nspbr[] get(nitro_service service, nspbr_args args) throws Exception{ nspbr obj = new nspbr(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); nspbr[] response = (nspbr[])obj.get_resources(service, option); return response; }
java
public static nspbr get(nitro_service service, String name) throws Exception{ nspbr obj = new nspbr(); obj.set_name(name); nspbr response = (nspbr) obj.get_resource(service); return response; }
java
public static vpnglobal_vpnintranetapplication_binding[] get(nitro_service service) throws Exception{ vpnglobal_vpnintranetapplication_binding obj = new vpnglobal_vpnintranetapplication_binding(); vpnglobal_vpnintranetapplication_binding response[] = (vpnglobal_vpnintranetapplication_binding[]) obj.get_resources(se...
java
public static aaauser_authorizationpolicy_binding[] get(nitro_service service, String username) throws Exception{ aaauser_authorizationpolicy_binding obj = new aaauser_authorizationpolicy_binding(); obj.set_username(username); aaauser_authorizationpolicy_binding response[] = (aaauser_authorizationpolicy_binding[]...
java
public static base_response clear(nitro_service client, rnat resource) throws Exception { rnat clearresource = new rnat(); clearresource.network = resource.network; clearresource.netmask = resource.netmask; clearresource.aclname = resource.aclname; clearresource.redirectport = resource.redirectport; clearre...
java
public static base_responses clear(nitro_service client, rnat resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat clearresources[] = new rnat[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new rnat(); clearre...
java
public static base_response update(nitro_service client, rnat resource) throws Exception { rnat updateresource = new rnat(); updateresource.network = resource.network; updateresource.netmask = resource.netmask; updateresource.natip = resource.natip; updateresource.td = resource.td; updateresource.aclname = ...
java
public static base_responses update(nitro_service client, rnat resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat updateresources[] = new rnat[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new rnat(); upda...
java
public static base_response unset(nitro_service client, rnat resource, String[] args) throws Exception{ rnat unsetresource = new rnat(); unsetresource.network = resource.network; unsetresource.netmask = resource.netmask; unsetresource.td = resource.td; unsetresource.aclname = resource.aclname; unsetresource...
java
public static base_responses unset(nitro_service client, rnat resources[], String[] args) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat unsetresources[] = new rnat[resources.length]; for (int i=0;i<resources.length;i++){ unsetresources[i] = new rna...
java
public static rnat[] get(nitro_service service, options option) throws Exception{ rnat obj = new rnat(); rnat[] response = (rnat[])obj.get_resources(service,option); return response; }
java
public static authorizationpolicy_binding get(nitro_service service, String name) throws Exception{ authorizationpolicy_binding obj = new authorizationpolicy_binding(); obj.set_name(name); authorizationpolicy_binding response = (authorizationpolicy_binding) obj.get_resource(service); return response; }
java
public static cachepolicy_cachepolicylabel_binding[] get(nitro_service service, String policyname) throws Exception{ cachepolicy_cachepolicylabel_binding obj = new cachepolicy_cachepolicylabel_binding(); obj.set_policyname(policyname); cachepolicy_cachepolicylabel_binding response[] = (cachepolicy_cachepolicylabe...
java
public static authenticationtacacspolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationtacacspolicy_vpnvserver_binding obj = new authenticationtacacspolicy_vpnvserver_binding(); obj.set_name(name); authenticationtacacspolicy_vpnvserver_binding response[] = (authentic...
java
public static gslbsite_binding get(nitro_service service, String sitename) throws Exception{ gslbsite_binding obj = new gslbsite_binding(); obj.set_sitename(sitename); gslbsite_binding response = (gslbsite_binding) obj.get_resource(service); return response; }
java
public static base_response Install(nitro_service client, wipackage resource) throws Exception { wipackage Installresource = new wipackage(); Installresource.jre = resource.jre; Installresource.wi = resource.wi; Installresource.maxsites = resource.maxsites; return Installresource.perform_operation(client); }
java
public static vrid6_interface_binding[] get(nitro_service service, Long id) throws Exception{ vrid6_interface_binding obj = new vrid6_interface_binding(); obj.set_id(id); vrid6_interface_binding response[] = (vrid6_interface_binding[]) obj.get_resources(service); return response; }
java
public static dnspolicy64[] get(nitro_service service) throws Exception{ dnspolicy64 obj = new dnspolicy64(); dnspolicy64[] response = (dnspolicy64[])obj.get_resources(service); return response; }
java
public static dnspolicy64 get(nitro_service service, String name) throws Exception{ dnspolicy64 obj = new dnspolicy64(); obj.set_name(name); dnspolicy64 response = (dnspolicy64) obj.get_resource(service); return response; }
java
public static dnspolicy64[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ dnspolicy64 obj = new dnspolicy64(); options option = new options(); option.set_filter(filter); dnspolicy64[] response = (dnspolicy64[]) obj.getfiltered(service, option); return response; }
java
public static vpnvserver_intranetip_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_intranetip_binding obj = new vpnvserver_intranetip_binding(); obj.set_name(name); vpnvserver_intranetip_binding response[] = (vpnvserver_intranetip_binding[]) obj.get_resources(service); return res...
java
public static vpnglobal_authenticationcertpolicy_binding[] get(nitro_service service) throws Exception{ vpnglobal_authenticationcertpolicy_binding obj = new vpnglobal_authenticationcertpolicy_binding(); vpnglobal_authenticationcertpolicy_binding response[] = (vpnglobal_authenticationcertpolicy_binding[]) obj.get_re...
java
public static netbridge_binding get(nitro_service service, String name) throws Exception{ netbridge_binding obj = new netbridge_binding(); obj.set_name(name); netbridge_binding response = (netbridge_binding) obj.get_resource(service); return response; }
java
public static appqoepolicy_stats[] get(nitro_service service) throws Exception{ appqoepolicy_stats obj = new appqoepolicy_stats(); appqoepolicy_stats[] response = (appqoepolicy_stats[])obj.stat_resources(service); return response; }
java
public static appqoepolicy_stats get(nitro_service service, String name) throws Exception{ appqoepolicy_stats obj = new appqoepolicy_stats(); obj.set_name(name); appqoepolicy_stats response = (appqoepolicy_stats) obj.stat_resource(service); return response; }
java
public static nstrace get(nitro_service service) throws Exception{ nstrace obj = new nstrace(); nstrace[] response = (nstrace[])obj.get_resources(service); return response[0]; }
java
public static base_response release(nitro_service client) throws Exception { nsdhcpip releaseresource = new nsdhcpip(); return releaseresource.perform_operation(client,"release"); }
java
public static cachepolicy_stats[] get(nitro_service service) throws Exception{ cachepolicy_stats obj = new cachepolicy_stats(); cachepolicy_stats[] response = (cachepolicy_stats[])obj.stat_resources(service); return response; }
java
public static cachepolicy_stats get(nitro_service service, String policyname) throws Exception{ cachepolicy_stats obj = new cachepolicy_stats(); obj.set_policyname(policyname); cachepolicy_stats response = (cachepolicy_stats) obj.stat_resource(service); return response; }
java
public static gslbsite_gslbservice_binding[] get(nitro_service service, String sitename) throws Exception{ gslbsite_gslbservice_binding obj = new gslbsite_gslbservice_binding(); obj.set_sitename(sitename); gslbsite_gslbservice_binding response[] = (gslbsite_gslbservice_binding[]) obj.get_resources(service); ret...
java
public static gslbsite_gslbservice_binding[] get_filtered(nitro_service service, String sitename, filtervalue[] filter) throws Exception{ gslbsite_gslbservice_binding obj = new gslbsite_gslbservice_binding(); obj.set_sitename(sitename); options option = new options(); option.set_filter(filter); gslbsite_gslbs...
java
public static long count(nitro_service service, String sitename) throws Exception{ gslbsite_gslbservice_binding obj = new gslbsite_gslbservice_binding(); obj.set_sitename(sitename); options option = new options(); option.set_count(true); gslbsite_gslbservice_binding response[] = (gslbsite_gslbservice_binding[...
java
public static gslbsite_stats[] get(nitro_service service, options option) throws Exception{ gslbsite_stats obj = new gslbsite_stats(); gslbsite_stats[] response = (gslbsite_stats[])obj.stat_resources(service,option); return response; }
java
public static gslbsite_stats get(nitro_service service, String sitename) throws Exception{ gslbsite_stats obj = new gslbsite_stats(); obj.set_sitename(sitename); gslbsite_stats response = (gslbsite_stats) obj.stat_resource(service); return response; }
java
public static base_response add(nitro_service client, dnsaddrec resource) throws Exception { dnsaddrec addresource = new dnsaddrec(); addresource.hostname = resource.hostname; addresource.ipaddress = resource.ipaddress; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, dnsaddrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaddrec addresources[] = new dnsaddrec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnsaddrec(...
java
public static base_response delete(nitro_service client, String hostname) throws Exception { dnsaddrec deleteresource = new dnsaddrec(); deleteresource.hostname = hostname; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, dnsaddrec resource) throws Exception { dnsaddrec deleteresource = new dnsaddrec(); deleteresource.hostname = resource.hostname; deleteresource.ipaddress = resource.ipaddress; return deleteresource.delete_resource(client); }
java
public static base_responses delete(nitro_service client, dnsaddrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaddrec deleteresources[] = new dnsaddrec[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new d...
java
public static dnsaddrec[] get(nitro_service service) throws Exception{ dnsaddrec obj = new dnsaddrec(); dnsaddrec[] response = (dnsaddrec[])obj.get_resources(service); return response; }
java
public static dnsaddrec[] get(nitro_service service, dnsaddrec_args args) throws Exception{ dnsaddrec obj = new dnsaddrec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnsaddrec[] response = (dnsaddrec[])obj.get_resources(service, option); return response...
java
public static dnsaddrec get(nitro_service service, String hostname) throws Exception{ dnsaddrec obj = new dnsaddrec(); obj.set_hostname(hostname); dnsaddrec response = (dnsaddrec) obj.get_resource(service); return response; }
java
public static authorizationpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{ authorizationpolicy_aaauser_binding obj = new authorizationpolicy_aaauser_binding(); obj.set_name(name); authorizationpolicy_aaauser_binding response[] = (authorizationpolicy_aaauser_binding[]) obj.get_re...
java
public static base_response add(nitro_service client, nsxmlnamespace resource) throws Exception { nsxmlnamespace addresource = new nsxmlnamespace(); addresource.prefix = resource.prefix; addresource.Namespace = resource.Namespace; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, nsxmlnamespace resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsxmlnamespace addresources[] = new nsxmlnamespace[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] =...
java
public static base_response delete(nitro_service client, String prefix) throws Exception { nsxmlnamespace deleteresource = new nsxmlnamespace(); deleteresource.prefix = prefix; return deleteresource.delete_resource(client); }
java