_id
stringlengths
2
7
title
stringlengths
3
140
partition
stringclasses
3 values
text
stringlengths
73
34.1k
language
stringclasses
1 value
meta_information
dict
q10300
dnssuffix.add
train
public static base_response add(nitro_service client, dnssuffix resource) throws Exception { dnssuffix addresource = new dnssuffix(); addresource.Dnssuffix = resource.Dnssuffix; return addresource.add_resource(client); }
java
{ "resource": "" }
q10301
dnssuffix.add
train
public static base_responses add(nitro_service client, dnssuffix resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnssuffix addresources[] = new dnssuffix[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnssuffix(); addresources[i].Dnssuffix = resources[i].Dnssuffix; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q10302
dnssuffix.delete
train
public static base_response delete(nitro_service client, String Dnssuffix) throws Exception { dnssuffix deleteresource = new dnssuffix(); deleteresource.Dnssuffix = Dnssuffix; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q10303
dnssuffix.delete
train
public static base_responses delete(nitro_service client, String Dnssuffix[]) throws Exception { base_responses result = null; if (Dnssuffix != null && Dnssuffix.length > 0) { dnssuffix deleteresources[] = new dnssuffix[Dnssuffix.length]; for (int i=0;i<Dnssuffix.length;i++){ deleteresources[i] = new dnssuffix(); deleteresources[i].Dnssuffix = Dnssuffix[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
{ "resource": "" }
q10304
dnssuffix.get
train
public static dnssuffix[] get(nitro_service service) throws Exception{ dnssuffix obj = new dnssuffix(); dnssuffix[] response = (dnssuffix[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q10305
dnssuffix.get
train
public static dnssuffix get(nitro_service service, String Dnssuffix) throws Exception{ dnssuffix obj = new dnssuffix(); obj.set_Dnssuffix(Dnssuffix); dnssuffix response = (dnssuffix) obj.get_resource(service); return response; }
java
{ "resource": "" }
q10306
dnssuffix.get
train
public static dnssuffix[] get(nitro_service service, String Dnssuffix[]) throws Exception{ if (Dnssuffix !=null && Dnssuffix.length>0) { dnssuffix response[] = new dnssuffix[Dnssuffix.length]; dnssuffix obj[] = new dnssuffix[Dnssuffix.length]; for (int i=0;i<Dnssuffix.length;i++) { obj[i] = new dnssuffix(); obj[i].set_Dnssuffix(Dnssuffix[i]); response[i] = (dnssuffix) obj[i].get_resource(service); } return response; } return null; }
java
{ "resource": "" }
q10307
vridparam.update
train
public static base_response update(nitro_service client, vridparam resource) throws Exception { vridparam updateresource = new vridparam(); updateresource.sendtomaster = resource.sendtomaster; return updateresource.update_resource(client); }
java
{ "resource": "" }
q10308
vridparam.unset
train
public static base_response unset(nitro_service client, vridparam resource, String[] args) throws Exception{ vridparam unsetresource = new vridparam(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q10309
vridparam.get
train
public static vridparam get(nitro_service service) throws Exception{ vridparam obj = new vridparam(); vridparam[] response = (vridparam[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q10310
cmppolicylabel_stats.get
train
public static cmppolicylabel_stats[] get(nitro_service service) throws Exception{ cmppolicylabel_stats obj = new cmppolicylabel_stats(); cmppolicylabel_stats[] response = (cmppolicylabel_stats[])obj.stat_resources(service); return response; }
java
{ "resource": "" }
q10311
cmppolicylabel_stats.get
train
public static cmppolicylabel_stats get(nitro_service service, String labelname) throws Exception{ cmppolicylabel_stats obj = new cmppolicylabel_stats(); obj.set_labelname(labelname); cmppolicylabel_stats response = (cmppolicylabel_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }
q10312
dnstxtrec.add
train
public static base_response add(nitro_service client, dnstxtrec resource) throws Exception { dnstxtrec addresource = new dnstxtrec(); addresource.domain = resource.domain; addresource.String = resource.String; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
{ "resource": "" }
q10313
dnstxtrec.add
train
public static base_responses add(nitro_service client, dnstxtrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnstxtrec addresources[] = new dnstxtrec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnstxtrec(); addresources[i].domain = resources[i].domain; addresources[i].String = resources[i].String; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q10314
dnstxtrec.delete
train
public static base_response delete(nitro_service client, String domain) throws Exception { dnstxtrec deleteresource = new dnstxtrec(); deleteresource.domain = domain; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q10315
dnstxtrec.delete
train
public static base_response delete(nitro_service client, dnstxtrec resource) throws Exception { dnstxtrec deleteresource = new dnstxtrec(); deleteresource.domain = resource.domain; deleteresource.String = resource.String; deleteresource.recordid = resource.recordid; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q10316
dnstxtrec.delete
train
public static base_responses delete(nitro_service client, dnstxtrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnstxtrec deleteresources[] = new dnstxtrec[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new dnstxtrec(); deleteresources[i].domain = resources[i].domain; deleteresources[i].String = resources[i].String; deleteresources[i].recordid = resources[i].recordid; } result = delete_bulk_request(client, deleteresources); } return result; }
java
{ "resource": "" }
q10317
dnstxtrec.get
train
public static dnstxtrec[] get(nitro_service service) throws Exception{ dnstxtrec obj = new dnstxtrec(); dnstxtrec[] response = (dnstxtrec[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q10318
dnstxtrec.get
train
public static dnstxtrec[] get(nitro_service service, dnstxtrec_args args) throws Exception{ dnstxtrec obj = new dnstxtrec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnstxtrec[] response = (dnstxtrec[])obj.get_resources(service, option); return response; }
java
{ "resource": "" }
q10319
dnstxtrec.get
train
public static dnstxtrec get(nitro_service service, String domain) throws Exception{ dnstxtrec obj = new dnstxtrec(); obj.set_domain(domain); dnstxtrec response = (dnstxtrec) obj.get_resource(service); return response; }
java
{ "resource": "" }
q10320
dnstxtrec.get
train
public static dnstxtrec[] get(nitro_service service, String domain[]) throws Exception{ if (domain !=null && domain.length>0) { dnstxtrec response[] = new dnstxtrec[domain.length]; dnstxtrec obj[] = new dnstxtrec[domain.length]; for (int i=0;i<domain.length;i++) { obj[i] = new dnstxtrec(); obj[i].set_domain(domain[i]); response[i] = (dnstxtrec) obj[i].get_resource(service); } return response; } return null; }
java
{ "resource": "" }
q10321
bridgegroup_vlan_binding.get
train
public static bridgegroup_vlan_binding[] get(nitro_service service, Long id) throws Exception{ bridgegroup_vlan_binding obj = new bridgegroup_vlan_binding(); obj.set_id(id); bridgegroup_vlan_binding response[] = (bridgegroup_vlan_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q10322
bridgegroup_vlan_binding.count
train
public static long count(nitro_service service, Long id) throws Exception{ bridgegroup_vlan_binding obj = new bridgegroup_vlan_binding(); obj.set_id(id); options option = new options(); option.set_count(true); bridgegroup_vlan_binding response[] = (bridgegroup_vlan_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
java
{ "resource": "" }
q10323
NumberRangesFileFilter.accept
train
public boolean accept(String str) { int k = str.length() - 1; char c = str.charAt(k); while (k >= 0 && !Character.isDigit(c)) { k--; if (k >= 0) { c = str.charAt(k); } } if (k < 0) { return false; } int j = k; c = str.charAt(j); while (j >= 0 && Character.isDigit(c)) { j--; if (j >= 0) { c = str.charAt(j); } } j++; k++; String theNumber = str.substring(j, k); int number = Integer.parseInt(theNumber); for (Pair<Integer,Integer> p : ranges) { int low = p.first().intValue(); int high = p.second().intValue(); if (number >= low && number <= high) { return true; } } return false; }
java
{ "resource": "" }
q10324
vlan_nsip_binding.get
train
public static vlan_nsip_binding[] get(nitro_service service, Long id) throws Exception{ vlan_nsip_binding obj = new vlan_nsip_binding(); obj.set_id(id); vlan_nsip_binding response[] = (vlan_nsip_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q10325
wisite_binding.get
train
public static wisite_binding get(nitro_service service, String sitepath) throws Exception{ wisite_binding obj = new wisite_binding(); obj.set_sitepath(sitepath); wisite_binding response = (wisite_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q10326
wisite_binding.get
train
public static wisite_binding[] get(nitro_service service, String sitepath[]) throws Exception{ if (sitepath !=null && sitepath.length>0) { wisite_binding response[] = new wisite_binding[sitepath.length]; wisite_binding obj[] = new wisite_binding[sitepath.length]; for (int i=0;i<sitepath.length;i++) { obj[i] = new wisite_binding(); obj[i].set_sitepath(sitepath[i]); response[i] = (wisite_binding) obj[i].get_resource(service); } return response; } return null; }
java
{ "resource": "" }
q10327
responderpolicylabel_responderpolicy_binding.get
train
public static responderpolicylabel_responderpolicy_binding[] get(nitro_service service, String labelname) throws Exception{ responderpolicylabel_responderpolicy_binding obj = new responderpolicylabel_responderpolicy_binding(); obj.set_labelname(labelname); responderpolicylabel_responderpolicy_binding response[] = (responderpolicylabel_responderpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q10328
vpnvserver_appcontroller_binding.get
train
public static vpnvserver_appcontroller_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_appcontroller_binding obj = new vpnvserver_appcontroller_binding(); obj.set_name(name); vpnvserver_appcontroller_binding response[] = (vpnvserver_appcontroller_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q10329
vpnsessionaction.add
train
public static base_response add(nitro_service client, vpnsessionaction resource) throws Exception { vpnsessionaction addresource = new vpnsessionaction(); addresource.name = resource.name; addresource.httpport = resource.httpport; addresource.winsip = resource.winsip; addresource.dnsvservername = resource.dnsvservername; addresource.splitdns = resource.splitdns; addresource.sesstimeout = resource.sesstimeout; addresource.clientsecurity = resource.clientsecurity; addresource.clientsecuritygroup = resource.clientsecuritygroup; addresource.clientsecuritymessage = resource.clientsecuritymessage; addresource.clientsecuritylog = resource.clientsecuritylog; addresource.splittunnel = resource.splittunnel; addresource.locallanaccess = resource.locallanaccess; addresource.rfc1918 = resource.rfc1918; addresource.spoofiip = resource.spoofiip; addresource.killconnections = resource.killconnections; addresource.transparentinterception = resource.transparentinterception; addresource.windowsclienttype = resource.windowsclienttype; addresource.defaultauthorizationaction = resource.defaultauthorizationaction; addresource.authorizationgroup = resource.authorizationgroup; addresource.clientidletimeout = resource.clientidletimeout; addresource.proxy = resource.proxy; addresource.allprotocolproxy = resource.allprotocolproxy; addresource.httpproxy = resource.httpproxy; addresource.ftpproxy = resource.ftpproxy; addresource.socksproxy = resource.socksproxy; addresource.gopherproxy = resource.gopherproxy; addresource.sslproxy = resource.sslproxy; addresource.proxyexception = resource.proxyexception; addresource.proxylocalbypass = resource.proxylocalbypass; addresource.clientcleanupprompt = resource.clientcleanupprompt; addresource.forcecleanup = resource.forcecleanup; addresource.clientoptions = resource.clientoptions; addresource.clientconfiguration = resource.clientconfiguration; addresource.sso = resource.sso; addresource.ssocredential = resource.ssocredential; addresource.windowsautologon = resource.windowsautologon; addresource.usemip = resource.usemip; addresource.useiip = resource.useiip; addresource.clientdebug = resource.clientdebug; addresource.loginscript = resource.loginscript; addresource.logoutscript = resource.logoutscript; addresource.homepage = resource.homepage; addresource.icaproxy = resource.icaproxy; addresource.wihome = resource.wihome; addresource.citrixreceiverhome = resource.citrixreceiverhome; addresource.wiportalmode = resource.wiportalmode; addresource.clientchoices = resource.clientchoices; addresource.epaclienttype = resource.epaclienttype; addresource.iipdnssuffix = resource.iipdnssuffix; addresource.forcedtimeout = resource.forcedtimeout; addresource.forcedtimeoutwarning = resource.forcedtimeoutwarning; addresource.ntdomain = resource.ntdomain; addresource.clientlessvpnmode = resource.clientlessvpnmode; addresource.emailhome = resource.emailhome; addresource.clientlessmodeurlencoding = resource.clientlessmodeurlencoding; addresource.clientlesspersistentcookie = resource.clientlesspersistentcookie; addresource.allowedlogingroups = resource.allowedlogingroups; addresource.securebrowse = resource.securebrowse; addresource.storefronturl = resource.storefronturl; addresource.kcdaccount = resource.kcdaccount; return addresource.add_resource(client); }
java
{ "resource": "" }
q10330
vpnsessionaction.update
train
public static base_response update(nitro_service client, vpnsessionaction resource) throws Exception { vpnsessionaction updateresource = new vpnsessionaction(); updateresource.name = resource.name; updateresource.httpport = resource.httpport; updateresource.winsip = resource.winsip; updateresource.dnsvservername = resource.dnsvservername; updateresource.splitdns = resource.splitdns; updateresource.sesstimeout = resource.sesstimeout; updateresource.clientsecurity = resource.clientsecurity; updateresource.clientsecuritygroup = resource.clientsecuritygroup; updateresource.clientsecuritymessage = resource.clientsecuritymessage; updateresource.clientsecuritylog = resource.clientsecuritylog; updateresource.splittunnel = resource.splittunnel; updateresource.locallanaccess = resource.locallanaccess; updateresource.rfc1918 = resource.rfc1918; updateresource.spoofiip = resource.spoofiip; updateresource.killconnections = resource.killconnections; updateresource.transparentinterception = resource.transparentinterception; updateresource.windowsclienttype = resource.windowsclienttype; updateresource.defaultauthorizationaction = resource.defaultauthorizationaction; updateresource.authorizationgroup = resource.authorizationgroup; updateresource.clientidletimeout = resource.clientidletimeout; updateresource.proxy = resource.proxy; updateresource.allprotocolproxy = resource.allprotocolproxy; updateresource.httpproxy = resource.httpproxy; updateresource.ftpproxy = resource.ftpproxy; updateresource.socksproxy = resource.socksproxy; updateresource.gopherproxy = resource.gopherproxy; updateresource.sslproxy = resource.sslproxy; updateresource.proxyexception = resource.proxyexception; updateresource.proxylocalbypass = resource.proxylocalbypass; updateresource.clientcleanupprompt = resource.clientcleanupprompt; updateresource.forcecleanup = resource.forcecleanup; updateresource.clientoptions = resource.clientoptions; updateresource.clientconfiguration = resource.clientconfiguration; updateresource.sso = resource.sso; updateresource.ssocredential = resource.ssocredential; updateresource.windowsautologon = resource.windowsautologon; updateresource.usemip = resource.usemip; updateresource.useiip = resource.useiip; updateresource.clientdebug = resource.clientdebug; updateresource.loginscript = resource.loginscript; updateresource.logoutscript = resource.logoutscript; updateresource.homepage = resource.homepage; updateresource.icaproxy = resource.icaproxy; updateresource.wihome = resource.wihome; updateresource.citrixreceiverhome = resource.citrixreceiverhome; updateresource.wiportalmode = resource.wiportalmode; updateresource.clientchoices = resource.clientchoices; updateresource.epaclienttype = resource.epaclienttype; updateresource.iipdnssuffix = resource.iipdnssuffix; updateresource.forcedtimeout = resource.forcedtimeout; updateresource.forcedtimeoutwarning = resource.forcedtimeoutwarning; updateresource.ntdomain = resource.ntdomain; updateresource.clientlessvpnmode = resource.clientlessvpnmode; updateresource.emailhome = resource.emailhome; updateresource.clientlessmodeurlencoding = resource.clientlessmodeurlencoding; updateresource.clientlesspersistentcookie = resource.clientlesspersistentcookie; updateresource.allowedlogingroups = resource.allowedlogingroups; updateresource.securebrowse = resource.securebrowse; updateresource.storefronturl = resource.storefronturl; updateresource.kcdaccount = resource.kcdaccount; return updateresource.update_resource(client); }
java
{ "resource": "" }
q10331
vpnsessionaction.get
train
public static vpnsessionaction[] get(nitro_service service) throws Exception{ vpnsessionaction obj = new vpnsessionaction(); vpnsessionaction[] response = (vpnsessionaction[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q10332
vpnsessionaction.get
train
public static vpnsessionaction get(nitro_service service, String name) throws Exception{ vpnsessionaction obj = new vpnsessionaction(); obj.set_name(name); vpnsessionaction response = (vpnsessionaction) obj.get_resource(service); return response; }
java
{ "resource": "" }
q10333
nslimitidentifier_binding.get
train
public static nslimitidentifier_binding get(nitro_service service, String limitidentifier) throws Exception{ nslimitidentifier_binding obj = new nslimitidentifier_binding(); obj.set_limitidentifier(limitidentifier); nslimitidentifier_binding response = (nslimitidentifier_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q10334
sslocspresponder.add
train
public static base_response add(nitro_service client, sslocspresponder resource) throws Exception { sslocspresponder addresource = new sslocspresponder(); addresource.name = resource.name; addresource.url = resource.url; addresource.cache = resource.cache; addresource.cachetimeout = resource.cachetimeout; addresource.batchingdepth = resource.batchingdepth; addresource.batchingdelay = resource.batchingdelay; addresource.resptimeout = resource.resptimeout; addresource.respondercert = resource.respondercert; addresource.trustresponder = resource.trustresponder; addresource.producedattimeskew = resource.producedattimeskew; addresource.signingcert = resource.signingcert; addresource.usenonce = resource.usenonce; addresource.insertclientcert = resource.insertclientcert; return addresource.add_resource(client); }
java
{ "resource": "" }
q10335
sslocspresponder.add
train
public static base_responses add(nitro_service client, sslocspresponder resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslocspresponder addresources[] = new sslocspresponder[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new sslocspresponder(); addresources[i].name = resources[i].name; addresources[i].url = resources[i].url; addresources[i].cache = resources[i].cache; addresources[i].cachetimeout = resources[i].cachetimeout; addresources[i].batchingdepth = resources[i].batchingdepth; addresources[i].batchingdelay = resources[i].batchingdelay; addresources[i].resptimeout = resources[i].resptimeout; addresources[i].respondercert = resources[i].respondercert; addresources[i].trustresponder = resources[i].trustresponder; addresources[i].producedattimeskew = resources[i].producedattimeskew; addresources[i].signingcert = resources[i].signingcert; addresources[i].usenonce = resources[i].usenonce; addresources[i].insertclientcert = resources[i].insertclientcert; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q10336
sslocspresponder.update
train
public static base_response update(nitro_service client, sslocspresponder resource) throws Exception { sslocspresponder updateresource = new sslocspresponder(); updateresource.name = resource.name; updateresource.url = resource.url; updateresource.cache = resource.cache; updateresource.cachetimeout = resource.cachetimeout; updateresource.batchingdepth = resource.batchingdepth; updateresource.batchingdelay = resource.batchingdelay; updateresource.resptimeout = resource.resptimeout; updateresource.respondercert = resource.respondercert; updateresource.trustresponder = resource.trustresponder; updateresource.producedattimeskew = resource.producedattimeskew; updateresource.signingcert = resource.signingcert; updateresource.usenonce = resource.usenonce; updateresource.insertclientcert = resource.insertclientcert; return updateresource.update_resource(client); }
java
{ "resource": "" }
q10337
sslocspresponder.update
train
public static base_responses update(nitro_service client, sslocspresponder resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslocspresponder updateresources[] = new sslocspresponder[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new sslocspresponder(); updateresources[i].name = resources[i].name; updateresources[i].url = resources[i].url; updateresources[i].cache = resources[i].cache; updateresources[i].cachetimeout = resources[i].cachetimeout; updateresources[i].batchingdepth = resources[i].batchingdepth; updateresources[i].batchingdelay = resources[i].batchingdelay; updateresources[i].resptimeout = resources[i].resptimeout; updateresources[i].respondercert = resources[i].respondercert; updateresources[i].trustresponder = resources[i].trustresponder; updateresources[i].producedattimeskew = resources[i].producedattimeskew; updateresources[i].signingcert = resources[i].signingcert; updateresources[i].usenonce = resources[i].usenonce; updateresources[i].insertclientcert = resources[i].insertclientcert; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q10338
sslocspresponder.unset
train
public static base_response unset(nitro_service client, sslocspresponder resource, String[] args) throws Exception{ sslocspresponder unsetresource = new sslocspresponder(); unsetresource.name = resource.name; unsetresource.insertclientcert = resource.insertclientcert; return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q10339
sslocspresponder.get
train
public static sslocspresponder[] get(nitro_service service) throws Exception{ sslocspresponder obj = new sslocspresponder(); sslocspresponder[] response = (sslocspresponder[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q10340
sslocspresponder.get
train
public static sslocspresponder get(nitro_service service, String name) throws Exception{ sslocspresponder obj = new sslocspresponder(); obj.set_name(name); sslocspresponder response = (sslocspresponder) obj.get_resource(service); return response; }
java
{ "resource": "" }
q10341
nslimitselector.add
train
public static base_response add(nitro_service client, nslimitselector resource) throws Exception { nslimitselector addresource = new nslimitselector(); addresource.selectorname = resource.selectorname; addresource.rule = resource.rule; return addresource.add_resource(client); }
java
{ "resource": "" }
q10342
nslimitselector.update
train
public static base_responses update(nitro_service client, nslimitselector resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nslimitselector updateresources[] = new nslimitselector[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nslimitselector(); updateresources[i].selectorname = resources[i].selectorname; updateresources[i].rule = resources[i].rule; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q10343
nslimitselector.unset
train
public static base_response unset(nitro_service client, nslimitselector resource, String[] args) throws Exception{ nslimitselector unsetresource = new nslimitselector(); unsetresource.selectorname = resource.selectorname; return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q10344
nslimitselector.unset
train
public static base_responses unset(nitro_service client, String selectorname[], String args[]) throws Exception { base_responses result = null; if (selectorname != null && selectorname.length > 0) { nslimitselector unsetresources[] = new nslimitselector[selectorname.length]; for (int i=0;i<selectorname.length;i++){ unsetresources[i] = new nslimitselector(); unsetresources[i].selectorname = selectorname[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
{ "resource": "" }
q10345
nslimitselector.get
train
public static nslimitselector[] get(nitro_service service) throws Exception{ nslimitselector obj = new nslimitselector(); nslimitselector[] response = (nslimitselector[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q10346
nslimitselector.get
train
public static nslimitselector get(nitro_service service, String selectorname) throws Exception{ nslimitselector obj = new nslimitselector(); obj.set_selectorname(selectorname); nslimitselector response = (nslimitselector) obj.get_resource(service); return response; }
java
{ "resource": "" }
q10347
nstrafficdomain_binding.get
train
public static nstrafficdomain_binding get(nitro_service service, Long td) throws Exception{ nstrafficdomain_binding obj = new nstrafficdomain_binding(); obj.set_td(td); nstrafficdomain_binding response = (nstrafficdomain_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q10348
nstrafficdomain_binding.get
train
public static nstrafficdomain_binding[] get(nitro_service service, Long td[]) throws Exception{ if (td !=null && td.length>0) { nstrafficdomain_binding response[] = new nstrafficdomain_binding[td.length]; nstrafficdomain_binding obj[] = new nstrafficdomain_binding[td.length]; for (int i=0;i<td.length;i++) { obj[i] = new nstrafficdomain_binding(); obj[i].set_td(td[i]); response[i] = (nstrafficdomain_binding) obj[i].get_resource(service); } return response; } return null; }
java
{ "resource": "" }
q10349
cmppolicylabel_cmppolicy_binding.get
train
public static cmppolicylabel_cmppolicy_binding[] get(nitro_service service, String labelname) throws Exception{ cmppolicylabel_cmppolicy_binding obj = new cmppolicylabel_cmppolicy_binding(); obj.set_labelname(labelname); cmppolicylabel_cmppolicy_binding response[] = (cmppolicylabel_cmppolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q10350
appfwlearningsettings.update
train
public static base_response update(nitro_service client, appfwlearningsettings resource) throws Exception { appfwlearningsettings updateresource = new appfwlearningsettings(); updateresource.profilename = resource.profilename; updateresource.starturlminthreshold = resource.starturlminthreshold; updateresource.starturlpercentthreshold = resource.starturlpercentthreshold; updateresource.cookieconsistencyminthreshold = resource.cookieconsistencyminthreshold; updateresource.cookieconsistencypercentthreshold = resource.cookieconsistencypercentthreshold; updateresource.csrftagminthreshold = resource.csrftagminthreshold; updateresource.csrftagpercentthreshold = resource.csrftagpercentthreshold; updateresource.fieldconsistencyminthreshold = resource.fieldconsistencyminthreshold; updateresource.fieldconsistencypercentthreshold = resource.fieldconsistencypercentthreshold; updateresource.crosssitescriptingminthreshold = resource.crosssitescriptingminthreshold; updateresource.crosssitescriptingpercentthreshold = resource.crosssitescriptingpercentthreshold; updateresource.sqlinjectionminthreshold = resource.sqlinjectionminthreshold; updateresource.sqlinjectionpercentthreshold = resource.sqlinjectionpercentthreshold; updateresource.fieldformatminthreshold = resource.fieldformatminthreshold; updateresource.fieldformatpercentthreshold = resource.fieldformatpercentthreshold; updateresource.xmlwsiminthreshold = resource.xmlwsiminthreshold; updateresource.xmlwsipercentthreshold = resource.xmlwsipercentthreshold; updateresource.xmlattachmentminthreshold = resource.xmlattachmentminthreshold; updateresource.xmlattachmentpercentthreshold = resource.xmlattachmentpercentthreshold; return updateresource.update_resource(client); }
java
{ "resource": "" }
q10351
appfwlearningsettings.update
train
public static base_responses update(nitro_service client, appfwlearningsettings resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwlearningsettings updateresources[] = new appfwlearningsettings[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new appfwlearningsettings(); updateresources[i].profilename = resources[i].profilename; updateresources[i].starturlminthreshold = resources[i].starturlminthreshold; updateresources[i].starturlpercentthreshold = resources[i].starturlpercentthreshold; updateresources[i].cookieconsistencyminthreshold = resources[i].cookieconsistencyminthreshold; updateresources[i].cookieconsistencypercentthreshold = resources[i].cookieconsistencypercentthreshold; updateresources[i].csrftagminthreshold = resources[i].csrftagminthreshold; updateresources[i].csrftagpercentthreshold = resources[i].csrftagpercentthreshold; updateresources[i].fieldconsistencyminthreshold = resources[i].fieldconsistencyminthreshold; updateresources[i].fieldconsistencypercentthreshold = resources[i].fieldconsistencypercentthreshold; updateresources[i].crosssitescriptingminthreshold = resources[i].crosssitescriptingminthreshold; updateresources[i].crosssitescriptingpercentthreshold = resources[i].crosssitescriptingpercentthreshold; updateresources[i].sqlinjectionminthreshold = resources[i].sqlinjectionminthreshold; updateresources[i].sqlinjectionpercentthreshold = resources[i].sqlinjectionpercentthreshold; updateresources[i].fieldformatminthreshold = resources[i].fieldformatminthreshold; updateresources[i].fieldformatpercentthreshold = resources[i].fieldformatpercentthreshold; updateresources[i].xmlwsiminthreshold = resources[i].xmlwsiminthreshold; updateresources[i].xmlwsipercentthreshold = resources[i].xmlwsipercentthreshold; updateresources[i].xmlattachmentminthreshold = resources[i].xmlattachmentminthreshold; updateresources[i].xmlattachmentpercentthreshold = resources[i].xmlattachmentpercentthreshold; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q10352
appfwlearningsettings.get
train
public static appfwlearningsettings[] get(nitro_service service) throws Exception{ appfwlearningsettings obj = new appfwlearningsettings(); appfwlearningsettings[] response = (appfwlearningsettings[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q10353
appfwlearningsettings.get
train
public static appfwlearningsettings get(nitro_service service, String profilename) throws Exception{ appfwlearningsettings obj = new appfwlearningsettings(); obj.set_profilename(profilename); appfwlearningsettings response = (appfwlearningsettings) obj.get_resource(service); return response; }
java
{ "resource": "" }
q10354
appfwlearningsettings.get_filtered
train
public static appfwlearningsettings[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ appfwlearningsettings obj = new appfwlearningsettings(); options option = new options(); option.set_filter(filter); appfwlearningsettings[] response = (appfwlearningsettings[]) obj.getfiltered(service, option); return response; }
java
{ "resource": "" }
q10355
lbvserver_appflowpolicy_binding.get
train
public static lbvserver_appflowpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_appflowpolicy_binding obj = new lbvserver_appflowpolicy_binding(); obj.set_name(name); lbvserver_appflowpolicy_binding response[] = (lbvserver_appflowpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q10356
dnsaaaarec.add
train
public static base_response add(nitro_service client, dnsaaaarec resource) throws Exception { dnsaaaarec addresource = new dnsaaaarec(); addresource.hostname = resource.hostname; addresource.ipv6address = resource.ipv6address; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
{ "resource": "" }
q10357
dnsaaaarec.add
train
public static base_responses add(nitro_service client, dnsaaaarec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaaaarec addresources[] = new dnsaaaarec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnsaaaarec(); addresources[i].hostname = resources[i].hostname; addresources[i].ipv6address = resources[i].ipv6address; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q10358
dnsaaaarec.delete
train
public static base_response delete(nitro_service client, dnsaaaarec resource) throws Exception { dnsaaaarec deleteresource = new dnsaaaarec(); deleteresource.hostname = resource.hostname; deleteresource.ipv6address = resource.ipv6address; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q10359
dnsaaaarec.delete
train
public static base_responses delete(nitro_service client, String hostname[]) throws Exception { base_responses result = null; if (hostname != null && hostname.length > 0) { dnsaaaarec deleteresources[] = new dnsaaaarec[hostname.length]; for (int i=0;i<hostname.length;i++){ deleteresources[i] = new dnsaaaarec(); deleteresources[i].hostname = hostname[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
{ "resource": "" }
q10360
dnsaaaarec.delete
train
public static base_responses delete(nitro_service client, dnsaaaarec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaaaarec deleteresources[] = new dnsaaaarec[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new dnsaaaarec(); deleteresources[i].hostname = resources[i].hostname; deleteresources[i].ipv6address = resources[i].ipv6address; } result = delete_bulk_request(client, deleteresources); } return result; }
java
{ "resource": "" }
q10361
dnsaaaarec.get
train
public static dnsaaaarec[] get(nitro_service service) throws Exception{ dnsaaaarec obj = new dnsaaaarec(); dnsaaaarec[] response = (dnsaaaarec[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q10362
dnsaaaarec.get
train
public static dnsaaaarec[] get(nitro_service service, dnsaaaarec_args args) throws Exception{ dnsaaaarec obj = new dnsaaaarec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnsaaaarec[] response = (dnsaaaarec[])obj.get_resources(service, option); return response; }
java
{ "resource": "" }
q10363
MtasFieldsProducer.addIndexInputToList
train
private String addIndexInputToList(String name, IndexInput in, String postingsFormatName) throws IOException { if (indexInputList.get(name) != null) { indexInputList.get(name).close(); } if (in != null) { String localPostingsFormatName = postingsFormatName; if (localPostingsFormatName == null) { localPostingsFormatName = in.readString(); } else if (!in.readString().equals(localPostingsFormatName)) { throw new IOException("delegate codec " + name + " doesn't equal " + localPostingsFormatName); } indexInputList.put(name, in); indexInputOffsetList.put(name, in.getFilePointer()); return localPostingsFormatName; } else { log.debug("no " + name + " registered"); return null; } }
java
{ "resource": "" }
q10364
appfwprofile_cookieconsistency_binding.get
train
public static appfwprofile_cookieconsistency_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_cookieconsistency_binding obj = new appfwprofile_cookieconsistency_binding(); obj.set_name(name); appfwprofile_cookieconsistency_binding response[] = (appfwprofile_cookieconsistency_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q10365
rnatip_stats.get
train
public static rnatip_stats[] get(nitro_service service, options option) throws Exception{ rnatip_stats obj = new rnatip_stats(); rnatip_stats[] response = (rnatip_stats[])obj.stat_resources(service,option); return response; }
java
{ "resource": "" }
q10366
rnatip_stats.get
train
public static rnatip_stats get(nitro_service service, String Rnatip) throws Exception{ rnatip_stats obj = new rnatip_stats(); obj.set_Rnatip(Rnatip); rnatip_stats response = (rnatip_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }
q10367
clusternodegroup_binding.get
train
public static clusternodegroup_binding get(nitro_service service, String name) throws Exception{ clusternodegroup_binding obj = new clusternodegroup_binding(); obj.set_name(name); clusternodegroup_binding response = (clusternodegroup_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q10368
lbvserver_servicegroupmember_binding.get
train
public static lbvserver_servicegroupmember_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_servicegroupmember_binding obj = new lbvserver_servicegroupmember_binding(); obj.set_name(name); lbvserver_servicegroupmember_binding response[] = (lbvserver_servicegroupmember_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q10369
PennTreeReader.main
train
public static void main(String[] args) { try { TreeFactory tf = new LabeledScoredTreeFactory(); Reader r = new BufferedReader(new InputStreamReader(new FileInputStream(args[0]), "UTF-8")); TreeReader tr = new PennTreeReader(r, tf); Tree t = tr.readTree(); while (t != null) { System.out.println(t); System.out.println(); t = tr.readTree(); } r.close(); } catch (IOException ioe) { ioe.printStackTrace(); } }
java
{ "resource": "" }
q10370
Interface.clear
train
public static base_response clear(nitro_service client, Interface resource) throws Exception { Interface clearresource = new Interface(); clearresource.id = resource.id; return clearresource.perform_operation(client,"clear"); }
java
{ "resource": "" }
q10371
Interface.clear
train
public static base_responses clear(nitro_service client, Interface resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { Interface clearresources[] = new Interface[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new Interface(); clearresources[i].id = resources[i].id; } result = perform_operation_bulk_request(client, clearresources,"clear"); } return result; }
java
{ "resource": "" }
q10372
Interface.update
train
public static base_response update(nitro_service client, Interface resource) throws Exception { Interface updateresource = new Interface(); updateresource.id = resource.id; updateresource.speed = resource.speed; updateresource.duplex = resource.duplex; updateresource.flowctl = resource.flowctl; updateresource.autoneg = resource.autoneg; updateresource.hamonitor = resource.hamonitor; updateresource.tagall = resource.tagall; updateresource.trunk = resource.trunk; updateresource.lacpmode = resource.lacpmode; updateresource.lacpkey = resource.lacpkey; updateresource.lagtype = resource.lagtype; updateresource.lacppriority = resource.lacppriority; updateresource.lacptimeout = resource.lacptimeout; updateresource.ifalias = resource.ifalias; updateresource.throughput = resource.throughput; updateresource.bandwidthhigh = resource.bandwidthhigh; updateresource.bandwidthnormal = resource.bandwidthnormal; return updateresource.update_resource(client); }
java
{ "resource": "" }
q10373
Interface.update
train
public static base_responses update(nitro_service client, Interface resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { Interface updateresources[] = new Interface[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new Interface(); updateresources[i].id = resources[i].id; updateresources[i].speed = resources[i].speed; updateresources[i].duplex = resources[i].duplex; updateresources[i].flowctl = resources[i].flowctl; updateresources[i].autoneg = resources[i].autoneg; updateresources[i].hamonitor = resources[i].hamonitor; updateresources[i].tagall = resources[i].tagall; updateresources[i].trunk = resources[i].trunk; updateresources[i].lacpmode = resources[i].lacpmode; updateresources[i].lacpkey = resources[i].lacpkey; updateresources[i].lagtype = resources[i].lagtype; updateresources[i].lacppriority = resources[i].lacppriority; updateresources[i].lacptimeout = resources[i].lacptimeout; updateresources[i].ifalias = resources[i].ifalias; updateresources[i].throughput = resources[i].throughput; updateresources[i].bandwidthhigh = resources[i].bandwidthhigh; updateresources[i].bandwidthnormal = resources[i].bandwidthnormal; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q10374
Interface.unset
train
public static base_response unset(nitro_service client, Interface resource, String[] args) throws Exception{ Interface unsetresource = new Interface(); unsetresource.id = resource.id; return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q10375
Interface.enable
train
public static base_response enable(nitro_service client, String id) throws Exception { Interface enableresource = new Interface(); enableresource.id = id; return enableresource.perform_operation(client,"enable"); }
java
{ "resource": "" }
q10376
Interface.enable
train
public static base_responses enable(nitro_service client, String id[]) throws Exception { base_responses result = null; if (id != null && id.length > 0) { Interface enableresources[] = new Interface[id.length]; for (int i=0;i<id.length;i++){ enableresources[i] = new Interface(); enableresources[i].id = id[i]; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
java
{ "resource": "" }
q10377
Interface.disable
train
public static base_response disable(nitro_service client, String id) throws Exception { Interface disableresource = new Interface(); disableresource.id = id; return disableresource.perform_operation(client,"disable"); }
java
{ "resource": "" }
q10378
Interface.disable
train
public static base_responses disable(nitro_service client, String id[]) throws Exception { base_responses result = null; if (id != null && id.length > 0) { Interface disableresources[] = new Interface[id.length]; for (int i=0;i<id.length;i++){ disableresources[i] = new Interface(); disableresources[i].id = id[i]; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
java
{ "resource": "" }
q10379
Interface.reset
train
public static base_response reset(nitro_service client, Interface resource) throws Exception { Interface resetresource = new Interface(); resetresource.id = resource.id; return resetresource.perform_operation(client,"reset"); }
java
{ "resource": "" }
q10380
Interface.reset
train
public static base_responses reset(nitro_service client, Interface resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { Interface resetresources[] = new Interface[resources.length]; for (int i=0;i<resources.length;i++){ resetresources[i] = new Interface(); resetresources[i].id = resources[i].id; } result = perform_operation_bulk_request(client, resetresources,"reset"); } return result; }
java
{ "resource": "" }
q10381
Interface.get
train
public static Interface[] get(nitro_service service) throws Exception{ Interface obj = new Interface(); Interface[] response = (Interface[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q10382
Interface.get
train
public static Interface get(nitro_service service, String id) throws Exception{ Interface obj = new Interface(); obj.set_id(id); Interface response = (Interface) obj.get_resource(service); return response; }
java
{ "resource": "" }
q10383
DeltaMap.containsKey
train
@Override public boolean containsKey(Object key) { // key could be not in original or in deltaMap // key could be not in original but in deltaMap // key could be in original but removed from deltaMap // key could be in original but mapped to something else in deltaMap Object value = deltaMap.get(key); if (value == null) { return originalMap.containsKey(key); } if (value == removedValue) { return false; } return true; }
java
{ "resource": "" }
q10384
DeltaMap.get
train
@Override public V get(Object key) { // key could be not in original or in deltaMap // key could be not in original but in deltaMap // key could be in original but removed from deltaMap // key could be in original but mapped to something else in deltaMap V deltaResult = deltaMap.get(key); if (deltaResult == null) { return originalMap.get(key); } if (deltaResult == nullValue) { return null; } if (deltaResult == removedValue) { return null; } return deltaResult; }
java
{ "resource": "" }
q10385
DeltaMap.put
train
@Override @SuppressWarnings("unchecked") public V put(K key, V value) { if (value == null) { return put(key, (V)nullValue); } // key could be not in original or in deltaMap // key could be not in original but in deltaMap // key could be in original but removed from deltaMap // key could be in original but mapped to something else in deltaMap V result = deltaMap.put(key, value); if (result == null) { return originalMap.get(key); } if (result == nullValue) { return null; } if (result == removedValue) { return null; } return result; }
java
{ "resource": "" }
q10386
vpnvserver_cachepolicy_binding.get
train
public static vpnvserver_cachepolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_cachepolicy_binding obj = new vpnvserver_cachepolicy_binding(); obj.set_name(name); vpnvserver_cachepolicy_binding response[] = (vpnvserver_cachepolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q10387
bridgetable.update
train
public static base_response update(nitro_service client, bridgetable resource) throws Exception { bridgetable updateresource = new bridgetable(); updateresource.bridgeage = resource.bridgeage; return updateresource.update_resource(client); }
java
{ "resource": "" }
q10388
bridgetable.update
train
public static base_responses update(nitro_service client, bridgetable resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { bridgetable updateresources[] = new bridgetable[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new bridgetable(); updateresources[i].bridgeage = resources[i].bridgeage; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q10389
bridgetable.unset
train
public static base_response unset(nitro_service client, bridgetable resource, String[] args) throws Exception{ bridgetable unsetresource = new bridgetable(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q10390
bridgetable.unset
train
public static base_responses unset(nitro_service client, bridgetable resources[], String[] args) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { bridgetable unsetresources[] = new bridgetable[resources.length]; for (int i=0;i<resources.length;i++){ unsetresources[i] = new bridgetable(); } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
{ "resource": "" }
q10391
bridgetable.clear
train
public static base_response clear(nitro_service client, bridgetable resource) throws Exception { bridgetable clearresource = new bridgetable(); clearresource.vlan = resource.vlan; clearresource.ifnum = resource.ifnum; return clearresource.perform_operation(client,"clear"); }
java
{ "resource": "" }
q10392
bridgetable.clear
train
public static base_responses clear(nitro_service client, bridgetable resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { bridgetable clearresources[] = new bridgetable[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new bridgetable(); clearresources[i].vlan = resources[i].vlan; clearresources[i].ifnum = resources[i].ifnum; } result = perform_operation_bulk_request(client, clearresources,"clear"); } return result; }
java
{ "resource": "" }
q10393
bridgetable.get
train
public static bridgetable[] get(nitro_service service) throws Exception{ bridgetable obj = new bridgetable(); bridgetable[] response = (bridgetable[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q10394
nsdiameter.update
train
public static base_response update(nitro_service client, nsdiameter resource) throws Exception { nsdiameter updateresource = new nsdiameter(); updateresource.identity = resource.identity; updateresource.realm = resource.realm; updateresource.serverclosepropagation = resource.serverclosepropagation; return updateresource.update_resource(client); }
java
{ "resource": "" }
q10395
nsdiameter.unset
train
public static base_response unset(nitro_service client, nsdiameter resource, String[] args) throws Exception{ nsdiameter unsetresource = new nsdiameter(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q10396
nsdiameter.get
train
public static nsdiameter get(nitro_service service) throws Exception{ nsdiameter obj = new nsdiameter(); nsdiameter[] response = (nsdiameter[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q10397
gslbservice.add
train
public static base_response add(nitro_service client, gslbservice resource) throws Exception { gslbservice addresource = new gslbservice(); addresource.servicename = resource.servicename; addresource.cnameentry = resource.cnameentry; addresource.ip = resource.ip; addresource.servername = resource.servername; addresource.servicetype = resource.servicetype; addresource.port = resource.port; addresource.publicip = resource.publicip; addresource.publicport = resource.publicport; addresource.maxclient = resource.maxclient; addresource.healthmonitor = resource.healthmonitor; addresource.sitename = resource.sitename; addresource.state = resource.state; addresource.cip = resource.cip; addresource.cipheader = resource.cipheader; addresource.sitepersistence = resource.sitepersistence; addresource.cookietimeout = resource.cookietimeout; addresource.siteprefix = resource.siteprefix; addresource.clttimeout = resource.clttimeout; addresource.svrtimeout = resource.svrtimeout; addresource.maxbandwidth = resource.maxbandwidth; addresource.downstateflush = resource.downstateflush; addresource.maxaaausers = resource.maxaaausers; addresource.monthreshold = resource.monthreshold; addresource.hashid = resource.hashid; addresource.comment = resource.comment; addresource.appflowlog = resource.appflowlog; return addresource.add_resource(client); }
java
{ "resource": "" }
q10398
gslbservice.add
train
public static base_responses add(nitro_service client, gslbservice resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { gslbservice addresources[] = new gslbservice[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new gslbservice(); addresources[i].servicename = resources[i].servicename; addresources[i].cnameentry = resources[i].cnameentry; addresources[i].ip = resources[i].ip; addresources[i].servername = resources[i].servername; addresources[i].servicetype = resources[i].servicetype; addresources[i].port = resources[i].port; addresources[i].publicip = resources[i].publicip; addresources[i].publicport = resources[i].publicport; addresources[i].maxclient = resources[i].maxclient; addresources[i].healthmonitor = resources[i].healthmonitor; addresources[i].sitename = resources[i].sitename; addresources[i].state = resources[i].state; addresources[i].cip = resources[i].cip; addresources[i].cipheader = resources[i].cipheader; addresources[i].sitepersistence = resources[i].sitepersistence; addresources[i].cookietimeout = resources[i].cookietimeout; addresources[i].siteprefix = resources[i].siteprefix; addresources[i].clttimeout = resources[i].clttimeout; addresources[i].svrtimeout = resources[i].svrtimeout; addresources[i].maxbandwidth = resources[i].maxbandwidth; addresources[i].downstateflush = resources[i].downstateflush; addresources[i].maxaaausers = resources[i].maxaaausers; addresources[i].monthreshold = resources[i].monthreshold; addresources[i].hashid = resources[i].hashid; addresources[i].comment = resources[i].comment; addresources[i].appflowlog = resources[i].appflowlog; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q10399
gslbservice.delete
train
public static base_response delete(nitro_service client, String servicename) throws Exception { gslbservice deleteresource = new gslbservice(); deleteresource.servicename = servicename; return deleteresource.delete_resource(client); }
java
{ "resource": "" }