_id
stringlengths
2
7
title
stringlengths
3
140
partition
stringclasses
3 values
text
stringlengths
73
34.1k
language
stringclasses
1 value
meta_information
dict
q11000
MobicentsCache.unsetReplicationClassLoader
train
@SuppressWarnings("rawtypes") public void unsetReplicationClassLoader(Fqn regionFqn, ClassLoader classLoader) { if (!isLocalMode()) { final Region region = jBossCache.getRegion(regionFqn, true); if (region != null) { if (region.isActive()) { region.deactivate(); } region.unregisterContextClassLoader(); jBossCache.removeRegion(regionFqn); } } }
java
{ "resource": "" }
q11001
systemglobal_authenticationradiuspolicy_binding.get
train
public static systemglobal_authenticationradiuspolicy_binding[] get(nitro_service service) throws Exception{ systemglobal_authenticationradiuspolicy_binding obj = new systemglobal_authenticationradiuspolicy_binding(); systemglobal_authenticationradiuspolicy_binding response[] = (systemglobal_authenticationradiuspolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11002
auditsyslogpolicy_authenticationvserver_binding.get
train
public static auditsyslogpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_authenticationvserver_binding obj = new auditsyslogpolicy_authenticationvserver_binding(); obj.set_name(name); auditsyslogpolicy_authenticationvserver_binding response[] = (auditsyslogpolicy_authenticationvserver_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11003
lbgroup_lbvserver_binding.get
train
public static lbgroup_lbvserver_binding[] get(nitro_service service, String name) throws Exception{ lbgroup_lbvserver_binding obj = new lbgroup_lbvserver_binding(); obj.set_name(name); lbgroup_lbvserver_binding response[] = (lbgroup_lbvserver_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11004
nspbr.add
train
public static base_response add(nitro_service client, nspbr resource) throws Exception { nspbr addresource = new nspbr(); addresource.name = resource.name; addresource.action = resource.action; addresource.td = resource.td; addresource.srcip = resource.srcip; addresource.srcipop = resource.srcipop; addresource.srcipval = resource.srcipval; addresource.srcport = resource.srcport; addresource.srcportop = resource.srcportop; addresource.srcportval = resource.srcportval; addresource.destip = resource.destip; addresource.destipop = resource.destipop; addresource.destipval = resource.destipval; addresource.destport = resource.destport; addresource.destportop = resource.destportop; addresource.destportval = resource.destportval; addresource.nexthop = resource.nexthop; addresource.nexthopval = resource.nexthopval; addresource.iptunnel = resource.iptunnel; addresource.iptunnelname = resource.iptunnelname; addresource.srcmac = resource.srcmac; addresource.protocol = resource.protocol; addresource.protocolnumber = resource.protocolnumber; addresource.vlan = resource.vlan; addresource.Interface = resource.Interface; addresource.priority = resource.priority; addresource.msr = resource.msr; addresource.monitor = resource.monitor; addresource.state = resource.state; return addresource.add_resource(client); }
java
{ "resource": "" }
q11005
nspbr.add
train
public static base_responses add(nitro_service client, nspbr resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr addresources[] = new nspbr[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new nspbr(); addresources[i].name = resources[i].name; addresources[i].action = resources[i].action; addresources[i].td = resources[i].td; addresources[i].srcip = resources[i].srcip; addresources[i].srcipop = resources[i].srcipop; addresources[i].srcipval = resources[i].srcipval; addresources[i].srcport = resources[i].srcport; addresources[i].srcportop = resources[i].srcportop; addresources[i].srcportval = resources[i].srcportval; addresources[i].destip = resources[i].destip; addresources[i].destipop = resources[i].destipop; addresources[i].destipval = resources[i].destipval; addresources[i].destport = resources[i].destport; addresources[i].destportop = resources[i].destportop; addresources[i].destportval = resources[i].destportval; addresources[i].nexthop = resources[i].nexthop; addresources[i].nexthopval = resources[i].nexthopval; addresources[i].iptunnel = resources[i].iptunnel; addresources[i].iptunnelname = resources[i].iptunnelname; addresources[i].srcmac = resources[i].srcmac; addresources[i].protocol = resources[i].protocol; addresources[i].protocolnumber = resources[i].protocolnumber; addresources[i].vlan = resources[i].vlan; addresources[i].Interface = resources[i].Interface; addresources[i].priority = resources[i].priority; addresources[i].msr = resources[i].msr; addresources[i].monitor = resources[i].monitor; addresources[i].state = resources[i].state; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11006
nspbr.update
train
public static base_response update(nitro_service client, nspbr resource) throws Exception { nspbr updateresource = new nspbr(); updateresource.name = resource.name; updateresource.action = resource.action; updateresource.srcip = resource.srcip; updateresource.srcipop = resource.srcipop; updateresource.srcipval = resource.srcipval; updateresource.srcport = resource.srcport; updateresource.srcportop = resource.srcportop; updateresource.srcportval = resource.srcportval; updateresource.destip = resource.destip; updateresource.destipop = resource.destipop; updateresource.destipval = resource.destipval; updateresource.destport = resource.destport; updateresource.destportop = resource.destportop; updateresource.destportval = resource.destportval; updateresource.nexthop = resource.nexthop; updateresource.nexthopval = resource.nexthopval; updateresource.iptunnel = resource.iptunnel; updateresource.iptunnelname = resource.iptunnelname; updateresource.srcmac = resource.srcmac; updateresource.protocol = resource.protocol; updateresource.protocolnumber = resource.protocolnumber; updateresource.vlan = resource.vlan; updateresource.Interface = resource.Interface; updateresource.priority = resource.priority; updateresource.msr = resource.msr; updateresource.monitor = resource.monitor; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11007
nspbr.update
train
public static base_responses update(nitro_service client, nspbr resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr updateresources[] = new nspbr[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nspbr(); updateresources[i].name = resources[i].name; updateresources[i].action = resources[i].action; updateresources[i].srcip = resources[i].srcip; updateresources[i].srcipop = resources[i].srcipop; updateresources[i].srcipval = resources[i].srcipval; updateresources[i].srcport = resources[i].srcport; updateresources[i].srcportop = resources[i].srcportop; updateresources[i].srcportval = resources[i].srcportval; updateresources[i].destip = resources[i].destip; updateresources[i].destipop = resources[i].destipop; updateresources[i].destipval = resources[i].destipval; updateresources[i].destport = resources[i].destport; updateresources[i].destportop = resources[i].destportop; updateresources[i].destportval = resources[i].destportval; updateresources[i].nexthop = resources[i].nexthop; updateresources[i].nexthopval = resources[i].nexthopval; updateresources[i].iptunnel = resources[i].iptunnel; updateresources[i].iptunnelname = resources[i].iptunnelname; updateresources[i].srcmac = resources[i].srcmac; updateresources[i].protocol = resources[i].protocol; updateresources[i].protocolnumber = resources[i].protocolnumber; updateresources[i].vlan = resources[i].vlan; updateresources[i].Interface = resources[i].Interface; updateresources[i].priority = resources[i].priority; updateresources[i].msr = resources[i].msr; updateresources[i].monitor = resources[i].monitor; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11008
nspbr.enable
train
public static base_response enable(nitro_service client, nspbr resource) throws Exception { nspbr enableresource = new nspbr(); enableresource.name = resource.name; return enableresource.perform_operation(client,"enable"); }
java
{ "resource": "" }
q11009
nspbr.enable
train
public static base_responses enable(nitro_service client, nspbr resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr enableresources[] = new nspbr[resources.length]; for (int i=0;i<resources.length;i++){ enableresources[i] = new nspbr(); enableresources[i].name = resources[i].name; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
java
{ "resource": "" }
q11010
nspbr.get
train
public static nspbr[] get(nitro_service service) throws Exception{ nspbr obj = new nspbr(); nspbr[] response = (nspbr[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11011
nspbr.get
train
public static nspbr[] get(nitro_service service, nspbr_args args) throws Exception{ nspbr obj = new nspbr(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); nspbr[] response = (nspbr[])obj.get_resources(service, option); return response; }
java
{ "resource": "" }
q11012
nspbr.get
train
public static nspbr get(nitro_service service, String name) throws Exception{ nspbr obj = new nspbr(); obj.set_name(name); nspbr response = (nspbr) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11013
vpnglobal_vpnintranetapplication_binding.get
train
public static vpnglobal_vpnintranetapplication_binding[] get(nitro_service service) throws Exception{ vpnglobal_vpnintranetapplication_binding obj = new vpnglobal_vpnintranetapplication_binding(); vpnglobal_vpnintranetapplication_binding response[] = (vpnglobal_vpnintranetapplication_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11014
aaauser_authorizationpolicy_binding.get
train
public static aaauser_authorizationpolicy_binding[] get(nitro_service service, String username) throws Exception{ aaauser_authorizationpolicy_binding obj = new aaauser_authorizationpolicy_binding(); obj.set_username(username); aaauser_authorizationpolicy_binding response[] = (aaauser_authorizationpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11015
rnat.clear
train
public static base_response clear(nitro_service client, rnat resource) throws Exception { rnat clearresource = new rnat(); clearresource.network = resource.network; clearresource.netmask = resource.netmask; clearresource.aclname = resource.aclname; clearresource.redirectport = resource.redirectport; clearresource.natip = resource.natip; clearresource.td = resource.td; return clearresource.perform_operation(client,"clear"); }
java
{ "resource": "" }
q11016
rnat.clear
train
public static base_responses clear(nitro_service client, rnat resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat clearresources[] = new rnat[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new rnat(); clearresources[i].network = resources[i].network; clearresources[i].netmask = resources[i].netmask; clearresources[i].aclname = resources[i].aclname; clearresources[i].redirectport = resources[i].redirectport; clearresources[i].natip = resources[i].natip; clearresources[i].td = resources[i].td; } result = perform_operation_bulk_request(client, clearresources,"clear"); } return result; }
java
{ "resource": "" }
q11017
rnat.update
train
public static base_response update(nitro_service client, rnat resource) throws Exception { rnat updateresource = new rnat(); updateresource.network = resource.network; updateresource.netmask = resource.netmask; updateresource.natip = resource.natip; updateresource.td = resource.td; updateresource.aclname = resource.aclname; updateresource.redirectport = resource.redirectport; updateresource.natip2 = resource.natip2; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11018
rnat.update
train
public static base_responses update(nitro_service client, rnat resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat updateresources[] = new rnat[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new rnat(); updateresources[i].network = resources[i].network; updateresources[i].netmask = resources[i].netmask; updateresources[i].natip = resources[i].natip; updateresources[i].td = resources[i].td; updateresources[i].aclname = resources[i].aclname; updateresources[i].redirectport = resources[i].redirectport; updateresources[i].natip2 = resources[i].natip2; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11019
rnat.unset
train
public static base_response unset(nitro_service client, rnat resource, String[] args) throws Exception{ rnat unsetresource = new rnat(); unsetresource.network = resource.network; unsetresource.netmask = resource.netmask; unsetresource.td = resource.td; unsetresource.aclname = resource.aclname; unsetresource.redirectport = resource.redirectport; unsetresource.natip = resource.natip; return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11020
rnat.unset
train
public static base_responses unset(nitro_service client, rnat resources[], String[] args) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat unsetresources[] = new rnat[resources.length]; for (int i=0;i<resources.length;i++){ unsetresources[i] = new rnat(); unsetresources[i].network = resources[i].network; unsetresources[i].netmask = resources[i].netmask; unsetresources[i].td = resources[i].td; unsetresources[i].aclname = resources[i].aclname; unsetresources[i].redirectport = resources[i].redirectport; unsetresources[i].natip = resources[i].natip; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
{ "resource": "" }
q11021
rnat.get
train
public static rnat[] get(nitro_service service, options option) throws Exception{ rnat obj = new rnat(); rnat[] response = (rnat[])obj.get_resources(service,option); return response; }
java
{ "resource": "" }
q11022
authorizationpolicy_binding.get
train
public static authorizationpolicy_binding get(nitro_service service, String name) throws Exception{ authorizationpolicy_binding obj = new authorizationpolicy_binding(); obj.set_name(name); authorizationpolicy_binding response = (authorizationpolicy_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11023
cachepolicy_cachepolicylabel_binding.get
train
public static cachepolicy_cachepolicylabel_binding[] get(nitro_service service, String policyname) throws Exception{ cachepolicy_cachepolicylabel_binding obj = new cachepolicy_cachepolicylabel_binding(); obj.set_policyname(policyname); cachepolicy_cachepolicylabel_binding response[] = (cachepolicy_cachepolicylabel_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11024
authenticationtacacspolicy_vpnvserver_binding.get
train
public static authenticationtacacspolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationtacacspolicy_vpnvserver_binding obj = new authenticationtacacspolicy_vpnvserver_binding(); obj.set_name(name); authenticationtacacspolicy_vpnvserver_binding response[] = (authenticationtacacspolicy_vpnvserver_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11025
gslbsite_binding.get
train
public static gslbsite_binding get(nitro_service service, String sitename) throws Exception{ gslbsite_binding obj = new gslbsite_binding(); obj.set_sitename(sitename); gslbsite_binding response = (gslbsite_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11026
wipackage.Install
train
public static base_response Install(nitro_service client, wipackage resource) throws Exception { wipackage Installresource = new wipackage(); Installresource.jre = resource.jre; Installresource.wi = resource.wi; Installresource.maxsites = resource.maxsites; return Installresource.perform_operation(client); }
java
{ "resource": "" }
q11027
vrid6_interface_binding.get
train
public static vrid6_interface_binding[] get(nitro_service service, Long id) throws Exception{ vrid6_interface_binding obj = new vrid6_interface_binding(); obj.set_id(id); vrid6_interface_binding response[] = (vrid6_interface_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11028
dnspolicy64.get
train
public static dnspolicy64[] get(nitro_service service) throws Exception{ dnspolicy64 obj = new dnspolicy64(); dnspolicy64[] response = (dnspolicy64[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11029
dnspolicy64.get
train
public static dnspolicy64 get(nitro_service service, String name) throws Exception{ dnspolicy64 obj = new dnspolicy64(); obj.set_name(name); dnspolicy64 response = (dnspolicy64) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11030
dnspolicy64.get_filtered
train
public static dnspolicy64[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ dnspolicy64 obj = new dnspolicy64(); options option = new options(); option.set_filter(filter); dnspolicy64[] response = (dnspolicy64[]) obj.getfiltered(service, option); return response; }
java
{ "resource": "" }
q11031
vpnvserver_intranetip_binding.get
train
public static vpnvserver_intranetip_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_intranetip_binding obj = new vpnvserver_intranetip_binding(); obj.set_name(name); vpnvserver_intranetip_binding response[] = (vpnvserver_intranetip_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11032
vpnglobal_authenticationcertpolicy_binding.get
train
public static vpnglobal_authenticationcertpolicy_binding[] get(nitro_service service) throws Exception{ vpnglobal_authenticationcertpolicy_binding obj = new vpnglobal_authenticationcertpolicy_binding(); vpnglobal_authenticationcertpolicy_binding response[] = (vpnglobal_authenticationcertpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11033
netbridge_binding.get
train
public static netbridge_binding get(nitro_service service, String name) throws Exception{ netbridge_binding obj = new netbridge_binding(); obj.set_name(name); netbridge_binding response = (netbridge_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11034
appqoepolicy_stats.get
train
public static appqoepolicy_stats[] get(nitro_service service) throws Exception{ appqoepolicy_stats obj = new appqoepolicy_stats(); appqoepolicy_stats[] response = (appqoepolicy_stats[])obj.stat_resources(service); return response; }
java
{ "resource": "" }
q11035
appqoepolicy_stats.get
train
public static appqoepolicy_stats get(nitro_service service, String name) throws Exception{ appqoepolicy_stats obj = new appqoepolicy_stats(); obj.set_name(name); appqoepolicy_stats response = (appqoepolicy_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }
q11036
nstrace.get
train
public static nstrace get(nitro_service service) throws Exception{ nstrace obj = new nstrace(); nstrace[] response = (nstrace[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q11037
nsdhcpip.release
train
public static base_response release(nitro_service client) throws Exception { nsdhcpip releaseresource = new nsdhcpip(); return releaseresource.perform_operation(client,"release"); }
java
{ "resource": "" }
q11038
cachepolicy_stats.get
train
public static cachepolicy_stats[] get(nitro_service service) throws Exception{ cachepolicy_stats obj = new cachepolicy_stats(); cachepolicy_stats[] response = (cachepolicy_stats[])obj.stat_resources(service); return response; }
java
{ "resource": "" }
q11039
cachepolicy_stats.get
train
public static cachepolicy_stats get(nitro_service service, String policyname) throws Exception{ cachepolicy_stats obj = new cachepolicy_stats(); obj.set_policyname(policyname); cachepolicy_stats response = (cachepolicy_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }
q11040
gslbsite_gslbservice_binding.get
train
public static gslbsite_gslbservice_binding[] get(nitro_service service, String sitename) throws Exception{ gslbsite_gslbservice_binding obj = new gslbsite_gslbservice_binding(); obj.set_sitename(sitename); gslbsite_gslbservice_binding response[] = (gslbsite_gslbservice_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11041
gslbsite_gslbservice_binding.get_filtered
train
public static gslbsite_gslbservice_binding[] get_filtered(nitro_service service, String sitename, filtervalue[] filter) throws Exception{ gslbsite_gslbservice_binding obj = new gslbsite_gslbservice_binding(); obj.set_sitename(sitename); options option = new options(); option.set_filter(filter); gslbsite_gslbservice_binding[] response = (gslbsite_gslbservice_binding[]) obj.getfiltered(service, option); return response; }
java
{ "resource": "" }
q11042
gslbsite_gslbservice_binding.count
train
public static long count(nitro_service service, String sitename) throws Exception{ gslbsite_gslbservice_binding obj = new gslbsite_gslbservice_binding(); obj.set_sitename(sitename); options option = new options(); option.set_count(true); gslbsite_gslbservice_binding response[] = (gslbsite_gslbservice_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
java
{ "resource": "" }
q11043
gslbsite_stats.get
train
public static gslbsite_stats[] get(nitro_service service, options option) throws Exception{ gslbsite_stats obj = new gslbsite_stats(); gslbsite_stats[] response = (gslbsite_stats[])obj.stat_resources(service,option); return response; }
java
{ "resource": "" }
q11044
gslbsite_stats.get
train
public static gslbsite_stats get(nitro_service service, String sitename) throws Exception{ gslbsite_stats obj = new gslbsite_stats(); obj.set_sitename(sitename); gslbsite_stats response = (gslbsite_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }
q11045
dnsaddrec.add
train
public static base_response add(nitro_service client, dnsaddrec resource) throws Exception { dnsaddrec addresource = new dnsaddrec(); addresource.hostname = resource.hostname; addresource.ipaddress = resource.ipaddress; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
{ "resource": "" }
q11046
dnsaddrec.add
train
public static base_responses add(nitro_service client, dnsaddrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaddrec addresources[] = new dnsaddrec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnsaddrec(); addresources[i].hostname = resources[i].hostname; addresources[i].ipaddress = resources[i].ipaddress; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11047
dnsaddrec.delete
train
public static base_response delete(nitro_service client, String hostname) throws Exception { dnsaddrec deleteresource = new dnsaddrec(); deleteresource.hostname = hostname; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q11048
dnsaddrec.delete
train
public static base_response delete(nitro_service client, dnsaddrec resource) throws Exception { dnsaddrec deleteresource = new dnsaddrec(); deleteresource.hostname = resource.hostname; deleteresource.ipaddress = resource.ipaddress; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q11049
dnsaddrec.delete
train
public static base_responses delete(nitro_service client, dnsaddrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaddrec deleteresources[] = new dnsaddrec[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new dnsaddrec(); deleteresources[i].hostname = resources[i].hostname; deleteresources[i].ipaddress = resources[i].ipaddress; } result = delete_bulk_request(client, deleteresources); } return result; }
java
{ "resource": "" }
q11050
dnsaddrec.get
train
public static dnsaddrec[] get(nitro_service service) throws Exception{ dnsaddrec obj = new dnsaddrec(); dnsaddrec[] response = (dnsaddrec[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11051
dnsaddrec.get
train
public static dnsaddrec[] get(nitro_service service, dnsaddrec_args args) throws Exception{ dnsaddrec obj = new dnsaddrec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnsaddrec[] response = (dnsaddrec[])obj.get_resources(service, option); return response; }
java
{ "resource": "" }
q11052
dnsaddrec.get
train
public static dnsaddrec get(nitro_service service, String hostname) throws Exception{ dnsaddrec obj = new dnsaddrec(); obj.set_hostname(hostname); dnsaddrec response = (dnsaddrec) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11053
authorizationpolicy_aaauser_binding.get
train
public static authorizationpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{ authorizationpolicy_aaauser_binding obj = new authorizationpolicy_aaauser_binding(); obj.set_name(name); authorizationpolicy_aaauser_binding response[] = (authorizationpolicy_aaauser_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11054
nsxmlnamespace.add
train
public static base_response add(nitro_service client, nsxmlnamespace resource) throws Exception { nsxmlnamespace addresource = new nsxmlnamespace(); addresource.prefix = resource.prefix; addresource.Namespace = resource.Namespace; return addresource.add_resource(client); }
java
{ "resource": "" }
q11055
nsxmlnamespace.add
train
public static base_responses add(nitro_service client, nsxmlnamespace resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsxmlnamespace addresources[] = new nsxmlnamespace[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new nsxmlnamespace(); addresources[i].prefix = resources[i].prefix; addresources[i].Namespace = resources[i].Namespace; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11056
nsxmlnamespace.delete
train
public static base_response delete(nitro_service client, String prefix) throws Exception { nsxmlnamespace deleteresource = new nsxmlnamespace(); deleteresource.prefix = prefix; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q11057
nsxmlnamespace.delete
train
public static base_responses delete(nitro_service client, String prefix[]) throws Exception { base_responses result = null; if (prefix != null && prefix.length > 0) { nsxmlnamespace deleteresources[] = new nsxmlnamespace[prefix.length]; for (int i=0;i<prefix.length;i++){ deleteresources[i] = new nsxmlnamespace(); deleteresources[i].prefix = prefix[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
{ "resource": "" }
q11058
nsxmlnamespace.update
train
public static base_response update(nitro_service client, nsxmlnamespace resource) throws Exception { nsxmlnamespace updateresource = new nsxmlnamespace(); updateresource.prefix = resource.prefix; updateresource.Namespace = resource.Namespace; updateresource.description = resource.description; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11059
nsxmlnamespace.update
train
public static base_responses update(nitro_service client, nsxmlnamespace resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsxmlnamespace updateresources[] = new nsxmlnamespace[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nsxmlnamespace(); updateresources[i].prefix = resources[i].prefix; updateresources[i].Namespace = resources[i].Namespace; updateresources[i].description = resources[i].description; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11060
nsxmlnamespace.unset
train
public static base_response unset(nitro_service client, nsxmlnamespace resource, String[] args) throws Exception{ nsxmlnamespace unsetresource = new nsxmlnamespace(); unsetresource.prefix = resource.prefix; return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11061
nsxmlnamespace.unset
train
public static base_responses unset(nitro_service client, String prefix[], String args[]) throws Exception { base_responses result = null; if (prefix != null && prefix.length > 0) { nsxmlnamespace unsetresources[] = new nsxmlnamespace[prefix.length]; for (int i=0;i<prefix.length;i++){ unsetresources[i] = new nsxmlnamespace(); unsetresources[i].prefix = prefix[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
{ "resource": "" }
q11062
nsxmlnamespace.get
train
public static nsxmlnamespace[] get(nitro_service service) throws Exception{ nsxmlnamespace obj = new nsxmlnamespace(); nsxmlnamespace[] response = (nsxmlnamespace[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11063
nsxmlnamespace.get
train
public static nsxmlnamespace get(nitro_service service, String prefix) throws Exception{ nsxmlnamespace obj = new nsxmlnamespace(); obj.set_prefix(prefix); nsxmlnamespace response = (nsxmlnamespace) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11064
nsxmlnamespace.get
train
public static nsxmlnamespace[] get(nitro_service service, String prefix[]) throws Exception{ if (prefix !=null && prefix.length>0) { nsxmlnamespace response[] = new nsxmlnamespace[prefix.length]; nsxmlnamespace obj[] = new nsxmlnamespace[prefix.length]; for (int i=0;i<prefix.length;i++) { obj[i] = new nsxmlnamespace(); obj[i].set_prefix(prefix[i]); response[i] = (nsxmlnamespace) obj[i].get_resource(service); } return response; } return null; }
java
{ "resource": "" }
q11065
nsxmlnamespace.get_filtered
train
public static nsxmlnamespace[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ nsxmlnamespace obj = new nsxmlnamespace(); options option = new options(); option.set_filter(filter); nsxmlnamespace[] response = (nsxmlnamespace[]) obj.getfiltered(service, option); return response; }
java
{ "resource": "" }
q11066
lbvserver_appfwpolicy_binding.get
train
public static lbvserver_appfwpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_appfwpolicy_binding obj = new lbvserver_appfwpolicy_binding(); obj.set_name(name); lbvserver_appfwpolicy_binding response[] = (lbvserver_appfwpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11067
sslservice_sslcertkey_binding.get
train
public static sslservice_sslcertkey_binding[] get(nitro_service service, String servicename) throws Exception{ sslservice_sslcertkey_binding obj = new sslservice_sslcertkey_binding(); obj.set_servicename(servicename); sslservice_sslcertkey_binding response[] = (sslservice_sslcertkey_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11068
locationparameter.update
train
public static base_response update(nitro_service client, locationparameter resource) throws Exception { locationparameter updateresource = new locationparameter(); updateresource.context = resource.context; updateresource.q1label = resource.q1label; updateresource.q2label = resource.q2label; updateresource.q3label = resource.q3label; updateresource.q4label = resource.q4label; updateresource.q5label = resource.q5label; updateresource.q6label = resource.q6label; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11069
locationparameter.unset
train
public static base_response unset(nitro_service client, locationparameter resource, String[] args) throws Exception{ locationparameter unsetresource = new locationparameter(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11070
locationparameter.get
train
public static locationparameter get(nitro_service service) throws Exception{ locationparameter obj = new locationparameter(); locationparameter[] response = (locationparameter[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q11071
nsappflowparam.update
train
public static base_response update(nitro_service client, nsappflowparam resource) throws Exception { nsappflowparam updateresource = new nsappflowparam(); updateresource.templaterefresh = resource.templaterefresh; updateresource.udppmtu = resource.udppmtu; updateresource.httpurl = resource.httpurl; updateresource.httpcookie = resource.httpcookie; updateresource.httpreferer = resource.httpreferer; updateresource.httpmethod = resource.httpmethod; updateresource.httphost = resource.httphost; updateresource.httpuseragent = resource.httpuseragent; updateresource.clienttrafficonly = resource.clienttrafficonly; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11072
nsappflowparam.unset
train
public static base_response unset(nitro_service client, nsappflowparam resource, String[] args) throws Exception{ nsappflowparam unsetresource = new nsappflowparam(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11073
nsappflowparam.get
train
public static nsappflowparam get(nitro_service service) throws Exception{ nsappflowparam obj = new nsappflowparam(); nsappflowparam[] response = (nsappflowparam[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q11074
WeightedDataset.randomize
train
@Override public void randomize(int randomSeed) { Random rand = new Random(randomSeed); for(int j = size - 1; j > 0; j --){ int randIndex = rand.nextInt(j); int [] tmp = data[randIndex]; data[randIndex] = data[j]; data[j] = tmp; int tmpl = labels[randIndex]; labels[randIndex] = labels[j]; labels[j] = tmpl; float tmpw = weights[randIndex]; weights[randIndex] = weights[j]; weights[j] = tmpw; } }
java
{ "resource": "" }
q11075
scpolicy.add
train
public static base_response add(nitro_service client, scpolicy resource) throws Exception { scpolicy addresource = new scpolicy(); addresource.name = resource.name; addresource.url = resource.url; addresource.rule = resource.rule; addresource.delay = resource.delay; addresource.maxconn = resource.maxconn; addresource.action = resource.action; addresource.altcontentsvcname = resource.altcontentsvcname; addresource.altcontentpath = resource.altcontentpath; return addresource.add_resource(client); }
java
{ "resource": "" }
q11076
scpolicy.add
train
public static base_responses add(nitro_service client, scpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { scpolicy addresources[] = new scpolicy[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new scpolicy(); addresources[i].name = resources[i].name; addresources[i].url = resources[i].url; addresources[i].rule = resources[i].rule; addresources[i].delay = resources[i].delay; addresources[i].maxconn = resources[i].maxconn; addresources[i].action = resources[i].action; addresources[i].altcontentsvcname = resources[i].altcontentsvcname; addresources[i].altcontentpath = resources[i].altcontentpath; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11077
scpolicy.update
train
public static base_response update(nitro_service client, scpolicy resource) throws Exception { scpolicy updateresource = new scpolicy(); updateresource.name = resource.name; updateresource.url = resource.url; updateresource.rule = resource.rule; updateresource.delay = resource.delay; updateresource.maxconn = resource.maxconn; updateresource.action = resource.action; updateresource.altcontentsvcname = resource.altcontentsvcname; updateresource.altcontentpath = resource.altcontentpath; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11078
scpolicy.update
train
public static base_responses update(nitro_service client, scpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { scpolicy updateresources[] = new scpolicy[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new scpolicy(); updateresources[i].name = resources[i].name; updateresources[i].url = resources[i].url; updateresources[i].rule = resources[i].rule; updateresources[i].delay = resources[i].delay; updateresources[i].maxconn = resources[i].maxconn; updateresources[i].action = resources[i].action; updateresources[i].altcontentsvcname = resources[i].altcontentsvcname; updateresources[i].altcontentpath = resources[i].altcontentpath; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11079
scpolicy.get
train
public static scpolicy[] get(nitro_service service) throws Exception{ scpolicy obj = new scpolicy(); scpolicy[] response = (scpolicy[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11080
scpolicy.get
train
public static scpolicy get(nitro_service service, String name) throws Exception{ scpolicy obj = new scpolicy(); obj.set_name(name); scpolicy response = (scpolicy) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11081
MtasFunctionParserFunction.needArgumentsNumber
train
public final int needArgumentsNumber() { int number = 0; for (int i : needArgument) { number = Math.max(number, (i + 1)); } return number; }
java
{ "resource": "" }
q11082
csvserver_rewritepolicy_binding.get
train
public static csvserver_rewritepolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_rewritepolicy_binding obj = new csvserver_rewritepolicy_binding(); obj.set_name(name); csvserver_rewritepolicy_binding response[] = (csvserver_rewritepolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11083
MtasDataCollectorResult.getComparatorList
train
@SuppressWarnings("rawtypes") public final Map<String, MtasDataItemNumberComparator> getComparatorList() throws IOException { if (collectorType.equals(DataCollector.COLLECTOR_TYPE_LIST)) { LinkedHashMap<String, MtasDataItemNumberComparator> comparatorList = new LinkedHashMap<>(); for (Entry<String, MtasDataItem<T1, T2>> entry : list.entrySet()) { comparatorList.put(entry.getKey(), entry.getValue().getComparableValue()); } return comparatorList; } else { throw new IOException("type " + collectorType + " not supported"); } }
java
{ "resource": "" }
q11084
lbvserver_cmppolicy_binding.get
train
public static lbvserver_cmppolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_cmppolicy_binding obj = new lbvserver_cmppolicy_binding(); obj.set_name(name); lbvserver_cmppolicy_binding response[] = (lbvserver_cmppolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11085
appfwconfidfield.add
train
public static base_response add(nitro_service client, appfwconfidfield resource) throws Exception { appfwconfidfield addresource = new appfwconfidfield(); addresource.fieldname = resource.fieldname; addresource.url = resource.url; addresource.isregex = resource.isregex; addresource.comment = resource.comment; addresource.state = resource.state; return addresource.add_resource(client); }
java
{ "resource": "" }
q11086
appfwconfidfield.add
train
public static base_responses add(nitro_service client, appfwconfidfield resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwconfidfield addresources[] = new appfwconfidfield[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new appfwconfidfield(); addresources[i].fieldname = resources[i].fieldname; addresources[i].url = resources[i].url; addresources[i].isregex = resources[i].isregex; addresources[i].comment = resources[i].comment; addresources[i].state = resources[i].state; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11087
appfwconfidfield.delete
train
public static base_response delete(nitro_service client, String fieldname) throws Exception { appfwconfidfield deleteresource = new appfwconfidfield(); deleteresource.fieldname = fieldname; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q11088
appfwconfidfield.delete
train
public static base_response delete(nitro_service client, appfwconfidfield resource) throws Exception { appfwconfidfield deleteresource = new appfwconfidfield(); deleteresource.fieldname = resource.fieldname; deleteresource.url = resource.url; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q11089
appfwconfidfield.delete
train
public static base_responses delete(nitro_service client, String fieldname[]) throws Exception { base_responses result = null; if (fieldname != null && fieldname.length > 0) { appfwconfidfield deleteresources[] = new appfwconfidfield[fieldname.length]; for (int i=0;i<fieldname.length;i++){ deleteresources[i] = new appfwconfidfield(); deleteresources[i].fieldname = fieldname[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
{ "resource": "" }
q11090
appfwconfidfield.delete
train
public static base_responses delete(nitro_service client, appfwconfidfield resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwconfidfield deleteresources[] = new appfwconfidfield[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new appfwconfidfield(); deleteresources[i].fieldname = resources[i].fieldname; deleteresources[i].url = resources[i].url; } result = delete_bulk_request(client, deleteresources); } return result; }
java
{ "resource": "" }
q11091
appfwconfidfield.update
train
public static base_response update(nitro_service client, appfwconfidfield resource) throws Exception { appfwconfidfield updateresource = new appfwconfidfield(); updateresource.fieldname = resource.fieldname; updateresource.url = resource.url; updateresource.comment = resource.comment; updateresource.state = resource.state; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11092
appfwconfidfield.update
train
public static base_responses update(nitro_service client, appfwconfidfield resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwconfidfield updateresources[] = new appfwconfidfield[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new appfwconfidfield(); updateresources[i].fieldname = resources[i].fieldname; updateresources[i].url = resources[i].url; updateresources[i].comment = resources[i].comment; updateresources[i].state = resources[i].state; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11093
appfwconfidfield.unset
train
public static base_response unset(nitro_service client, appfwconfidfield resource, String[] args) throws Exception{ appfwconfidfield unsetresource = new appfwconfidfield(); unsetresource.fieldname = resource.fieldname; unsetresource.url = resource.url; return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11094
appfwconfidfield.unset
train
public static base_responses unset(nitro_service client, appfwconfidfield resources[], String[] args) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwconfidfield unsetresources[] = new appfwconfidfield[resources.length]; for (int i=0;i<resources.length;i++){ unsetresources[i] = new appfwconfidfield(); unsetresources[i].fieldname = resources[i].fieldname; unsetresources[i].url = resources[i].url; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
{ "resource": "" }
q11095
appfwconfidfield.get
train
public static appfwconfidfield[] get(nitro_service service) throws Exception{ appfwconfidfield obj = new appfwconfidfield(); appfwconfidfield[] response = (appfwconfidfield[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11096
dnsnsrec.add
train
public static base_response add(nitro_service client, dnsnsrec resource) throws Exception { dnsnsrec addresource = new dnsnsrec(); addresource.domain = resource.domain; addresource.nameserver = resource.nameserver; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
{ "resource": "" }
q11097
dnsnsrec.add
train
public static base_responses add(nitro_service client, dnsnsrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsnsrec addresources[] = new dnsnsrec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnsnsrec(); addresources[i].domain = resources[i].domain; addresources[i].nameserver = resources[i].nameserver; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11098
dnsnsrec.delete
train
public static base_response delete(nitro_service client, dnsnsrec resource) throws Exception { dnsnsrec deleteresource = new dnsnsrec(); deleteresource.domain = resource.domain; deleteresource.nameserver = resource.nameserver; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q11099
dnsnsrec.get
train
public static dnsnsrec[] get(nitro_service service) throws Exception{ dnsnsrec obj = new dnsnsrec(); dnsnsrec[] response = (dnsnsrec[])obj.get_resources(service); return response; }
java
{ "resource": "" }