code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public static lbroute[] get(nitro_service service) throws Exception{
lbroute obj = new lbroute();
lbroute[] response = (lbroute[])obj.get_resources(service);
return response;
} | java |
public static base_response add(nitro_service client, nsip6 resource) throws Exception {
nsip6 addresource = new nsip6();
addresource.ipv6address = resource.ipv6address;
addresource.scope = resource.scope;
addresource.type = resource.type;
addresource.vlan = resource.vlan;
addresource.nd = resource.nd;
ad... | java |
public static base_responses add(nitro_service client, nsip6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsip6 addresources[] = new nsip6[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new nsip6();
addresour... | java |
public static base_response delete(nitro_service client, String ipv6address) throws Exception {
nsip6 deleteresource = new nsip6();
deleteresource.ipv6address = ipv6address;
return deleteresource.delete_resource(client);
} | java |
public static base_response delete(nitro_service client, nsip6 resource) throws Exception {
nsip6 deleteresource = new nsip6();
deleteresource.ipv6address = resource.ipv6address;
deleteresource.td = resource.td;
return deleteresource.delete_resource(client);
} | java |
public static base_responses delete(nitro_service client, String ipv6address[]) throws Exception {
base_responses result = null;
if (ipv6address != null && ipv6address.length > 0) {
nsip6 deleteresources[] = new nsip6[ipv6address.length];
for (int i=0;i<ipv6address.length;i++){
deleteresources[i] = new ns... | java |
public static base_responses delete(nitro_service client, nsip6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsip6 deleteresources[] = new nsip6[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new nsip6();
... | java |
public static base_response update(nitro_service client, nsip6 resource) throws Exception {
nsip6 updateresource = new nsip6();
updateresource.ipv6address = resource.ipv6address;
updateresource.td = resource.td;
updateresource.nd = resource.nd;
updateresource.icmp = resource.icmp;
updateresource.vserver = r... | java |
public static base_responses update(nitro_service client, nsip6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsip6 updateresources[] = new nsip6[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new nsip6();
... | java |
public static base_response unset(nitro_service client, nsip6 resource, String[] args) throws Exception{
nsip6 unsetresource = new nsip6();
unsetresource.ipv6address = resource.ipv6address;
unsetresource.td = resource.td;
return unsetresource.unset_resource(client,args);
} | java |
public static nsip6[] get(nitro_service service) throws Exception{
nsip6 obj = new nsip6();
nsip6[] response = (nsip6[])obj.get_resources(service);
return response;
} | java |
public Triple<Double, Integer, Integer> getAccuracyInfo()
{
int totalCorrect = tokensCorrect;
int totalWrong = tokensCount - tokensCorrect;
return new Triple<Double, Integer, Integer>((((double) totalCorrect) / tokensCount),
totalCorrect, totalWrong);
} | java |
public String getAccuracyDescription(int numDigits) {
NumberFormat nf = NumberFormat.getNumberInstance();
nf.setMaximumFractionDigits(numDigits);
Triple<Double, Integer, Integer> accu = getAccuracyInfo();
return nf.format(accu.first()) + " (" + accu.second() + "/" + (accu.second() + accu.third()) +... | java |
public ClassicCounter<K2> setCounter(K1 o, Counter<K2> c) {
ClassicCounter<K2> old = getCounter(o);
total -= old.totalCount();
if (c instanceof ClassicCounter) {
map.put(o, (ClassicCounter<K2>) c);
} else {
map.put(o, new ClassicCounter<K2>(c));
}
total += c.totalCount();
... | java |
@SuppressWarnings( { "unchecked" })
public static <K1, K2> TwoDimensionalCounter<K2, K1> reverseIndexOrder(TwoDimensionalCounter<K1, K2> cc) {
// they typing on the outerMF is violated a bit, but it'll work....
TwoDimensionalCounter<K2, K1> result = new TwoDimensionalCounter<K2, K1>((MapFactory) cc.outerMF... | java |
public Counter<K1> sumInnerCounter() {
Counter<K1> summed = new ClassicCounter<K1>();
for (K1 key : this.firstKeySet()) {
summed.incrementCount(key, this.getCounter(key).totalCount());
}
return summed;
} | java |
public static appfwpolicylabel_binding get(nitro_service service, String labelname) throws Exception{
appfwpolicylabel_binding obj = new appfwpolicylabel_binding();
obj.set_labelname(labelname);
appfwpolicylabel_binding response = (appfwpolicylabel_binding) obj.get_resource(service);
return response;
} | java |
public static base_response create(nitro_service client, ssldhparam resource) throws Exception {
ssldhparam createresource = new ssldhparam();
createresource.dhfile = resource.dhfile;
createresource.bits = resource.bits;
createresource.gen = resource.gen;
return createresource.perform_operation(client,"create... | java |
public static auditnslogpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
auditnslogpolicy_vpnvserver_binding obj = new auditnslogpolicy_vpnvserver_binding();
obj.set_name(name);
auditnslogpolicy_vpnvserver_binding response[] = (auditnslogpolicy_vpnvserver_binding[]) obj.get_re... | java |
public static authenticationvserver_authenticationtacacspolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_authenticationtacacspolicy_binding obj = new authenticationvserver_authenticationtacacspolicy_binding();
obj.set_name(name);
authenticationvserver_authentication... | java |
public static vpntrafficpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{
vpntrafficpolicy_aaagroup_binding obj = new vpntrafficpolicy_aaagroup_binding();
obj.set_name(name);
vpntrafficpolicy_aaagroup_binding response[] = (vpntrafficpolicy_aaagroup_binding[]) obj.get_resources(se... | java |
public static <T> String listToString(List<T> list, final boolean justValue) {
return listToString(list, justValue, null);
} | java |
public static <T> String listToString(List<T> list, final boolean justValue,
final String separator) {
StringBuilder s = new StringBuilder();
for (Iterator<T> wordIterator = list.iterator(); wordIterator.hasNext();) {
T o = wordIterator.next();
s.append(w... | java |
public Set<String> getTags() {
Set<String> tags = new HashSet<String>(classIndex.objectsList());
tags.remove(flags.backgroundSymbol);
return tags;
} | java |
protected String classOf(List<IN> lineInfos, int pos) {
Datum<String, String> d = makeDatum(lineInfos, pos, featureFactory);
return classifier.classOf(d);
} | java |
public double loglikelihood(List<IN> lineInfos) {
double cll = 0.0;
for (int i = 0; i < lineInfos.size(); i++) {
Datum<String, String> d = makeDatum(lineInfos, i, featureFactory);
Counter<String> c = classifier.logProbabilityOf(d);
double total = Double.NEGATIVE_INFINITY;
for (... | java |
public Dataset<String, String> getDataset(Dataset<String, String> oldData, Index<String> goodFeatures) {
//public Dataset getDataset(List data, Collection goodFeatures) {
//makeAnswerArraysAndTagIndex(data);
int[][] oldDataArray = oldData.getDataArray();
int[] oldLabelArray = oldData.getLabelsArra... | java |
public <T extends CoreLabel> Datum<String, String> makeDatum(List<IN> info, int loc, FeatureFactory featureFactory) {
PaddedList<IN> pInfo = new PaddedList<IN>(info, pad);
Collection<String> features = new ArrayList<String>();
List<Clique> cliques = featureFactory.getCliques();
for (Clique c : cli... | java |
private static Collection<String> addOtherClasses(Collection<String> feats, List<? extends CoreLabel> info,
int loc, Clique c) {
String addend = null;
String pAnswer = info.get(loc - 1).get(AnswerAnnotation.class);
String p2Answer = info.get(loc - 2).get(AnswerAnnota... | java |
public static void main(String[] args) throws Exception {
StringUtils.printErrInvocationString("CMMClassifier", args);
Properties props = StringUtils.argsToProperties(args);
CMMClassifier cmm = new CMMClassifier<CoreLabel>(props);
String testFile = cmm.flags.testFile;
String textFile = cmm.fl... | java |
public static nspbr6_stats[] get(nitro_service service, options option) throws Exception{
nspbr6_stats obj = new nspbr6_stats();
nspbr6_stats[] response = (nspbr6_stats[])obj.stat_resources(service,option);
return response;
} | java |
public static nspbr6_stats get(nitro_service service, String name) throws Exception{
nspbr6_stats obj = new nspbr6_stats();
obj.set_name(name);
nspbr6_stats response = (nspbr6_stats) obj.stat_resource(service);
return response;
} | java |
public static base_response add(nitro_service client, gslbsite resource) throws Exception {
gslbsite addresource = new gslbsite();
addresource.sitename = resource.sitename;
addresource.sitetype = resource.sitetype;
addresource.siteipaddress = resource.siteipaddress;
addresource.publicip = resource.publicip;
... | java |
public static base_responses add(nitro_service client, gslbsite resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
gslbsite addresources[] = new gslbsite[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new gslbsite();
... | java |
public static base_response delete(nitro_service client, String sitename) throws Exception {
gslbsite deleteresource = new gslbsite();
deleteresource.sitename = sitename;
return deleteresource.delete_resource(client);
} | java |
public static base_responses delete(nitro_service client, String sitename[]) throws Exception {
base_responses result = null;
if (sitename != null && sitename.length > 0) {
gslbsite deleteresources[] = new gslbsite[sitename.length];
for (int i=0;i<sitename.length;i++){
deleteresources[i] = new gslbsite();... | java |
public static base_response update(nitro_service client, gslbsite resource) throws Exception {
gslbsite updateresource = new gslbsite();
updateresource.sitename = resource.sitename;
updateresource.metricexchange = resource.metricexchange;
updateresource.nwmetricexchange = resource.nwmetricexchange;
updatereso... | java |
public static base_responses update(nitro_service client, gslbsite resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
gslbsite updateresources[] = new gslbsite[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new gslb... | java |
public static base_response unset(nitro_service client, gslbsite resource, String[] args) throws Exception{
gslbsite unsetresource = new gslbsite();
unsetresource.sitename = resource.sitename;
return unsetresource.unset_resource(client,args);
} | java |
public static base_responses unset(nitro_service client, String sitename[], String args[]) throws Exception {
base_responses result = null;
if (sitename != null && sitename.length > 0) {
gslbsite unsetresources[] = new gslbsite[sitename.length];
for (int i=0;i<sitename.length;i++){
unsetresources[i] = new... | java |
public static gslbsite[] get(nitro_service service, options option) throws Exception{
gslbsite obj = new gslbsite();
gslbsite[] response = (gslbsite[])obj.get_resources(service,option);
return response;
} | java |
public static gslbsite get(nitro_service service, String sitename) throws Exception{
gslbsite obj = new gslbsite();
obj.set_sitename(sitename);
gslbsite response = (gslbsite) obj.get_resource(service);
return response;
} | java |
public static gslbsite[] get(nitro_service service, String sitename[]) throws Exception{
if (sitename !=null && sitename.length>0) {
gslbsite response[] = new gslbsite[sitename.length];
gslbsite obj[] = new gslbsite[sitename.length];
for (int i=0;i<sitename.length;i++) {
obj[i] = new gslbsite();
obj[... | java |
private String computeMorse(BytesRef term) {
StringBuilder stringBuilder = new StringBuilder();
int i = term.offset + prefixOffset;
for (; i < term.length; i++) {
if (ALPHABET_MORSE.containsKey(term.bytes[i])) {
stringBuilder.append(ALPHABET_MORSE.get(term.bytes[i]) + " ");
} else if(ter... | java |
private void distributedProcessFinish(ResponseBuilder rb,
ComponentFields mtasFields) throws IOException {
// rewrite
Object mtasResponseRaw;
if ((mtasResponseRaw = rb.rsp.getValues().get("mtas")) != null
&& mtasResponseRaw instanceof NamedList) {
NamedList<Object> mtasResponse = (Named... | java |
public static protocoludp_stats get(nitro_service service) throws Exception{
protocoludp_stats obj = new protocoludp_stats();
protocoludp_stats[] response = (protocoludp_stats[])obj.stat_resources(service);
return response[0];
} | java |
public static csvserver_cachepolicy_binding[] get(nitro_service service, String name) throws Exception{
csvserver_cachepolicy_binding obj = new csvserver_cachepolicy_binding();
obj.set_name(name);
csvserver_cachepolicy_binding response[] = (csvserver_cachepolicy_binding[]) obj.get_resources(service);
return res... | java |
public static authenticationradiuspolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{
authenticationradiuspolicy_vpnglobal_binding obj = new authenticationradiuspolicy_vpnglobal_binding();
obj.set_name(name);
authenticationradiuspolicy_vpnglobal_binding response[] = (authenticatio... | java |
public int[] indices(Collection<E> elems) {
int[] indices = new int[elems.size()];
int i = 0;
for (E elem : elems) {
indices[i++] = indexOf(elem);
}
return indices;
} | java |
public E get(int i) {
if (i < 0 || i >= objects.size())
throw new ArrayIndexOutOfBoundsException("Index " + i +
" outside the bounds [0," +
size() + ")");
return objects.get(i);
} | java |
@Override
public boolean add(E o) {
Integer index = indexes.get(o);
if (index == null && ! locked) {
index = objects.size();
objects.add(o);
indexes.put(o, index);
return true;
}
return false;
} | java |
public static base_response add(nitro_service client, vlan resource) throws Exception {
vlan addresource = new vlan();
addresource.id = resource.id;
addresource.aliasname = resource.aliasname;
addresource.ipv6dynamicrouting = resource.ipv6dynamicrouting;
return addresource.add_resource(client);
} | java |
public static base_responses add(nitro_service client, vlan resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
vlan addresources[] = new vlan[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new vlan();
addresources[... | java |
public static base_response update(nitro_service client, vlan resource) throws Exception {
vlan updateresource = new vlan();
updateresource.id = resource.id;
updateresource.aliasname = resource.aliasname;
updateresource.ipv6dynamicrouting = resource.ipv6dynamicrouting;
return updateresource.update_resource(cl... | java |
public static vlan[] get(nitro_service service) throws Exception{
vlan obj = new vlan();
vlan[] response = (vlan[])obj.get_resources(service);
return response;
} | java |
public static vlan get(nitro_service service, Long id) throws Exception{
vlan obj = new vlan();
obj.set_id(id);
vlan response = (vlan) obj.get_resource(service);
return response;
} | java |
public static systemcore get(nitro_service service) throws Exception{
systemcore obj = new systemcore();
systemcore[] response = (systemcore[])obj.get_resources(service);
return response[0];
} | java |
public static systemcore[] get(nitro_service service, systemcore_args args) throws Exception{
systemcore obj = new systemcore();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systemcore[] response = (systemcore[])obj.get_resources(service, option);
return re... | java |
public static rnat_stats get(nitro_service service) throws Exception{
rnat_stats obj = new rnat_stats();
rnat_stats[] response = (rnat_stats[])obj.stat_resources(service);
return response[0];
} | java |
public static base_response update(nitro_service client, snmpoption resource) throws Exception {
snmpoption updateresource = new snmpoption();
updateresource.snmpset = resource.snmpset;
updateresource.snmptraplogging = resource.snmptraplogging;
return updateresource.update_resource(client);
} | java |
public static base_response unset(nitro_service client, snmpoption resource, String[] args) throws Exception{
snmpoption unsetresource = new snmpoption();
return unsetresource.unset_resource(client,args);
} | java |
public static snmpoption get(nitro_service service) throws Exception{
snmpoption obj = new snmpoption();
snmpoption[] response = (snmpoption[])obj.get_resources(service);
return response[0];
} | java |
public static lbvserver_filterpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_filterpolicy_binding obj = new lbvserver_filterpolicy_binding();
obj.set_name(name);
lbvserver_filterpolicy_binding response[] = (lbvserver_filterpolicy_binding[]) obj.get_resources(service);
retur... | java |
protected static <E extends LogRecordHandler> boolean removeHandler(Class<E> toRemove) {
boolean rtn = false;
Iterator<LogRecordHandler> iter = handlers.iterator();
while(iter.hasNext()){
if(iter.next().getClass().equals(toRemove)){
rtn = true;
iter.remove();
}
}
... | java |
protected static void appendHandler(LogRecordHandler parent, LogRecordHandler child){
RecordHandlerTree p = handlers.find(parent);
if(p != null){
p.addChild(child);
} else {
throw new IllegalArgumentException("No such parent handler: " + parent);
}
} | java |
protected static void appendHandler(Class<? extends LogRecordHandler> parent, LogRecordHandler child){
List<LogRecordHandler> toAdd = new LinkedList<LogRecordHandler>();
//--Find Parents
for(LogRecordHandler term : handlers){
if(parent.isAssignableFrom(term.getClass())){
toAdd.add(term);
... | java |
@Deprecated
@SuppressWarnings("unchecked")
private static <E extends LogRecordHandler> E getHandler(Class<E> clazz){
for(LogRecordHandler cand : handlers){
if(clazz == cand.getClass()){
return (E) cand;
}
}
return null;
} | java |
protected static void captureSystemStreams(boolean captureOut, boolean captureErr){
if(captureOut){
System.setOut(new RedwoodPrintStream(STDOUT, realSysOut));
}
if(captureErr){
System.setErr(new RedwoodPrintStream(STDERR, realSysErr));
}
} | java |
public static void startTrack(final Object... args){
if(isClosed){ return; }
//--Create Record
final int len = args.length == 0 ? 0 : args.length-1;
final Object content = args.length == 0 ? "" : args[len];
final Object[] tags = new Object[len];
final StackTraceElement ste = getStackTrace(... | java |
public static void endTrack(final String title){
if(isClosed){ return; }
//--Make Task
final long timestamp = System.currentTimeMillis();
Runnable endTrack = new Runnable(){
public void run(){
assert !isThreaded || control.isHeldByCurrentThread();
//(check name match)
... | java |
public static void finishThread(){
//--Create Task
final long threadId = Thread.currentThread().getId();
Runnable finish = new Runnable(){
public void run(){
releaseThreadControl(threadId);
}
};
//--Run Task
if(isThreaded){
//(case: multithreaded)
attem... | java |
public static void endThreads(String check){
//(error check)
if(currentThread != -1L){
throw new IllegalStateException("endThreads() called, but thread " + currentThread + " has not finished (exception in thread?)");
}
//(end threaded environment)
assert !control.isHeldByCurrentThread();... | java |
public static void showOnlyChannels(Object... channels){
for(LogRecordHandler handler : handlers){
if(handler instanceof VisibilityHandler){
VisibilityHandler visHandler = (VisibilityHandler) handler;
visHandler.hideAll();
for (Object channel : channels) {
visHandler.al... | java |
public static void hideOnlyChannels(Object... channels){
for(LogRecordHandler handler : handlers){
if(handler instanceof VisibilityHandler){
VisibilityHandler visHandler = (VisibilityHandler) handler;
visHandler.showAll();
for (Object channel : channels) {
visHandler.al... | java |
public static void showChannels(Object... channels){
// TODO this could share more code with the other show/hide(Only)Channels methods
for(LogRecordHandler handler : handlers){
if(handler instanceof VisibilityHandler){
VisibilityHandler visHandler = (VisibilityHandler) handler;
for (O... | java |
public static void hideChannels(Object... channels){
// TODO this could share more code with the other show/hide(Only)Channels methods
for(LogRecordHandler handler : handlers){
if(handler instanceof VisibilityHandler){
VisibilityHandler visHandler = (VisibilityHandler) handler;
for (O... | java |
public static void stop(){
//--Close logger
isClosed = true; // <- not a thread-safe boolean
Thread.yield(); //poor man's synchronization attempt (let everything else log that wants to)
Thread.yield();
//--Close Tracks
while(depth > 0){
depth -= 1;
//(send signal to handlers)... | java |
private static StackTraceElement getStackTrace() {
StackTraceElement[] stack = Thread.currentThread().getStackTrace();
int i = 2; // we can skip the first two (first is getStackTrace(), second is this method)
while (i < stack.length) {
boolean isLoggingClass = false;
for (String loggingCl... | java |
protected static List<StackTraceElement> filterStackTrace(StackTraceElement[] stack) {
List<StackTraceElement> filteredStack = new ArrayList<StackTraceElement>();
int i = 2; // we can skip the first two (first is getStackTrace(), second is this method)
while (i < stack.length) {
boolean isLoggin... | java |
public static base_response add(nitro_service client, ipset resource) throws Exception {
ipset addresource = new ipset();
addresource.name = resource.name;
addresource.td = resource.td;
return addresource.add_resource(client);
} | java |
public static ipset[] get(nitro_service service) throws Exception{
ipset obj = new ipset();
ipset[] response = (ipset[])obj.get_resources(service);
return response;
} | java |
public static ipset get(nitro_service service, String name) throws Exception{
ipset obj = new ipset();
obj.set_name(name);
ipset response = (ipset) obj.get_resource(service);
return response;
} | java |
public static appfwprofile_crosssitescripting_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_crosssitescripting_binding obj = new appfwprofile_crosssitescripting_binding();
obj.set_name(name);
appfwprofile_crosssitescripting_binding response[] = (appfwprofile_crosssitescripting_b... | java |
public static auditsyslogpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{
auditsyslogpolicy_aaauser_binding obj = new auditsyslogpolicy_aaauser_binding();
obj.set_name(name);
auditsyslogpolicy_aaauser_binding response[] = (auditsyslogpolicy_aaauser_binding[]) obj.get_resources(se... | java |
public static base_response add(nitro_service client, autoscaleaction resource) throws Exception {
autoscaleaction addresource = new autoscaleaction();
addresource.name = resource.name;
addresource.type = resource.type;
addresource.profilename = resource.profilename;
addresource.parameters = resource.paramete... | java |
public static base_responses add(nitro_service client, autoscaleaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
autoscaleaction addresources[] = new autoscaleaction[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i... | java |
public static base_response update(nitro_service client, autoscaleaction resource) throws Exception {
autoscaleaction updateresource = new autoscaleaction();
updateresource.name = resource.name;
updateresource.profilename = resource.profilename;
updateresource.parameters = resource.parameters;
updateresource.... | java |
public static base_responses update(nitro_service client, autoscaleaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
autoscaleaction updateresources[] = new autoscaleaction[resources.length];
for (int i=0;i<resources.length;i++){
updatere... | java |
public static autoscaleaction[] get(nitro_service service) throws Exception{
autoscaleaction obj = new autoscaleaction();
autoscaleaction[] response = (autoscaleaction[])obj.get_resources(service);
return response;
} | java |
public static autoscaleaction get(nitro_service service, String name) throws Exception{
autoscaleaction obj = new autoscaleaction();
obj.set_name(name);
autoscaleaction response = (autoscaleaction) obj.get_resource(service);
return response;
} | java |
public static sslvserver_sslcipher_binding[] get(nitro_service service, String vservername) throws Exception{
sslvserver_sslcipher_binding obj = new sslvserver_sslcipher_binding();
obj.set_vservername(vservername);
sslvserver_sslcipher_binding response[] = (sslvserver_sslcipher_binding[]) obj.get_resources(servic... | java |
public static vpnglobal_authenticationsamlpolicy_binding[] get(nitro_service service) throws Exception{
vpnglobal_authenticationsamlpolicy_binding obj = new vpnglobal_authenticationsamlpolicy_binding();
vpnglobal_authenticationsamlpolicy_binding response[] = (vpnglobal_authenticationsamlpolicy_binding[]) obj.get_re... | java |
public static base_response add(nitro_service client, nsacl6 resource) throws Exception {
nsacl6 addresource = new nsacl6();
addresource.acl6name = resource.acl6name;
addresource.acl6action = resource.acl6action;
addresource.td = resource.td;
addresource.srcipv6 = resource.srcipv6;
addresource.srcipop = res... | java |
public static base_responses add(nitro_service client, nsacl6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsacl6 addresources[] = new nsacl6[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new nsacl6();
addre... | java |
public static base_response delete(nitro_service client, String acl6name) throws Exception {
nsacl6 deleteresource = new nsacl6();
deleteresource.acl6name = acl6name;
return deleteresource.delete_resource(client);
} | java |
public static base_responses delete(nitro_service client, String acl6name[]) throws Exception {
base_responses result = null;
if (acl6name != null && acl6name.length > 0) {
nsacl6 deleteresources[] = new nsacl6[acl6name.length];
for (int i=0;i<acl6name.length;i++){
deleteresources[i] = new nsacl6();
d... | java |
public static base_response update(nitro_service client, nsacl6 resource) throws Exception {
nsacl6 updateresource = new nsacl6();
updateresource.acl6name = resource.acl6name;
updateresource.aclaction = resource.aclaction;
updateresource.srcipv6 = resource.srcipv6;
updateresource.srcipop = resource.srcipop;
... | java |
public static base_responses update(nitro_service client, nsacl6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsacl6 updateresources[] = new nsacl6[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new nsacl6();
... | java |
public static base_response unset(nitro_service client, nsacl6 resource, String[] args) throws Exception{
nsacl6 unsetresource = new nsacl6();
unsetresource.acl6name = resource.acl6name;
return unsetresource.unset_resource(client,args);
} | java |
public static base_responses unset(nitro_service client, String acl6name[], String args[]) throws Exception {
base_responses result = null;
if (acl6name != null && acl6name.length > 0) {
nsacl6 unsetresources[] = new nsacl6[acl6name.length];
for (int i=0;i<acl6name.length;i++){
unsetresources[i] = new nsa... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.