_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q12600 | nstrafficdomain.disable | train | public static base_response disable(nitro_service client, Long td) throws Exception {
nstrafficdomain disableresource = new nstrafficdomain();
disableresource.td = td;
return disableresource.perform_operation(client,"disable");
} | java | {
"resource": ""
} |
q12601 | nstrafficdomain.disable | train | public static base_response disable(nitro_service client, nstrafficdomain resource) throws Exception {
nstrafficdomain disableresource = new nstrafficdomain();
disableresource.td = resource.td;
disableresource.state = resource.state;
return disableresource.perform_operation(client,"disable");
} | java | {
"resource": ""
} |
q12602 | nstrafficdomain.disable | train | public static base_responses disable(nitro_service client, Long td[]) throws Exception {
base_responses result = null;
if (td != null && td.length > 0) {
nstrafficdomain disableresources[] = new nstrafficdomain[td.length];
for (int i=0;i<td.length;i++){
disableresources[i] = new nstrafficdomain();
disableresources[i].td = td[i];
}
result = perform_operation_bulk_request(client, disableresources,"disable");
}
return result;
} | java | {
"resource": ""
} |
q12603 | nstrafficdomain.disable | train | public static base_responses disable(nitro_service client, nstrafficdomain resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nstrafficdomain disableresources[] = new nstrafficdomain[resources.length];
for (int i=0;i<resources.length;i++){
disableresources[i] = new nstrafficdomain();
disableresources[i].td = resources[i].td;
disableresources[i].state = resources[i].state;
}
result = perform_operation_bulk_request(client, disableresources,"disable");
}
return result;
} | java | {
"resource": ""
} |
q12604 | nstrafficdomain.get | train | public static nstrafficdomain[] get(nitro_service service) throws Exception{
nstrafficdomain obj = new nstrafficdomain();
nstrafficdomain[] response = (nstrafficdomain[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12605 | nstrafficdomain.get | train | public static nstrafficdomain get(nitro_service service, Long td) throws Exception{
nstrafficdomain obj = new nstrafficdomain();
obj.set_td(td);
nstrafficdomain response = (nstrafficdomain) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12606 | vpnglobal_auditsyslogpolicy_binding.get | train | public static vpnglobal_auditsyslogpolicy_binding[] get(nitro_service service) throws Exception{
vpnglobal_auditsyslogpolicy_binding obj = new vpnglobal_auditsyslogpolicy_binding();
vpnglobal_auditsyslogpolicy_binding response[] = (vpnglobal_auditsyslogpolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12607 | nssavedconfig.get | train | public static nssavedconfig get(nitro_service service) throws Exception{
nssavedconfig obj = new nssavedconfig();
nssavedconfig[] response = (nssavedconfig[])obj.get_resources(service);
return response[0];
} | java | {
"resource": ""
} |
q12608 | transformpolicy_stats.get | train | public static transformpolicy_stats[] get(nitro_service service) throws Exception{
transformpolicy_stats obj = new transformpolicy_stats();
transformpolicy_stats[] response = (transformpolicy_stats[])obj.stat_resources(service);
return response;
} | java | {
"resource": ""
} |
q12609 | transformpolicy_stats.get | train | public static transformpolicy_stats get(nitro_service service, String name) throws Exception{
transformpolicy_stats obj = new transformpolicy_stats();
obj.set_name(name);
transformpolicy_stats response = (transformpolicy_stats) obj.stat_resource(service);
return response;
} | java | {
"resource": ""
} |
q12610 | csvserver_appfwpolicy_binding.get | train | public static csvserver_appfwpolicy_binding[] get(nitro_service service, String name) throws Exception{
csvserver_appfwpolicy_binding obj = new csvserver_appfwpolicy_binding();
obj.set_name(name);
csvserver_appfwpolicy_binding response[] = (csvserver_appfwpolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12611 | AbstractMap.setUp | train | protected void setUp(int initialCapacity, double minLoadFactor, double maxLoadFactor) {
if (initialCapacity < 0)
throw new IllegalArgumentException("Initial Capacity must not be less than zero: "+ initialCapacity);
if (minLoadFactor < 0.0 || minLoadFactor >= 1.0)
throw new IllegalArgumentException("Illegal minLoadFactor: "+ minLoadFactor);
if (maxLoadFactor <= 0.0 || maxLoadFactor >= 1.0)
throw new IllegalArgumentException("Illegal maxLoadFactor: "+ maxLoadFactor);
if (minLoadFactor >= maxLoadFactor)
throw new IllegalArgumentException("Illegal minLoadFactor: "+ minLoadFactor+" and maxLoadFactor: "+ maxLoadFactor);
} | java | {
"resource": ""
} |
q12612 | vrid6_nsip_binding.get | train | public static vrid6_nsip_binding[] get(nitro_service service, Long id) throws Exception{
vrid6_nsip_binding obj = new vrid6_nsip_binding();
obj.set_id(id);
vrid6_nsip_binding response[] = (vrid6_nsip_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12613 | cmppolicy_binding.get | train | public static cmppolicy_binding get(nitro_service service, String name) throws Exception{
cmppolicy_binding obj = new cmppolicy_binding();
obj.set_name(name);
cmppolicy_binding response = (cmppolicy_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12614 | tunneltrafficpolicy_tunnelglobal_binding.get | train | public static tunneltrafficpolicy_tunnelglobal_binding[] get(nitro_service service, String name) throws Exception{
tunneltrafficpolicy_tunnelglobal_binding obj = new tunneltrafficpolicy_tunnelglobal_binding();
obj.set_name(name);
tunneltrafficpolicy_tunnelglobal_binding response[] = (tunneltrafficpolicy_tunnelglobal_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12615 | scparameter.update | train | public static base_response update(nitro_service client, scparameter resource) throws Exception {
scparameter updateresource = new scparameter();
updateresource.sessionlife = resource.sessionlife;
updateresource.vsr = resource.vsr;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q12616 | scparameter.unset | train | public static base_response unset(nitro_service client, scparameter resource, String[] args) throws Exception{
scparameter unsetresource = new scparameter();
return unsetresource.unset_resource(client,args);
} | java | {
"resource": ""
} |
q12617 | scparameter.get | train | public static scparameter get(nitro_service service, options option) throws Exception{
scparameter obj = new scparameter();
scparameter[] response = (scparameter[])obj.get_resources(service,option);
return response[0];
} | java | {
"resource": ""
} |
q12618 | sslservice_sslciphersuite_binding.get | train | public static sslservice_sslciphersuite_binding[] get(nitro_service service, String servicename) throws Exception{
sslservice_sslciphersuite_binding obj = new sslservice_sslciphersuite_binding();
obj.set_servicename(servicename);
sslservice_sslciphersuite_binding response[] = (sslservice_sslciphersuite_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12619 | sslservice_sslciphersuite_binding.count | train | public static long count(nitro_service service, String servicename) throws Exception{
sslservice_sslciphersuite_binding obj = new sslservice_sslciphersuite_binding();
obj.set_servicename(servicename);
options option = new options();
option.set_count(true);
sslservice_sslciphersuite_binding response[] = (sslservice_sslciphersuite_binding[]) obj.get_resources(service,option);
if (response != null) {
return response[0].__count;
}
return 0;
} | java | {
"resource": ""
} |
q12620 | vrid_binding.get | train | public static vrid_binding get(nitro_service service, Long id) throws Exception{
vrid_binding obj = new vrid_binding();
obj.set_id(id);
vrid_binding response = (vrid_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12621 | MtasSolrComponentFacet.getFieldType | train | private String getFieldType(IndexSchema schema, String field)
throws IOException {
SchemaField sf = schema.getField(field);
FieldType ft = sf.getType();
if (ft != null) {
if (ft.isPointField() && !sf.hasDocValues()) {
return ComponentFacet.TYPE_POINTFIELD_WITHOUT_DOCVALUES;
}
NumberType nt = ft.getNumberType();
if (nt != null) {
return nt.name();
} else {
return ComponentFacet.TYPE_STRING;
}
} else {
// best guess
return ComponentFacet.TYPE_STRING;
}
} | java | {
"resource": ""
} |
q12622 | appfw_stats.get | train | public static appfw_stats get(nitro_service service) throws Exception{
appfw_stats obj = new appfw_stats();
appfw_stats[] response = (appfw_stats[])obj.stat_resources(service);
return response[0];
} | java | {
"resource": ""
} |
q12623 | appfwtransactionrecords.get | train | public static appfwtransactionrecords[] get(nitro_service service) throws Exception{
appfwtransactionrecords obj = new appfwtransactionrecords();
appfwtransactionrecords[] response = (appfwtransactionrecords[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12624 | dnszone_binding.get | train | public static dnszone_binding get(nitro_service service, String zonename) throws Exception{
dnszone_binding obj = new dnszone_binding();
obj.set_zonename(zonename);
dnszone_binding response = (dnszone_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12625 | dnszone_binding.get | train | public static dnszone_binding[] get(nitro_service service, String zonename[]) throws Exception{
if (zonename !=null && zonename.length>0) {
dnszone_binding response[] = new dnszone_binding[zonename.length];
dnszone_binding obj[] = new dnszone_binding[zonename.length];
for (int i=0;i<zonename.length;i++) {
obj[i] = new dnszone_binding();
obj[i].set_zonename(zonename[i]);
response[i] = (dnszone_binding) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | {
"resource": ""
} |
q12626 | nssimpleacl6.add | train | public static base_response add(nitro_service client, nssimpleacl6 resource) throws Exception {
nssimpleacl6 addresource = new nssimpleacl6();
addresource.aclname = resource.aclname;
addresource.td = resource.td;
addresource.aclaction = resource.aclaction;
addresource.srcipv6 = resource.srcipv6;
addresource.destport = resource.destport;
addresource.protocol = resource.protocol;
addresource.ttl = resource.ttl;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q12627 | nssimpleacl6.add | train | public static base_responses add(nitro_service client, nssimpleacl6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nssimpleacl6 addresources[] = new nssimpleacl6[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new nssimpleacl6();
addresources[i].aclname = resources[i].aclname;
addresources[i].td = resources[i].td;
addresources[i].aclaction = resources[i].aclaction;
addresources[i].srcipv6 = resources[i].srcipv6;
addresources[i].destport = resources[i].destport;
addresources[i].protocol = resources[i].protocol;
addresources[i].ttl = resources[i].ttl;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q12628 | nssimpleacl6.clear | train | public static base_response clear(nitro_service client) throws Exception {
nssimpleacl6 clearresource = new nssimpleacl6();
return clearresource.perform_operation(client,"clear");
} | java | {
"resource": ""
} |
q12629 | nssimpleacl6.flush | train | public static base_responses flush(nitro_service client, nssimpleacl6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nssimpleacl6 flushresources[] = new nssimpleacl6[resources.length];
for (int i=0;i<resources.length;i++){
flushresources[i] = new nssimpleacl6();
flushresources[i].estsessions = resources[i].estsessions;
}
result = perform_operation_bulk_request(client, flushresources,"flush");
}
return result;
} | java | {
"resource": ""
} |
q12630 | nssimpleacl6.delete | train | public static base_responses delete(nitro_service client, nssimpleacl6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nssimpleacl6 deleteresources[] = new nssimpleacl6[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new nssimpleacl6();
deleteresources[i].aclname = resources[i].aclname;
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | {
"resource": ""
} |
q12631 | nssimpleacl6.get | train | public static nssimpleacl6[] get(nitro_service service) throws Exception{
nssimpleacl6 obj = new nssimpleacl6();
nssimpleacl6[] response = (nssimpleacl6[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12632 | nssimpleacl6.get | train | public static nssimpleacl6 get(nitro_service service, String aclname) throws Exception{
nssimpleacl6 obj = new nssimpleacl6();
obj.set_aclname(aclname);
nssimpleacl6 response = (nssimpleacl6) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12633 | dnspolicylabel_policybinding_binding.get | train | public static dnspolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
dnspolicylabel_policybinding_binding obj = new dnspolicylabel_policybinding_binding();
obj.set_labelname(labelname);
dnspolicylabel_policybinding_binding response[] = (dnspolicylabel_policybinding_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12634 | lbvserver_appqoepolicy_binding.get | train | public static lbvserver_appqoepolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_appqoepolicy_binding obj = new lbvserver_appqoepolicy_binding();
obj.set_name(name);
lbvserver_appqoepolicy_binding response[] = (lbvserver_appqoepolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12635 | aaaglobal_authenticationnegotiateaction_binding.get | train | public static aaaglobal_authenticationnegotiateaction_binding[] get(nitro_service service) throws Exception{
aaaglobal_authenticationnegotiateaction_binding obj = new aaaglobal_authenticationnegotiateaction_binding();
aaaglobal_authenticationnegotiateaction_binding response[] = (aaaglobal_authenticationnegotiateaction_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12636 | aaaglobal_authenticationnegotiateaction_binding.get_filtered | train | public static aaaglobal_authenticationnegotiateaction_binding[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
aaaglobal_authenticationnegotiateaction_binding obj = new aaaglobal_authenticationnegotiateaction_binding();
options option = new options();
option.set_filter(filter);
aaaglobal_authenticationnegotiateaction_binding[] response = (aaaglobal_authenticationnegotiateaction_binding[]) obj.getfiltered(service, option);
return response;
} | java | {
"resource": ""
} |
q12637 | dnszone.add | train | public static base_response add(nitro_service client, dnszone resource) throws Exception {
dnszone addresource = new dnszone();
addresource.zonename = resource.zonename;
addresource.proxymode = resource.proxymode;
addresource.dnssecoffload = resource.dnssecoffload;
addresource.nsec = resource.nsec;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q12638 | dnszone.add | train | public static base_responses add(nitro_service client, dnszone resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnszone addresources[] = new dnszone[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnszone();
addresources[i].zonename = resources[i].zonename;
addresources[i].proxymode = resources[i].proxymode;
addresources[i].dnssecoffload = resources[i].dnssecoffload;
addresources[i].nsec = resources[i].nsec;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q12639 | dnszone.update | train | public static base_response update(nitro_service client, dnszone resource) throws Exception {
dnszone updateresource = new dnszone();
updateresource.zonename = resource.zonename;
updateresource.proxymode = resource.proxymode;
updateresource.dnssecoffload = resource.dnssecoffload;
updateresource.nsec = resource.nsec;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q12640 | dnszone.update | train | public static base_responses update(nitro_service client, dnszone resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnszone updateresources[] = new dnszone[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new dnszone();
updateresources[i].zonename = resources[i].zonename;
updateresources[i].proxymode = resources[i].proxymode;
updateresources[i].dnssecoffload = resources[i].dnssecoffload;
updateresources[i].nsec = resources[i].nsec;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | {
"resource": ""
} |
q12641 | dnszone.unset | train | public static base_response unset(nitro_service client, dnszone resource, String[] args) throws Exception{
dnszone unsetresource = new dnszone();
unsetresource.zonename = resource.zonename;
return unsetresource.unset_resource(client,args);
} | java | {
"resource": ""
} |
q12642 | dnszone.unset | train | public static base_responses unset(nitro_service client, String zonename[], String args[]) throws Exception {
base_responses result = null;
if (zonename != null && zonename.length > 0) {
dnszone unsetresources[] = new dnszone[zonename.length];
for (int i=0;i<zonename.length;i++){
unsetresources[i] = new dnszone();
unsetresources[i].zonename = zonename[i];
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | java | {
"resource": ""
} |
q12643 | dnszone.delete | train | public static base_response delete(nitro_service client, String zonename) throws Exception {
dnszone deleteresource = new dnszone();
deleteresource.zonename = zonename;
return deleteresource.delete_resource(client);
} | java | {
"resource": ""
} |
q12644 | dnszone.delete | train | public static base_responses delete(nitro_service client, String zonename[]) throws Exception {
base_responses result = null;
if (zonename != null && zonename.length > 0) {
dnszone deleteresources[] = new dnszone[zonename.length];
for (int i=0;i<zonename.length;i++){
deleteresources[i] = new dnszone();
deleteresources[i].zonename = zonename[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | {
"resource": ""
} |
q12645 | dnszone.sign | train | public static base_response sign(nitro_service client, dnszone resource) throws Exception {
dnszone signresource = new dnszone();
signresource.zonename = resource.zonename;
signresource.keyname = resource.keyname;
return signresource.perform_operation(client,"sign");
} | java | {
"resource": ""
} |
q12646 | dnszone.sign | train | public static base_responses sign(nitro_service client, dnszone resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnszone signresources[] = new dnszone[resources.length];
for (int i=0;i<resources.length;i++){
signresources[i] = new dnszone();
signresources[i].zonename = resources[i].zonename;
signresources[i].keyname = resources[i].keyname;
}
result = perform_operation_bulk_request(client, signresources,"sign");
}
return result;
} | java | {
"resource": ""
} |
q12647 | dnszone.unsign | train | public static base_response unsign(nitro_service client, dnszone resource) throws Exception {
dnszone unsignresource = new dnszone();
unsignresource.zonename = resource.zonename;
unsignresource.keyname = resource.keyname;
return unsignresource.perform_operation(client,"unsign");
} | java | {
"resource": ""
} |
q12648 | dnszone.unsign | train | public static base_responses unsign(nitro_service client, dnszone resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnszone unsignresources[] = new dnszone[resources.length];
for (int i=0;i<resources.length;i++){
unsignresources[i] = new dnszone();
unsignresources[i].zonename = resources[i].zonename;
unsignresources[i].keyname = resources[i].keyname;
}
result = perform_operation_bulk_request(client, unsignresources,"unsign");
}
return result;
} | java | {
"resource": ""
} |
q12649 | dnszone.get | train | public static dnszone[] get(nitro_service service) throws Exception{
dnszone obj = new dnszone();
dnszone[] response = (dnszone[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12650 | dnszone.get | train | public static dnszone[] get(nitro_service service, dnszone_args args) throws Exception{
dnszone obj = new dnszone();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
dnszone[] response = (dnszone[])obj.get_resources(service, option);
return response;
} | java | {
"resource": ""
} |
q12651 | dnszone.get | train | public static dnszone get(nitro_service service, String zonename) throws Exception{
dnszone obj = new dnszone();
obj.set_zonename(zonename);
dnszone response = (dnszone) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12652 | dnszone.get_filtered | train | public static dnszone[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
dnszone obj = new dnszone();
options option = new options();
option.set_filter(filter);
dnszone[] response = (dnszone[]) obj.getfiltered(service, option);
return response;
} | java | {
"resource": ""
} |
q12653 | protocolicmpv6_stats.get | train | public static protocolicmpv6_stats get(nitro_service service) throws Exception{
protocolicmpv6_stats obj = new protocolicmpv6_stats();
protocolicmpv6_stats[] response = (protocolicmpv6_stats[])obj.stat_resources(service);
return response[0];
} | java | {
"resource": ""
} |
q12654 | lbmonbindings_service_binding.get | train | public static lbmonbindings_service_binding[] get(nitro_service service, String monitorname) throws Exception{
lbmonbindings_service_binding obj = new lbmonbindings_service_binding();
obj.set_monitorname(monitorname);
lbmonbindings_service_binding response[] = (lbmonbindings_service_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12655 | fis.add | train | public static base_response add(nitro_service client, fis resource) throws Exception {
fis addresource = new fis();
addresource.name = resource.name;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q12656 | fis.get | train | public static fis[] get(nitro_service service) throws Exception{
fis obj = new fis();
fis[] response = (fis[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12657 | fis.get | train | public static fis get(nitro_service service, String name) throws Exception{
fis obj = new fis();
obj.set_name(name);
fis response = (fis) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12658 | spilloverpolicy_gslbvserver_binding.get | train | public static spilloverpolicy_gslbvserver_binding[] get(nitro_service service, String name) throws Exception{
spilloverpolicy_gslbvserver_binding obj = new spilloverpolicy_gslbvserver_binding();
obj.set_name(name);
spilloverpolicy_gslbvserver_binding response[] = (spilloverpolicy_gslbvserver_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12659 | transformpolicy_csvserver_binding.get | train | public static transformpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
transformpolicy_csvserver_binding obj = new transformpolicy_csvserver_binding();
obj.set_name(name);
transformpolicy_csvserver_binding response[] = (transformpolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12660 | dbuser.update | train | public static base_responses update(nitro_service client, dbuser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dbuser updateresources[] = new dbuser[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new dbuser();
updateresources[i].username = resources[i].username;
updateresources[i].password = resources[i].password;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | {
"resource": ""
} |
q12661 | dbuser.get | train | public static dbuser[] get(nitro_service service) throws Exception{
dbuser obj = new dbuser();
dbuser[] response = (dbuser[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12662 | dbuser.get | train | public static dbuser[] get(nitro_service service, dbuser_args args) throws Exception{
dbuser obj = new dbuser();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
dbuser[] response = (dbuser[])obj.get_resources(service, option);
return response;
} | java | {
"resource": ""
} |
q12663 | dbuser.get | train | public static dbuser get(nitro_service service, String username) throws Exception{
dbuser obj = new dbuser();
obj.set_username(username);
dbuser response = (dbuser) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12664 | system_stats.get | train | public static system_stats get(nitro_service service) throws Exception{
system_stats obj = new system_stats();
system_stats[] response = (system_stats[])obj.stat_resources(service);
return response[0];
} | java | {
"resource": ""
} |
q12665 | dnspolicylabel_binding.get | train | public static dnspolicylabel_binding get(nitro_service service, String labelname) throws Exception{
dnspolicylabel_binding obj = new dnspolicylabel_binding();
obj.set_labelname(labelname);
dnspolicylabel_binding response = (dnspolicylabel_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12666 | csvserver_stats.get | train | public static csvserver_stats[] get(nitro_service service) throws Exception{
csvserver_stats obj = new csvserver_stats();
csvserver_stats[] response = (csvserver_stats[])obj.stat_resources(service);
return response;
} | java | {
"resource": ""
} |
q12667 | csvserver_stats.get | train | public static csvserver_stats get(nitro_service service, String name) throws Exception{
csvserver_stats obj = new csvserver_stats();
obj.set_name(name);
csvserver_stats response = (csvserver_stats) obj.stat_resource(service);
return response;
} | java | {
"resource": ""
} |
q12668 | ssl_stats.get | train | public static ssl_stats get(nitro_service service) throws Exception{
ssl_stats obj = new ssl_stats();
ssl_stats[] response = (ssl_stats[])obj.stat_resources(service);
return response[0];
} | java | {
"resource": ""
} |
q12669 | servicegroup_binding.get | train | public static servicegroup_binding get(nitro_service service, String servicegroupname) throws Exception{
servicegroup_binding obj = new servicegroup_binding();
obj.set_servicegroupname(servicegroupname);
servicegroup_binding response = (servicegroup_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12670 | MtasSpanRecurrenceQuery.setRecurrence | train | public void setRecurrence(int minimumRecurrence, int maximumRecurrence) {
if (minimumRecurrence > maximumRecurrence) {
throw new IllegalArgumentException(
"minimumRecurrence > maximumRecurrence");
} else if (minimumRecurrence < 1) {
throw new IllegalArgumentException("minimumRecurrence < 1 not supported");
} else if (query == null) {
throw new IllegalArgumentException("no clause");
}
this.minimumRecurrence = minimumRecurrence;
this.maximumRecurrence = maximumRecurrence;
// set minimum/maximum
Integer minimum = null;
Integer maximum = null;
if (query.getMinimumWidth() != null) {
minimum = minimumRecurrence * query.getMinimumWidth();
}
if (query.getMaximumWidth() != null) {
maximum = maximumRecurrence * query.getMaximumWidth();
if (ignoreQuery != null && maximumIgnoreLength != null) {
if (ignoreQuery.getMaximumWidth() != null) {
maximum += (maximumRecurrence - 1) * maximumIgnoreLength
* ignoreQuery.getMaximumWidth();
} else {
maximum = null;
}
}
}
setWidth(minimum, maximum);
} | java | {
"resource": ""
} |
q12671 | cspolicylabel_cspolicy_binding.get | train | public static cspolicylabel_cspolicy_binding[] get(nitro_service service, String labelname) throws Exception{
cspolicylabel_cspolicy_binding obj = new cspolicylabel_cspolicy_binding();
obj.set_labelname(labelname);
cspolicylabel_cspolicy_binding response[] = (cspolicylabel_cspolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12672 | cspolicylabel_cspolicy_binding.count | train | public static long count(nitro_service service, String labelname) throws Exception{
cspolicylabel_cspolicy_binding obj = new cspolicylabel_cspolicy_binding();
obj.set_labelname(labelname);
options option = new options();
option.set_count(true);
cspolicylabel_cspolicy_binding response[] = (cspolicylabel_cspolicy_binding[]) obj.get_resources(service,option);
if (response != null) {
return response[0].__count;
}
return 0;
} | java | {
"resource": ""
} |
q12673 | vpnvserver_appflowpolicy_binding.get | train | public static vpnvserver_appflowpolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_appflowpolicy_binding obj = new vpnvserver_appflowpolicy_binding();
obj.set_name(name);
vpnvserver_appflowpolicy_binding response[] = (vpnvserver_appflowpolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12674 | cspolicy_csvserver_binding.get | train | public static cspolicy_csvserver_binding[] get(nitro_service service, String policyname) throws Exception{
cspolicy_csvserver_binding obj = new cspolicy_csvserver_binding();
obj.set_policyname(policyname);
cspolicy_csvserver_binding response[] = (cspolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12675 | rnat6.add | train | public static base_response add(nitro_service client, rnat6 resource) throws Exception {
rnat6 addresource = new rnat6();
addresource.name = resource.name;
addresource.network = resource.network;
addresource.acl6name = resource.acl6name;
addresource.redirectport = resource.redirectport;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q12676 | rnat6.add | train | public static base_responses add(nitro_service client, rnat6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
rnat6 addresources[] = new rnat6[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new rnat6();
addresources[i].name = resources[i].name;
addresources[i].network = resources[i].network;
addresources[i].acl6name = resources[i].acl6name;
addresources[i].redirectport = resources[i].redirectport;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q12677 | rnat6.update | train | public static base_response update(nitro_service client, rnat6 resource) throws Exception {
rnat6 updateresource = new rnat6();
updateresource.name = resource.name;
updateresource.redirectport = resource.redirectport;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q12678 | rnat6.update | train | public static base_responses update(nitro_service client, rnat6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
rnat6 updateresources[] = new rnat6[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new rnat6();
updateresources[i].name = resources[i].name;
updateresources[i].redirectport = resources[i].redirectport;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | {
"resource": ""
} |
q12679 | rnat6.clear | train | public static base_response clear(nitro_service client, rnat6 resource) throws Exception {
rnat6 clearresource = new rnat6();
clearresource.name = resource.name;
return clearresource.perform_operation(client,"clear");
} | java | {
"resource": ""
} |
q12680 | rnat6.clear | train | public static base_responses clear(nitro_service client, rnat6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
rnat6 clearresources[] = new rnat6[resources.length];
for (int i=0;i<resources.length;i++){
clearresources[i] = new rnat6();
clearresources[i].name = resources[i].name;
}
result = perform_operation_bulk_request(client, clearresources,"clear");
}
return result;
} | java | {
"resource": ""
} |
q12681 | rnat6.get | train | public static rnat6[] get(nitro_service service) throws Exception{
rnat6 obj = new rnat6();
rnat6[] response = (rnat6[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12682 | rnat6.get | train | public static rnat6 get(nitro_service service, String name) throws Exception{
rnat6 obj = new rnat6();
obj.set_name(name);
rnat6 response = (rnat6) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12683 | spilloveraction.add | train | public static base_response add(nitro_service client, spilloveraction resource) throws Exception {
spilloveraction addresource = new spilloveraction();
addresource.name = resource.name;
addresource.action = resource.action;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q12684 | spilloveraction.get | train | public static spilloveraction[] get(nitro_service service, options option) throws Exception{
spilloveraction obj = new spilloveraction();
spilloveraction[] response = (spilloveraction[])obj.get_resources(service,option);
return response;
} | java | {
"resource": ""
} |
q12685 | spilloveraction.get | train | public static spilloveraction get(nitro_service service, String name) throws Exception{
spilloveraction obj = new spilloveraction();
obj.set_name(name);
spilloveraction response = (spilloveraction) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q12686 | hanode_fis_binding.get | train | public static hanode_fis_binding[] get(nitro_service service, Long id) throws Exception{
hanode_fis_binding obj = new hanode_fis_binding();
obj.set_id(id);
hanode_fis_binding response[] = (hanode_fis_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12687 | vpnglobal_authenticationnegotiatepolicy_binding.get | train | public static vpnglobal_authenticationnegotiatepolicy_binding[] get(nitro_service service) throws Exception{
vpnglobal_authenticationnegotiatepolicy_binding obj = new vpnglobal_authenticationnegotiatepolicy_binding();
vpnglobal_authenticationnegotiatepolicy_binding response[] = (vpnglobal_authenticationnegotiatepolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12688 | MtasTreeNode.addIdAndRef | train | final public void addIdAndRef(Integer id, Long ref, int additionalId,
long additionalRef) {
if (id != null) {
MtasTreeNodeId tnId = new MtasTreeNodeId(ref, additionalId,
additionalRef);
ids.put(id, tnId);
}
} | java | {
"resource": ""
} |
q12689 | Json.string_to_resource | train | public Object string_to_resource(Class<?> responseClass, String response)
{
Gson gson = new Gson();
return gson.fromJson(response, responseClass);
} | java | {
"resource": ""
} |
q12690 | Json.resource_to_string | train | public String resource_to_string(base_resource resources[], String id, options option,Boolean warning, String onerror)
{
String objecttype = resources[0].get_object_type();
String request = "{";
if ( (option != null && option.get_action() != null) || (warning!=null && warning==true) || (!onerror.equals("")) )
{
request = request + "\"params\":{";
if (option != null)
{
if(option.get_action() != null)
{
request = request + "\"action\":\"" + option.get_action()+"\",";
}
}
if(warning != null && warning==true)
{
request = request + "\"warning\":\"yes\",";
}
if((!onerror.equals("")))
{
request = request + "\"onerror\":\"" + onerror + "\"";
}
request = request + "},";
}
String sessionid = id;
if (sessionid != null)
request = request +"\"sessionid\":\""+sessionid+"\",";
request = request + "\"" + objecttype + "\":[";
for (int i = 0; i < resources.length ; i++)
{
String str = this.resource_to_string(resources[i]);
request = request + str + ",";
}
request = request + "]}";
return request;
} | java | {
"resource": ""
} |
q12691 | Json.unset_string | train | public String unset_string(base_resource resrc, String id, options option, String args[], Boolean warning) throws Exception
{
String objstr;
String result = "{ ";
if ((option != null && option.get_action() != null) || (warning!=null && warning==true))
{
result = result + "\"params\":{";
if (option != null)
{
if(option.get_action() != null)
{
result = result + "\"action\":\"" + option.get_action()+"\",";
}
}
if(warning != null && warning==true)
{
result = result + "\"warning\":\"yes\"";
}
result = result + "},";
}
if (id != null)
result = result + "\"sessionid\":\"" + id + "\",";
result = result + "\"" + resrc.get_object_type() + "\": {" ;
objstr = nitro_util.object_to_string(resrc);
if(objstr != null) {
result = result + objstr+",";
}
if (args != null) {
for(int i = 0; i < args.length ; i++)
{
result = result + "\"" + args[i] + "\": true,";
}
}
result = result + "}," ;
result = result + "}";
return result;
} | java | {
"resource": ""
} |
q12692 | authorizationpolicy_aaagroup_binding.get | train | public static authorizationpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{
authorizationpolicy_aaagroup_binding obj = new authorizationpolicy_aaagroup_binding();
obj.set_name(name);
authorizationpolicy_aaagroup_binding response[] = (authorizationpolicy_aaagroup_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12693 | cache_stats.get | train | public static cache_stats get(nitro_service service) throws Exception{
cache_stats obj = new cache_stats();
cache_stats[] response = (cache_stats[])obj.stat_resources(service);
return response[0];
} | java | {
"resource": ""
} |
q12694 | gslbldnsentry.delete | train | public static base_response delete(nitro_service client, gslbldnsentry resource) throws Exception {
gslbldnsentry deleteresource = new gslbldnsentry();
deleteresource.ipaddress = resource.ipaddress;
return deleteresource.delete_resource(client);
} | java | {
"resource": ""
} |
q12695 | aaauser_tmsessionpolicy_binding.get | train | public static aaauser_tmsessionpolicy_binding[] get(nitro_service service, String username) throws Exception{
aaauser_tmsessionpolicy_binding obj = new aaauser_tmsessionpolicy_binding();
obj.set_username(username);
aaauser_tmsessionpolicy_binding response[] = (aaauser_tmsessionpolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12696 | hanode_ci_binding.get | train | public static hanode_ci_binding[] get(nitro_service service, Long id) throws Exception{
hanode_ci_binding obj = new hanode_ci_binding();
obj.set_id(id);
hanode_ci_binding response[] = (hanode_ci_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12697 | auditnslogpolicy_aaauser_binding.get | train | public static auditnslogpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{
auditnslogpolicy_aaauser_binding obj = new auditnslogpolicy_aaauser_binding();
obj.set_name(name);
auditnslogpolicy_aaauser_binding response[] = (auditnslogpolicy_aaauser_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q12698 | TransformingTreebank.apply | train | @Override
public void apply(TreeVisitor tv) {
for (Tree t : tb) {
if (VERBOSE) System.out.println("TfTbApply transforming " + t);
Tree tmpT = t.deepCopy();
if (transformer != null) {
tmpT = transformer.transformTree(tmpT);
}
if (VERBOSE) System.out.println(" to " + tmpT);
tv.visitTree(tmpT);
}
} | java | {
"resource": ""
} |
q12699 | dnskey.add | train | public static base_response add(nitro_service client, dnskey resource) throws Exception {
dnskey addresource = new dnskey();
addresource.keyname = resource.keyname;
addresource.publickey = resource.publickey;
addresource.privatekey = resource.privatekey;
addresource.expires = resource.expires;
addresource.units1 = resource.units1;
addresource.notificationperiod = resource.notificationperiod;
addresource.units2 = resource.units2;
addresource.ttl = resource.ttl;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.