code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public static base_response add(nitro_service client, cmppolicylabel resource) throws Exception {
cmppolicylabel addresource = new cmppolicylabel();
addresource.labelname = resource.labelname;
addresource.type = resource.type;
return addresource.add_resource(client);
} | java |
public static base_responses add(nitro_service client, cmppolicylabel resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cmppolicylabel addresources[] = new cmppolicylabel[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] =... | java |
public static base_response rename(nitro_service client, cmppolicylabel resource, String new_labelname) throws Exception {
cmppolicylabel renameresource = new cmppolicylabel();
renameresource.labelname = resource.labelname;
return renameresource.rename_resource(client,new_labelname);
} | java |
public static cmppolicylabel[] get(nitro_service service) throws Exception{
cmppolicylabel obj = new cmppolicylabel();
cmppolicylabel[] response = (cmppolicylabel[])obj.get_resources(service);
return response;
} | java |
public static cmppolicylabel get(nitro_service service, String labelname) throws Exception{
cmppolicylabel obj = new cmppolicylabel();
obj.set_labelname(labelname);
cmppolicylabel response = (cmppolicylabel) obj.get_resource(service);
return response;
} | java |
public static vpnvserver_vpnnexthopserver_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_vpnnexthopserver_binding obj = new vpnvserver_vpnnexthopserver_binding();
obj.set_name(name);
vpnvserver_vpnnexthopserver_binding response[] = (vpnvserver_vpnnexthopserver_binding[]) obj.get_re... | java |
public static base_response expire(nitro_service client, cacheobject resource) throws Exception {
cacheobject expireresource = new cacheobject();
expireresource.locator = resource.locator;
expireresource.url = resource.url;
expireresource.host = resource.host;
expireresource.port = resource.port;
expirereso... | java |
public static base_responses expire(nitro_service client, cacheobject resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheobject expireresources[] = new cacheobject[resources.length];
for (int i=0;i<resources.length;i++){
expireresources[i] =... | java |
public static base_response flush(nitro_service client, cacheobject resource) throws Exception {
cacheobject flushresource = new cacheobject();
flushresource.locator = resource.locator;
flushresource.url = resource.url;
flushresource.host = resource.host;
flushresource.port = resource.port;
flushresource.gr... | java |
public static base_responses flush(nitro_service client, cacheobject resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheobject flushresources[] = new cacheobject[resources.length];
for (int i=0;i<resources.length;i++){
flushresources[i] = ne... | java |
public static base_response save(nitro_service client, cacheobject resource) throws Exception {
cacheobject saveresource = new cacheobject();
saveresource.locator = resource.locator;
return saveresource.perform_operation(client,"save");
} | java |
public static base_responses save(nitro_service client, cacheobject resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheobject saveresources[] = new cacheobject[resources.length];
for (int i=0;i<resources.length;i++){
saveresources[i] = new c... | java |
public static cacheobject[] get(nitro_service service) throws Exception{
cacheobject obj = new cacheobject();
cacheobject[] response = (cacheobject[])obj.get_resources(service);
return response;
} | java |
public static cacheobject[] get(nitro_service service, cacheobject_args args) throws Exception{
cacheobject obj = new cacheobject();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
cacheobject[] response = (cacheobject[])obj.get_resources(service, option);
ret... | java |
public static sslpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
sslpolicy_lbvserver_binding obj = new sslpolicy_lbvserver_binding();
obj.set_name(name);
sslpolicy_lbvserver_binding response[] = (sslpolicy_lbvserver_binding[]) obj.get_resources(service);
return response;
} | java |
public static cmppolicy_stats[] get(nitro_service service) throws Exception{
cmppolicy_stats obj = new cmppolicy_stats();
cmppolicy_stats[] response = (cmppolicy_stats[])obj.stat_resources(service);
return response;
} | java |
public static cmppolicy_stats get(nitro_service service, String name) throws Exception{
cmppolicy_stats obj = new cmppolicy_stats();
obj.set_name(name);
cmppolicy_stats response = (cmppolicy_stats) obj.stat_resource(service);
return response;
} | java |
public static appfwpolicylabel_stats[] get(nitro_service service) throws Exception{
appfwpolicylabel_stats obj = new appfwpolicylabel_stats();
appfwpolicylabel_stats[] response = (appfwpolicylabel_stats[])obj.stat_resources(service);
return response;
} | java |
public static appfwpolicylabel_stats get(nitro_service service, String labelname) throws Exception{
appfwpolicylabel_stats obj = new appfwpolicylabel_stats();
obj.set_labelname(labelname);
appfwpolicylabel_stats response = (appfwpolicylabel_stats) obj.stat_resource(service);
return response;
} | java |
public static base_response enable(nitro_service client, nsfeature resource) throws Exception {
nsfeature enableresource = new nsfeature();
enableresource.feature = resource.feature;
return enableresource.perform_operation(client,"enable");
} | java |
public static base_response disable(nitro_service client, nsfeature resource) throws Exception {
nsfeature disableresource = new nsfeature();
disableresource.feature = resource.feature;
return disableresource.perform_operation(client,"disable");
} | java |
public static nsfeature get(nitro_service service) throws Exception{
nsfeature obj = new nsfeature();
nsfeature[] response = (nsfeature[])obj.get_resources(service);
return response[0];
} | java |
public static base_response update(nitro_service client, nsrpcnode resource) throws Exception {
nsrpcnode updateresource = new nsrpcnode();
updateresource.ipaddress = resource.ipaddress;
updateresource.password = resource.password;
updateresource.srcip = resource.srcip;
updateresource.secure = resource.secure... | java |
public static base_responses update(nitro_service client, nsrpcnode resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsrpcnode updateresources[] = new nsrpcnode[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new n... | java |
public static base_response unset(nitro_service client, nsrpcnode resource, String[] args) throws Exception{
nsrpcnode unsetresource = new nsrpcnode();
unsetresource.ipaddress = resource.ipaddress;
return unsetresource.unset_resource(client,args);
} | java |
public static base_responses unset(nitro_service client, String ipaddress[], String args[]) throws Exception {
base_responses result = null;
if (ipaddress != null && ipaddress.length > 0) {
nsrpcnode unsetresources[] = new nsrpcnode[ipaddress.length];
for (int i=0;i<ipaddress.length;i++){
unsetresources[i... | java |
public static nsrpcnode[] get(nitro_service service) throws Exception{
nsrpcnode obj = new nsrpcnode();
nsrpcnode[] response = (nsrpcnode[])obj.get_resources(service);
return response;
} | java |
public static nsrpcnode get(nitro_service service, String ipaddress) throws Exception{
nsrpcnode obj = new nsrpcnode();
obj.set_ipaddress(ipaddress);
nsrpcnode response = (nsrpcnode) obj.get_resource(service);
return response;
} | java |
public static nsrpcnode[] get(nitro_service service, String ipaddress[]) throws Exception{
if (ipaddress !=null && ipaddress.length>0) {
nsrpcnode response[] = new nsrpcnode[ipaddress.length];
nsrpcnode obj[] = new nsrpcnode[ipaddress.length];
for (int i=0;i<ipaddress.length;i++) {
obj[i] = new nsrpcnode... | java |
public double totalCount() {
if (depth() == 1) {
return total; // I think this one is always OK. Not very principled here, though.
} else {
double result = 0.0;
for (K o: topLevelKeySet()) {
result += conditionalizeOnce(o).totalCount();
}
return result;
}
} | java |
private void printKeySet() {
Set<?> keys = keySet();
System.out.println("printing keyset:");
for (Object o: keys) {
//System.out.println(Arrays.asList((Object[]) i.next()));
System.out.println(o);
}
} | java |
public static autoscalepolicy_binding get(nitro_service service, String name) throws Exception{
autoscalepolicy_binding obj = new autoscalepolicy_binding();
obj.set_name(name);
autoscalepolicy_binding response = (autoscalepolicy_binding) obj.get_resource(service);
return response;
} | java |
public boolean isLabelAnnotationIntroducingCharacter(char ch) {
char[] cutChars = labelAnnotationIntroducingCharacters();
for (char cutChar : cutChars) {
if (ch == cutChar) {
return true;
}
}
return false;
} | java |
public int[] getPositions() {
int[] list;
if (assumeSinglePosition) {
list = new int[1];
list[0] = super.startPosition();
return list;
} else {
try {
processEncodedPayload();
list = mtasPosition.getPositions();
if (list != null) {
return mtasPosition... | java |
private void processEncodedPayload() throws IOException {
if (!readPayload) {
payloadSpanCollector.reset();
collect(payloadSpanCollector);
Collection<byte[]> originalPayloadCollection = payloadSpanCollector
.getPayloads();
if (originalPayloadCollection.iterator().hasNext()) {
... | java |
public static void main(String[] args) throws Exception {
System.err.println("CRFBiasedClassifier invoked at " + new Date()
+ " with arguments:");
for (String arg : args) {
System.err.print(" " + arg);
}
System.err.println();
Properties props = StringUtils.argsToProperties... | java |
public static dnspolicy_dnsglobal_binding[] get(nitro_service service, String name) throws Exception{
dnspolicy_dnsglobal_binding obj = new dnspolicy_dnsglobal_binding();
obj.set_name(name);
dnspolicy_dnsglobal_binding response[] = (dnspolicy_dnsglobal_binding[]) obj.get_resources(service);
return response;
} | java |
public static base_response add(nitro_service client, snmpuser resource) throws Exception {
snmpuser addresource = new snmpuser();
addresource.name = resource.name;
addresource.group = resource.group;
addresource.authtype = resource.authtype;
addresource.authpasswd = resource.authpasswd;
addresource.privtyp... | java |
public static base_responses add(nitro_service client, snmpuser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpuser addresources[] = new snmpuser[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new snmpuser();
... | java |
public static base_response update(nitro_service client, snmpuser resource) throws Exception {
snmpuser updateresource = new snmpuser();
updateresource.name = resource.name;
updateresource.group = resource.group;
updateresource.authtype = resource.authtype;
updateresource.authpasswd = resource.authpasswd;
u... | java |
public static base_responses update(nitro_service client, snmpuser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpuser updateresources[] = new snmpuser[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new snmp... | java |
public static snmpuser[] get(nitro_service service, options option) throws Exception{
snmpuser obj = new snmpuser();
snmpuser[] response = (snmpuser[])obj.get_resources(service,option);
return response;
} | java |
public static snmpuser get(nitro_service service, String name) throws Exception{
snmpuser obj = new snmpuser();
obj.set_name(name);
snmpuser response = (snmpuser) obj.get_resource(service);
return response;
} | java |
public static aaagroup_vpntrafficpolicy_binding[] get(nitro_service service, String groupname) throws Exception{
aaagroup_vpntrafficpolicy_binding obj = new aaagroup_vpntrafficpolicy_binding();
obj.set_groupname(groupname);
aaagroup_vpntrafficpolicy_binding response[] = (aaagroup_vpntrafficpolicy_binding[]) obj.g... | java |
public static Map<String, String> mapStringToMap(String map) {
String[] m = map.split("[,;]");
Map<String, String> res = new HashMap<String, String>();
for (String str : m) {
int index = str.lastIndexOf('=');
String key = str.substring(0, index);
String val = str.substring(index + 1)... | java |
public static String pad(String str, int totalChars) {
if (str == null) {
str = "null";
}
int slen = str.length();
StringBuilder sb = new StringBuilder(str);
for (int i = 0; i < totalChars - slen; i++) {
sb.append(' ');
}
return sb.toString();
} | java |
public static String padOrTrim(String str, int num) {
if (str == null) {
str = "null";
}
int leng = str.length();
if (leng < num) {
StringBuilder sb = new StringBuilder(str);
for (int i = 0; i < num - leng; i++) {
sb.append(' ');
}
return sb.toString();
... | java |
public static String padLeft(String str, int totalChars, char ch) {
if (str == null) {
str = "null";
}
StringBuilder sb = new StringBuilder();
for (int i = 0, num = totalChars - str.length(); i < num; i++) {
sb.append(ch);
}
sb.append(str);
return sb.toString();
} | java |
public static String trim(String s, int maxWidth) {
if (s.length() <= maxWidth) {
return (s);
}
return (s.substring(0, maxWidth));
} | java |
public static String fileNameClean(String s) {
char[] chars = s.toCharArray();
StringBuilder sb = new StringBuilder();
for (char c : chars) {
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || (c == '_')) {
sb.append(c);
} else {
if (c == ' '... | java |
public static String truncate(int n, int smallestDigit, int biggestDigit) {
int numDigits = biggestDigit - smallestDigit + 1;
char[] result = new char[numDigits];
for (int j = 1; j < smallestDigit; j++) {
n = n / 10;
}
for (int j = numDigits - 1; j >= 0; j--) {
result[j] = Charact... | java |
public static String checkRequiredProperties(Properties props,
String ... requiredProps) {
for (String required : requiredProps) {
if (props.getProperty(required) == null) {
return required;
}
}
return null;
} | java |
public static void printToFile(String filename, String message) {
printToFile(new File(filename), message, false);
} | java |
public static int longestCommonContiguousSubstring(String s, String t) {
if (s.length() == 0 || t.length() == 0) {
return 0;
}
int M = s.length();
int N = t.length();
int[][] d = new int[M + 1][N + 1];
for (int j = 0; j <= N; j++) {
d[0][j] = 0;
}
for (int i = 0; i ... | java |
public static String pennPOSToWordnetPOS(String s) {
if (s.matches("NN|NNP|NNS|NNPS")) {
return "noun";
}
if (s.matches("VB|VBD|VBG|VBN|VBZ|VBP|MD")) {
return "verb";
}
if (s.matches("JJ|JJR|JJS|CD")) {
return "adjective";
}
if (s.matches("RB|RBR|RBS|RP|WRB")) {
... | java |
public static String getShortClassName(Object o) {
String name = o.getClass().getName();
int index = name.lastIndexOf('.');
if (index >= 0) {
name = name.substring(index + 1);
}
return name;
} | java |
public static <T> T columnStringToObject(Class objClass, String str, String delimiterRegex, String[] fieldNames)
throws InstantiationException, IllegalAccessException, NoSuchFieldException, NoSuchMethodException, InvocationTargetException
{
Pattern delimiterPattern = Pattern.compile(delimiterRegex);
... | java |
public static <T> T columnStringToObject(Class<?> objClass, String str, Pattern delimiterPattern, String[] fieldNames)
throws InstantiationException, IllegalAccessException, NoSuchMethodException, NoSuchFieldException, InvocationTargetException
{
String[] fields = delimiterPattern.split(str);
T ... | java |
public static String objectToColumnString(Object object, String delimiter, String[] fieldNames)
throws IllegalAccessException, NoSuchFieldException, NoSuchMethodException, InvocationTargetException
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < fieldNames.length; i++) {
if ... | java |
public static String makeHTMLTable(String[][] table, String[] rowLabels, String[] colLabels) {
StringBuilder buff = new StringBuilder();
buff.append("<table class=\"auto\" border=\"1\" cellspacing=\"0\">\n");
// top row
buff.append("<tr>\n");
buff.append("<td></td>\n"); // the top left cell
... | java |
public static String makeAsciiTable(Object[][] table, Object[] rowLabels, Object[] colLabels, int padLeft, int padRight, boolean tsv) {
StringBuilder buff = new StringBuilder();
// top row
buff.append(makeAsciiTableCell("", padLeft, padRight, tsv)); // the top left cell
for (int j = 0; j < table[0].... | java |
private static String makeAsciiTableCell(Object obj, int padLeft, int padRight, boolean tsv) {
String result = obj.toString();
if (padLeft > 0) {
result = padLeft(result, padLeft);
}
if (padRight > 0) {
result = pad(result, padRight);
}
if (tsv) {
result = result + '\t... | java |
public static void main(String[] args) {
String[] s = {"there once was a man", "this one is a manic", "hey there", "there once was a mane", "once in a manger.", "where is one match?", "Jo3seph Smarr!", "Joseph R Smarr"};
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
System.out.... | java |
public static String chomp(String s) {
if(s.length() == 0)
return s;
int l_1 = s.length() - 1;
if (s.charAt(l_1) == '\n') {
return s.substring(0, l_1);
}
return s;
} | java |
public static boolean isPunct(String s){
Pattern p = Pattern.compile("^[\\p{Punct}]+$");
Matcher m = p.matcher(s);
return m.matches();
} | java |
public static authenticationvserver_auditnslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_auditnslogpolicy_binding obj = new authenticationvserver_auditnslogpolicy_binding();
obj.set_name(name);
authenticationvserver_auditnslogpolicy_binding response[] = (authe... | java |
public static servicegroup_lbmonitor_binding[] get(nitro_service service, String servicegroupname) throws Exception{
servicegroup_lbmonitor_binding obj = new servicegroup_lbmonitor_binding();
obj.set_servicegroupname(servicegroupname);
servicegroup_lbmonitor_binding response[] = (servicegroup_lbmonitor_binding[])... | java |
public static nstrafficdomain_bridgegroup_binding[] get(nitro_service service, Long td) throws Exception{
nstrafficdomain_bridgegroup_binding obj = new nstrafficdomain_bridgegroup_binding();
obj.set_td(td);
nstrafficdomain_bridgegroup_binding response[] = (nstrafficdomain_bridgegroup_binding[]) obj.get_resources(... | java |
public static long count(nitro_service service, Long td) throws Exception{
nstrafficdomain_bridgegroup_binding obj = new nstrafficdomain_bridgegroup_binding();
obj.set_td(td);
options option = new options();
option.set_count(true);
nstrafficdomain_bridgegroup_binding response[] = (nstrafficdomain_bridgegroup_... | java |
public String toStringByValue() {
IntArrayList theKeys = new IntArrayList();
keysSortedByValue(theKeys);
StringBuffer buf = new StringBuffer();
buf.append("[");
int maxIndex = theKeys.size() - 1;
for (int i = 0; i <= maxIndex; i++) {
int key = theKeys.get(i);
buf.append(String.valueOf(key));
b... | java |
public static scpolicy_stats[] get(nitro_service service) throws Exception{
scpolicy_stats obj = new scpolicy_stats();
scpolicy_stats[] response = (scpolicy_stats[])obj.stat_resources(service);
return response;
} | java |
public static scpolicy_stats get(nitro_service service, String name) throws Exception{
scpolicy_stats obj = new scpolicy_stats();
obj.set_name(name);
scpolicy_stats response = (scpolicy_stats) obj.stat_resource(service);
return response;
} | java |
public static vpnvserver_vpnsessionpolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_vpnsessionpolicy_binding obj = new vpnvserver_vpnsessionpolicy_binding();
obj.set_name(name);
vpnvserver_vpnsessionpolicy_binding response[] = (vpnvserver_vpnsessionpolicy_binding[]) obj.get_re... | java |
protected static void main(String args[]) {
int from = Integer.parseInt(args[0]);
int to = Integer.parseInt(args[1]);
statistics(from,to);
} | java |
protected static void statistics(int from, int to) {
// check that primes contain no accidental errors
for (int i=0; i<primeCapacities.length-1; i++) {
if (primeCapacities[i] >= primeCapacities[i+1]) throw new RuntimeException("primes are unsorted or contain duplicates; detected at "+i+"@"+primeCapacities[i]);
... | java |
public void readData(BufferedReader in) throws IOException {
String line, value;
// skip old variables if still present
lexOptions.readData(in);
line = in.readLine();
value = line.substring(line.indexOf(' ') + 1);
try {
tlpParams = (TreebankLangParserParams) Class.forName(value).new... | java |
public static protocolip_stats get(nitro_service service) throws Exception{
protocolip_stats obj = new protocolip_stats();
protocolip_stats[] response = (protocolip_stats[])obj.stat_resources(service);
return response[0];
} | java |
public static <E> Filter<E> switchedFilter(Filter<E> filter, boolean negated) {
return (new NegatedFilter<E>(filter, negated));
} | java |
@SuppressWarnings("unchecked")
public static <E> E[] filter(E[] elems, Filter<E> filter) {
List<E> filtered = new ArrayList<E>();
for (E elem: elems) {
if (filter.accept(elem)) {
filtered.add(elem);
}
}
return (filtered.toArray((E[]) Array.newInstance(elems.getClass().getCo... | java |
public static <E> void retainAll(Collection<E> elems, Filter<? super E> filter) {
for (Iterator<E> iter = elems.iterator(); iter.hasNext();) {
E elem = iter.next();
if ( ! filter.accept(elem)) {
iter.remove();
}
}
} | java |
public static appflowpolicy_binding get(nitro_service service, String name) throws Exception{
appflowpolicy_binding obj = new appflowpolicy_binding();
obj.set_name(name);
appflowpolicy_binding response = (appflowpolicy_binding) obj.get_resource(service);
return response;
} | java |
public static hanode_routemonitor_binding[] get(nitro_service service, Long id) throws Exception{
hanode_routemonitor_binding obj = new hanode_routemonitor_binding();
obj.set_id(id);
hanode_routemonitor_binding response[] = (hanode_routemonitor_binding[]) obj.get_resources(service);
return response;
} | java |
public static base_response add(nitro_service client, dnsview resource) throws Exception {
dnsview addresource = new dnsview();
addresource.viewname = resource.viewname;
return addresource.add_resource(client);
} | java |
public static base_responses add(nitro_service client, dnsview resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsview addresources[] = new dnsview[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnsview();
a... | java |
public static base_response delete(nitro_service client, String viewname) throws Exception {
dnsview deleteresource = new dnsview();
deleteresource.viewname = viewname;
return deleteresource.delete_resource(client);
} | java |
public static dnsview[] get(nitro_service service) throws Exception{
dnsview obj = new dnsview();
dnsview[] response = (dnsview[])obj.get_resources(service);
return response;
} | java |
public static dnsview get(nitro_service service, String viewname) throws Exception{
dnsview obj = new dnsview();
obj.set_viewname(viewname);
dnsview response = (dnsview) obj.get_resource(service);
return response;
} | java |
public static dnsview[] get(nitro_service service, String viewname[]) throws Exception{
if (viewname !=null && viewname.length>0) {
dnsview response[] = new dnsview[viewname.length];
dnsview obj[] = new dnsview[viewname.length];
for (int i=0;i<viewname.length;i++) {
obj[i] = new dnsview();
obj[i].set... | java |
public static base_response add(nitro_service client, onlinkipv6prefix resource) throws Exception {
onlinkipv6prefix addresource = new onlinkipv6prefix();
addresource.ipv6prefix = resource.ipv6prefix;
addresource.onlinkprefix = resource.onlinkprefix;
addresource.autonomusprefix = resource.autonomusprefix;
add... | java |
public static base_responses add(nitro_service client, onlinkipv6prefix resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
onlinkipv6prefix addresources[] = new onlinkipv6prefix[resources.length];
for (int i=0;i<resources.length;i++){
addresource... | java |
public static base_response delete(nitro_service client, String ipv6prefix) throws Exception {
onlinkipv6prefix deleteresource = new onlinkipv6prefix();
deleteresource.ipv6prefix = ipv6prefix;
return deleteresource.delete_resource(client);
} | java |
public static base_response update(nitro_service client, onlinkipv6prefix resource) throws Exception {
onlinkipv6prefix updateresource = new onlinkipv6prefix();
updateresource.ipv6prefix = resource.ipv6prefix;
updateresource.onlinkprefix = resource.onlinkprefix;
updateresource.autonomusprefix = resource.autonom... | java |
public static base_responses update(nitro_service client, onlinkipv6prefix resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
onlinkipv6prefix updateresources[] = new onlinkipv6prefix[resources.length];
for (int i=0;i<resources.length;i++){
updat... | java |
public static base_response unset(nitro_service client, onlinkipv6prefix resource, String[] args) throws Exception{
onlinkipv6prefix unsetresource = new onlinkipv6prefix();
unsetresource.ipv6prefix = resource.ipv6prefix;
return unsetresource.unset_resource(client,args);
} | java |
public static base_responses unset(nitro_service client, onlinkipv6prefix resources[], String[] args) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
onlinkipv6prefix unsetresources[] = new onlinkipv6prefix[resources.length];
for (int i=0;i<resources.length;i... | java |
public static onlinkipv6prefix[] get(nitro_service service) throws Exception{
onlinkipv6prefix obj = new onlinkipv6prefix();
onlinkipv6prefix[] response = (onlinkipv6prefix[])obj.get_resources(service);
return response;
} | java |
public static onlinkipv6prefix get(nitro_service service, String ipv6prefix) throws Exception{
onlinkipv6prefix obj = new onlinkipv6prefix();
obj.set_ipv6prefix(ipv6prefix);
onlinkipv6prefix response = (onlinkipv6prefix) obj.get_resource(service);
return response;
} | java |
public static onlinkipv6prefix[] get(nitro_service service, String ipv6prefix[]) throws Exception{
if (ipv6prefix !=null && ipv6prefix.length>0) {
onlinkipv6prefix response[] = new onlinkipv6prefix[ipv6prefix.length];
onlinkipv6prefix obj[] = new onlinkipv6prefix[ipv6prefix.length];
for (int i=0;i<ipv6prefix... | java |
public static vpnsessionpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{
vpnsessionpolicy_aaauser_binding obj = new vpnsessionpolicy_aaauser_binding();
obj.set_name(name);
vpnsessionpolicy_aaauser_binding response[] = (vpnsessionpolicy_aaauser_binding[]) obj.get_resources(service... | java |
public static vpnvserver_authenticationradiuspolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_authenticationradiuspolicy_binding obj = new vpnvserver_authenticationradiuspolicy_binding();
obj.set_name(name);
vpnvserver_authenticationradiuspolicy_binding response[] = (vpnvserve... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.