code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public static responderaction get(nitro_service service, String name) throws Exception{
responderaction obj = new responderaction();
obj.set_name(name);
responderaction response = (responderaction) obj.get_resource(service);
return response;
} | java |
public static vpnsessionpolicy_binding get(nitro_service service, String name) throws Exception{
vpnsessionpolicy_binding obj = new vpnsessionpolicy_binding();
obj.set_name(name);
vpnsessionpolicy_binding response = (vpnsessionpolicy_binding) obj.get_resource(service);
return response;
} | java |
public static wisite_translationinternalip_binding[] get(nitro_service service, String sitepath) throws Exception{
wisite_translationinternalip_binding obj = new wisite_translationinternalip_binding();
obj.set_sitepath(sitepath);
wisite_translationinternalip_binding response[] = (wisite_translationinternalip_bind... | java |
public static long count(nitro_service service, String sitepath) throws Exception{
wisite_translationinternalip_binding obj = new wisite_translationinternalip_binding();
obj.set_sitepath(sitepath);
options option = new options();
option.set_count(true);
wisite_translationinternalip_binding response[] = (wisit... | java |
public static authenticationlocalpolicy_systemglobal_binding[] get(nitro_service service, String name) throws Exception{
authenticationlocalpolicy_systemglobal_binding obj = new authenticationlocalpolicy_systemglobal_binding();
obj.set_name(name);
authenticationlocalpolicy_systemglobal_binding response[] = (authe... | java |
public static appfwprofile_xmlwsiurl_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_xmlwsiurl_binding obj = new appfwprofile_xmlwsiurl_binding();
obj.set_name(name);
appfwprofile_xmlwsiurl_binding response[] = (appfwprofile_xmlwsiurl_binding[]) obj.get_resources(service);
retur... | java |
public static base_response add(nitro_service client, snmpgroup resource) throws Exception {
snmpgroup addresource = new snmpgroup();
addresource.name = resource.name;
addresource.securitylevel = resource.securitylevel;
addresource.readviewname = resource.readviewname;
return addresource.add_resource(client);... | java |
public static base_responses add(nitro_service client, snmpgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpgroup addresources[] = new snmpgroup[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new snmpgroup(... | java |
public static base_response delete(nitro_service client, snmpgroup resource) throws Exception {
snmpgroup deleteresource = new snmpgroup();
deleteresource.name = resource.name;
deleteresource.securitylevel = resource.securitylevel;
return deleteresource.delete_resource(client);
} | java |
public static base_response update(nitro_service client, snmpgroup resource) throws Exception {
snmpgroup updateresource = new snmpgroup();
updateresource.name = resource.name;
updateresource.securitylevel = resource.securitylevel;
updateresource.readviewname = resource.readviewname;
return updateresource.upd... | java |
public static base_responses update(nitro_service client, snmpgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpgroup updateresources[] = new snmpgroup[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new s... | java |
public static snmpgroup[] get(nitro_service service) throws Exception{
snmpgroup obj = new snmpgroup();
snmpgroup[] response = (snmpgroup[])obj.get_resources(service);
return response;
} | java |
public static base_response update(nitro_service client, lbparameter resource) throws Exception {
lbparameter updateresource = new lbparameter();
updateresource.httponlycookieflag = resource.httponlycookieflag;
updateresource.consolidatedlconn = resource.consolidatedlconn;
updateresource.useportforhashlb = reso... | java |
public static base_response unset(nitro_service client, lbparameter resource, String[] args) throws Exception{
lbparameter unsetresource = new lbparameter();
return unsetresource.unset_resource(client,args);
} | java |
public static lbparameter get(nitro_service service) throws Exception{
lbparameter obj = new lbparameter();
lbparameter[] response = (lbparameter[])obj.get_resources(service);
return response[0];
} | java |
public static auditnslogpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
auditnslogpolicy_lbvserver_binding obj = new auditnslogpolicy_lbvserver_binding();
obj.set_name(name);
auditnslogpolicy_lbvserver_binding response[] = (auditnslogpolicy_lbvserver_binding[]) obj.get_resourc... | java |
public static base_response add(nitro_service client, policystringmap resource) throws Exception {
policystringmap addresource = new policystringmap();
addresource.name = resource.name;
addresource.comment = resource.comment;
return addresource.add_resource(client);
} | java |
public static base_response update(nitro_service client, policystringmap resource) throws Exception {
policystringmap updateresource = new policystringmap();
updateresource.name = resource.name;
updateresource.comment = resource.comment;
return updateresource.update_resource(client);
} | java |
public static policystringmap[] get(nitro_service service) throws Exception{
policystringmap obj = new policystringmap();
policystringmap[] response = (policystringmap[])obj.get_resources(service);
return response;
} | java |
public static policystringmap get(nitro_service service, String name) throws Exception{
policystringmap obj = new policystringmap();
obj.set_name(name);
policystringmap response = (policystringmap) obj.get_resource(service);
return response;
} | java |
public static rewritepolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
rewritepolicylabel_policybinding_binding obj = new rewritepolicylabel_policybinding_binding();
obj.set_labelname(labelname);
rewritepolicylabel_policybinding_binding response[] = (rewritepolicyl... | java |
private void registerPrefix(String field, String prefix,
IndexOutput outPrefix) throws IOException {
if (!prefixReferenceIndex.containsKey(field)) {
prefixReferenceIndex.put(field, new HashMap<String, Long>());
prefixIdIndex.put(field, new HashMap<String, Integer>());
}
if (!prefixReferenc... | java |
private void registerPrefixIntersection(String field, String prefix,
int start, int end,
HashMap<String, HashSet<Integer>> docFieldAdministration) {
if (!intersectingPrefixes.containsKey(field)) {
intersectingPrefixes.put(field, new HashSet<String>());
} else if (intersectingPrefixes.get(field... | java |
public void registerPrefixStatsSinglePositionValue(String field,
String prefix, IndexOutput outPrefix) throws IOException {
initPrefixStatsField(field);
registerPrefix(field, prefix, outPrefix);
if (!multiplePositionPrefix.get(field).contains(prefix)) {
singlePositionPrefix.get(field).add(prefix... | java |
public void registerPrefixStatsRangePositionValue(String field, String prefix,
IndexOutput outPrefix) throws IOException {
initPrefixStatsField(field);
registerPrefix(field, prefix, outPrefix);
singlePositionPrefix.get(field).remove(prefix);
multiplePositionPrefix.get(field).add(prefix);
} | java |
private void initPrefixStatsField(String field) {
if (!singlePositionPrefix.containsKey(field)) {
singlePositionPrefix.put(field, new HashSet<String>());
}
if (!multiplePositionPrefix.containsKey(field)) {
multiplePositionPrefix.put(field, new HashSet<String>());
}
if (!setPositionPrefix... | java |
public String getPrefixStatsSinglePositionPrefixAttribute(String field) {
return String.join(MtasToken.DELIMITER, singlePositionPrefix.get(field));
} | java |
public String getPrefixStatsMultiplePositionPrefixAttribute(String field) {
return String.join(MtasToken.DELIMITER, multiplePositionPrefix.get(field));
} | java |
public String getPrefixStatsSetPositionPrefixAttribute(String field) {
return String.join(MtasToken.DELIMITER, setPositionPrefix.get(field));
} | java |
public String getPrefixStatsIntersectionPrefixAttribute(String field) {
if (intersectingPrefixes.containsKey(field)) {
return String.join(MtasToken.DELIMITER, intersectingPrefixes.get(field));
} else {
return "";
}
} | java |
private void tokenStatsAdd(int min, int max) {
tokenStatsNumber++;
if (tokenStatsMinPos == null) {
tokenStatsMinPos = min;
} else {
tokenStatsMinPos = Math.min(tokenStatsMinPos, min);
}
if (tokenStatsMaxPos == null) {
tokenStatsMaxPos = max;
} else {
tokenStatsMaxPos = Ma... | java |
private void copyObjectAndUpdateStats(int id, IndexInput in, Long inRef,
IndexOutput out) throws IOException {
int mtasId;
int objectFlags;
// read
in.seek(inRef);
mtasId = in.readVInt();
assert id == mtasId : "wrong id detected while copying object";
objectFlags = in.readVInt();
o... | java |
public static aaagroup_vpnintranetapplication_binding[] get(nitro_service service, String groupname) throws Exception{
aaagroup_vpnintranetapplication_binding obj = new aaagroup_vpnintranetapplication_binding();
obj.set_groupname(groupname);
aaagroup_vpnintranetapplication_binding response[] = (aaagroup_vpnintran... | java |
public void load(Reader r, String id) {
try {
// could throw an IO exception?
TreeReader tr = treeReaderFactory().newTreeReader(r);
int sentIndex = 0;
for (Tree pt; (pt = tr.readTree()) != null; ) {
if (pt.label() instanceof HasIndex) { // so we can trace where this tree came f... | java |
@Override
public void apply(TreeVisitor tp) {
for (int i = 0, size = parseTrees.size(); i < size; i++) {
tp.visitTree(parseTrees.get(i));
}
// or could do as Iterator but slower
// Iterator iter = parseTrees.iterator();
// while (iter.hasNext()) {
// tp.visitTree((Tree) iter.n... | java |
public static aaauser_vpnurl_binding[] get(nitro_service service, String username) throws Exception{
aaauser_vpnurl_binding obj = new aaauser_vpnurl_binding();
obj.set_username(username);
aaauser_vpnurl_binding response[] = (aaauser_vpnurl_binding[]) obj.get_resources(service);
return response;
} | java |
public static base_response add(nitro_service client, iptunnel resource) throws Exception {
iptunnel addresource = new iptunnel();
addresource.name = resource.name;
addresource.remote = resource.remote;
addresource.remotesubnetmask = resource.remotesubnetmask;
addresource.local = resource.local;
addresource... | java |
public static base_responses add(nitro_service client, iptunnel resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
iptunnel addresources[] = new iptunnel[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new iptunnel();
... | java |
public static iptunnel[] get(nitro_service service) throws Exception{
iptunnel obj = new iptunnel();
iptunnel[] response = (iptunnel[])obj.get_resources(service);
return response;
} | java |
public static iptunnel[] get(nitro_service service, iptunnel_args args) throws Exception{
iptunnel obj = new iptunnel();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
iptunnel[] response = (iptunnel[])obj.get_resources(service, option);
return response;
} | java |
public static iptunnel get(nitro_service service, String name) throws Exception{
iptunnel obj = new iptunnel();
obj.set_name(name);
iptunnel response = (iptunnel) obj.get_resource(service);
return response;
} | java |
public static base_response add(nitro_service client, dnscnamerec resource) throws Exception {
dnscnamerec addresource = new dnscnamerec();
addresource.aliasname = resource.aliasname;
addresource.canonicalname = resource.canonicalname;
addresource.ttl = resource.ttl;
return addresource.add_resource(client);
... | java |
public static base_responses add(nitro_service client, dnscnamerec resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnscnamerec addresources[] = new dnscnamerec[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnsc... | java |
public static base_response delete(nitro_service client, String aliasname) throws Exception {
dnscnamerec deleteresource = new dnscnamerec();
deleteresource.aliasname = aliasname;
return deleteresource.delete_resource(client);
} | java |
public static base_responses delete(nitro_service client, String aliasname[]) throws Exception {
base_responses result = null;
if (aliasname != null && aliasname.length > 0) {
dnscnamerec deleteresources[] = new dnscnamerec[aliasname.length];
for (int i=0;i<aliasname.length;i++){
deleteresources[i] = new ... | java |
public static dnscnamerec[] get(nitro_service service) throws Exception{
dnscnamerec obj = new dnscnamerec();
dnscnamerec[] response = (dnscnamerec[])obj.get_resources(service);
return response;
} | java |
public static dnscnamerec[] get(nitro_service service, dnscnamerec_args args) throws Exception{
dnscnamerec obj = new dnscnamerec();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
dnscnamerec[] response = (dnscnamerec[])obj.get_resources(service, option);
ret... | java |
public static dnscnamerec get(nitro_service service, String aliasname) throws Exception{
dnscnamerec obj = new dnscnamerec();
obj.set_aliasname(aliasname);
dnscnamerec response = (dnscnamerec) obj.get_resource(service);
return response;
} | java |
public static dnscnamerec[] get(nitro_service service, String aliasname[]) throws Exception{
if (aliasname !=null && aliasname.length>0) {
dnscnamerec response[] = new dnscnamerec[aliasname.length];
dnscnamerec obj[] = new dnscnamerec[aliasname.length];
for (int i=0;i<aliasname.length;i++) {
obj[i] = new... | java |
public static nsacl_stats[] get(nitro_service service) throws Exception{
nsacl_stats obj = new nsacl_stats();
nsacl_stats[] response = (nsacl_stats[])obj.stat_resources(service);
return response;
} | java |
public static nsacl_stats get(nitro_service service, String aclname) throws Exception{
nsacl_stats obj = new nsacl_stats();
obj.set_aclname(aclname);
nsacl_stats response = (nsacl_stats) obj.stat_resource(service);
return response;
} | java |
public static lbvserver_dnspolicy64_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_dnspolicy64_binding obj = new lbvserver_dnspolicy64_binding();
obj.set_name(name);
lbvserver_dnspolicy64_binding response[] = (lbvserver_dnspolicy64_binding[]) obj.get_resources(service);
return res... | java |
public static crvserver_filterpolicy_binding[] get(nitro_service service, String name) throws Exception{
crvserver_filterpolicy_binding obj = new crvserver_filterpolicy_binding();
obj.set_name(name);
crvserver_filterpolicy_binding response[] = (crvserver_filterpolicy_binding[]) obj.get_resources(service);
retur... | java |
public static sslpolicy_sslpolicylabel_binding[] get(nitro_service service, String name) throws Exception{
sslpolicy_sslpolicylabel_binding obj = new sslpolicy_sslpolicylabel_binding();
obj.set_name(name);
sslpolicy_sslpolicylabel_binding response[] = (sslpolicy_sslpolicylabel_binding[]) obj.get_resources(service... | java |
public E extractMin() {
if (isEmpty()) {
throw new NoSuchElementException();
}
HeapEntry<E> minEntry = indexToEntry.get(0);
int lastIndex = size() - 1;
if (lastIndex > 0) {
HeapEntry<E> lastEntry = indexToEntry.get(lastIndex);
swap(lastEntry, minEntry);
removeLast(m... | java |
public int decreaseKey(E o) {
HeapEntry<E> entry = getEntry(o);
if (o != entry.object) {
if (cmp.compare(o, entry.object) < 0) {
entry.object = o;
}
}
return heapifyUp(entry);
} | java |
protected Map<String, List<MtasParserObject>> createCurrentList() {
Map<String, List<MtasParserObject>> currentList = new HashMap<>();
currentList.put(MAPPING_TYPE_RELATION, new ArrayList<MtasParserObject>());
currentList.put(MAPPING_TYPE_RELATION_ANNOTATION,
new ArrayList<MtasParserObject>());
... | java |
protected Map<String, Map<Integer, Set<String>>> createUpdateList() {
Map<String, Map<Integer, Set<String>>> updateList = new HashMap<>();
updateList.put(UPDATE_TYPE_OFFSET, new HashMap<>());
updateList.put(UPDATE_TYPE_POSITION, new HashMap<>());
updateList.put(UPDATE_TYPE_LOCAL_REF_POSITION_START, new ... | java |
protected void computeVariablesFromObject(MtasParserObject object,
Map<String, List<MtasParserObject>> currentList,
Map<String, Map<String, String>> variables) {
MtasParserType<MtasParserVariable> parserType = object.getType();
String id = object.getId();
if (id != null) {
for (MtasParserV... | java |
private boolean checkForVariables(List<Map<String, String>> values) {
if (values == null || values.isEmpty()) {
return false;
} else {
for (Map<String, String> list : values) {
if (list.containsKey("type") && list.get("type")
.equals(MtasParserMapping.PARSER_TYPE_VARIABLE)) {
... | java |
private String computeTypeFromMappingSource(String source)
throws MtasParserException {
if (source.equals(MtasParserMapping.SOURCE_OWN)) {
return null;
} else if (source.equals(MtasParserMapping.SOURCE_ANCESTOR_GROUP)) {
return MAPPING_TYPE_GROUP;
} else if (source
.equals(MtasPars... | java |
private MtasParserObject[] computeObjectFromMappingValue(
MtasParserObject object, Map<String, String> mappingValue,
Map<String, List<MtasParserObject>> currentList)
throws MtasParserException {
MtasParserObject[] checkObjects = null;
MtasParserObject checkObject;
Integer ancestorNumber = ... | java |
private String addAndEncodeVariable(String originalValue, String newVariable,
String newVariableName, boolean encode) {
return addAndEncode(originalValue, newVariable, newVariableName, encode);
} | java |
private String addAndEncodeValue(String originalValue, String newValue,
boolean encode) {
return addAndEncode(originalValue, null, newValue, encode);
} | java |
private String addAndEncode(String originalValue, String newType,
String newValue, boolean encode) {
if (newValue == null) {
return originalValue;
} else {
String finalNewValue;
if (encode) {
if (newType == null) {
finalNewValue = new String(
enc.encode(ne... | java |
private BytesRef computePayloadFromMappingPayload(MtasParserObject object,
List<Map<String, String>> mappingPayloads,
Map<String, List<MtasParserObject>> currentList)
throws MtasParserException {
BytesRef payload = null;
for (Map<String, String> mappingPayload : mappingPayloads) {
if (ma... | java |
Boolean prevalidateObject(MtasParserObject object,
Map<String, List<MtasParserObject>> currentList) {
MtasParserType objectType = object.getType();
List<MtasParserMapping<?>> mappings = objectType.getItems();
if (mappings.isEmpty()) {
return true;
}
for (MtasParserMapping<?> mapping : ma... | java |
private void postcheckMappingConditions(MtasParserObject object,
List<Map<String, String>> mappingConditions,
Map<String, List<MtasParserObject>> currentList)
throws MtasParserException {
precheckMappingConditions(object, mappingConditions, currentList);
for (Map<String, String> mappingConditi... | java |
private String[] computeFilteredSplitValues(String[] values, String filter)
throws MtasConfigException {
if (filter != null) {
String[] filters = filter.split(",");
boolean[] valuesFilter = new boolean[values.length];
boolean doSplitFilter = false;
for (String item : filters) {
... | java |
private String computeFilteredPrefixedValue(String type, String value,
String filter, String prefix) throws MtasConfigException {
String localValue = value;
// do magic with filter
if (filter != null) {
String[] filters = filter.split(",");
for (String item : filters) {
if (item.tr... | java |
private BytesRef computeMaximumFilteredPayload(String value, BytesRef payload,
String filter) {
// do magic with filter
if (value != null) {
if (payload != null) {
Float payloadFloat = PayloadHelper.decodeFloat(payload.bytes,
payload.offset);
Float valueFloat = Float.pars... | java |
public int[] otherOccurrences(Entity entity){
List<Integer> other = new ArrayList<Integer>();
for (int i = 0; i < doc.size(); i++) {
if (i == entity.startPosition) { continue; }
if (matches(entity, i)) {
other.add(Integer.valueOf(i));
}
}
return toArray(other);
} | java |
public static transformpolicylabel_binding get(nitro_service service, String labelname) throws Exception{
transformpolicylabel_binding obj = new transformpolicylabel_binding();
obj.set_labelname(labelname);
transformpolicylabel_binding response = (transformpolicylabel_binding) obj.get_resource(service);
return ... | java |
public static base_response update(nitro_service client, nshttpparam resource) throws Exception {
nshttpparam updateresource = new nshttpparam();
updateresource.dropinvalreqs = resource.dropinvalreqs;
updateresource.markhttp09inval = resource.markhttp09inval;
updateresource.markconnreqinval = resource.markconnr... | java |
public static base_response unset(nitro_service client, nshttpparam resource, String[] args) throws Exception{
nshttpparam unsetresource = new nshttpparam();
return unsetresource.unset_resource(client,args);
} | java |
public static nshttpparam get(nitro_service service) throws Exception{
nshttpparam obj = new nshttpparam();
nshttpparam[] response = (nshttpparam[])obj.get_resources(service);
return response[0];
} | java |
public MapFactory<E, MutableInteger> getMapFactory() {
return ErasureUtils.<MapFactory<E,MutableInteger>>uncheckedCast(mapFactory);
} | java |
public double remove(E key) {
totalCount -= getCount(key); // subtract removed count from total (may be 0)
MutableInteger val = map.remove(key);
if (val == null) {
return Double.NaN;
} else {
return val.doubleValue();
}
} | java |
public Set<Map.Entry<E,Double>> entrySet() {
return new AbstractSet<Map.Entry<E,Double>>() {
@Override
public Iterator<Entry<E, Double>> iterator() {
return new Iterator<Entry<E,Double>>() {
final Iterator<Entry<E,MutableInteger>> inner = map.entrySet().iterator();
pu... | java |
public int max() {
int max = Integer.MIN_VALUE;
for (E key : map.keySet()) {
max = Math.max(max, getIntCount(key));
}
return max;
} | java |
public int min() {
int min = Integer.MAX_VALUE;
for (E key : map.keySet()) {
min = Math.min(min, getIntCount(key));
}
return min;
} | java |
public E argmax(Comparator<E> tieBreaker) {
int max = Integer.MIN_VALUE;
E argmax = null;
for (E key : keySet()) {
int count = getIntCount(key);
if (argmax == null || count > max || (count == max && tieBreaker.compare(key, argmax) < 0)) {
max = count;
argmax = key;
... | java |
public E argmin(Comparator<E> tieBreaker) {
int min = Integer.MAX_VALUE;
E argmin = null;
for (E key : map.keySet()) {
int count = getIntCount(key);
if (argmin == null || count < min || (count == min && tieBreaker.compare(key, argmin) < 0)) {
min = count;
argmin = key;
... | java |
public static base_response create(nitro_service client, systembackup resource) throws Exception {
systembackup createresource = new systembackup();
createresource.filename = resource.filename;
createresource.level = resource.level;
createresource.comment = resource.comment;
return createresource.perform_oper... | java |
public static base_responses create(nitro_service client, systembackup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systembackup createresources[] = new systembackup[resources.length];
for (int i=0;i<resources.length;i++){
createresources[i... | java |
public static base_response restore(nitro_service client, systembackup resource) throws Exception {
systembackup restoreresource = new systembackup();
restoreresource.filename = resource.filename;
return restoreresource.perform_operation(client,"restore");
} | java |
public static base_responses restore(nitro_service client, systembackup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systembackup restoreresources[] = new systembackup[resources.length];
for (int i=0;i<resources.length;i++){
restoreresource... | java |
public static base_response delete(nitro_service client, String filename) throws Exception {
systembackup deleteresource = new systembackup();
deleteresource.filename = filename;
return deleteresource.delete_resource(client);
} | java |
public static base_responses delete(nitro_service client, String filename[]) throws Exception {
base_responses result = null;
if (filename != null && filename.length > 0) {
systembackup deleteresources[] = new systembackup[filename.length];
for (int i=0;i<filename.length;i++){
deleteresources[i] = new sys... | java |
public static systembackup[] get(nitro_service service, options option) throws Exception{
systembackup obj = new systembackup();
systembackup[] response = (systembackup[])obj.get_resources(service,option);
return response;
} | java |
public static systembackup get(nitro_service service, String filename) throws Exception{
systembackup obj = new systembackup();
obj.set_filename(filename);
systembackup response = (systembackup) obj.get_resource(service);
return response;
} | java |
public static systembackup[] get(nitro_service service, String filename[]) throws Exception{
if (filename !=null && filename.length>0) {
systembackup response[] = new systembackup[filename.length];
systembackup obj[] = new systembackup[filename.length];
for (int i=0;i<filename.length;i++) {
obj[i] = new ... | java |
public static base_response add(nitro_service client, filterpolicy resource) throws Exception {
filterpolicy addresource = new filterpolicy();
addresource.name = resource.name;
addresource.rule = resource.rule;
addresource.reqaction = resource.reqaction;
addresource.resaction = resource.resaction;
return ad... | java |
public static base_response update(nitro_service client, filterpolicy resource) throws Exception {
filterpolicy updateresource = new filterpolicy();
updateresource.name = resource.name;
updateresource.rule = resource.rule;
updateresource.reqaction = resource.reqaction;
updateresource.resaction = resource.resa... | java |
public static filterpolicy[] get(nitro_service service) throws Exception{
filterpolicy obj = new filterpolicy();
filterpolicy[] response = (filterpolicy[])obj.get_resources(service);
return response;
} | java |
public static filterpolicy get(nitro_service service, String name) throws Exception{
filterpolicy obj = new filterpolicy();
obj.set_name(name);
filterpolicy response = (filterpolicy) obj.get_resource(service);
return response;
} | java |
public static filterpolicy[] get(nitro_service service, String name[]) throws Exception{
if (name !=null && name.length>0) {
filterpolicy response[] = new filterpolicy[name.length];
filterpolicy obj[] = new filterpolicy[name.length];
for (int i=0;i<name.length;i++) {
obj[i] = new filterpolicy();
obj[... | java |
public static base_response add(nitro_service client, vpnurl resource) throws Exception {
vpnurl addresource = new vpnurl();
addresource.urlname = resource.urlname;
addresource.linkname = resource.linkname;
addresource.actualurl = resource.actualurl;
addresource.clientlessaccess = resource.clientlessaccess;
... | java |
public static base_responses add(nitro_service client, vpnurl resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
vpnurl addresources[] = new vpnurl[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new vpnurl();
addre... | java |
public static base_response delete(nitro_service client, String urlname) throws Exception {
vpnurl deleteresource = new vpnurl();
deleteresource.urlname = urlname;
return deleteresource.delete_resource(client);
} | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.