code
stringlengths
73
34.1k
label
stringclasses
1 value
public static base_responses add(nitro_service client, streamidentifier resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { streamidentifier addresources[] = new streamidentifier[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new streamidentifier(); addresources[i].name = resources[i].name; addresources[i].selectorname = resources[i].selectorname; addresources[i].interval = resources[i].interval; addresources[i].samplecount = resources[i].samplecount; addresources[i].sort = resources[i].sort; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response update(nitro_service client, streamidentifier resource) throws Exception { streamidentifier updateresource = new streamidentifier(); updateresource.name = resource.name; updateresource.selectorname = resource.selectorname; updateresource.interval = resource.interval; updateresource.samplecount = resource.samplecount; updateresource.sort = resource.sort; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, streamidentifier resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { streamidentifier updateresources[] = new streamidentifier[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new streamidentifier(); updateresources[i].name = resources[i].name; updateresources[i].selectorname = resources[i].selectorname; updateresources[i].interval = resources[i].interval; updateresources[i].samplecount = resources[i].samplecount; updateresources[i].sort = resources[i].sort; } result = update_bulk_request(client, updateresources); } return result; }
java
public static streamidentifier[] get(nitro_service service) throws Exception{ streamidentifier obj = new streamidentifier(); streamidentifier[] response = (streamidentifier[])obj.get_resources(service); return response; }
java
public static streamidentifier get(nitro_service service, String name) throws Exception{ streamidentifier obj = new streamidentifier(); obj.set_name(name); streamidentifier response = (streamidentifier) obj.get_resource(service); return response; }
java
public static streamidentifier[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ streamidentifier obj = new streamidentifier(); options option = new options(); option.set_filter(filter); streamidentifier[] response = (streamidentifier[]) obj.getfiltered(service, option); return response; }
java
@SuppressWarnings({"InfiniteLoopStatement", "ConstantConditions", "null"}) public void run() { Socket client = null; while (true) { try { client = listener.accept(); if (DEBUG) { System.err.print("Accepted request from "); System.err.println(client.getInetAddress().getHostName()); } new Session(client); } catch (Exception e1) { System.err.println("NERServer: couldn't accept"); e1.printStackTrace(System.err); try { client.close(); } catch (Exception e2) { System.err.println("NERServer: couldn't close client"); e2.printStackTrace(System.err); } } } }
java
public static nat64_stats get(nitro_service service) throws Exception{ nat64_stats obj = new nat64_stats(); nat64_stats[] response = (nat64_stats[])obj.stat_resources(service); return response[0]; }
java
public static csvserver_transformpolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_transformpolicy_binding obj = new csvserver_transformpolicy_binding(); obj.set_name(name); csvserver_transformpolicy_binding response[] = (csvserver_transformpolicy_binding[]) obj.get_resources(service); return response; }
java
public static appfwprofile_xmlsqlinjection_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_xmlsqlinjection_binding obj = new appfwprofile_xmlsqlinjection_binding(); obj.set_name(name); appfwprofile_xmlsqlinjection_binding response[] = (appfwprofile_xmlsqlinjection_binding[]) obj.get_resources(service); return response; }
java
public E removeFirst() { E first = getFirst(); swap(0, size - 1); size--; elements.remove(size); heapifyDown(0); return first; }
java
public static base_response add(nitro_service client, pqpolicy resource) throws Exception { pqpolicy addresource = new pqpolicy(); addresource.policyname = resource.policyname; addresource.rule = resource.rule; addresource.priority = resource.priority; addresource.weight = resource.weight; addresource.qdepth = resource.qdepth; addresource.polqdepth = resource.polqdepth; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, pqpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { pqpolicy addresources[] = new pqpolicy[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new pqpolicy(); addresources[i].policyname = resources[i].policyname; addresources[i].rule = resources[i].rule; addresources[i].priority = resources[i].priority; addresources[i].weight = resources[i].weight; addresources[i].qdepth = resources[i].qdepth; addresources[i].polqdepth = resources[i].polqdepth; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response update(nitro_service client, pqpolicy resource) throws Exception { pqpolicy updateresource = new pqpolicy(); updateresource.policyname = resource.policyname; updateresource.weight = resource.weight; updateresource.qdepth = resource.qdepth; updateresource.polqdepth = resource.polqdepth; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, pqpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { pqpolicy updateresources[] = new pqpolicy[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new pqpolicy(); updateresources[i].policyname = resources[i].policyname; updateresources[i].weight = resources[i].weight; updateresources[i].qdepth = resources[i].qdepth; updateresources[i].polqdepth = resources[i].polqdepth; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_response unset(nitro_service client, pqpolicy resource, String[] args) throws Exception{ pqpolicy unsetresource = new pqpolicy(); unsetresource.policyname = resource.policyname; return unsetresource.unset_resource(client,args); }
java
public static pqpolicy[] get(nitro_service service) throws Exception{ pqpolicy obj = new pqpolicy(); pqpolicy[] response = (pqpolicy[])obj.get_resources(service); return response; }
java
public static pqpolicy get(nitro_service service, String policyname) throws Exception{ pqpolicy obj = new pqpolicy(); obj.set_policyname(policyname); pqpolicy response = (pqpolicy) obj.get_resource(service); return response; }
java
public static lbmonbindings_binding get(nitro_service service, String monitorname) throws Exception{ lbmonbindings_binding obj = new lbmonbindings_binding(); obj.set_monitorname(monitorname); lbmonbindings_binding response = (lbmonbindings_binding) obj.get_resource(service); return response; }
java
public static transformpolicy_transformglobal_binding[] get(nitro_service service, String name) throws Exception{ transformpolicy_transformglobal_binding obj = new transformpolicy_transformglobal_binding(); obj.set_name(name); transformpolicy_transformglobal_binding response[] = (transformpolicy_transformglobal_binding[]) obj.get_resources(service); return response; }
java
public static tunnelip6_stats[] get(nitro_service service) throws Exception{ tunnelip6_stats obj = new tunnelip6_stats(); tunnelip6_stats[] response = (tunnelip6_stats[])obj.stat_resources(service); return response; }
java
public static tunnelip6_stats get(nitro_service service, String tunnelip6) throws Exception{ tunnelip6_stats obj = new tunnelip6_stats(); obj.set_tunnelip6(tunnelip6); tunnelip6_stats response = (tunnelip6_stats) obj.stat_resource(service); return response; }
java
public AuxiliaryTree copy(TsurgeonPattern p) { Map<String,Tree> newNamesToNodes = new HashMap<String,Tree>(); Pair<Tree,Tree> result = copyHelper(tree,newNamesToNodes); //if(! result.first().dominates(result.second())) //System.err.println("Error -- aux tree copy doesn't dominate foot copy."); p.root.newNodeNames.putAll(newNamesToNodes); return new AuxiliaryTree(result.first(), result.second(), newNamesToNodes, originalTreeString); }
java
private static Tree findFootNode(Tree t) { Tree footNode = findFootNodeHelper(t); Tree result = footNode; if (footNode != null) { Tree parent = footNode.parent(t); int i = parent.indexOf(footNode); Tree newFootNode = footNode.treeFactory().newTreeNode(footNode.label(), new ArrayList<Tree>()); parent.setChild(i, newFootNode); result = newFootNode; } return result; }
java
private void initializeNamesNodesMaps(Tree t) { for (Tree node : t.subTreeList()) { Matcher m = namePattern.matcher(node.label().value()); if (m.find()) { namesToNodes.put(m.group(1),node); nodesToNames.put(node,m.group(1)); node.label().setValue(m.replaceFirst("")); } Matcher m1 = escapedNameChar.matcher(node.label().value()); node.label().setValue(m1.replaceAll(nameIntroducingChar)); } }
java
public static base_response add(nitro_service client, dnsmxrec resource) throws Exception { dnsmxrec addresource = new dnsmxrec(); addresource.domain = resource.domain; addresource.mx = resource.mx; addresource.pref = resource.pref; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, dnsmxrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsmxrec addresources[] = new dnsmxrec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnsmxrec(); addresources[i].domain = resources[i].domain; addresources[i].mx = resources[i].mx; addresources[i].pref = resources[i].pref; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, dnsmxrec resource) throws Exception { dnsmxrec deleteresource = new dnsmxrec(); deleteresource.domain = resource.domain; deleteresource.mx = resource.mx; return deleteresource.delete_resource(client); }
java
public static base_response update(nitro_service client, dnsmxrec resource) throws Exception { dnsmxrec updateresource = new dnsmxrec(); updateresource.domain = resource.domain; updateresource.mx = resource.mx; updateresource.pref = resource.pref; updateresource.ttl = resource.ttl; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, dnsmxrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsmxrec updateresources[] = new dnsmxrec[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new dnsmxrec(); updateresources[i].domain = resources[i].domain; updateresources[i].mx = resources[i].mx; updateresources[i].pref = resources[i].pref; updateresources[i].ttl = resources[i].ttl; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_response unset(nitro_service client, dnsmxrec resource, String[] args) throws Exception{ dnsmxrec unsetresource = new dnsmxrec(); unsetresource.domain = resource.domain; unsetresource.mx = resource.mx; return unsetresource.unset_resource(client,args); }
java
public static dnsmxrec[] get(nitro_service service, options option) throws Exception{ dnsmxrec obj = new dnsmxrec(); dnsmxrec[] response = (dnsmxrec[])obj.get_resources(service,option); return response; }
java
public static dnsmxrec[] get(nitro_service service, dnsmxrec_args args) throws Exception{ dnsmxrec obj = new dnsmxrec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnsmxrec[] response = (dnsmxrec[])obj.get_resources(service, option); return response; }
java
public static dnsmxrec get(nitro_service service, String domain) throws Exception{ dnsmxrec obj = new dnsmxrec(); obj.set_domain(domain); dnsmxrec response = (dnsmxrec) obj.get_resource(service); return response; }
java
public static base_response add(nitro_service client, nstrafficdomain resource) throws Exception { nstrafficdomain addresource = new nstrafficdomain(); addresource.td = resource.td; addresource.aliasname = resource.aliasname; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, nstrafficdomain resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nstrafficdomain addresources[] = new nstrafficdomain[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new nstrafficdomain(); addresources[i].td = resources[i].td; addresources[i].aliasname = resources[i].aliasname; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, Long td) throws Exception { nstrafficdomain deleteresource = new nstrafficdomain(); deleteresource.td = td; return deleteresource.delete_resource(client); }
java
public static base_response clear(nitro_service client, nstrafficdomain resource) throws Exception { nstrafficdomain clearresource = new nstrafficdomain(); clearresource.td = resource.td; return clearresource.perform_operation(client,"clear"); }
java
public static base_responses clear(nitro_service client, nstrafficdomain resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nstrafficdomain clearresources[] = new nstrafficdomain[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new nstrafficdomain(); clearresources[i].td = resources[i].td; } result = perform_operation_bulk_request(client, clearresources,"clear"); } return result; }
java
public static base_response enable(nitro_service client, Long td) throws Exception { nstrafficdomain enableresource = new nstrafficdomain(); enableresource.td = td; return enableresource.perform_operation(client,"enable"); }
java
public static base_response enable(nitro_service client, nstrafficdomain resource) throws Exception { nstrafficdomain enableresource = new nstrafficdomain(); enableresource.td = resource.td; enableresource.state = resource.state; return enableresource.perform_operation(client,"enable"); }
java
public static base_responses enable(nitro_service client, Long td[]) throws Exception { base_responses result = null; if (td != null && td.length > 0) { nstrafficdomain enableresources[] = new nstrafficdomain[td.length]; for (int i=0;i<td.length;i++){ enableresources[i] = new nstrafficdomain(); enableresources[i].td = td[i]; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
java
public static base_responses enable(nitro_service client, nstrafficdomain resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nstrafficdomain enableresources[] = new nstrafficdomain[resources.length]; for (int i=0;i<resources.length;i++){ enableresources[i] = new nstrafficdomain(); enableresources[i].td = resources[i].td; enableresources[i].state = resources[i].state; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
java
public static base_response disable(nitro_service client, Long td) throws Exception { nstrafficdomain disableresource = new nstrafficdomain(); disableresource.td = td; return disableresource.perform_operation(client,"disable"); }
java
public static base_response disable(nitro_service client, nstrafficdomain resource) throws Exception { nstrafficdomain disableresource = new nstrafficdomain(); disableresource.td = resource.td; disableresource.state = resource.state; return disableresource.perform_operation(client,"disable"); }
java
public static base_responses disable(nitro_service client, Long td[]) throws Exception { base_responses result = null; if (td != null && td.length > 0) { nstrafficdomain disableresources[] = new nstrafficdomain[td.length]; for (int i=0;i<td.length;i++){ disableresources[i] = new nstrafficdomain(); disableresources[i].td = td[i]; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
java
public static base_responses disable(nitro_service client, nstrafficdomain resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nstrafficdomain disableresources[] = new nstrafficdomain[resources.length]; for (int i=0;i<resources.length;i++){ disableresources[i] = new nstrafficdomain(); disableresources[i].td = resources[i].td; disableresources[i].state = resources[i].state; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
java
public static nstrafficdomain[] get(nitro_service service) throws Exception{ nstrafficdomain obj = new nstrafficdomain(); nstrafficdomain[] response = (nstrafficdomain[])obj.get_resources(service); return response; }
java
public static nstrafficdomain get(nitro_service service, Long td) throws Exception{ nstrafficdomain obj = new nstrafficdomain(); obj.set_td(td); nstrafficdomain response = (nstrafficdomain) obj.get_resource(service); return response; }
java
public static vpnglobal_auditsyslogpolicy_binding[] get(nitro_service service) throws Exception{ vpnglobal_auditsyslogpolicy_binding obj = new vpnglobal_auditsyslogpolicy_binding(); vpnglobal_auditsyslogpolicy_binding response[] = (vpnglobal_auditsyslogpolicy_binding[]) obj.get_resources(service); return response; }
java
public static nssavedconfig get(nitro_service service) throws Exception{ nssavedconfig obj = new nssavedconfig(); nssavedconfig[] response = (nssavedconfig[])obj.get_resources(service); return response[0]; }
java
public static transformpolicy_stats[] get(nitro_service service) throws Exception{ transformpolicy_stats obj = new transformpolicy_stats(); transformpolicy_stats[] response = (transformpolicy_stats[])obj.stat_resources(service); return response; }
java
public static transformpolicy_stats get(nitro_service service, String name) throws Exception{ transformpolicy_stats obj = new transformpolicy_stats(); obj.set_name(name); transformpolicy_stats response = (transformpolicy_stats) obj.stat_resource(service); return response; }
java
public static csvserver_appfwpolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_appfwpolicy_binding obj = new csvserver_appfwpolicy_binding(); obj.set_name(name); csvserver_appfwpolicy_binding response[] = (csvserver_appfwpolicy_binding[]) obj.get_resources(service); return response; }
java
protected void setUp(int initialCapacity, double minLoadFactor, double maxLoadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("Initial Capacity must not be less than zero: "+ initialCapacity); if (minLoadFactor < 0.0 || minLoadFactor >= 1.0) throw new IllegalArgumentException("Illegal minLoadFactor: "+ minLoadFactor); if (maxLoadFactor <= 0.0 || maxLoadFactor >= 1.0) throw new IllegalArgumentException("Illegal maxLoadFactor: "+ maxLoadFactor); if (minLoadFactor >= maxLoadFactor) throw new IllegalArgumentException("Illegal minLoadFactor: "+ minLoadFactor+" and maxLoadFactor: "+ maxLoadFactor); }
java
public static vrid6_nsip_binding[] get(nitro_service service, Long id) throws Exception{ vrid6_nsip_binding obj = new vrid6_nsip_binding(); obj.set_id(id); vrid6_nsip_binding response[] = (vrid6_nsip_binding[]) obj.get_resources(service); return response; }
java
public static cmppolicy_binding get(nitro_service service, String name) throws Exception{ cmppolicy_binding obj = new cmppolicy_binding(); obj.set_name(name); cmppolicy_binding response = (cmppolicy_binding) obj.get_resource(service); return response; }
java
public static tunneltrafficpolicy_tunnelglobal_binding[] get(nitro_service service, String name) throws Exception{ tunneltrafficpolicy_tunnelglobal_binding obj = new tunneltrafficpolicy_tunnelglobal_binding(); obj.set_name(name); tunneltrafficpolicy_tunnelglobal_binding response[] = (tunneltrafficpolicy_tunnelglobal_binding[]) obj.get_resources(service); return response; }
java
public static base_response update(nitro_service client, scparameter resource) throws Exception { scparameter updateresource = new scparameter(); updateresource.sessionlife = resource.sessionlife; updateresource.vsr = resource.vsr; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, scparameter resource, String[] args) throws Exception{ scparameter unsetresource = new scparameter(); return unsetresource.unset_resource(client,args); }
java
public static scparameter get(nitro_service service, options option) throws Exception{ scparameter obj = new scparameter(); scparameter[] response = (scparameter[])obj.get_resources(service,option); return response[0]; }
java
public static sslservice_sslciphersuite_binding[] get(nitro_service service, String servicename) throws Exception{ sslservice_sslciphersuite_binding obj = new sslservice_sslciphersuite_binding(); obj.set_servicename(servicename); sslservice_sslciphersuite_binding response[] = (sslservice_sslciphersuite_binding[]) obj.get_resources(service); return response; }
java
public static long count(nitro_service service, String servicename) throws Exception{ sslservice_sslciphersuite_binding obj = new sslservice_sslciphersuite_binding(); obj.set_servicename(servicename); options option = new options(); option.set_count(true); sslservice_sslciphersuite_binding response[] = (sslservice_sslciphersuite_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
java
public static vrid_binding get(nitro_service service, Long id) throws Exception{ vrid_binding obj = new vrid_binding(); obj.set_id(id); vrid_binding response = (vrid_binding) obj.get_resource(service); return response; }
java
private String getFieldType(IndexSchema schema, String field) throws IOException { SchemaField sf = schema.getField(field); FieldType ft = sf.getType(); if (ft != null) { if (ft.isPointField() && !sf.hasDocValues()) { return ComponentFacet.TYPE_POINTFIELD_WITHOUT_DOCVALUES; } NumberType nt = ft.getNumberType(); if (nt != null) { return nt.name(); } else { return ComponentFacet.TYPE_STRING; } } else { // best guess return ComponentFacet.TYPE_STRING; } }
java
public static appfw_stats get(nitro_service service) throws Exception{ appfw_stats obj = new appfw_stats(); appfw_stats[] response = (appfw_stats[])obj.stat_resources(service); return response[0]; }
java
public static appfwtransactionrecords[] get(nitro_service service) throws Exception{ appfwtransactionrecords obj = new appfwtransactionrecords(); appfwtransactionrecords[] response = (appfwtransactionrecords[])obj.get_resources(service); return response; }
java
public static dnszone_binding get(nitro_service service, String zonename) throws Exception{ dnszone_binding obj = new dnszone_binding(); obj.set_zonename(zonename); dnszone_binding response = (dnszone_binding) obj.get_resource(service); return response; }
java
public static dnszone_binding[] get(nitro_service service, String zonename[]) throws Exception{ if (zonename !=null && zonename.length>0) { dnszone_binding response[] = new dnszone_binding[zonename.length]; dnszone_binding obj[] = new dnszone_binding[zonename.length]; for (int i=0;i<zonename.length;i++) { obj[i] = new dnszone_binding(); obj[i].set_zonename(zonename[i]); response[i] = (dnszone_binding) obj[i].get_resource(service); } return response; } return null; }
java
public static base_response add(nitro_service client, nssimpleacl6 resource) throws Exception { nssimpleacl6 addresource = new nssimpleacl6(); addresource.aclname = resource.aclname; addresource.td = resource.td; addresource.aclaction = resource.aclaction; addresource.srcipv6 = resource.srcipv6; addresource.destport = resource.destport; addresource.protocol = resource.protocol; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, nssimpleacl6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nssimpleacl6 addresources[] = new nssimpleacl6[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new nssimpleacl6(); addresources[i].aclname = resources[i].aclname; addresources[i].td = resources[i].td; addresources[i].aclaction = resources[i].aclaction; addresources[i].srcipv6 = resources[i].srcipv6; addresources[i].destport = resources[i].destport; addresources[i].protocol = resources[i].protocol; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response clear(nitro_service client) throws Exception { nssimpleacl6 clearresource = new nssimpleacl6(); return clearresource.perform_operation(client,"clear"); }
java
public static base_responses flush(nitro_service client, nssimpleacl6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nssimpleacl6 flushresources[] = new nssimpleacl6[resources.length]; for (int i=0;i<resources.length;i++){ flushresources[i] = new nssimpleacl6(); flushresources[i].estsessions = resources[i].estsessions; } result = perform_operation_bulk_request(client, flushresources,"flush"); } return result; }
java
public static base_responses delete(nitro_service client, nssimpleacl6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nssimpleacl6 deleteresources[] = new nssimpleacl6[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new nssimpleacl6(); deleteresources[i].aclname = resources[i].aclname; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static nssimpleacl6[] get(nitro_service service) throws Exception{ nssimpleacl6 obj = new nssimpleacl6(); nssimpleacl6[] response = (nssimpleacl6[])obj.get_resources(service); return response; }
java
public static nssimpleacl6 get(nitro_service service, String aclname) throws Exception{ nssimpleacl6 obj = new nssimpleacl6(); obj.set_aclname(aclname); nssimpleacl6 response = (nssimpleacl6) obj.get_resource(service); return response; }
java
public static dnspolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{ dnspolicylabel_policybinding_binding obj = new dnspolicylabel_policybinding_binding(); obj.set_labelname(labelname); dnspolicylabel_policybinding_binding response[] = (dnspolicylabel_policybinding_binding[]) obj.get_resources(service); return response; }
java
public static lbvserver_appqoepolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_appqoepolicy_binding obj = new lbvserver_appqoepolicy_binding(); obj.set_name(name); lbvserver_appqoepolicy_binding response[] = (lbvserver_appqoepolicy_binding[]) obj.get_resources(service); return response; }
java
public static aaaglobal_authenticationnegotiateaction_binding[] get(nitro_service service) throws Exception{ aaaglobal_authenticationnegotiateaction_binding obj = new aaaglobal_authenticationnegotiateaction_binding(); aaaglobal_authenticationnegotiateaction_binding response[] = (aaaglobal_authenticationnegotiateaction_binding[]) obj.get_resources(service); return response; }
java
public static aaaglobal_authenticationnegotiateaction_binding[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ aaaglobal_authenticationnegotiateaction_binding obj = new aaaglobal_authenticationnegotiateaction_binding(); options option = new options(); option.set_filter(filter); aaaglobal_authenticationnegotiateaction_binding[] response = (aaaglobal_authenticationnegotiateaction_binding[]) obj.getfiltered(service, option); return response; }
java
public static base_response add(nitro_service client, dnszone resource) throws Exception { dnszone addresource = new dnszone(); addresource.zonename = resource.zonename; addresource.proxymode = resource.proxymode; addresource.dnssecoffload = resource.dnssecoffload; addresource.nsec = resource.nsec; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, dnszone resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnszone addresources[] = new dnszone[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnszone(); addresources[i].zonename = resources[i].zonename; addresources[i].proxymode = resources[i].proxymode; addresources[i].dnssecoffload = resources[i].dnssecoffload; addresources[i].nsec = resources[i].nsec; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response update(nitro_service client, dnszone resource) throws Exception { dnszone updateresource = new dnszone(); updateresource.zonename = resource.zonename; updateresource.proxymode = resource.proxymode; updateresource.dnssecoffload = resource.dnssecoffload; updateresource.nsec = resource.nsec; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, dnszone resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnszone updateresources[] = new dnszone[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new dnszone(); updateresources[i].zonename = resources[i].zonename; updateresources[i].proxymode = resources[i].proxymode; updateresources[i].dnssecoffload = resources[i].dnssecoffload; updateresources[i].nsec = resources[i].nsec; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_response unset(nitro_service client, dnszone resource, String[] args) throws Exception{ dnszone unsetresource = new dnszone(); unsetresource.zonename = resource.zonename; return unsetresource.unset_resource(client,args); }
java
public static base_responses unset(nitro_service client, String zonename[], String args[]) throws Exception { base_responses result = null; if (zonename != null && zonename.length > 0) { dnszone unsetresources[] = new dnszone[zonename.length]; for (int i=0;i<zonename.length;i++){ unsetresources[i] = new dnszone(); unsetresources[i].zonename = zonename[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
public static base_response delete(nitro_service client, String zonename) throws Exception { dnszone deleteresource = new dnszone(); deleteresource.zonename = zonename; return deleteresource.delete_resource(client); }
java
public static base_responses delete(nitro_service client, String zonename[]) throws Exception { base_responses result = null; if (zonename != null && zonename.length > 0) { dnszone deleteresources[] = new dnszone[zonename.length]; for (int i=0;i<zonename.length;i++){ deleteresources[i] = new dnszone(); deleteresources[i].zonename = zonename[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_response sign(nitro_service client, dnszone resource) throws Exception { dnszone signresource = new dnszone(); signresource.zonename = resource.zonename; signresource.keyname = resource.keyname; return signresource.perform_operation(client,"sign"); }
java
public static base_responses sign(nitro_service client, dnszone resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnszone signresources[] = new dnszone[resources.length]; for (int i=0;i<resources.length;i++){ signresources[i] = new dnszone(); signresources[i].zonename = resources[i].zonename; signresources[i].keyname = resources[i].keyname; } result = perform_operation_bulk_request(client, signresources,"sign"); } return result; }
java
public static base_response unsign(nitro_service client, dnszone resource) throws Exception { dnszone unsignresource = new dnszone(); unsignresource.zonename = resource.zonename; unsignresource.keyname = resource.keyname; return unsignresource.perform_operation(client,"unsign"); }
java
public static base_responses unsign(nitro_service client, dnszone resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnszone unsignresources[] = new dnszone[resources.length]; for (int i=0;i<resources.length;i++){ unsignresources[i] = new dnszone(); unsignresources[i].zonename = resources[i].zonename; unsignresources[i].keyname = resources[i].keyname; } result = perform_operation_bulk_request(client, unsignresources,"unsign"); } return result; }
java
public static dnszone[] get(nitro_service service) throws Exception{ dnszone obj = new dnszone(); dnszone[] response = (dnszone[])obj.get_resources(service); return response; }
java
public static dnszone[] get(nitro_service service, dnszone_args args) throws Exception{ dnszone obj = new dnszone(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnszone[] response = (dnszone[])obj.get_resources(service, option); return response; }
java
public static dnszone get(nitro_service service, String zonename) throws Exception{ dnszone obj = new dnszone(); obj.set_zonename(zonename); dnszone response = (dnszone) obj.get_resource(service); return response; }
java
public static dnszone[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ dnszone obj = new dnszone(); options option = new options(); option.set_filter(filter); dnszone[] response = (dnszone[]) obj.getfiltered(service, option); return response; }
java
public static protocolicmpv6_stats get(nitro_service service) throws Exception{ protocolicmpv6_stats obj = new protocolicmpv6_stats(); protocolicmpv6_stats[] response = (protocolicmpv6_stats[])obj.stat_resources(service); return response[0]; }
java
public static lbmonbindings_service_binding[] get(nitro_service service, String monitorname) throws Exception{ lbmonbindings_service_binding obj = new lbmonbindings_service_binding(); obj.set_monitorname(monitorname); lbmonbindings_service_binding response[] = (lbmonbindings_service_binding[]) obj.get_resources(service); return response; }
java
public static base_response add(nitro_service client, fis resource) throws Exception { fis addresource = new fis(); addresource.name = resource.name; return addresource.add_resource(client); }
java
public static fis[] get(nitro_service service) throws Exception{ fis obj = new fis(); fis[] response = (fis[])obj.get_resources(service); return response; }
java