_id
stringlengths
2
7
title
stringlengths
3
140
partition
stringclasses
3 values
text
stringlengths
73
34.1k
language
stringclasses
1 value
meta_information
dict
q11400
systemdatasource.get
train
public static systemdatasource[] get(nitro_service service, systemdatasource_args args) throws Exception{ systemdatasource obj = new systemdatasource(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); systemdatasource[] response = (systemdatasource[])obj.get_resources(service, option); return response; }
java
{ "resource": "" }
q11401
servicegroup_servicegroupentitymonbindings_binding.get
train
public static servicegroup_servicegroupentitymonbindings_binding[] get(nitro_service service, String servicegroupname) throws Exception{ servicegroup_servicegroupentitymonbindings_binding obj = new servicegroup_servicegroupentitymonbindings_binding(); obj.set_servicegroupname(servicegroupname); servicegroup_servicegroupentitymonbindings_binding response[] = (servicegroup_servicegroupentitymonbindings_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11402
aaauser_auditnslogpolicy_binding.get
train
public static aaauser_auditnslogpolicy_binding[] get(nitro_service service, String username) throws Exception{ aaauser_auditnslogpolicy_binding obj = new aaauser_auditnslogpolicy_binding(); obj.set_username(username); aaauser_auditnslogpolicy_binding response[] = (aaauser_auditnslogpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11403
vpnglobal_staserver_binding.get
train
public static vpnglobal_staserver_binding[] get(nitro_service service) throws Exception{ vpnglobal_staserver_binding obj = new vpnglobal_staserver_binding(); vpnglobal_staserver_binding response[] = (vpnglobal_staserver_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11404
cmppolicy_cmppolicylabel_binding.get
train
public static cmppolicy_cmppolicylabel_binding[] get(nitro_service service, String name) throws Exception{ cmppolicy_cmppolicylabel_binding obj = new cmppolicy_cmppolicylabel_binding(); obj.set_name(name); cmppolicy_cmppolicylabel_binding response[] = (cmppolicy_cmppolicylabel_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11405
dnssrvrec.add
train
public static base_response add(nitro_service client, dnssrvrec resource) throws Exception { dnssrvrec addresource = new dnssrvrec(); addresource.domain = resource.domain; addresource.target = resource.target; addresource.priority = resource.priority; addresource.weight = resource.weight; addresource.port = resource.port; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
{ "resource": "" }
q11406
dnssrvrec.add
train
public static base_responses add(nitro_service client, dnssrvrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnssrvrec addresources[] = new dnssrvrec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnssrvrec(); addresources[i].domain = resources[i].domain; addresources[i].target = resources[i].target; addresources[i].priority = resources[i].priority; addresources[i].weight = resources[i].weight; addresources[i].port = resources[i].port; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11407
dnssrvrec.delete
train
public static base_response delete(nitro_service client, dnssrvrec resource) throws Exception { dnssrvrec deleteresource = new dnssrvrec(); deleteresource.domain = resource.domain; deleteresource.target = resource.target; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q11408
dnssrvrec.update
train
public static base_response update(nitro_service client, dnssrvrec resource) throws Exception { dnssrvrec updateresource = new dnssrvrec(); updateresource.domain = resource.domain; updateresource.target = resource.target; updateresource.priority = resource.priority; updateresource.weight = resource.weight; updateresource.port = resource.port; updateresource.ttl = resource.ttl; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11409
dnssrvrec.update
train
public static base_responses update(nitro_service client, dnssrvrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnssrvrec updateresources[] = new dnssrvrec[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new dnssrvrec(); updateresources[i].domain = resources[i].domain; updateresources[i].target = resources[i].target; updateresources[i].priority = resources[i].priority; updateresources[i].weight = resources[i].weight; updateresources[i].port = resources[i].port; updateresources[i].ttl = resources[i].ttl; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11410
dnssrvrec.unset
train
public static base_response unset(nitro_service client, dnssrvrec resource, String[] args) throws Exception{ dnssrvrec unsetresource = new dnssrvrec(); unsetresource.domain = resource.domain; unsetresource.target = resource.target; return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11411
dnssrvrec.get
train
public static dnssrvrec[] get(nitro_service service) throws Exception{ dnssrvrec obj = new dnssrvrec(); dnssrvrec[] response = (dnssrvrec[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11412
dnssrvrec.get
train
public static dnssrvrec get(nitro_service service, dnssrvrec obj) throws Exception{ options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(obj)); dnssrvrec response = (dnssrvrec) obj.get_resource(service,option); return response; }
java
{ "resource": "" }
q11413
dnssrvrec.get
train
public static dnssrvrec[] get(nitro_service service, dnssrvrec obj[]) throws Exception{ if (obj != null && obj.length > 0) { dnssrvrec response[] = new dnssrvrec[obj.length]; for (int i=0;i<obj.length;i++) { options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(obj[i])); response[i] = (dnssrvrec) obj[i].get_resource(service,option); } return response; } return null; }
java
{ "resource": "" }
q11414
dnssrvrec.get
train
public static dnssrvrec[] get(nitro_service service, dnssrvrec_args args) throws Exception{ dnssrvrec obj = new dnssrvrec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnssrvrec[] response = (dnssrvrec[])obj.get_resources(service, option); return response; }
java
{ "resource": "" }
q11415
vpnvserver_vpntrafficpolicy_binding.get
train
public static vpnvserver_vpntrafficpolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_vpntrafficpolicy_binding obj = new vpnvserver_vpntrafficpolicy_binding(); obj.set_name(name); vpnvserver_vpntrafficpolicy_binding response[] = (vpnvserver_vpntrafficpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11416
autoscalepolicy_stats.get
train
public static autoscalepolicy_stats[] get(nitro_service service) throws Exception{ autoscalepolicy_stats obj = new autoscalepolicy_stats(); autoscalepolicy_stats[] response = (autoscalepolicy_stats[])obj.stat_resources(service); return response; }
java
{ "resource": "" }
q11417
autoscalepolicy_stats.get
train
public static autoscalepolicy_stats get(nitro_service service, String name) throws Exception{ autoscalepolicy_stats obj = new autoscalepolicy_stats(); obj.set_name(name); autoscalepolicy_stats response = (autoscalepolicy_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }
q11418
sslpolicylabel_binding.get
train
public static sslpolicylabel_binding get(nitro_service service, String labelname) throws Exception{ sslpolicylabel_binding obj = new sslpolicylabel_binding(); obj.set_labelname(labelname); sslpolicylabel_binding response = (sslpolicylabel_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11419
nsmode.enable
train
public static base_response enable(nitro_service client, nsmode resource) throws Exception { nsmode enableresource = new nsmode(); enableresource.mode = resource.mode; return enableresource.perform_operation(client,"enable"); }
java
{ "resource": "" }
q11420
nsmode.disable
train
public static base_response disable(nitro_service client, nsmode resource) throws Exception { nsmode disableresource = new nsmode(); disableresource.mode = resource.mode; return disableresource.perform_operation(client,"disable"); }
java
{ "resource": "" }
q11421
nsmode.get
train
public static nsmode get(nitro_service service) throws Exception{ nsmode obj = new nsmode(); nsmode[] response = (nsmode[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q11422
options.to_string
train
public String to_string() { String str = ""; if (pageno > 0) str = "pageno="+pageno; if (pagesize > 0) { if (str.length() > 0) str = str + "&"; str = str +"pagesize="+pagesize; } if (detailview) { if (str.length() > 0) str = str + "&"; str = str +"view=detail"; } if (count) { if (str.length() > 0) str = str + "&"; str = str +"count=yes"; } if (args != null) { if (str.length() > 0) str = str + "&"; str = str+"args="+args; } if (filter != null) { if (filter.length() > 0) str = str + "&"; str = str+"filter="+filter; } return str; }
java
{ "resource": "" }
q11423
auditnslogpolicy_aaagroup_binding.get
train
public static auditnslogpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{ auditnslogpolicy_aaagroup_binding obj = new auditnslogpolicy_aaagroup_binding(); obj.set_name(name); auditnslogpolicy_aaagroup_binding response[] = (auditnslogpolicy_aaagroup_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11424
MtasRequestHandler.getFiles
train
private ArrayList<String> getFiles(String dir, String subDir) { ArrayList<String> files = new ArrayList<>(); String fullDir = subDir == null ? dir : dir + File.separator + subDir; File[] listOfFiles = (new File(fullDir)).listFiles(); if (listOfFiles != null) { for (File file : listOfFiles) { String fullName = subDir == null ? file.getName() : subDir + File.separator + file.getName(); if (file.isFile()) { files.add(fullName); } else if (file.isDirectory()) { files.addAll(getFiles(dir, fullName)); } } } return files; }
java
{ "resource": "" }
q11425
MtasRequestHandler.getParamsFromJSON
train
@SuppressWarnings("unchecked") private static void getParamsFromJSON(Map<String, String> params, String json) { JSONParser parser = new JSONParser(json); try { Object o = ObjectBuilder.getVal(parser); if (!(o instanceof Map)) return; Map<String, Object> map = (Map<String, Object>) o; // To make consistent with json.param handling, we should make query // params come after json params (i.e. query params should // appear to overwrite json params. // Solr params are based on String though, so we need to convert for (Map.Entry<String, Object> entry : map.entrySet()) { String key = entry.getKey(); Object val = entry.getValue(); if (params.get(key) != null) { continue; } if (val == null) { params.remove(key); } else if (val instanceof String) { params.put(key, (String) val); } } } catch (Exception e) { log.debug("ignore parse exceptions at this stage, they may be caused by incomplete macro expansions", e); return; } }
java
{ "resource": "" }
q11426
MtasRequestHandler.getShardInformation
train
public ShardInformation getShardInformation(String shard) { ShardInformation shardInformation = shardIndex.get(Objects.requireNonNull(shard, "shard required")); if (shardInformation == null) { shardInformation = createShardInformation(shard); } return shardInformation; }
java
{ "resource": "" }
q11427
MtasRequestHandler.createShardInformation
train
private ShardInformation createShardInformation(String shard) { ShardInformation shardInformation = new ShardInformation(shard); ModifiableSolrParams solrParams = new ModifiableSolrParams(); solrParams.add(CommonParams.Q, "*:*"); solrParams.add(CommonParams.ROWS, "0"); solrParams.add(CommonParams.HEADER_ECHO_PARAMS, "none"); solrParams.add(ShardParams.IS_SHARD, CommonParams.TRUE); solrParams.add(MtasSolrSearchComponent.PARAM_MTAS, CommonParams.TRUE); solrParams.add(MtasSolrComponentStatus.PARAM_MTAS_STATUS, CommonParams.TRUE); solrParams.add( MtasSolrComponentStatus.PARAM_MTAS_STATUS + "." + MtasSolrComponentStatus.NAME_MTAS_STATUS_MTASHANDLER, CommonParams.TRUE); solrParams.add( MtasSolrComponentStatus.PARAM_MTAS_STATUS + "." + MtasSolrComponentStatus.NAME_MTAS_STATUS_NUMBEROFSEGMENTS, CommonParams.TRUE); solrParams.add( MtasSolrComponentStatus.PARAM_MTAS_STATUS + "." + MtasSolrComponentStatus.NAME_MTAS_STATUS_NUMBEROFDOCUMENTS, CommonParams.TRUE); SolrClient solrClient = new HttpSolrClient.Builder(shard).build(); try { QueryResponse response = solrClient.query(solrParams); Object mtasHandlerObject = Objects.requireNonNull( response.getResponse().findRecursive(MtasSolrSearchComponent.NAME, MtasSolrComponentStatus.NAME, MtasSolrComponentStatus.NAME_MTAS_STATUS_MTASHANDLER), "no number of segments for " + shard); Object numberOfSegmentsObject = Objects.requireNonNull( response.getResponse().findRecursive(MtasSolrSearchComponent.NAME, MtasSolrComponentStatus.NAME, MtasSolrComponentStatus.NAME_MTAS_STATUS_NUMBEROFSEGMENTS), "no number of documents for " + shard); Object numberOfDocumentsObject = Objects.requireNonNull( response.getResponse().findRecursive(MtasSolrSearchComponent.NAME, MtasSolrComponentStatus.NAME, MtasSolrComponentStatus.NAME_MTAS_STATUS_NUMBEROFDOCUMENTS), "no name for " + shard); Object nameObject = Objects.requireNonNull(response.getResponse().findRecursive(MtasSolrSearchComponent.NAME, MtasSolrComponentStatus.NAME, ShardInformation.NAME_NAME), "no handler for " + shard); if (mtasHandlerObject instanceof String) { shardInformation.mtasHandler = (String) mtasHandlerObject; } if (numberOfSegmentsObject instanceof Integer) { shardInformation.numberOfSegments = (Integer) numberOfSegmentsObject; } if (numberOfDocumentsObject instanceof Integer) { shardInformation.numberOfDocuments = ((Integer) numberOfDocumentsObject).longValue(); } if (nameObject instanceof String) { shardInformation.name = (String) nameObject; } shardIndex.put(shard, shardInformation); } catch (NullPointerException | SolrServerException | IOException e) { log.error(e); return null; } finally { if (solrClient != null) { try { solrClient.close(); } catch (IOException e) { log.error(e); } } } return shardInformation; }
java
{ "resource": "" }
q11428
nd6ravariables_binding.get
train
public static nd6ravariables_binding get(nitro_service service, Long vlan) throws Exception{ nd6ravariables_binding obj = new nd6ravariables_binding(); obj.set_vlan(vlan); nd6ravariables_binding response = (nd6ravariables_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11429
bridgegroup_nsip6_binding.get
train
public static bridgegroup_nsip6_binding[] get(nitro_service service, Long id) throws Exception{ bridgegroup_nsip6_binding obj = new bridgegroup_nsip6_binding(); obj.set_id(id); bridgegroup_nsip6_binding response[] = (bridgegroup_nsip6_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11430
CodecSearchTree.advanceMtasTree
train
public static ArrayList<MtasTreeHit<?>> advanceMtasTree(int position, IndexInput in, long ref, long objectRefApproxOffset) throws IOException { ArrayList<MtasTreeHit<?>> list = new ArrayList<MtasTreeHit<?>>(); ArrayList<MtasTreeItem> checkList = new ArrayList<MtasTreeItem>(); AtomicBoolean isSinglePoint = new AtomicBoolean(false); AtomicBoolean isStoreAdditonalId = new AtomicBoolean(false); AtomicLong nodeRefApproxOffset = new AtomicLong(-1); checkList.add(getMtasTreeItem(ref, isSinglePoint, isStoreAdditonalId, nodeRefApproxOffset, in, objectRefApproxOffset)); ArrayList<Long> history = new ArrayList<Long>(); do { MtasTreeItem checkItem = checkList.remove(checkList.size() - 1); advanceMtasTree(checkItem, position, in, isSinglePoint, isStoreAdditonalId, objectRefApproxOffset, list, nodeRefApproxOffset, checkList); history.add(checkItem.ref); if (history.size() > 1000) { throw new IOException( "ADVANCE " + position + " " + checkList + "\n" + history); } } while (checkList.size() > 0); return list; }
java
{ "resource": "" }
q11431
CodecSearchTree.getMtasTreeItem
train
private static MtasTreeItem getMtasTreeItem(Long ref, AtomicBoolean isSinglePoint, AtomicBoolean isStoreAdditionalIdAndRef, AtomicLong nodeRefApproxOffset, IndexInput in, long objectRefApproxOffset) throws IOException { try { Boolean isRoot = false; if (nodeRefApproxOffset.get() < 0) { isRoot = true; } in.seek(ref); if (isRoot) { nodeRefApproxOffset.set(in.readVLong()); Byte flag = in.readByte(); if ((flag & MtasTree.SINGLE_POSITION_TREE) == MtasTree.SINGLE_POSITION_TREE) { isSinglePoint.set(true); } if ((flag & MtasTree.STORE_ADDITIONAL_ID) == MtasTree.STORE_ADDITIONAL_ID) { isStoreAdditionalIdAndRef.set(true); } } int left = in.readVInt(); int right = in.readVInt(); int max = in.readVInt(); Long leftChild = in.readVLong() + nodeRefApproxOffset.get(); Long rightChild = in.readVLong() + nodeRefApproxOffset.get(); int size = 1; if (!isSinglePoint.get()) { size = in.readVInt(); } // initialize long[] objectRefs = new long[size]; int[] objectAdditionalIds = null; long[] objectAdditionalRefs = null; // get first long objectRef = in.readVLong(); long objectRefPrevious = objectRef + objectRefApproxOffset; objectRefs[0] = objectRefPrevious; if (isStoreAdditionalIdAndRef.get()) { objectAdditionalIds = new int[size]; objectAdditionalRefs = new long[size]; objectAdditionalIds[0] = in.readVInt(); objectAdditionalRefs[0] = in.readVLong(); } // get others for (int t = 1; t < size; t++) { objectRef = objectRefPrevious + in.readVLong(); objectRefs[t] = objectRef; objectRefPrevious = objectRef; if (isStoreAdditionalIdAndRef.get()) { objectAdditionalIds[t] = in.readVInt(); objectAdditionalRefs[t] = in.readVLong(); } } return new MtasTreeItem(left, right, max, objectRefs, objectAdditionalIds, objectAdditionalRefs, ref, leftChild, rightChild); } catch (Exception e) { throw new IOException(e.getMessage()); } }
java
{ "resource": "" }
q11432
sslfips.update
train
public static base_response update(nitro_service client, sslfips resource) throws Exception { sslfips updateresource = new sslfips(); updateresource.inithsm = resource.inithsm; updateresource.sopassword = resource.sopassword; updateresource.oldsopassword = resource.oldsopassword; updateresource.userpassword = resource.userpassword; updateresource.hsmlabel = resource.hsmlabel; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11433
sslfips.unset
train
public static base_response unset(nitro_service client, sslfips resource, String[] args) throws Exception{ sslfips unsetresource = new sslfips(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11434
sslfips.reset
train
public static base_response reset(nitro_service client, sslfips resource) throws Exception { sslfips resetresource = new sslfips(); return resetresource.perform_operation(client,"reset"); }
java
{ "resource": "" }
q11435
sslfips.change
train
public static base_response change(nitro_service client, sslfips resource) throws Exception { sslfips updateresource = new sslfips(); updateresource.fipsfw = resource.fipsfw; return updateresource.perform_operation(client,"update"); }
java
{ "resource": "" }
q11436
sslfips.get
train
public static sslfips get(nitro_service service) throws Exception{ sslfips obj = new sslfips(); sslfips[] response = (sslfips[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q11437
vpntrafficpolicy_vpnvserver_binding.get
train
public static vpntrafficpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{ vpntrafficpolicy_vpnvserver_binding obj = new vpntrafficpolicy_vpnvserver_binding(); obj.set_name(name); vpntrafficpolicy_vpnvserver_binding response[] = (vpntrafficpolicy_vpnvserver_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11438
systemuser_binding.get
train
public static systemuser_binding get(nitro_service service, String username) throws Exception{ systemuser_binding obj = new systemuser_binding(); obj.set_username(username); systemuser_binding response = (systemuser_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11439
filteraction.add
train
public static base_response add(nitro_service client, filteraction resource) throws Exception { filteraction addresource = new filteraction(); addresource.name = resource.name; addresource.qual = resource.qual; addresource.servicename = resource.servicename; addresource.value = resource.value; addresource.respcode = resource.respcode; addresource.page = resource.page; return addresource.add_resource(client); }
java
{ "resource": "" }
q11440
filteraction.add
train
public static base_responses add(nitro_service client, filteraction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { filteraction addresources[] = new filteraction[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new filteraction(); addresources[i].name = resources[i].name; addresources[i].qual = resources[i].qual; addresources[i].servicename = resources[i].servicename; addresources[i].value = resources[i].value; addresources[i].respcode = resources[i].respcode; addresources[i].page = resources[i].page; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11441
filteraction.update
train
public static base_response update(nitro_service client, filteraction resource) throws Exception { filteraction updateresource = new filteraction(); updateresource.name = resource.name; updateresource.servicename = resource.servicename; updateresource.value = resource.value; updateresource.respcode = resource.respcode; updateresource.page = resource.page; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11442
filteraction.update
train
public static base_responses update(nitro_service client, filteraction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { filteraction updateresources[] = new filteraction[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new filteraction(); updateresources[i].name = resources[i].name; updateresources[i].servicename = resources[i].servicename; updateresources[i].value = resources[i].value; updateresources[i].respcode = resources[i].respcode; updateresources[i].page = resources[i].page; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11443
filteraction.get
train
public static filteraction[] get(nitro_service service) throws Exception{ filteraction obj = new filteraction(); filteraction[] response = (filteraction[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11444
filteraction.get
train
public static filteraction get(nitro_service service, String name) throws Exception{ filteraction obj = new filteraction(); obj.set_name(name); filteraction response = (filteraction) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11445
cacheglobal_binding.get
train
public static cacheglobal_binding get(nitro_service service) throws Exception{ cacheglobal_binding obj = new cacheglobal_binding(); cacheglobal_binding response = (cacheglobal_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11446
aaapreauthenticationparameter.update
train
public static base_response update(nitro_service client, aaapreauthenticationparameter resource) throws Exception { aaapreauthenticationparameter updateresource = new aaapreauthenticationparameter(); updateresource.preauthenticationaction = resource.preauthenticationaction; updateresource.rule = resource.rule; updateresource.killprocess = resource.killprocess; updateresource.deletefiles = resource.deletefiles; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11447
aaapreauthenticationparameter.unset
train
public static base_response unset(nitro_service client, aaapreauthenticationparameter resource, String[] args) throws Exception{ aaapreauthenticationparameter unsetresource = new aaapreauthenticationparameter(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11448
aaapreauthenticationparameter.get
train
public static aaapreauthenticationparameter get(nitro_service service, options option) throws Exception{ aaapreauthenticationparameter obj = new aaapreauthenticationparameter(); aaapreauthenticationparameter[] response = (aaapreauthenticationparameter[])obj.get_resources(service,option); return response[0]; }
java
{ "resource": "" }
q11449
DoubleArrayList.get
train
public double get(int index) { // overridden for performance only. if (index >= size || index < 0) throw new IndexOutOfBoundsException("Index: "+index+", Size: "+size); return elements[index]; }
java
{ "resource": "" }
q11450
DoubleArrayList.reverse
train
public void reverse() { // overridden for performance only. double tmp; int limit=size/2; int j=size-1; double[] theElements = elements; for (int i=0; i<limit;) { //swap tmp=theElements[i]; theElements[i++]=theElements[j]; theElements[j--]=tmp; } }
java
{ "resource": "" }
q11451
DoubleArrayList.set
train
public void set(int index, double element) { // overridden for performance only. if (index >= size || index < 0) throw new IndexOutOfBoundsException("Index: "+index+", Size: "+size); elements[index] = element; }
java
{ "resource": "" }
q11452
gslbservice_dnsview_binding.get
train
public static gslbservice_dnsview_binding[] get(nitro_service service, String servicename) throws Exception{ gslbservice_dnsview_binding obj = new gslbservice_dnsview_binding(); obj.set_servicename(servicename); gslbservice_dnsview_binding response[] = (gslbservice_dnsview_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11453
gslbservice_dnsview_binding.count_filtered
train
public static long count_filtered(nitro_service service, String servicename, filtervalue[] filter) throws Exception{ gslbservice_dnsview_binding obj = new gslbservice_dnsview_binding(); obj.set_servicename(servicename); options option = new options(); option.set_count(true); option.set_filter(filter); gslbservice_dnsview_binding[] response = (gslbservice_dnsview_binding[]) obj.getfiltered(service, option); if (response != null) { return response[0].__count; } return 0; }
java
{ "resource": "" }
q11454
responderpolicylabel_stats.get
train
public static responderpolicylabel_stats[] get(nitro_service service) throws Exception{ responderpolicylabel_stats obj = new responderpolicylabel_stats(); responderpolicylabel_stats[] response = (responderpolicylabel_stats[])obj.stat_resources(service); return response; }
java
{ "resource": "" }
q11455
responderpolicylabel_stats.get
train
public static responderpolicylabel_stats get(nitro_service service, String labelname) throws Exception{ responderpolicylabel_stats obj = new responderpolicylabel_stats(); obj.set_labelname(labelname); responderpolicylabel_stats response = (responderpolicylabel_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }
q11456
appflowpolicylabel_binding.get
train
public static appflowpolicylabel_binding get(nitro_service service, String labelname) throws Exception{ appflowpolicylabel_binding obj = new appflowpolicylabel_binding(); obj.set_labelname(labelname); appflowpolicylabel_binding response = (appflowpolicylabel_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11457
snmpmib.update
train
public static base_response update(nitro_service client, snmpmib resource) throws Exception { snmpmib updateresource = new snmpmib(); updateresource.contact = resource.contact; updateresource.name = resource.name; updateresource.location = resource.location; updateresource.customid = resource.customid; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11458
snmpmib.unset
train
public static base_response unset(nitro_service client, snmpmib resource, String[] args) throws Exception{ snmpmib unsetresource = new snmpmib(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11459
snmpmib.get
train
public static snmpmib get(nitro_service service, options option) throws Exception{ snmpmib obj = new snmpmib(); snmpmib[] response = (snmpmib[])obj.get_resources(service,option); return response[0]; }
java
{ "resource": "" }
q11460
systemgroup.add
train
public static base_response add(nitro_service client, systemgroup resource) throws Exception { systemgroup addresource = new systemgroup(); addresource.groupname = resource.groupname; addresource.promptstring = resource.promptstring; addresource.timeout = resource.timeout; return addresource.add_resource(client); }
java
{ "resource": "" }
q11461
systemgroup.add
train
public static base_responses add(nitro_service client, systemgroup resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemgroup addresources[] = new systemgroup[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new systemgroup(); addresources[i].groupname = resources[i].groupname; addresources[i].promptstring = resources[i].promptstring; addresources[i].timeout = resources[i].timeout; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11462
systemgroup.delete
train
public static base_response delete(nitro_service client, String groupname) throws Exception { systemgroup deleteresource = new systemgroup(); deleteresource.groupname = groupname; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q11463
systemgroup.update
train
public static base_response update(nitro_service client, systemgroup resource) throws Exception { systemgroup updateresource = new systemgroup(); updateresource.groupname = resource.groupname; updateresource.promptstring = resource.promptstring; updateresource.timeout = resource.timeout; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11464
systemgroup.update
train
public static base_responses update(nitro_service client, systemgroup resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemgroup updateresources[] = new systemgroup[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new systemgroup(); updateresources[i].groupname = resources[i].groupname; updateresources[i].promptstring = resources[i].promptstring; updateresources[i].timeout = resources[i].timeout; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11465
systemgroup.unset
train
public static base_response unset(nitro_service client, systemgroup resource, String[] args) throws Exception{ systemgroup unsetresource = new systemgroup(); unsetresource.groupname = resource.groupname; return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11466
systemgroup.unset
train
public static base_responses unset(nitro_service client, String groupname[], String args[]) throws Exception { base_responses result = null; if (groupname != null && groupname.length > 0) { systemgroup unsetresources[] = new systemgroup[groupname.length]; for (int i=0;i<groupname.length;i++){ unsetresources[i] = new systemgroup(); unsetresources[i].groupname = groupname[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
{ "resource": "" }
q11467
systemgroup.get
train
public static systemgroup[] get(nitro_service service) throws Exception{ systemgroup obj = new systemgroup(); systemgroup[] response = (systemgroup[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11468
systemgroup.get
train
public static systemgroup get(nitro_service service, String groupname) throws Exception{ systemgroup obj = new systemgroup(); obj.set_groupname(groupname); systemgroup response = (systemgroup) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11469
systemgroup.get
train
public static systemgroup[] get(nitro_service service, String groupname[]) throws Exception{ if (groupname !=null && groupname.length>0) { systemgroup response[] = new systemgroup[groupname.length]; systemgroup obj[] = new systemgroup[groupname.length]; for (int i=0;i<groupname.length;i++) { obj[i] = new systemgroup(); obj[i].set_groupname(groupname[i]); response[i] = (systemgroup) obj[i].get_resource(service); } return response; } return null; }
java
{ "resource": "" }
q11470
cluster.join
train
public static base_response join(nitro_service client, cluster resource) throws Exception { cluster joinresource = new cluster(); joinresource.clip = resource.clip; joinresource.password = resource.password; return joinresource.perform_operation(client,"join"); }
java
{ "resource": "" }
q11471
TimerTask.beforeRecover
train
public void beforeRecover() { if (data.getPeriod() > 0) { final long now = System.currentTimeMillis(); long startTime = data.getStartTime(); while(startTime <= now) { startTime += data.getPeriod(); data.setStartTime(startTime); } if (logger.isDebugEnabled()) { logger.debug("Task with id " + data.getTaskID() + " start time reset to " + data.getStartTime()); } } }
java
{ "resource": "" }
q11472
tunnelglobal_binding.get
train
public static tunnelglobal_binding get(nitro_service service) throws Exception{ tunnelglobal_binding obj = new tunnelglobal_binding(); tunnelglobal_binding response = (tunnelglobal_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11473
snmpview.add
train
public static base_response add(nitro_service client, snmpview resource) throws Exception { snmpview addresource = new snmpview(); addresource.name = resource.name; addresource.subtree = resource.subtree; addresource.type = resource.type; return addresource.add_resource(client); }
java
{ "resource": "" }
q11474
snmpview.delete
train
public static base_response delete(nitro_service client, snmpview resource) throws Exception { snmpview deleteresource = new snmpview(); deleteresource.name = resource.name; deleteresource.subtree = resource.subtree; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q11475
snmpview.update
train
public static base_response update(nitro_service client, snmpview resource) throws Exception { snmpview updateresource = new snmpview(); updateresource.name = resource.name; updateresource.subtree = resource.subtree; updateresource.type = resource.type; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11476
snmpview.update
train
public static base_responses update(nitro_service client, snmpview resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmpview updateresources[] = new snmpview[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new snmpview(); updateresources[i].name = resources[i].name; updateresources[i].subtree = resources[i].subtree; updateresources[i].type = resources[i].type; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11477
snmpview.get
train
public static snmpview[] get(nitro_service service, options option) throws Exception{ snmpview obj = new snmpview(); snmpview[] response = (snmpview[])obj.get_resources(service,option); return response; }
java
{ "resource": "" }
q11478
Timing.endDoing
train
public static void endDoing() { long elapsed = System.currentTimeMillis() - startTime; System.err.println("done [" + nf.format(((double) elapsed) / 1000) + " sec]."); }
java
{ "resource": "" }
q11479
inatsession_stats.get
train
public static inatsession_stats get(nitro_service service, String name) throws Exception{ inatsession_stats obj = new inatsession_stats(); obj.set_name(name); inatsession_stats response = (inatsession_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }
q11480
inatsession_stats.get
train
public static inatsession_stats get(nitro_service service, inatsession_stats obj) throws Exception{ options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(obj)); inatsession_stats response = (inatsession_stats) obj.stat_resource(service,option); return response; }
java
{ "resource": "" }
q11481
responderpolicy_responderglobal_binding.get
train
public static responderpolicy_responderglobal_binding[] get(nitro_service service, String name) throws Exception{ responderpolicy_responderglobal_binding obj = new responderpolicy_responderglobal_binding(); obj.set_name(name); responderpolicy_responderglobal_binding response[] = (responderpolicy_responderglobal_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11482
ip6tunnelparam.update
train
public static base_response update(nitro_service client, ip6tunnelparam resource) throws Exception { ip6tunnelparam updateresource = new ip6tunnelparam(); updateresource.srcip = resource.srcip; updateresource.dropfrag = resource.dropfrag; updateresource.dropfragcputhreshold = resource.dropfragcputhreshold; updateresource.srciproundrobin = resource.srciproundrobin; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11483
ip6tunnelparam.unset
train
public static base_response unset(nitro_service client, ip6tunnelparam resource, String[] args) throws Exception{ ip6tunnelparam unsetresource = new ip6tunnelparam(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11484
ip6tunnelparam.get
train
public static ip6tunnelparam get(nitro_service service) throws Exception{ ip6tunnelparam obj = new ip6tunnelparam(); ip6tunnelparam[] response = (ip6tunnelparam[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q11485
appflowaction.add
train
public static base_response add(nitro_service client, appflowaction resource) throws Exception { appflowaction addresource = new appflowaction(); addresource.name = resource.name; addresource.collectors = resource.collectors; addresource.comment = resource.comment; return addresource.add_resource(client); }
java
{ "resource": "" }
q11486
appflowaction.update
train
public static base_response update(nitro_service client, appflowaction resource) throws Exception { appflowaction updateresource = new appflowaction(); updateresource.name = resource.name; updateresource.collectors = resource.collectors; updateresource.comment = resource.comment; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11487
appflowaction.update
train
public static base_responses update(nitro_service client, appflowaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appflowaction updateresources[] = new appflowaction[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new appflowaction(); updateresources[i].name = resources[i].name; updateresources[i].collectors = resources[i].collectors; updateresources[i].comment = resources[i].comment; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11488
appflowaction.get
train
public static appflowaction[] get(nitro_service service, options option) throws Exception{ appflowaction obj = new appflowaction(); appflowaction[] response = (appflowaction[])obj.get_resources(service,option); return response; }
java
{ "resource": "" }
q11489
appflowaction.get
train
public static appflowaction get(nitro_service service, String name) throws Exception{ appflowaction obj = new appflowaction(); obj.set_name(name); appflowaction response = (appflowaction) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11490
sslcert.create
train
public static base_response create(nitro_service client, sslcert resource) throws Exception { sslcert createresource = new sslcert(); createresource.certfile = resource.certfile; createresource.reqfile = resource.reqfile; createresource.certtype = resource.certtype; createresource.keyfile = resource.keyfile; createresource.keyform = resource.keyform; createresource.pempassphrase = resource.pempassphrase; createresource.days = resource.days; createresource.certform = resource.certform; createresource.cacert = resource.cacert; createresource.cacertform = resource.cacertform; createresource.cakey = resource.cakey; createresource.cakeyform = resource.cakeyform; createresource.caserial = resource.caserial; return createresource.perform_operation(client,"create"); }
java
{ "resource": "" }
q11491
techsupport.get
train
public static techsupport get(nitro_service service) throws Exception{ techsupport obj = new techsupport(); techsupport[] response = (techsupport[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q11492
techsupport.get
train
public static techsupport[] get(nitro_service service, techsupport_args args) throws Exception{ techsupport obj = new techsupport(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); techsupport[] response = (techsupport[])obj.get_resources(service, option); return response; }
java
{ "resource": "" }
q11493
vrid_nsip_binding.get
train
public static vrid_nsip_binding[] get(nitro_service service, Long id) throws Exception{ vrid_nsip_binding obj = new vrid_nsip_binding(); obj.set_id(id); vrid_nsip_binding response[] = (vrid_nsip_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11494
crvserver_stats.get
train
public static crvserver_stats[] get(nitro_service service) throws Exception{ crvserver_stats obj = new crvserver_stats(); crvserver_stats[] response = (crvserver_stats[])obj.stat_resources(service); return response; }
java
{ "resource": "" }
q11495
crvserver_stats.get
train
public static crvserver_stats get(nitro_service service, String name) throws Exception{ crvserver_stats obj = new crvserver_stats(); obj.set_name(name); crvserver_stats response = (crvserver_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }
q11496
authorizationaction.get
train
public static authorizationaction[] get(nitro_service service) throws Exception{ authorizationaction obj = new authorizationaction(); authorizationaction[] response = (authorizationaction[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11497
authorizationaction.get
train
public static authorizationaction get(nitro_service service, String name) throws Exception{ authorizationaction obj = new authorizationaction(); obj.set_name(name); authorizationaction response = (authorizationaction) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11498
nstrafficdomain_stats.get
train
public static nstrafficdomain_stats[] get(nitro_service service, options option) throws Exception{ nstrafficdomain_stats obj = new nstrafficdomain_stats(); nstrafficdomain_stats[] response = (nstrafficdomain_stats[])obj.stat_resources(service,option); return response; }
java
{ "resource": "" }
q11499
nstrafficdomain_stats.get
train
public static nstrafficdomain_stats get(nitro_service service, Long td) throws Exception{ nstrafficdomain_stats obj = new nstrafficdomain_stats(); obj.set_td(td); nstrafficdomain_stats response = (nstrafficdomain_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }