repo
stringlengths 7
58
| path
stringlengths 12
218
| func_name
stringlengths 3
140
| original_string
stringlengths 73
34.1k
| language
stringclasses 1
value | code
stringlengths 73
34.1k
| code_tokens
sequence | docstring
stringlengths 3
16k
| docstring_tokens
sequence | sha
stringlengths 40
40
| url
stringlengths 105
339
| partition
stringclasses 1
value |
---|---|---|---|---|---|---|---|---|---|---|---|
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/rsskeytype.java | rsskeytype.update | public static base_response update(nitro_service client, rsskeytype resource) throws Exception {
rsskeytype updateresource = new rsskeytype();
updateresource.rsstype = resource.rsstype;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, rsskeytype resource) throws Exception {
rsskeytype updateresource = new rsskeytype();
updateresource.rsstype = resource.rsstype;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"rsskeytype",
"resource",
")",
"throws",
"Exception",
"{",
"rsskeytype",
"updateresource",
"=",
"new",
"rsskeytype",
"(",
")",
";",
"updateresource",
".",
"rsstype",
"=",
"resource",
".",
"rsstype",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update rsskeytype. | [
"Use",
"this",
"API",
"to",
"update",
"rsskeytype",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/rsskeytype.java#L94-L98 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/rsskeytype.java | rsskeytype.get | public static rsskeytype get(nitro_service service) throws Exception{
rsskeytype obj = new rsskeytype();
rsskeytype[] response = (rsskeytype[])obj.get_resources(service);
return response[0];
} | java | public static rsskeytype get(nitro_service service) throws Exception{
rsskeytype obj = new rsskeytype();
rsskeytype[] response = (rsskeytype[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"rsskeytype",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"rsskeytype",
"obj",
"=",
"new",
"rsskeytype",
"(",
")",
";",
"rsskeytype",
"[",
"]",
"response",
"=",
"(",
"rsskeytype",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the rsskeytype resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"rsskeytype",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/rsskeytype.java#L103-L107 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpntrafficpolicy_vpnglobal_binding.java | vpntrafficpolicy_vpnglobal_binding.get | public static vpntrafficpolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{
vpntrafficpolicy_vpnglobal_binding obj = new vpntrafficpolicy_vpnglobal_binding();
obj.set_name(name);
vpntrafficpolicy_vpnglobal_binding response[] = (vpntrafficpolicy_vpnglobal_binding[]) obj.get_resources(service);
return response;
} | java | public static vpntrafficpolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{
vpntrafficpolicy_vpnglobal_binding obj = new vpntrafficpolicy_vpnglobal_binding();
obj.set_name(name);
vpntrafficpolicy_vpnglobal_binding response[] = (vpntrafficpolicy_vpnglobal_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vpntrafficpolicy_vpnglobal_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vpntrafficpolicy_vpnglobal_binding",
"obj",
"=",
"new",
"vpntrafficpolicy_vpnglobal_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"vpntrafficpolicy_vpnglobal_binding",
"response",
"[",
"]",
"=",
"(",
"vpntrafficpolicy_vpnglobal_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch vpntrafficpolicy_vpnglobal_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vpntrafficpolicy_vpnglobal_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpntrafficpolicy_vpnglobal_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmglobal_tmsessionpolicy_binding.java | tmglobal_tmsessionpolicy_binding.get | public static tmglobal_tmsessionpolicy_binding[] get(nitro_service service) throws Exception{
tmglobal_tmsessionpolicy_binding obj = new tmglobal_tmsessionpolicy_binding();
tmglobal_tmsessionpolicy_binding response[] = (tmglobal_tmsessionpolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static tmglobal_tmsessionpolicy_binding[] get(nitro_service service) throws Exception{
tmglobal_tmsessionpolicy_binding obj = new tmglobal_tmsessionpolicy_binding();
tmglobal_tmsessionpolicy_binding response[] = (tmglobal_tmsessionpolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"tmglobal_tmsessionpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"tmglobal_tmsessionpolicy_binding",
"obj",
"=",
"new",
"tmglobal_tmsessionpolicy_binding",
"(",
")",
";",
"tmglobal_tmsessionpolicy_binding",
"response",
"[",
"]",
"=",
"(",
"tmglobal_tmsessionpolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a tmglobal_tmsessionpolicy_binding resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"tmglobal_tmsessionpolicy_binding",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmglobal_tmsessionpolicy_binding.java#L190-L194 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemglobal_authenticationldappolicy_binding.java | systemglobal_authenticationldappolicy_binding.get | public static systemglobal_authenticationldappolicy_binding[] get(nitro_service service) throws Exception{
systemglobal_authenticationldappolicy_binding obj = new systemglobal_authenticationldappolicy_binding();
systemglobal_authenticationldappolicy_binding response[] = (systemglobal_authenticationldappolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static systemglobal_authenticationldappolicy_binding[] get(nitro_service service) throws Exception{
systemglobal_authenticationldappolicy_binding obj = new systemglobal_authenticationldappolicy_binding();
systemglobal_authenticationldappolicy_binding response[] = (systemglobal_authenticationldappolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"systemglobal_authenticationldappolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"systemglobal_authenticationldappolicy_binding",
"obj",
"=",
"new",
"systemglobal_authenticationldappolicy_binding",
"(",
")",
";",
"systemglobal_authenticationldappolicy_binding",
"response",
"[",
"]",
"=",
"(",
"systemglobal_authenticationldappolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a systemglobal_authenticationldappolicy_binding resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"systemglobal_authenticationldappolicy_binding",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemglobal_authenticationldappolicy_binding.java#L180-L184 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationvserver_authenticationradiuspolicy_binding.java | authenticationvserver_authenticationradiuspolicy_binding.get | public static authenticationvserver_authenticationradiuspolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_authenticationradiuspolicy_binding obj = new authenticationvserver_authenticationradiuspolicy_binding();
obj.set_name(name);
authenticationvserver_authenticationradiuspolicy_binding response[] = (authenticationvserver_authenticationradiuspolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static authenticationvserver_authenticationradiuspolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_authenticationradiuspolicy_binding obj = new authenticationvserver_authenticationradiuspolicy_binding();
obj.set_name(name);
authenticationvserver_authenticationradiuspolicy_binding response[] = (authenticationvserver_authenticationradiuspolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"authenticationvserver_authenticationradiuspolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"authenticationvserver_authenticationradiuspolicy_binding",
"obj",
"=",
"new",
"authenticationvserver_authenticationradiuspolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"authenticationvserver_authenticationradiuspolicy_binding",
"response",
"[",
"]",
"=",
"(",
"authenticationvserver_authenticationradiuspolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch authenticationvserver_authenticationradiuspolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"authenticationvserver_authenticationradiuspolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationvserver_authenticationradiuspolicy_binding.java#L264-L269 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditnslogpolicy_authenticationvserver_binding.java | auditnslogpolicy_authenticationvserver_binding.get | public static auditnslogpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{
auditnslogpolicy_authenticationvserver_binding obj = new auditnslogpolicy_authenticationvserver_binding();
obj.set_name(name);
auditnslogpolicy_authenticationvserver_binding response[] = (auditnslogpolicy_authenticationvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static auditnslogpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{
auditnslogpolicy_authenticationvserver_binding obj = new auditnslogpolicy_authenticationvserver_binding();
obj.set_name(name);
auditnslogpolicy_authenticationvserver_binding response[] = (auditnslogpolicy_authenticationvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"auditnslogpolicy_authenticationvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"auditnslogpolicy_authenticationvserver_binding",
"obj",
"=",
"new",
"auditnslogpolicy_authenticationvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"auditnslogpolicy_authenticationvserver_binding",
"response",
"[",
"]",
"=",
"(",
"auditnslogpolicy_authenticationvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch auditnslogpolicy_authenticationvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"auditnslogpolicy_authenticationvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditnslogpolicy_authenticationvserver_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/vlan_nsip6_binding.java | vlan_nsip6_binding.get | public static vlan_nsip6_binding[] get(nitro_service service, Long id) throws Exception{
vlan_nsip6_binding obj = new vlan_nsip6_binding();
obj.set_id(id);
vlan_nsip6_binding response[] = (vlan_nsip6_binding[]) obj.get_resources(service);
return response;
} | java | public static vlan_nsip6_binding[] get(nitro_service service, Long id) throws Exception{
vlan_nsip6_binding obj = new vlan_nsip6_binding();
obj.set_id(id);
vlan_nsip6_binding response[] = (vlan_nsip6_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vlan_nsip6_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"id",
")",
"throws",
"Exception",
"{",
"vlan_nsip6_binding",
"obj",
"=",
"new",
"vlan_nsip6_binding",
"(",
")",
";",
"obj",
".",
"set_id",
"(",
"id",
")",
";",
"vlan_nsip6_binding",
"response",
"[",
"]",
"=",
"(",
"vlan_nsip6_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch vlan_nsip6_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vlan_nsip6_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/vlan_nsip6_binding.java#L221-L226 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicylabel.java | appflowpolicylabel.get | public static appflowpolicylabel[] get(nitro_service service) throws Exception{
appflowpolicylabel obj = new appflowpolicylabel();
appflowpolicylabel[] response = (appflowpolicylabel[])obj.get_resources(service);
return response;
} | java | public static appflowpolicylabel[] get(nitro_service service) throws Exception{
appflowpolicylabel obj = new appflowpolicylabel();
appflowpolicylabel[] response = (appflowpolicylabel[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"appflowpolicylabel",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appflowpolicylabel",
"obj",
"=",
"new",
"appflowpolicylabel",
"(",
")",
";",
"appflowpolicylabel",
"[",
"]",
"response",
"=",
"(",
"appflowpolicylabel",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the appflowpolicylabel resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"appflowpolicylabel",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicylabel.java#L333-L337 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicylabel.java | appflowpolicylabel.get | public static appflowpolicylabel get(nitro_service service, String labelname) throws Exception{
appflowpolicylabel obj = new appflowpolicylabel();
obj.set_labelname(labelname);
appflowpolicylabel response = (appflowpolicylabel) obj.get_resource(service);
return response;
} | java | public static appflowpolicylabel get(nitro_service service, String labelname) throws Exception{
appflowpolicylabel obj = new appflowpolicylabel();
obj.set_labelname(labelname);
appflowpolicylabel response = (appflowpolicylabel) obj.get_resource(service);
return response;
} | [
"public",
"static",
"appflowpolicylabel",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"labelname",
")",
"throws",
"Exception",
"{",
"appflowpolicylabel",
"obj",
"=",
"new",
"appflowpolicylabel",
"(",
")",
";",
"obj",
".",
"set_labelname",
"(",
"labelname",
")",
";",
"appflowpolicylabel",
"response",
"=",
"(",
"appflowpolicylabel",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch appflowpolicylabel resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appflowpolicylabel",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicylabel.java#L349-L354 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/ns/nslimitidentifier_stats.java | nslimitidentifier_stats.get | public static nslimitidentifier_stats[] get(nitro_service service) throws Exception{
nslimitidentifier_stats obj = new nslimitidentifier_stats();
nslimitidentifier_stats[] response = (nslimitidentifier_stats[])obj.stat_resources(service);
return response;
} | java | public static nslimitidentifier_stats[] get(nitro_service service) throws Exception{
nslimitidentifier_stats obj = new nslimitidentifier_stats();
nslimitidentifier_stats[] response = (nslimitidentifier_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"nslimitidentifier_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nslimitidentifier_stats",
"obj",
"=",
"new",
"nslimitidentifier_stats",
"(",
")",
";",
"nslimitidentifier_stats",
"[",
"]",
"response",
"=",
"(",
"nslimitidentifier_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all nslimitidentifier_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"nslimitidentifier_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/ns/nslimitidentifier_stats.java#L198-L202 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/ns/nslimitidentifier_stats.java | nslimitidentifier_stats.get | public static nslimitidentifier_stats get(nitro_service service, String name) throws Exception{
nslimitidentifier_stats obj = new nslimitidentifier_stats();
obj.set_name(name);
nslimitidentifier_stats response = (nslimitidentifier_stats) obj.stat_resource(service);
return response;
} | java | public static nslimitidentifier_stats get(nitro_service service, String name) throws Exception{
nslimitidentifier_stats obj = new nslimitidentifier_stats();
obj.set_name(name);
nslimitidentifier_stats response = (nslimitidentifier_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"nslimitidentifier_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"nslimitidentifier_stats",
"obj",
"=",
"new",
"nslimitidentifier_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"nslimitidentifier_stats",
"response",
"=",
"(",
"nslimitidentifier_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of nslimitidentifier_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"nslimitidentifier_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/ns/nslimitidentifier_stats.java#L216-L221 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java | cachecontentgroup.add | public static base_response add(nitro_service client, cachecontentgroup resource) throws Exception {
cachecontentgroup addresource = new cachecontentgroup();
addresource.name = resource.name;
addresource.weakposrelexpiry = resource.weakposrelexpiry;
addresource.heurexpiryparam = resource.heurexpiryparam;
addresource.relexpiry = resource.relexpiry;
addresource.relexpirymillisec = resource.relexpirymillisec;
addresource.absexpiry = resource.absexpiry;
addresource.absexpirygmt = resource.absexpirygmt;
addresource.weaknegrelexpiry = resource.weaknegrelexpiry;
addresource.hitparams = resource.hitparams;
addresource.invalparams = resource.invalparams;
addresource.ignoreparamvaluecase = resource.ignoreparamvaluecase;
addresource.matchcookies = resource.matchcookies;
addresource.invalrestrictedtohost = resource.invalrestrictedtohost;
addresource.polleverytime = resource.polleverytime;
addresource.ignorereloadreq = resource.ignorereloadreq;
addresource.removecookies = resource.removecookies;
addresource.prefetch = resource.prefetch;
addresource.prefetchperiod = resource.prefetchperiod;
addresource.prefetchperiodmillisec = resource.prefetchperiodmillisec;
addresource.prefetchmaxpending = resource.prefetchmaxpending;
addresource.flashcache = resource.flashcache;
addresource.expireatlastbyte = resource.expireatlastbyte;
addresource.insertvia = resource.insertvia;
addresource.insertage = resource.insertage;
addresource.insertetag = resource.insertetag;
addresource.cachecontrol = resource.cachecontrol;
addresource.quickabortsize = resource.quickabortsize;
addresource.minressize = resource.minressize;
addresource.maxressize = resource.maxressize;
addresource.memlimit = resource.memlimit;
addresource.ignorereqcachinghdrs = resource.ignorereqcachinghdrs;
addresource.minhits = resource.minhits;
addresource.alwaysevalpolicies = resource.alwaysevalpolicies;
addresource.persist = resource.persist;
addresource.pinned = resource.pinned;
addresource.lazydnsresolve = resource.lazydnsresolve;
addresource.hitselector = resource.hitselector;
addresource.invalselector = resource.invalselector;
addresource.type = resource.type;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, cachecontentgroup resource) throws Exception {
cachecontentgroup addresource = new cachecontentgroup();
addresource.name = resource.name;
addresource.weakposrelexpiry = resource.weakposrelexpiry;
addresource.heurexpiryparam = resource.heurexpiryparam;
addresource.relexpiry = resource.relexpiry;
addresource.relexpirymillisec = resource.relexpirymillisec;
addresource.absexpiry = resource.absexpiry;
addresource.absexpirygmt = resource.absexpirygmt;
addresource.weaknegrelexpiry = resource.weaknegrelexpiry;
addresource.hitparams = resource.hitparams;
addresource.invalparams = resource.invalparams;
addresource.ignoreparamvaluecase = resource.ignoreparamvaluecase;
addresource.matchcookies = resource.matchcookies;
addresource.invalrestrictedtohost = resource.invalrestrictedtohost;
addresource.polleverytime = resource.polleverytime;
addresource.ignorereloadreq = resource.ignorereloadreq;
addresource.removecookies = resource.removecookies;
addresource.prefetch = resource.prefetch;
addresource.prefetchperiod = resource.prefetchperiod;
addresource.prefetchperiodmillisec = resource.prefetchperiodmillisec;
addresource.prefetchmaxpending = resource.prefetchmaxpending;
addresource.flashcache = resource.flashcache;
addresource.expireatlastbyte = resource.expireatlastbyte;
addresource.insertvia = resource.insertvia;
addresource.insertage = resource.insertage;
addresource.insertetag = resource.insertetag;
addresource.cachecontrol = resource.cachecontrol;
addresource.quickabortsize = resource.quickabortsize;
addresource.minressize = resource.minressize;
addresource.maxressize = resource.maxressize;
addresource.memlimit = resource.memlimit;
addresource.ignorereqcachinghdrs = resource.ignorereqcachinghdrs;
addresource.minhits = resource.minhits;
addresource.alwaysevalpolicies = resource.alwaysevalpolicies;
addresource.persist = resource.persist;
addresource.pinned = resource.pinned;
addresource.lazydnsresolve = resource.lazydnsresolve;
addresource.hitselector = resource.hitselector;
addresource.invalselector = resource.invalselector;
addresource.type = resource.type;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"cachecontentgroup",
"resource",
")",
"throws",
"Exception",
"{",
"cachecontentgroup",
"addresource",
"=",
"new",
"cachecontentgroup",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"addresource",
".",
"weakposrelexpiry",
"=",
"resource",
".",
"weakposrelexpiry",
";",
"addresource",
".",
"heurexpiryparam",
"=",
"resource",
".",
"heurexpiryparam",
";",
"addresource",
".",
"relexpiry",
"=",
"resource",
".",
"relexpiry",
";",
"addresource",
".",
"relexpirymillisec",
"=",
"resource",
".",
"relexpirymillisec",
";",
"addresource",
".",
"absexpiry",
"=",
"resource",
".",
"absexpiry",
";",
"addresource",
".",
"absexpirygmt",
"=",
"resource",
".",
"absexpirygmt",
";",
"addresource",
".",
"weaknegrelexpiry",
"=",
"resource",
".",
"weaknegrelexpiry",
";",
"addresource",
".",
"hitparams",
"=",
"resource",
".",
"hitparams",
";",
"addresource",
".",
"invalparams",
"=",
"resource",
".",
"invalparams",
";",
"addresource",
".",
"ignoreparamvaluecase",
"=",
"resource",
".",
"ignoreparamvaluecase",
";",
"addresource",
".",
"matchcookies",
"=",
"resource",
".",
"matchcookies",
";",
"addresource",
".",
"invalrestrictedtohost",
"=",
"resource",
".",
"invalrestrictedtohost",
";",
"addresource",
".",
"polleverytime",
"=",
"resource",
".",
"polleverytime",
";",
"addresource",
".",
"ignorereloadreq",
"=",
"resource",
".",
"ignorereloadreq",
";",
"addresource",
".",
"removecookies",
"=",
"resource",
".",
"removecookies",
";",
"addresource",
".",
"prefetch",
"=",
"resource",
".",
"prefetch",
";",
"addresource",
".",
"prefetchperiod",
"=",
"resource",
".",
"prefetchperiod",
";",
"addresource",
".",
"prefetchperiodmillisec",
"=",
"resource",
".",
"prefetchperiodmillisec",
";",
"addresource",
".",
"prefetchmaxpending",
"=",
"resource",
".",
"prefetchmaxpending",
";",
"addresource",
".",
"flashcache",
"=",
"resource",
".",
"flashcache",
";",
"addresource",
".",
"expireatlastbyte",
"=",
"resource",
".",
"expireatlastbyte",
";",
"addresource",
".",
"insertvia",
"=",
"resource",
".",
"insertvia",
";",
"addresource",
".",
"insertage",
"=",
"resource",
".",
"insertage",
";",
"addresource",
".",
"insertetag",
"=",
"resource",
".",
"insertetag",
";",
"addresource",
".",
"cachecontrol",
"=",
"resource",
".",
"cachecontrol",
";",
"addresource",
".",
"quickabortsize",
"=",
"resource",
".",
"quickabortsize",
";",
"addresource",
".",
"minressize",
"=",
"resource",
".",
"minressize",
";",
"addresource",
".",
"maxressize",
"=",
"resource",
".",
"maxressize",
";",
"addresource",
".",
"memlimit",
"=",
"resource",
".",
"memlimit",
";",
"addresource",
".",
"ignorereqcachinghdrs",
"=",
"resource",
".",
"ignorereqcachinghdrs",
";",
"addresource",
".",
"minhits",
"=",
"resource",
".",
"minhits",
";",
"addresource",
".",
"alwaysevalpolicies",
"=",
"resource",
".",
"alwaysevalpolicies",
";",
"addresource",
".",
"persist",
"=",
"resource",
".",
"persist",
";",
"addresource",
".",
"pinned",
"=",
"resource",
".",
"pinned",
";",
"addresource",
".",
"lazydnsresolve",
"=",
"resource",
".",
"lazydnsresolve",
";",
"addresource",
".",
"hitselector",
"=",
"resource",
".",
"hitselector",
";",
"addresource",
".",
"invalselector",
"=",
"resource",
".",
"invalselector",
";",
"addresource",
".",
"type",
"=",
"resource",
".",
"type",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add cachecontentgroup. | [
"Use",
"this",
"API",
"to",
"add",
"cachecontentgroup",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java#L1143-L1185 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java | cachecontentgroup.update | public static base_response update(nitro_service client, cachecontentgroup resource) throws Exception {
cachecontentgroup updateresource = new cachecontentgroup();
updateresource.name = resource.name;
updateresource.weakposrelexpiry = resource.weakposrelexpiry;
updateresource.heurexpiryparam = resource.heurexpiryparam;
updateresource.relexpiry = resource.relexpiry;
updateresource.relexpirymillisec = resource.relexpirymillisec;
updateresource.absexpiry = resource.absexpiry;
updateresource.absexpirygmt = resource.absexpirygmt;
updateresource.weaknegrelexpiry = resource.weaknegrelexpiry;
updateresource.hitparams = resource.hitparams;
updateresource.invalparams = resource.invalparams;
updateresource.ignoreparamvaluecase = resource.ignoreparamvaluecase;
updateresource.matchcookies = resource.matchcookies;
updateresource.invalrestrictedtohost = resource.invalrestrictedtohost;
updateresource.polleverytime = resource.polleverytime;
updateresource.ignorereloadreq = resource.ignorereloadreq;
updateresource.removecookies = resource.removecookies;
updateresource.prefetch = resource.prefetch;
updateresource.prefetchperiod = resource.prefetchperiod;
updateresource.prefetchperiodmillisec = resource.prefetchperiodmillisec;
updateresource.prefetchmaxpending = resource.prefetchmaxpending;
updateresource.flashcache = resource.flashcache;
updateresource.expireatlastbyte = resource.expireatlastbyte;
updateresource.insertvia = resource.insertvia;
updateresource.insertage = resource.insertage;
updateresource.insertetag = resource.insertetag;
updateresource.cachecontrol = resource.cachecontrol;
updateresource.quickabortsize = resource.quickabortsize;
updateresource.minressize = resource.minressize;
updateresource.maxressize = resource.maxressize;
updateresource.memlimit = resource.memlimit;
updateresource.ignorereqcachinghdrs = resource.ignorereqcachinghdrs;
updateresource.minhits = resource.minhits;
updateresource.alwaysevalpolicies = resource.alwaysevalpolicies;
updateresource.persist = resource.persist;
updateresource.pinned = resource.pinned;
updateresource.lazydnsresolve = resource.lazydnsresolve;
updateresource.hitselector = resource.hitselector;
updateresource.invalselector = resource.invalselector;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, cachecontentgroup resource) throws Exception {
cachecontentgroup updateresource = new cachecontentgroup();
updateresource.name = resource.name;
updateresource.weakposrelexpiry = resource.weakposrelexpiry;
updateresource.heurexpiryparam = resource.heurexpiryparam;
updateresource.relexpiry = resource.relexpiry;
updateresource.relexpirymillisec = resource.relexpirymillisec;
updateresource.absexpiry = resource.absexpiry;
updateresource.absexpirygmt = resource.absexpirygmt;
updateresource.weaknegrelexpiry = resource.weaknegrelexpiry;
updateresource.hitparams = resource.hitparams;
updateresource.invalparams = resource.invalparams;
updateresource.ignoreparamvaluecase = resource.ignoreparamvaluecase;
updateresource.matchcookies = resource.matchcookies;
updateresource.invalrestrictedtohost = resource.invalrestrictedtohost;
updateresource.polleverytime = resource.polleverytime;
updateresource.ignorereloadreq = resource.ignorereloadreq;
updateresource.removecookies = resource.removecookies;
updateresource.prefetch = resource.prefetch;
updateresource.prefetchperiod = resource.prefetchperiod;
updateresource.prefetchperiodmillisec = resource.prefetchperiodmillisec;
updateresource.prefetchmaxpending = resource.prefetchmaxpending;
updateresource.flashcache = resource.flashcache;
updateresource.expireatlastbyte = resource.expireatlastbyte;
updateresource.insertvia = resource.insertvia;
updateresource.insertage = resource.insertage;
updateresource.insertetag = resource.insertetag;
updateresource.cachecontrol = resource.cachecontrol;
updateresource.quickabortsize = resource.quickabortsize;
updateresource.minressize = resource.minressize;
updateresource.maxressize = resource.maxressize;
updateresource.memlimit = resource.memlimit;
updateresource.ignorereqcachinghdrs = resource.ignorereqcachinghdrs;
updateresource.minhits = resource.minhits;
updateresource.alwaysevalpolicies = resource.alwaysevalpolicies;
updateresource.persist = resource.persist;
updateresource.pinned = resource.pinned;
updateresource.lazydnsresolve = resource.lazydnsresolve;
updateresource.hitselector = resource.hitselector;
updateresource.invalselector = resource.invalselector;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"cachecontentgroup",
"resource",
")",
"throws",
"Exception",
"{",
"cachecontentgroup",
"updateresource",
"=",
"new",
"cachecontentgroup",
"(",
")",
";",
"updateresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"updateresource",
".",
"weakposrelexpiry",
"=",
"resource",
".",
"weakposrelexpiry",
";",
"updateresource",
".",
"heurexpiryparam",
"=",
"resource",
".",
"heurexpiryparam",
";",
"updateresource",
".",
"relexpiry",
"=",
"resource",
".",
"relexpiry",
";",
"updateresource",
".",
"relexpirymillisec",
"=",
"resource",
".",
"relexpirymillisec",
";",
"updateresource",
".",
"absexpiry",
"=",
"resource",
".",
"absexpiry",
";",
"updateresource",
".",
"absexpirygmt",
"=",
"resource",
".",
"absexpirygmt",
";",
"updateresource",
".",
"weaknegrelexpiry",
"=",
"resource",
".",
"weaknegrelexpiry",
";",
"updateresource",
".",
"hitparams",
"=",
"resource",
".",
"hitparams",
";",
"updateresource",
".",
"invalparams",
"=",
"resource",
".",
"invalparams",
";",
"updateresource",
".",
"ignoreparamvaluecase",
"=",
"resource",
".",
"ignoreparamvaluecase",
";",
"updateresource",
".",
"matchcookies",
"=",
"resource",
".",
"matchcookies",
";",
"updateresource",
".",
"invalrestrictedtohost",
"=",
"resource",
".",
"invalrestrictedtohost",
";",
"updateresource",
".",
"polleverytime",
"=",
"resource",
".",
"polleverytime",
";",
"updateresource",
".",
"ignorereloadreq",
"=",
"resource",
".",
"ignorereloadreq",
";",
"updateresource",
".",
"removecookies",
"=",
"resource",
".",
"removecookies",
";",
"updateresource",
".",
"prefetch",
"=",
"resource",
".",
"prefetch",
";",
"updateresource",
".",
"prefetchperiod",
"=",
"resource",
".",
"prefetchperiod",
";",
"updateresource",
".",
"prefetchperiodmillisec",
"=",
"resource",
".",
"prefetchperiodmillisec",
";",
"updateresource",
".",
"prefetchmaxpending",
"=",
"resource",
".",
"prefetchmaxpending",
";",
"updateresource",
".",
"flashcache",
"=",
"resource",
".",
"flashcache",
";",
"updateresource",
".",
"expireatlastbyte",
"=",
"resource",
".",
"expireatlastbyte",
";",
"updateresource",
".",
"insertvia",
"=",
"resource",
".",
"insertvia",
";",
"updateresource",
".",
"insertage",
"=",
"resource",
".",
"insertage",
";",
"updateresource",
".",
"insertetag",
"=",
"resource",
".",
"insertetag",
";",
"updateresource",
".",
"cachecontrol",
"=",
"resource",
".",
"cachecontrol",
";",
"updateresource",
".",
"quickabortsize",
"=",
"resource",
".",
"quickabortsize",
";",
"updateresource",
".",
"minressize",
"=",
"resource",
".",
"minressize",
";",
"updateresource",
".",
"maxressize",
"=",
"resource",
".",
"maxressize",
";",
"updateresource",
".",
"memlimit",
"=",
"resource",
".",
"memlimit",
";",
"updateresource",
".",
"ignorereqcachinghdrs",
"=",
"resource",
".",
"ignorereqcachinghdrs",
";",
"updateresource",
".",
"minhits",
"=",
"resource",
".",
"minhits",
";",
"updateresource",
".",
"alwaysevalpolicies",
"=",
"resource",
".",
"alwaysevalpolicies",
";",
"updateresource",
".",
"persist",
"=",
"resource",
".",
"persist",
";",
"updateresource",
".",
"pinned",
"=",
"resource",
".",
"pinned",
";",
"updateresource",
".",
"lazydnsresolve",
"=",
"resource",
".",
"lazydnsresolve",
";",
"updateresource",
".",
"hitselector",
"=",
"resource",
".",
"hitselector",
";",
"updateresource",
".",
"invalselector",
"=",
"resource",
".",
"invalselector",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update cachecontentgroup. | [
"Use",
"this",
"API",
"to",
"update",
"cachecontentgroup",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java#L1294-L1335 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java | cachecontentgroup.expire | public static base_response expire(nitro_service client, cachecontentgroup resource) throws Exception {
cachecontentgroup expireresource = new cachecontentgroup();
expireresource.name = resource.name;
return expireresource.perform_operation(client,"expire");
} | java | public static base_response expire(nitro_service client, cachecontentgroup resource) throws Exception {
cachecontentgroup expireresource = new cachecontentgroup();
expireresource.name = resource.name;
return expireresource.perform_operation(client,"expire");
} | [
"public",
"static",
"base_response",
"expire",
"(",
"nitro_service",
"client",
",",
"cachecontentgroup",
"resource",
")",
"throws",
"Exception",
"{",
"cachecontentgroup",
"expireresource",
"=",
"new",
"cachecontentgroup",
"(",
")",
";",
"expireresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"return",
"expireresource",
".",
"perform_operation",
"(",
"client",
",",
"\"expire\"",
")",
";",
"}"
] | Use this API to expire cachecontentgroup. | [
"Use",
"this",
"API",
"to",
"expire",
"cachecontentgroup",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java#L1437-L1441 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java | cachecontentgroup.expire | public static base_responses expire(nitro_service client, cachecontentgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cachecontentgroup expireresources[] = new cachecontentgroup[resources.length];
for (int i=0;i<resources.length;i++){
expireresources[i] = new cachecontentgroup();
expireresources[i].name = resources[i].name;
}
result = perform_operation_bulk_request(client, expireresources,"expire");
}
return result;
} | java | public static base_responses expire(nitro_service client, cachecontentgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cachecontentgroup expireresources[] = new cachecontentgroup[resources.length];
for (int i=0;i<resources.length;i++){
expireresources[i] = new cachecontentgroup();
expireresources[i].name = resources[i].name;
}
result = perform_operation_bulk_request(client, expireresources,"expire");
}
return result;
} | [
"public",
"static",
"base_responses",
"expire",
"(",
"nitro_service",
"client",
",",
"cachecontentgroup",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"cachecontentgroup",
"expireresources",
"[",
"]",
"=",
"new",
"cachecontentgroup",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"expireresources",
"[",
"i",
"]",
"=",
"new",
"cachecontentgroup",
"(",
")",
";",
"expireresources",
"[",
"i",
"]",
".",
"name",
"=",
"resources",
"[",
"i",
"]",
".",
"name",
";",
"}",
"result",
"=",
"perform_operation_bulk_request",
"(",
"client",
",",
"expireresources",
",",
"\"expire\"",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to expire cachecontentgroup resources. | [
"Use",
"this",
"API",
"to",
"expire",
"cachecontentgroup",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java#L1446-L1457 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java | cachecontentgroup.flush | public static base_response flush(nitro_service client, cachecontentgroup resource) throws Exception {
cachecontentgroup flushresource = new cachecontentgroup();
flushresource.name = resource.name;
flushresource.query = resource.query;
flushresource.host = resource.host;
flushresource.selectorvalue = resource.selectorvalue;
flushresource.force = resource.force;
return flushresource.perform_operation(client,"flush");
} | java | public static base_response flush(nitro_service client, cachecontentgroup resource) throws Exception {
cachecontentgroup flushresource = new cachecontentgroup();
flushresource.name = resource.name;
flushresource.query = resource.query;
flushresource.host = resource.host;
flushresource.selectorvalue = resource.selectorvalue;
flushresource.force = resource.force;
return flushresource.perform_operation(client,"flush");
} | [
"public",
"static",
"base_response",
"flush",
"(",
"nitro_service",
"client",
",",
"cachecontentgroup",
"resource",
")",
"throws",
"Exception",
"{",
"cachecontentgroup",
"flushresource",
"=",
"new",
"cachecontentgroup",
"(",
")",
";",
"flushresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"flushresource",
".",
"query",
"=",
"resource",
".",
"query",
";",
"flushresource",
".",
"host",
"=",
"resource",
".",
"host",
";",
"flushresource",
".",
"selectorvalue",
"=",
"resource",
".",
"selectorvalue",
";",
"flushresource",
".",
"force",
"=",
"resource",
".",
"force",
";",
"return",
"flushresource",
".",
"perform_operation",
"(",
"client",
",",
"\"flush\"",
")",
";",
"}"
] | Use this API to flush cachecontentgroup. | [
"Use",
"this",
"API",
"to",
"flush",
"cachecontentgroup",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java#L1462-L1470 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java | cachecontentgroup.flush | public static base_responses flush(nitro_service client, cachecontentgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cachecontentgroup flushresources[] = new cachecontentgroup[resources.length];
for (int i=0;i<resources.length;i++){
flushresources[i] = new cachecontentgroup();
flushresources[i].name = resources[i].name;
flushresources[i].query = resources[i].query;
flushresources[i].host = resources[i].host;
flushresources[i].selectorvalue = resources[i].selectorvalue;
flushresources[i].force = resources[i].force;
}
result = perform_operation_bulk_request(client, flushresources,"flush");
}
return result;
} | java | public static base_responses flush(nitro_service client, cachecontentgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cachecontentgroup flushresources[] = new cachecontentgroup[resources.length];
for (int i=0;i<resources.length;i++){
flushresources[i] = new cachecontentgroup();
flushresources[i].name = resources[i].name;
flushresources[i].query = resources[i].query;
flushresources[i].host = resources[i].host;
flushresources[i].selectorvalue = resources[i].selectorvalue;
flushresources[i].force = resources[i].force;
}
result = perform_operation_bulk_request(client, flushresources,"flush");
}
return result;
} | [
"public",
"static",
"base_responses",
"flush",
"(",
"nitro_service",
"client",
",",
"cachecontentgroup",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"cachecontentgroup",
"flushresources",
"[",
"]",
"=",
"new",
"cachecontentgroup",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"flushresources",
"[",
"i",
"]",
"=",
"new",
"cachecontentgroup",
"(",
")",
";",
"flushresources",
"[",
"i",
"]",
".",
"name",
"=",
"resources",
"[",
"i",
"]",
".",
"name",
";",
"flushresources",
"[",
"i",
"]",
".",
"query",
"=",
"resources",
"[",
"i",
"]",
".",
"query",
";",
"flushresources",
"[",
"i",
"]",
".",
"host",
"=",
"resources",
"[",
"i",
"]",
".",
"host",
";",
"flushresources",
"[",
"i",
"]",
".",
"selectorvalue",
"=",
"resources",
"[",
"i",
"]",
".",
"selectorvalue",
";",
"flushresources",
"[",
"i",
"]",
".",
"force",
"=",
"resources",
"[",
"i",
"]",
".",
"force",
";",
"}",
"result",
"=",
"perform_operation_bulk_request",
"(",
"client",
",",
"flushresources",
",",
"\"flush\"",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to flush cachecontentgroup resources. | [
"Use",
"this",
"API",
"to",
"flush",
"cachecontentgroup",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java#L1475-L1490 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java | cachecontentgroup.save | public static base_response save(nitro_service client, cachecontentgroup resource) throws Exception {
cachecontentgroup saveresource = new cachecontentgroup();
saveresource.name = resource.name;
return saveresource.perform_operation(client,"save");
} | java | public static base_response save(nitro_service client, cachecontentgroup resource) throws Exception {
cachecontentgroup saveresource = new cachecontentgroup();
saveresource.name = resource.name;
return saveresource.perform_operation(client,"save");
} | [
"public",
"static",
"base_response",
"save",
"(",
"nitro_service",
"client",
",",
"cachecontentgroup",
"resource",
")",
"throws",
"Exception",
"{",
"cachecontentgroup",
"saveresource",
"=",
"new",
"cachecontentgroup",
"(",
")",
";",
"saveresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"return",
"saveresource",
".",
"perform_operation",
"(",
"client",
",",
"\"save\"",
")",
";",
"}"
] | Use this API to save cachecontentgroup. | [
"Use",
"this",
"API",
"to",
"save",
"cachecontentgroup",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java#L1495-L1499 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java | cachecontentgroup.save | public static base_responses save(nitro_service client, cachecontentgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cachecontentgroup saveresources[] = new cachecontentgroup[resources.length];
for (int i=0;i<resources.length;i++){
saveresources[i] = new cachecontentgroup();
saveresources[i].name = resources[i].name;
}
result = perform_operation_bulk_request(client, saveresources,"save");
}
return result;
} | java | public static base_responses save(nitro_service client, cachecontentgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cachecontentgroup saveresources[] = new cachecontentgroup[resources.length];
for (int i=0;i<resources.length;i++){
saveresources[i] = new cachecontentgroup();
saveresources[i].name = resources[i].name;
}
result = perform_operation_bulk_request(client, saveresources,"save");
}
return result;
} | [
"public",
"static",
"base_responses",
"save",
"(",
"nitro_service",
"client",
",",
"cachecontentgroup",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"cachecontentgroup",
"saveresources",
"[",
"]",
"=",
"new",
"cachecontentgroup",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"saveresources",
"[",
"i",
"]",
"=",
"new",
"cachecontentgroup",
"(",
")",
";",
"saveresources",
"[",
"i",
"]",
".",
"name",
"=",
"resources",
"[",
"i",
"]",
".",
"name",
";",
"}",
"result",
"=",
"perform_operation_bulk_request",
"(",
"client",
",",
"saveresources",
",",
"\"save\"",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to save cachecontentgroup resources. | [
"Use",
"this",
"API",
"to",
"save",
"cachecontentgroup",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java#L1504-L1515 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java | cachecontentgroup.get | public static cachecontentgroup[] get(nitro_service service) throws Exception{
cachecontentgroup obj = new cachecontentgroup();
cachecontentgroup[] response = (cachecontentgroup[])obj.get_resources(service);
return response;
} | java | public static cachecontentgroup[] get(nitro_service service) throws Exception{
cachecontentgroup obj = new cachecontentgroup();
cachecontentgroup[] response = (cachecontentgroup[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"cachecontentgroup",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"cachecontentgroup",
"obj",
"=",
"new",
"cachecontentgroup",
"(",
")",
";",
"cachecontentgroup",
"[",
"]",
"response",
"=",
"(",
"cachecontentgroup",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the cachecontentgroup resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"cachecontentgroup",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java#L1520-L1524 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java | cachecontentgroup.get | public static cachecontentgroup get(nitro_service service, String name) throws Exception{
cachecontentgroup obj = new cachecontentgroup();
obj.set_name(name);
cachecontentgroup response = (cachecontentgroup) obj.get_resource(service);
return response;
} | java | public static cachecontentgroup get(nitro_service service, String name) throws Exception{
cachecontentgroup obj = new cachecontentgroup();
obj.set_name(name);
cachecontentgroup response = (cachecontentgroup) obj.get_resource(service);
return response;
} | [
"public",
"static",
"cachecontentgroup",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"cachecontentgroup",
"obj",
"=",
"new",
"cachecontentgroup",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"cachecontentgroup",
"response",
"=",
"(",
"cachecontentgroup",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch cachecontentgroup resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"cachecontentgroup",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachecontentgroup.java#L1536-L1541 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_auditnslogpolicy_binding.java | lbvserver_auditnslogpolicy_binding.get | public static lbvserver_auditnslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_auditnslogpolicy_binding obj = new lbvserver_auditnslogpolicy_binding();
obj.set_name(name);
lbvserver_auditnslogpolicy_binding response[] = (lbvserver_auditnslogpolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static lbvserver_auditnslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_auditnslogpolicy_binding obj = new lbvserver_auditnslogpolicy_binding();
obj.set_name(name);
lbvserver_auditnslogpolicy_binding response[] = (lbvserver_auditnslogpolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"lbvserver_auditnslogpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"lbvserver_auditnslogpolicy_binding",
"obj",
"=",
"new",
"lbvserver_auditnslogpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"lbvserver_auditnslogpolicy_binding",
"response",
"[",
"]",
"=",
"(",
"lbvserver_auditnslogpolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch lbvserver_auditnslogpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbvserver_auditnslogpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_auditnslogpolicy_binding.java#L346-L351 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csparameter.java | csparameter.update | public static base_response update(nitro_service client, csparameter resource) throws Exception {
csparameter updateresource = new csparameter();
updateresource.stateupdate = resource.stateupdate;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, csparameter resource) throws Exception {
csparameter updateresource = new csparameter();
updateresource.stateupdate = resource.stateupdate;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"csparameter",
"resource",
")",
"throws",
"Exception",
"{",
"csparameter",
"updateresource",
"=",
"new",
"csparameter",
"(",
")",
";",
"updateresource",
".",
"stateupdate",
"=",
"resource",
".",
"stateupdate",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update csparameter. | [
"Use",
"this",
"API",
"to",
"update",
"csparameter",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csparameter.java#L94-L98 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csparameter.java | csparameter.unset | public static base_response unset(nitro_service client, csparameter resource, String[] args) throws Exception{
csparameter unsetresource = new csparameter();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, csparameter resource, String[] args) throws Exception{
csparameter unsetresource = new csparameter();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"csparameter",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"csparameter",
"unsetresource",
"=",
"new",
"csparameter",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of csparameter resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"csparameter",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csparameter.java#L104-L107 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csparameter.java | csparameter.get | public static csparameter get(nitro_service service) throws Exception{
csparameter obj = new csparameter();
csparameter[] response = (csparameter[])obj.get_resources(service);
return response[0];
} | java | public static csparameter get(nitro_service service) throws Exception{
csparameter obj = new csparameter();
csparameter[] response = (csparameter[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"csparameter",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"csparameter",
"obj",
"=",
"new",
"csparameter",
"(",
")",
";",
"csparameter",
"[",
"]",
"response",
"=",
"(",
"csparameter",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the csparameter resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"csparameter",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csparameter.java#L112-L116 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_rewritepolicy_binding.java | vpnvserver_rewritepolicy_binding.get | public static vpnvserver_rewritepolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_rewritepolicy_binding obj = new vpnvserver_rewritepolicy_binding();
obj.set_name(name);
vpnvserver_rewritepolicy_binding response[] = (vpnvserver_rewritepolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static vpnvserver_rewritepolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_rewritepolicy_binding obj = new vpnvserver_rewritepolicy_binding();
obj.set_name(name);
vpnvserver_rewritepolicy_binding response[] = (vpnvserver_rewritepolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vpnvserver_rewritepolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vpnvserver_rewritepolicy_binding",
"obj",
"=",
"new",
"vpnvserver_rewritepolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"vpnvserver_rewritepolicy_binding",
"response",
"[",
"]",
"=",
"(",
"vpnvserver_rewritepolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch vpnvserver_rewritepolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vpnvserver_rewritepolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_rewritepolicy_binding.java#L292-L297 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditnslogpolicy_systemglobal_binding.java | auditnslogpolicy_systemglobal_binding.get | public static auditnslogpolicy_systemglobal_binding[] get(nitro_service service, String name) throws Exception{
auditnslogpolicy_systemglobal_binding obj = new auditnslogpolicy_systemglobal_binding();
obj.set_name(name);
auditnslogpolicy_systemglobal_binding response[] = (auditnslogpolicy_systemglobal_binding[]) obj.get_resources(service);
return response;
} | java | public static auditnslogpolicy_systemglobal_binding[] get(nitro_service service, String name) throws Exception{
auditnslogpolicy_systemglobal_binding obj = new auditnslogpolicy_systemglobal_binding();
obj.set_name(name);
auditnslogpolicy_systemglobal_binding response[] = (auditnslogpolicy_systemglobal_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"auditnslogpolicy_systemglobal_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"auditnslogpolicy_systemglobal_binding",
"obj",
"=",
"new",
"auditnslogpolicy_systemglobal_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"auditnslogpolicy_systemglobal_binding",
"response",
"[",
"]",
"=",
"(",
"auditnslogpolicy_systemglobal_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch auditnslogpolicy_systemglobal_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"auditnslogpolicy_systemglobal_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditnslogpolicy_systemglobal_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy_binding.java | responderpolicy_binding.get | public static responderpolicy_binding get(nitro_service service, String name) throws Exception{
responderpolicy_binding obj = new responderpolicy_binding();
obj.set_name(name);
responderpolicy_binding response = (responderpolicy_binding) obj.get_resource(service);
return response;
} | java | public static responderpolicy_binding get(nitro_service service, String name) throws Exception{
responderpolicy_binding obj = new responderpolicy_binding();
obj.set_name(name);
responderpolicy_binding response = (responderpolicy_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"responderpolicy_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"responderpolicy_binding",
"obj",
"=",
"new",
"responderpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"responderpolicy_binding",
"response",
"=",
"(",
"responderpolicy_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch responderpolicy_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"responderpolicy_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy_binding.java#L136-L141 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/ling/BasicDatum.java | BasicDatum.setLabels | public void setLabels(Collection<LabelType> labels) {
this.labels.clear();
if (labels != null) {
this.labels.addAll(labels);
}
} | java | public void setLabels(Collection<LabelType> labels) {
this.labels.clear();
if (labels != null) {
this.labels.addAll(labels);
}
} | [
"public",
"void",
"setLabels",
"(",
"Collection",
"<",
"LabelType",
">",
"labels",
")",
"{",
"this",
".",
"labels",
".",
"clear",
"(",
")",
";",
"if",
"(",
"labels",
"!=",
"null",
")",
"{",
"this",
".",
"labels",
".",
"addAll",
"(",
"labels",
")",
";",
"}",
"}"
] | Removes all currently assigned labels for this Datum then adds all
of the given Labels. | [
"Removes",
"all",
"currently",
"assigned",
"labels",
"for",
"this",
"Datum",
"then",
"adds",
"all",
"of",
"the",
"given",
"Labels",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ling/BasicDatum.java#L98-L103 | train |
RestComm/cluster | core/src/main/java/org/restcomm/cluster/DefaultMobicentsCluster.java | DefaultMobicentsCluster.onViewChangeEvent | @ViewChanged
public synchronized void onViewChangeEvent(ViewChangedEvent event) {
if (logger.isDebugEnabled()) {
logger.debug("onViewChangeEvent : pre[" + event.isPre() + "] : event local address[" + event.getCache().getLocalAddress() + "]");
}
final List<Address> oldView = currentView;
currentView = new ArrayList<Address>(event.getNewView().getMembers());
final Address localAddress = getLocalAddress();
//just a precaution, it can be null!
if (oldView != null) {
final Cache jbossCache = mobicentsCache.getJBossCache();
final Configuration config = jbossCache.getConfiguration();
final boolean isBuddyReplicationEnabled = config.getBuddyReplicationConfig() != null && config.getBuddyReplicationConfig().isEnabled();
// recover stuff from lost members
Runnable runnable = new Runnable() {
public void run() {
for (Address oldMember : oldView) {
if (!currentView.contains(oldMember)) {
if (logger.isDebugEnabled()) {
logger.debug("onViewChangeEvent : processing lost member " + oldMember);
}
for (FailOverListener localListener : failOverListeners) {
ClientLocalListenerElector localListenerElector = localListener.getElector();
if (localListenerElector != null && !isBuddyReplicationEnabled) {
// going to use the local listener elector instead, which gives results based on data
performTakeOver(localListener,oldMember,localAddress, true, isBuddyReplicationEnabled);
}
else {
List<Address> electionView = getElectionView(oldMember);
if(electionView!=null && elector.elect(electionView).equals(localAddress))
{
performTakeOver(localListener, oldMember, localAddress, false, isBuddyReplicationEnabled);
}
cleanAfterTakeOver(localListener, oldMember);
}
}
}
}
}
};
Thread t = new Thread(runnable);
t.start();
}
} | java | @ViewChanged
public synchronized void onViewChangeEvent(ViewChangedEvent event) {
if (logger.isDebugEnabled()) {
logger.debug("onViewChangeEvent : pre[" + event.isPre() + "] : event local address[" + event.getCache().getLocalAddress() + "]");
}
final List<Address> oldView = currentView;
currentView = new ArrayList<Address>(event.getNewView().getMembers());
final Address localAddress = getLocalAddress();
//just a precaution, it can be null!
if (oldView != null) {
final Cache jbossCache = mobicentsCache.getJBossCache();
final Configuration config = jbossCache.getConfiguration();
final boolean isBuddyReplicationEnabled = config.getBuddyReplicationConfig() != null && config.getBuddyReplicationConfig().isEnabled();
// recover stuff from lost members
Runnable runnable = new Runnable() {
public void run() {
for (Address oldMember : oldView) {
if (!currentView.contains(oldMember)) {
if (logger.isDebugEnabled()) {
logger.debug("onViewChangeEvent : processing lost member " + oldMember);
}
for (FailOverListener localListener : failOverListeners) {
ClientLocalListenerElector localListenerElector = localListener.getElector();
if (localListenerElector != null && !isBuddyReplicationEnabled) {
// going to use the local listener elector instead, which gives results based on data
performTakeOver(localListener,oldMember,localAddress, true, isBuddyReplicationEnabled);
}
else {
List<Address> electionView = getElectionView(oldMember);
if(electionView!=null && elector.elect(electionView).equals(localAddress))
{
performTakeOver(localListener, oldMember, localAddress, false, isBuddyReplicationEnabled);
}
cleanAfterTakeOver(localListener, oldMember);
}
}
}
}
}
};
Thread t = new Thread(runnable);
t.start();
}
} | [
"@",
"ViewChanged",
"public",
"synchronized",
"void",
"onViewChangeEvent",
"(",
"ViewChangedEvent",
"event",
")",
"{",
"if",
"(",
"logger",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"logger",
".",
"debug",
"(",
"\"onViewChangeEvent : pre[\"",
"+",
"event",
".",
"isPre",
"(",
")",
"+",
"\"] : event local address[\"",
"+",
"event",
".",
"getCache",
"(",
")",
".",
"getLocalAddress",
"(",
")",
"+",
"\"]\"",
")",
";",
"}",
"final",
"List",
"<",
"Address",
">",
"oldView",
"=",
"currentView",
";",
"currentView",
"=",
"new",
"ArrayList",
"<",
"Address",
">",
"(",
"event",
".",
"getNewView",
"(",
")",
".",
"getMembers",
"(",
")",
")",
";",
"final",
"Address",
"localAddress",
"=",
"getLocalAddress",
"(",
")",
";",
"//just a precaution, it can be null!",
"if",
"(",
"oldView",
"!=",
"null",
")",
"{",
"final",
"Cache",
"jbossCache",
"=",
"mobicentsCache",
".",
"getJBossCache",
"(",
")",
";",
"final",
"Configuration",
"config",
"=",
"jbossCache",
".",
"getConfiguration",
"(",
")",
";",
"final",
"boolean",
"isBuddyReplicationEnabled",
"=",
"config",
".",
"getBuddyReplicationConfig",
"(",
")",
"!=",
"null",
"&&",
"config",
".",
"getBuddyReplicationConfig",
"(",
")",
".",
"isEnabled",
"(",
")",
";",
"// recover stuff from lost members",
"Runnable",
"runnable",
"=",
"new",
"Runnable",
"(",
")",
"{",
"public",
"void",
"run",
"(",
")",
"{",
"for",
"(",
"Address",
"oldMember",
":",
"oldView",
")",
"{",
"if",
"(",
"!",
"currentView",
".",
"contains",
"(",
"oldMember",
")",
")",
"{",
"if",
"(",
"logger",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"logger",
".",
"debug",
"(",
"\"onViewChangeEvent : processing lost member \"",
"+",
"oldMember",
")",
";",
"}",
"for",
"(",
"FailOverListener",
"localListener",
":",
"failOverListeners",
")",
"{",
"ClientLocalListenerElector",
"localListenerElector",
"=",
"localListener",
".",
"getElector",
"(",
")",
";",
"if",
"(",
"localListenerElector",
"!=",
"null",
"&&",
"!",
"isBuddyReplicationEnabled",
")",
"{",
"// going to use the local listener elector instead, which gives results based on data",
"performTakeOver",
"(",
"localListener",
",",
"oldMember",
",",
"localAddress",
",",
"true",
",",
"isBuddyReplicationEnabled",
")",
";",
"}",
"else",
"{",
"List",
"<",
"Address",
">",
"electionView",
"=",
"getElectionView",
"(",
"oldMember",
")",
";",
"if",
"(",
"electionView",
"!=",
"null",
"&&",
"elector",
".",
"elect",
"(",
"electionView",
")",
".",
"equals",
"(",
"localAddress",
")",
")",
"{",
"performTakeOver",
"(",
"localListener",
",",
"oldMember",
",",
"localAddress",
",",
"false",
",",
"isBuddyReplicationEnabled",
")",
";",
"}",
"cleanAfterTakeOver",
"(",
"localListener",
",",
"oldMember",
")",
";",
"}",
"}",
"}",
"}",
"}",
"}",
";",
"Thread",
"t",
"=",
"new",
"Thread",
"(",
"runnable",
")",
";",
"t",
".",
"start",
"(",
")",
";",
"}",
"}"
] | Method handle a change on the cluster members set
@param event | [
"Method",
"handle",
"a",
"change",
"on",
"the",
"cluster",
"members",
"set"
] | 46bff5e9ae89528ccc7b43ba50a0de5b96913e6f | https://github.com/RestComm/cluster/blob/46bff5e9ae89528ccc7b43ba50a0de5b96913e6f/core/src/main/java/org/restcomm/cluster/DefaultMobicentsCluster.java#L166-L216 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/appfw/appfwpolicy_stats.java | appfwpolicy_stats.get | public static appfwpolicy_stats[] get(nitro_service service) throws Exception{
appfwpolicy_stats obj = new appfwpolicy_stats();
appfwpolicy_stats[] response = (appfwpolicy_stats[])obj.stat_resources(service);
return response;
} | java | public static appfwpolicy_stats[] get(nitro_service service) throws Exception{
appfwpolicy_stats obj = new appfwpolicy_stats();
appfwpolicy_stats[] response = (appfwpolicy_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"appfwpolicy_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appfwpolicy_stats",
"obj",
"=",
"new",
"appfwpolicy_stats",
"(",
")",
";",
"appfwpolicy_stats",
"[",
"]",
"response",
"=",
"(",
"appfwpolicy_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all appfwpolicy_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"appfwpolicy_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/appfw/appfwpolicy_stats.java#L151-L155 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/appfw/appfwpolicy_stats.java | appfwpolicy_stats.get | public static appfwpolicy_stats get(nitro_service service, String name) throws Exception{
appfwpolicy_stats obj = new appfwpolicy_stats();
obj.set_name(name);
appfwpolicy_stats response = (appfwpolicy_stats) obj.stat_resource(service);
return response;
} | java | public static appfwpolicy_stats get(nitro_service service, String name) throws Exception{
appfwpolicy_stats obj = new appfwpolicy_stats();
obj.set_name(name);
appfwpolicy_stats response = (appfwpolicy_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"appfwpolicy_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appfwpolicy_stats",
"obj",
"=",
"new",
"appfwpolicy_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"appfwpolicy_stats",
"response",
"=",
"(",
"appfwpolicy_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of appfwpolicy_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"appfwpolicy_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/appfw/appfwpolicy_stats.java#L169-L174 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/pq/pqbinding.java | pqbinding.get | public static pqbinding[] get(nitro_service service, pqbinding_args args) throws Exception{
pqbinding obj = new pqbinding();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
pqbinding[] response = (pqbinding[])obj.get_resources(service, option);
return response;
} | java | public static pqbinding[] get(nitro_service service, pqbinding_args args) throws Exception{
pqbinding obj = new pqbinding();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
pqbinding[] response = (pqbinding[])obj.get_resources(service, option);
return response;
} | [
"public",
"static",
"pqbinding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"pqbinding_args",
"args",
")",
"throws",
"Exception",
"{",
"pqbinding",
"obj",
"=",
"new",
"pqbinding",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_args",
"(",
"nitro_util",
".",
"object_to_string_withoutquotes",
"(",
"args",
")",
")",
";",
"pqbinding",
"[",
"]",
"response",
"=",
"(",
"pqbinding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the pqbinding resources that are configured on netscaler.
This uses pqbinding_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"pqbinding",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"pqbinding_args",
"which",
"is",
"a",
"way",
"to",
"provide",
"additional",
"arguments",
"while",
"fetching",
"the",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/pq/pqbinding.java#L192-L198 | train |
wellner/jcarafe | jcarafe-core/src/main/java/cern/colt/list/ObjectArrayList.java | ObjectArrayList.delete | public void delete(Object element, boolean testForEquality) {
int index = indexOfFromTo(element, 0, size-1, testForEquality);
if (index>=0) removeFromTo(index,index);
} | java | public void delete(Object element, boolean testForEquality) {
int index = indexOfFromTo(element, 0, size-1, testForEquality);
if (index>=0) removeFromTo(index,index);
} | [
"public",
"void",
"delete",
"(",
"Object",
"element",
",",
"boolean",
"testForEquality",
")",
"{",
"int",
"index",
"=",
"indexOfFromTo",
"(",
"element",
",",
"0",
",",
"size",
"-",
"1",
",",
"testForEquality",
")",
";",
"if",
"(",
"index",
">=",
"0",
")",
"removeFromTo",
"(",
"index",
",",
"index",
")",
";",
"}"
] | Deletes the first element from the receiver that matches the specified element.
Does nothing, if no such matching element is contained.
Tests elements for equality or identity as specified by <tt>testForEquality</tt>.
When testing for equality, two elements <tt>e1</tt> and
<tt>e2</tt> are <i>equal</i> if <tt>(e1==null ? e2==null :
e1.equals(e2))</tt>.)
@param testForEquality if true -> tests for equality, otherwise for identity.
@param element the element to be deleted. | [
"Deletes",
"the",
"first",
"element",
"from",
"the",
"receiver",
"that",
"matches",
"the",
"specified",
"element",
".",
"Does",
"nothing",
"if",
"no",
"such",
"matching",
"element",
"is",
"contained",
"."
] | ab8b0a83dbf600fe80c27711815c90bd3055b217 | https://github.com/wellner/jcarafe/blob/ab8b0a83dbf600fe80c27711815c90bd3055b217/jcarafe-core/src/main/java/cern/colt/list/ObjectArrayList.java#L275-L278 | train |
wellner/jcarafe | jcarafe-core/src/main/java/cern/colt/list/ObjectArrayList.java | ObjectArrayList.fillFromToWith | public void fillFromToWith(int from, int to, Object val) {
checkRangeFromTo(from,to,this.size);
for (int i=from; i<=to;) setQuick(i++,val);
} | java | public void fillFromToWith(int from, int to, Object val) {
checkRangeFromTo(from,to,this.size);
for (int i=from; i<=to;) setQuick(i++,val);
} | [
"public",
"void",
"fillFromToWith",
"(",
"int",
"from",
",",
"int",
"to",
",",
"Object",
"val",
")",
"{",
"checkRangeFromTo",
"(",
"from",
",",
"to",
",",
"this",
".",
"size",
")",
";",
"for",
"(",
"int",
"i",
"=",
"from",
";",
"i",
"<=",
"to",
";",
")",
"setQuick",
"(",
"i",
"++",
"",
",",
"val",
")",
";",
"}"
] | Sets the specified range of elements in the specified array to the specified value.
@param from the index of the first element (inclusive) to be filled with the specified value.
@param to the index of the last element (inclusive) to be filled with the specified value.
@param val the value to be stored in the specified elements of the receiver. | [
"Sets",
"the",
"specified",
"range",
"of",
"elements",
"in",
"the",
"specified",
"array",
"to",
"the",
"specified",
"value",
"."
] | ab8b0a83dbf600fe80c27711815c90bd3055b217 | https://github.com/wellner/jcarafe/blob/ab8b0a83dbf600fe80c27711815c90bd3055b217/jcarafe-core/src/main/java/cern/colt/list/ObjectArrayList.java#L376-L379 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnspolicy_dnspolicylabel_binding.java | dnspolicy_dnspolicylabel_binding.get | public static dnspolicy_dnspolicylabel_binding[] get(nitro_service service, String name) throws Exception{
dnspolicy_dnspolicylabel_binding obj = new dnspolicy_dnspolicylabel_binding();
obj.set_name(name);
dnspolicy_dnspolicylabel_binding response[] = (dnspolicy_dnspolicylabel_binding[]) obj.get_resources(service);
return response;
} | java | public static dnspolicy_dnspolicylabel_binding[] get(nitro_service service, String name) throws Exception{
dnspolicy_dnspolicylabel_binding obj = new dnspolicy_dnspolicylabel_binding();
obj.set_name(name);
dnspolicy_dnspolicylabel_binding response[] = (dnspolicy_dnspolicylabel_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"dnspolicy_dnspolicylabel_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"dnspolicy_dnspolicylabel_binding",
"obj",
"=",
"new",
"dnspolicy_dnspolicylabel_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"dnspolicy_dnspolicylabel_binding",
"response",
"[",
"]",
"=",
"(",
"dnspolicy_dnspolicylabel_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch dnspolicy_dnspolicylabel_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"dnspolicy_dnspolicylabel_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnspolicy_dnspolicylabel_binding.java#L162-L167 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmtrafficpolicy_tmglobal_binding.java | tmtrafficpolicy_tmglobal_binding.get | public static tmtrafficpolicy_tmglobal_binding[] get(nitro_service service, String name) throws Exception{
tmtrafficpolicy_tmglobal_binding obj = new tmtrafficpolicy_tmglobal_binding();
obj.set_name(name);
tmtrafficpolicy_tmglobal_binding response[] = (tmtrafficpolicy_tmglobal_binding[]) obj.get_resources(service);
return response;
} | java | public static tmtrafficpolicy_tmglobal_binding[] get(nitro_service service, String name) throws Exception{
tmtrafficpolicy_tmglobal_binding obj = new tmtrafficpolicy_tmglobal_binding();
obj.set_name(name);
tmtrafficpolicy_tmglobal_binding response[] = (tmtrafficpolicy_tmglobal_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"tmtrafficpolicy_tmglobal_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"tmtrafficpolicy_tmglobal_binding",
"obj",
"=",
"new",
"tmtrafficpolicy_tmglobal_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"tmtrafficpolicy_tmglobal_binding",
"response",
"[",
"]",
"=",
"(",
"tmtrafficpolicy_tmglobal_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch tmtrafficpolicy_tmglobal_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"tmtrafficpolicy_tmglobal_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmtrafficpolicy_tmglobal_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternodegroup_nslimitidentifier_binding.java | clusternodegroup_nslimitidentifier_binding.get | public static clusternodegroup_nslimitidentifier_binding[] get(nitro_service service, String name) throws Exception{
clusternodegroup_nslimitidentifier_binding obj = new clusternodegroup_nslimitidentifier_binding();
obj.set_name(name);
clusternodegroup_nslimitidentifier_binding response[] = (clusternodegroup_nslimitidentifier_binding[]) obj.get_resources(service);
return response;
} | java | public static clusternodegroup_nslimitidentifier_binding[] get(nitro_service service, String name) throws Exception{
clusternodegroup_nslimitidentifier_binding obj = new clusternodegroup_nslimitidentifier_binding();
obj.set_name(name);
clusternodegroup_nslimitidentifier_binding response[] = (clusternodegroup_nslimitidentifier_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"clusternodegroup_nslimitidentifier_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"clusternodegroup_nslimitidentifier_binding",
"obj",
"=",
"new",
"clusternodegroup_nslimitidentifier_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"clusternodegroup_nslimitidentifier_binding",
"response",
"[",
"]",
"=",
"(",
"clusternodegroup_nslimitidentifier_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch clusternodegroup_nslimitidentifier_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"clusternodegroup_nslimitidentifier_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternodegroup_nslimitidentifier_binding.java#L154-L159 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/rewrite/rewritepolicylabel_rewritepolicy_binding.java | rewritepolicylabel_rewritepolicy_binding.get | public static rewritepolicylabel_rewritepolicy_binding[] get(nitro_service service, String labelname) throws Exception{
rewritepolicylabel_rewritepolicy_binding obj = new rewritepolicylabel_rewritepolicy_binding();
obj.set_labelname(labelname);
rewritepolicylabel_rewritepolicy_binding response[] = (rewritepolicylabel_rewritepolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static rewritepolicylabel_rewritepolicy_binding[] get(nitro_service service, String labelname) throws Exception{
rewritepolicylabel_rewritepolicy_binding obj = new rewritepolicylabel_rewritepolicy_binding();
obj.set_labelname(labelname);
rewritepolicylabel_rewritepolicy_binding response[] = (rewritepolicylabel_rewritepolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"rewritepolicylabel_rewritepolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"labelname",
")",
"throws",
"Exception",
"{",
"rewritepolicylabel_rewritepolicy_binding",
"obj",
"=",
"new",
"rewritepolicylabel_rewritepolicy_binding",
"(",
")",
";",
"obj",
".",
"set_labelname",
"(",
"labelname",
")",
";",
"rewritepolicylabel_rewritepolicy_binding",
"response",
"[",
"]",
"=",
"(",
"rewritepolicylabel_rewritepolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch rewritepolicylabel_rewritepolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"rewritepolicylabel_rewritepolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/rewrite/rewritepolicylabel_rewritepolicy_binding.java#L287-L292 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwhtmlerrorpage.java | appfwhtmlerrorpage.get | public static appfwhtmlerrorpage get(nitro_service service, options option) throws Exception{
appfwhtmlerrorpage obj = new appfwhtmlerrorpage();
appfwhtmlerrorpage[] response = (appfwhtmlerrorpage[])obj.get_resources(service,option);
return response[0];
} | java | public static appfwhtmlerrorpage get(nitro_service service, options option) throws Exception{
appfwhtmlerrorpage obj = new appfwhtmlerrorpage();
appfwhtmlerrorpage[] response = (appfwhtmlerrorpage[])obj.get_resources(service,option);
return response[0];
} | [
"public",
"static",
"appfwhtmlerrorpage",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"appfwhtmlerrorpage",
"obj",
"=",
"new",
"appfwhtmlerrorpage",
"(",
")",
";",
"appfwhtmlerrorpage",
"[",
"]",
"response",
"=",
"(",
"appfwhtmlerrorpage",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the appfwhtmlerrorpage resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"appfwhtmlerrorpage",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwhtmlerrorpage.java#L125-L129 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwhtmlerrorpage.java | appfwhtmlerrorpage.get | public static appfwhtmlerrorpage get(nitro_service service, String name) throws Exception{
appfwhtmlerrorpage obj = new appfwhtmlerrorpage();
obj.set_name(name);
appfwhtmlerrorpage response = (appfwhtmlerrorpage) obj.get_resource(service);
return response;
} | java | public static appfwhtmlerrorpage get(nitro_service service, String name) throws Exception{
appfwhtmlerrorpage obj = new appfwhtmlerrorpage();
obj.set_name(name);
appfwhtmlerrorpage response = (appfwhtmlerrorpage) obj.get_resource(service);
return response;
} | [
"public",
"static",
"appfwhtmlerrorpage",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appfwhtmlerrorpage",
"obj",
"=",
"new",
"appfwhtmlerrorpage",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"appfwhtmlerrorpage",
"response",
"=",
"(",
"appfwhtmlerrorpage",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch appfwhtmlerrorpage resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appfwhtmlerrorpage",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwhtmlerrorpage.java#L134-L139 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/authentication/authenticationvserver_stats.java | authenticationvserver_stats.get | public static authenticationvserver_stats[] get(nitro_service service) throws Exception{
authenticationvserver_stats obj = new authenticationvserver_stats();
authenticationvserver_stats[] response = (authenticationvserver_stats[])obj.stat_resources(service);
return response;
} | java | public static authenticationvserver_stats[] get(nitro_service service) throws Exception{
authenticationvserver_stats obj = new authenticationvserver_stats();
authenticationvserver_stats[] response = (authenticationvserver_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"authenticationvserver_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"authenticationvserver_stats",
"obj",
"=",
"new",
"authenticationvserver_stats",
"(",
")",
";",
"authenticationvserver_stats",
"[",
"]",
"response",
"=",
"(",
"authenticationvserver_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all authenticationvserver_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"authenticationvserver_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/authentication/authenticationvserver_stats.java#L231-L235 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/authentication/authenticationvserver_stats.java | authenticationvserver_stats.get | public static authenticationvserver_stats get(nitro_service service, String name) throws Exception{
authenticationvserver_stats obj = new authenticationvserver_stats();
obj.set_name(name);
authenticationvserver_stats response = (authenticationvserver_stats) obj.stat_resource(service);
return response;
} | java | public static authenticationvserver_stats get(nitro_service service, String name) throws Exception{
authenticationvserver_stats obj = new authenticationvserver_stats();
obj.set_name(name);
authenticationvserver_stats response = (authenticationvserver_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"authenticationvserver_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"authenticationvserver_stats",
"obj",
"=",
"new",
"authenticationvserver_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"authenticationvserver_stats",
"response",
"=",
"(",
"authenticationvserver_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of authenticationvserver_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"authenticationvserver_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/authentication/authenticationvserver_stats.java#L249-L254 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/vrid_nsip6_binding.java | vrid_nsip6_binding.get | public static vrid_nsip6_binding[] get(nitro_service service, Long id) throws Exception{
vrid_nsip6_binding obj = new vrid_nsip6_binding();
obj.set_id(id);
vrid_nsip6_binding response[] = (vrid_nsip6_binding[]) obj.get_resources(service);
return response;
} | java | public static vrid_nsip6_binding[] get(nitro_service service, Long id) throws Exception{
vrid_nsip6_binding obj = new vrid_nsip6_binding();
obj.set_id(id);
vrid_nsip6_binding response[] = (vrid_nsip6_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vrid_nsip6_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"id",
")",
"throws",
"Exception",
"{",
"vrid_nsip6_binding",
"obj",
"=",
"new",
"vrid_nsip6_binding",
"(",
")",
";",
"obj",
".",
"set_id",
"(",
"id",
")",
";",
"vrid_nsip6_binding",
"response",
"[",
"]",
"=",
"(",
"vrid_nsip6_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch vrid_nsip6_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vrid_nsip6_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/vrid_nsip6_binding.java#L153-L158 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/basic/servicegroup_stats.java | servicegroup_stats.get | public static servicegroup_stats[] get(nitro_service service, options option) throws Exception{
servicegroup_stats obj = new servicegroup_stats();
servicegroup_stats[] response = (servicegroup_stats[])obj.stat_resources(service,option);
return response;
} | java | public static servicegroup_stats[] get(nitro_service service, options option) throws Exception{
servicegroup_stats obj = new servicegroup_stats();
servicegroup_stats[] response = (servicegroup_stats[])obj.stat_resources(service,option);
return response;
} | [
"public",
"static",
"servicegroup_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"servicegroup_stats",
"obj",
"=",
"new",
"servicegroup_stats",
"(",
")",
";",
"servicegroup_stats",
"[",
"]",
"response",
"=",
"(",
"servicegroup_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all servicegroup_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"servicegroup_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/basic/servicegroup_stats.java#L140-L144 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/basic/servicegroup_stats.java | servicegroup_stats.get | public static servicegroup_stats get(nitro_service service, String servicegroupname) throws Exception{
servicegroup_stats obj = new servicegroup_stats();
obj.set_servicegroupname(servicegroupname);
servicegroup_stats response = (servicegroup_stats) obj.stat_resource(service);
return response;
} | java | public static servicegroup_stats get(nitro_service service, String servicegroupname) throws Exception{
servicegroup_stats obj = new servicegroup_stats();
obj.set_servicegroupname(servicegroupname);
servicegroup_stats response = (servicegroup_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"servicegroup_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"servicegroupname",
")",
"throws",
"Exception",
"{",
"servicegroup_stats",
"obj",
"=",
"new",
"servicegroup_stats",
"(",
")",
";",
"obj",
".",
"set_servicegroupname",
"(",
"servicegroupname",
")",
";",
"servicegroup_stats",
"response",
"=",
"(",
"servicegroup_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of servicegroup_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"servicegroup_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/basic/servicegroup_stats.java#L149-L154 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusterinstance_binding.java | clusterinstance_binding.get | public static clusterinstance_binding get(nitro_service service, Long clid) throws Exception{
clusterinstance_binding obj = new clusterinstance_binding();
obj.set_clid(clid);
clusterinstance_binding response = (clusterinstance_binding) obj.get_resource(service);
return response;
} | java | public static clusterinstance_binding get(nitro_service service, Long clid) throws Exception{
clusterinstance_binding obj = new clusterinstance_binding();
obj.set_clid(clid);
clusterinstance_binding response = (clusterinstance_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"clusterinstance_binding",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"clid",
")",
"throws",
"Exception",
"{",
"clusterinstance_binding",
"obj",
"=",
"new",
"clusterinstance_binding",
"(",
")",
";",
"obj",
".",
"set_clid",
"(",
"clid",
")",
";",
"clusterinstance_binding",
"response",
"=",
"(",
"clusterinstance_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch clusterinstance_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"clusterinstance_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusterinstance_binding.java#L115-L120 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditmessages.java | auditmessages.get | public static auditmessages[] get(nitro_service service) throws Exception{
auditmessages obj = new auditmessages();
auditmessages[] response = (auditmessages[])obj.get_resources(service);
return response;
} | java | public static auditmessages[] get(nitro_service service) throws Exception{
auditmessages obj = new auditmessages();
auditmessages[] response = (auditmessages[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"auditmessages",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"auditmessages",
"obj",
"=",
"new",
"auditmessages",
"(",
")",
";",
"auditmessages",
"[",
"]",
"response",
"=",
"(",
"auditmessages",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the auditmessages resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"auditmessages",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditmessages.java#L154-L158 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditmessages.java | auditmessages.get | public static auditmessages[] get(nitro_service service, auditmessages_args args) throws Exception{
auditmessages obj = new auditmessages();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
auditmessages[] response = (auditmessages[])obj.get_resources(service, option);
return response;
} | java | public static auditmessages[] get(nitro_service service, auditmessages_args args) throws Exception{
auditmessages obj = new auditmessages();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
auditmessages[] response = (auditmessages[])obj.get_resources(service, option);
return response;
} | [
"public",
"static",
"auditmessages",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"auditmessages_args",
"args",
")",
"throws",
"Exception",
"{",
"auditmessages",
"obj",
"=",
"new",
"auditmessages",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_args",
"(",
"nitro_util",
".",
"object_to_string_withoutquotes",
"(",
"args",
")",
")",
";",
"auditmessages",
"[",
"]",
"response",
"=",
"(",
"auditmessages",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the auditmessages resources that are configured on netscaler.
This uses auditmessages_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"auditmessages",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"auditmessages_args",
"which",
"is",
"a",
"way",
"to",
"provide",
"additional",
"arguments",
"while",
"fetching",
"the",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditmessages.java#L171-L177 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel_policybinding_binding.java | cmppolicylabel_policybinding_binding.get | public static cmppolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
cmppolicylabel_policybinding_binding obj = new cmppolicylabel_policybinding_binding();
obj.set_labelname(labelname);
cmppolicylabel_policybinding_binding response[] = (cmppolicylabel_policybinding_binding[]) obj.get_resources(service);
return response;
} | java | public static cmppolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
cmppolicylabel_policybinding_binding obj = new cmppolicylabel_policybinding_binding();
obj.set_labelname(labelname);
cmppolicylabel_policybinding_binding response[] = (cmppolicylabel_policybinding_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"cmppolicylabel_policybinding_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"labelname",
")",
"throws",
"Exception",
"{",
"cmppolicylabel_policybinding_binding",
"obj",
"=",
"new",
"cmppolicylabel_policybinding_binding",
"(",
")",
";",
"obj",
".",
"set_labelname",
"(",
"labelname",
")",
";",
"cmppolicylabel_policybinding_binding",
"response",
"[",
"]",
"=",
"(",
"cmppolicylabel_policybinding_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch cmppolicylabel_policybinding_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"cmppolicylabel_policybinding_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel_policybinding_binding.java#L225-L230 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_appcontroller_binding.java | vpnglobal_appcontroller_binding.get | public static vpnglobal_appcontroller_binding[] get(nitro_service service) throws Exception{
vpnglobal_appcontroller_binding obj = new vpnglobal_appcontroller_binding();
vpnglobal_appcontroller_binding response[] = (vpnglobal_appcontroller_binding[]) obj.get_resources(service);
return response;
} | java | public static vpnglobal_appcontroller_binding[] get(nitro_service service) throws Exception{
vpnglobal_appcontroller_binding obj = new vpnglobal_appcontroller_binding();
vpnglobal_appcontroller_binding response[] = (vpnglobal_appcontroller_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vpnglobal_appcontroller_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"vpnglobal_appcontroller_binding",
"obj",
"=",
"new",
"vpnglobal_appcontroller_binding",
"(",
")",
";",
"vpnglobal_appcontroller_binding",
"response",
"[",
"]",
"=",
"(",
"vpnglobal_appcontroller_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a vpnglobal_appcontroller_binding resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"vpnglobal_appcontroller_binding",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_appcontroller_binding.java#L131-L135 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/sequences/Clique.java | Clique.valueOfHelper | private static Clique valueOfHelper(int[] relativeIndices) {
// if clique already exists, return that one
Clique c = new Clique();
c.relativeIndices = relativeIndices;
return intern(c);
} | java | private static Clique valueOfHelper(int[] relativeIndices) {
// if clique already exists, return that one
Clique c = new Clique();
c.relativeIndices = relativeIndices;
return intern(c);
} | [
"private",
"static",
"Clique",
"valueOfHelper",
"(",
"int",
"[",
"]",
"relativeIndices",
")",
"{",
"// if clique already exists, return that one\r",
"Clique",
"c",
"=",
"new",
"Clique",
"(",
")",
";",
"c",
".",
"relativeIndices",
"=",
"relativeIndices",
";",
"return",
"intern",
"(",
"c",
")",
";",
"}"
] | This version assumes relativeIndices array no longer needs to
be copied. Further it is assumed that it has already been
checked or assured by construction that relativeIndices
is sorted. | [
"This",
"version",
"assumes",
"relativeIndices",
"array",
"no",
"longer",
"needs",
"to",
"be",
"copied",
".",
"Further",
"it",
"is",
"assumed",
"that",
"it",
"has",
"already",
"been",
"checked",
"or",
"assured",
"by",
"construction",
"that",
"relativeIndices",
"is",
"sorted",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/sequences/Clique.java#L102-L107 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/sequences/Clique.java | Clique.checkSorted | private static void checkSorted(int[] sorted) {
for (int i = 0; i < sorted.length-1; i++) {
if (sorted[i] > sorted[i+1]) {
throw new RuntimeException("input must be sorted!");
}
}
} | java | private static void checkSorted(int[] sorted) {
for (int i = 0; i < sorted.length-1; i++) {
if (sorted[i] > sorted[i+1]) {
throw new RuntimeException("input must be sorted!");
}
}
} | [
"private",
"static",
"void",
"checkSorted",
"(",
"int",
"[",
"]",
"sorted",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"sorted",
".",
"length",
"-",
"1",
";",
"i",
"++",
")",
"{",
"if",
"(",
"sorted",
"[",
"i",
"]",
">",
"sorted",
"[",
"i",
"+",
"1",
"]",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"input must be sorted!\"",
")",
";",
"}",
"}",
"}"
] | Parameter validity check. | [
"Parameter",
"validity",
"check",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/sequences/Clique.java#L110-L116 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaapreauthenticationpolicy_aaaglobal_binding.java | aaapreauthenticationpolicy_aaaglobal_binding.get | public static aaapreauthenticationpolicy_aaaglobal_binding[] get(nitro_service service, String name) throws Exception{
aaapreauthenticationpolicy_aaaglobal_binding obj = new aaapreauthenticationpolicy_aaaglobal_binding();
obj.set_name(name);
aaapreauthenticationpolicy_aaaglobal_binding response[] = (aaapreauthenticationpolicy_aaaglobal_binding[]) obj.get_resources(service);
return response;
} | java | public static aaapreauthenticationpolicy_aaaglobal_binding[] get(nitro_service service, String name) throws Exception{
aaapreauthenticationpolicy_aaaglobal_binding obj = new aaapreauthenticationpolicy_aaaglobal_binding();
obj.set_name(name);
aaapreauthenticationpolicy_aaaglobal_binding response[] = (aaapreauthenticationpolicy_aaaglobal_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"aaapreauthenticationpolicy_aaaglobal_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"aaapreauthenticationpolicy_aaaglobal_binding",
"obj",
"=",
"new",
"aaapreauthenticationpolicy_aaaglobal_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"aaapreauthenticationpolicy_aaaglobal_binding",
"response",
"[",
"]",
"=",
"(",
"aaapreauthenticationpolicy_aaaglobal_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch aaapreauthenticationpolicy_aaaglobal_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"aaapreauthenticationpolicy_aaaglobal_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaapreauthenticationpolicy_aaaglobal_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/dbsmonitors.java | dbsmonitors.restart | public static base_response restart(nitro_service client) throws Exception {
dbsmonitors restartresource = new dbsmonitors();
return restartresource.perform_operation(client,"restart");
} | java | public static base_response restart(nitro_service client) throws Exception {
dbsmonitors restartresource = new dbsmonitors();
return restartresource.perform_operation(client,"restart");
} | [
"public",
"static",
"base_response",
"restart",
"(",
"nitro_service",
"client",
")",
"throws",
"Exception",
"{",
"dbsmonitors",
"restartresource",
"=",
"new",
"dbsmonitors",
"(",
")",
";",
"return",
"restartresource",
".",
"perform_operation",
"(",
"client",
",",
"\"restart\"",
")",
";",
"}"
] | Use this API to restart dbsmonitors. | [
"Use",
"this",
"API",
"to",
"restart",
"dbsmonitors",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/dbsmonitors.java#L75-L78 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/wi/wisite_accessmethod_binding.java | wisite_accessmethod_binding.get | public static wisite_accessmethod_binding[] get(nitro_service service, String sitepath) throws Exception{
wisite_accessmethod_binding obj = new wisite_accessmethod_binding();
obj.set_sitepath(sitepath);
wisite_accessmethod_binding response[] = (wisite_accessmethod_binding[]) obj.get_resources(service);
return response;
} | java | public static wisite_accessmethod_binding[] get(nitro_service service, String sitepath) throws Exception{
wisite_accessmethod_binding obj = new wisite_accessmethod_binding();
obj.set_sitepath(sitepath);
wisite_accessmethod_binding response[] = (wisite_accessmethod_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"wisite_accessmethod_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"sitepath",
")",
"throws",
"Exception",
"{",
"wisite_accessmethod_binding",
"obj",
"=",
"new",
"wisite_accessmethod_binding",
"(",
")",
";",
"obj",
".",
"set_sitepath",
"(",
"sitepath",
")",
";",
"wisite_accessmethod_binding",
"response",
"[",
"]",
"=",
"(",
"wisite_accessmethod_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch wisite_accessmethod_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"wisite_accessmethod_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/wi/wisite_accessmethod_binding.java#L200-L205 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/Pair.java | Pair.makePair | public static <X, Y> Pair<X, Y> makePair(X x, Y y) {
return new Pair<X, Y>(x, y);
} | java | public static <X, Y> Pair<X, Y> makePair(X x, Y y) {
return new Pair<X, Y>(x, y);
} | [
"public",
"static",
"<",
"X",
",",
"Y",
">",
"Pair",
"<",
"X",
",",
"Y",
">",
"makePair",
"(",
"X",
"x",
",",
"Y",
"y",
")",
"{",
"return",
"new",
"Pair",
"<",
"X",
",",
"Y",
">",
"(",
"x",
",",
"y",
")",
";",
"}"
] | Returns a Pair constructed from X and Y. Convenience method; the
compiler will disambiguate the classes used for you so that you
don't have to write out potentially long class names. | [
"Returns",
"a",
"Pair",
"constructed",
"from",
"X",
"and",
"Y",
".",
"Convenience",
"method",
";",
"the",
"compiler",
"will",
"disambiguate",
"the",
"classes",
"used",
"for",
"you",
"so",
"that",
"you",
"don",
"t",
"have",
"to",
"write",
"out",
"potentially",
"long",
"class",
"names",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/Pair.java#L117-L119 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/Pair.java | Pair.stringIntern | public static Pair<String, String> stringIntern(Pair<String, String> p) {
return new MutableInternedPair(p);
} | java | public static Pair<String, String> stringIntern(Pair<String, String> p) {
return new MutableInternedPair(p);
} | [
"public",
"static",
"Pair",
"<",
"String",
",",
"String",
">",
"stringIntern",
"(",
"Pair",
"<",
"String",
",",
"String",
">",
"p",
")",
"{",
"return",
"new",
"MutableInternedPair",
"(",
"p",
")",
";",
"}"
] | If first and second are Strings, then this returns an MutableInternedPair
where the Strings have been interned, and if this Pair is serialized
and then deserialized, first and second are interned upon
deserialization.
@param p A pair of Strings
@return MutableInternedPair, with same first and second as this. | [
"If",
"first",
"and",
"second",
"are",
"Strings",
"then",
"this",
"returns",
"an",
"MutableInternedPair",
"where",
"the",
"Strings",
"have",
"been",
"interned",
"and",
"if",
"this",
"Pair",
"is",
"serialized",
"and",
"then",
"deserialized",
"first",
"and",
"second",
"are",
"interned",
"upon",
"deserialization",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/Pair.java#L177-L179 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationradiusaction.java | authenticationradiusaction.add | public static base_response add(nitro_service client, authenticationradiusaction resource) throws Exception {
authenticationradiusaction addresource = new authenticationradiusaction();
addresource.name = resource.name;
addresource.serverip = resource.serverip;
addresource.serverport = resource.serverport;
addresource.authtimeout = resource.authtimeout;
addresource.radkey = resource.radkey;
addresource.radnasip = resource.radnasip;
addresource.radnasid = resource.radnasid;
addresource.radvendorid = resource.radvendorid;
addresource.radattributetype = resource.radattributetype;
addresource.radgroupsprefix = resource.radgroupsprefix;
addresource.radgroupseparator = resource.radgroupseparator;
addresource.passencoding = resource.passencoding;
addresource.ipvendorid = resource.ipvendorid;
addresource.ipattributetype = resource.ipattributetype;
addresource.accounting = resource.accounting;
addresource.pwdvendorid = resource.pwdvendorid;
addresource.pwdattributetype = resource.pwdattributetype;
addresource.defaultauthenticationgroup = resource.defaultauthenticationgroup;
addresource.callingstationid = resource.callingstationid;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, authenticationradiusaction resource) throws Exception {
authenticationradiusaction addresource = new authenticationradiusaction();
addresource.name = resource.name;
addresource.serverip = resource.serverip;
addresource.serverport = resource.serverport;
addresource.authtimeout = resource.authtimeout;
addresource.radkey = resource.radkey;
addresource.radnasip = resource.radnasip;
addresource.radnasid = resource.radnasid;
addresource.radvendorid = resource.radvendorid;
addresource.radattributetype = resource.radattributetype;
addresource.radgroupsprefix = resource.radgroupsprefix;
addresource.radgroupseparator = resource.radgroupseparator;
addresource.passencoding = resource.passencoding;
addresource.ipvendorid = resource.ipvendorid;
addresource.ipattributetype = resource.ipattributetype;
addresource.accounting = resource.accounting;
addresource.pwdvendorid = resource.pwdvendorid;
addresource.pwdattributetype = resource.pwdattributetype;
addresource.defaultauthenticationgroup = resource.defaultauthenticationgroup;
addresource.callingstationid = resource.callingstationid;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"authenticationradiusaction",
"resource",
")",
"throws",
"Exception",
"{",
"authenticationradiusaction",
"addresource",
"=",
"new",
"authenticationradiusaction",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"addresource",
".",
"serverip",
"=",
"resource",
".",
"serverip",
";",
"addresource",
".",
"serverport",
"=",
"resource",
".",
"serverport",
";",
"addresource",
".",
"authtimeout",
"=",
"resource",
".",
"authtimeout",
";",
"addresource",
".",
"radkey",
"=",
"resource",
".",
"radkey",
";",
"addresource",
".",
"radnasip",
"=",
"resource",
".",
"radnasip",
";",
"addresource",
".",
"radnasid",
"=",
"resource",
".",
"radnasid",
";",
"addresource",
".",
"radvendorid",
"=",
"resource",
".",
"radvendorid",
";",
"addresource",
".",
"radattributetype",
"=",
"resource",
".",
"radattributetype",
";",
"addresource",
".",
"radgroupsprefix",
"=",
"resource",
".",
"radgroupsprefix",
";",
"addresource",
".",
"radgroupseparator",
"=",
"resource",
".",
"radgroupseparator",
";",
"addresource",
".",
"passencoding",
"=",
"resource",
".",
"passencoding",
";",
"addresource",
".",
"ipvendorid",
"=",
"resource",
".",
"ipvendorid",
";",
"addresource",
".",
"ipattributetype",
"=",
"resource",
".",
"ipattributetype",
";",
"addresource",
".",
"accounting",
"=",
"resource",
".",
"accounting",
";",
"addresource",
".",
"pwdvendorid",
"=",
"resource",
".",
"pwdvendorid",
";",
"addresource",
".",
"pwdattributetype",
"=",
"resource",
".",
"pwdattributetype",
";",
"addresource",
".",
"defaultauthenticationgroup",
"=",
"resource",
".",
"defaultauthenticationgroup",
";",
"addresource",
".",
"callingstationid",
"=",
"resource",
".",
"callingstationid",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add authenticationradiusaction. | [
"Use",
"this",
"API",
"to",
"add",
"authenticationradiusaction",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationradiusaction.java#L553-L575 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationradiusaction.java | authenticationradiusaction.add | public static base_responses add(nitro_service client, authenticationradiusaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
authenticationradiusaction addresources[] = new authenticationradiusaction[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new authenticationradiusaction();
addresources[i].name = resources[i].name;
addresources[i].serverip = resources[i].serverip;
addresources[i].serverport = resources[i].serverport;
addresources[i].authtimeout = resources[i].authtimeout;
addresources[i].radkey = resources[i].radkey;
addresources[i].radnasip = resources[i].radnasip;
addresources[i].radnasid = resources[i].radnasid;
addresources[i].radvendorid = resources[i].radvendorid;
addresources[i].radattributetype = resources[i].radattributetype;
addresources[i].radgroupsprefix = resources[i].radgroupsprefix;
addresources[i].radgroupseparator = resources[i].radgroupseparator;
addresources[i].passencoding = resources[i].passencoding;
addresources[i].ipvendorid = resources[i].ipvendorid;
addresources[i].ipattributetype = resources[i].ipattributetype;
addresources[i].accounting = resources[i].accounting;
addresources[i].pwdvendorid = resources[i].pwdvendorid;
addresources[i].pwdattributetype = resources[i].pwdattributetype;
addresources[i].defaultauthenticationgroup = resources[i].defaultauthenticationgroup;
addresources[i].callingstationid = resources[i].callingstationid;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | public static base_responses add(nitro_service client, authenticationradiusaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
authenticationradiusaction addresources[] = new authenticationradiusaction[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new authenticationradiusaction();
addresources[i].name = resources[i].name;
addresources[i].serverip = resources[i].serverip;
addresources[i].serverport = resources[i].serverport;
addresources[i].authtimeout = resources[i].authtimeout;
addresources[i].radkey = resources[i].radkey;
addresources[i].radnasip = resources[i].radnasip;
addresources[i].radnasid = resources[i].radnasid;
addresources[i].radvendorid = resources[i].radvendorid;
addresources[i].radattributetype = resources[i].radattributetype;
addresources[i].radgroupsprefix = resources[i].radgroupsprefix;
addresources[i].radgroupseparator = resources[i].radgroupseparator;
addresources[i].passencoding = resources[i].passencoding;
addresources[i].ipvendorid = resources[i].ipvendorid;
addresources[i].ipattributetype = resources[i].ipattributetype;
addresources[i].accounting = resources[i].accounting;
addresources[i].pwdvendorid = resources[i].pwdvendorid;
addresources[i].pwdattributetype = resources[i].pwdattributetype;
addresources[i].defaultauthenticationgroup = resources[i].defaultauthenticationgroup;
addresources[i].callingstationid = resources[i].callingstationid;
}
result = add_bulk_request(client, addresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"authenticationradiusaction",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"authenticationradiusaction",
"addresources",
"[",
"]",
"=",
"new",
"authenticationradiusaction",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"addresources",
"[",
"i",
"]",
"=",
"new",
"authenticationradiusaction",
"(",
")",
";",
"addresources",
"[",
"i",
"]",
".",
"name",
"=",
"resources",
"[",
"i",
"]",
".",
"name",
";",
"addresources",
"[",
"i",
"]",
".",
"serverip",
"=",
"resources",
"[",
"i",
"]",
".",
"serverip",
";",
"addresources",
"[",
"i",
"]",
".",
"serverport",
"=",
"resources",
"[",
"i",
"]",
".",
"serverport",
";",
"addresources",
"[",
"i",
"]",
".",
"authtimeout",
"=",
"resources",
"[",
"i",
"]",
".",
"authtimeout",
";",
"addresources",
"[",
"i",
"]",
".",
"radkey",
"=",
"resources",
"[",
"i",
"]",
".",
"radkey",
";",
"addresources",
"[",
"i",
"]",
".",
"radnasip",
"=",
"resources",
"[",
"i",
"]",
".",
"radnasip",
";",
"addresources",
"[",
"i",
"]",
".",
"radnasid",
"=",
"resources",
"[",
"i",
"]",
".",
"radnasid",
";",
"addresources",
"[",
"i",
"]",
".",
"radvendorid",
"=",
"resources",
"[",
"i",
"]",
".",
"radvendorid",
";",
"addresources",
"[",
"i",
"]",
".",
"radattributetype",
"=",
"resources",
"[",
"i",
"]",
".",
"radattributetype",
";",
"addresources",
"[",
"i",
"]",
".",
"radgroupsprefix",
"=",
"resources",
"[",
"i",
"]",
".",
"radgroupsprefix",
";",
"addresources",
"[",
"i",
"]",
".",
"radgroupseparator",
"=",
"resources",
"[",
"i",
"]",
".",
"radgroupseparator",
";",
"addresources",
"[",
"i",
"]",
".",
"passencoding",
"=",
"resources",
"[",
"i",
"]",
".",
"passencoding",
";",
"addresources",
"[",
"i",
"]",
".",
"ipvendorid",
"=",
"resources",
"[",
"i",
"]",
".",
"ipvendorid",
";",
"addresources",
"[",
"i",
"]",
".",
"ipattributetype",
"=",
"resources",
"[",
"i",
"]",
".",
"ipattributetype",
";",
"addresources",
"[",
"i",
"]",
".",
"accounting",
"=",
"resources",
"[",
"i",
"]",
".",
"accounting",
";",
"addresources",
"[",
"i",
"]",
".",
"pwdvendorid",
"=",
"resources",
"[",
"i",
"]",
".",
"pwdvendorid",
";",
"addresources",
"[",
"i",
"]",
".",
"pwdattributetype",
"=",
"resources",
"[",
"i",
"]",
".",
"pwdattributetype",
";",
"addresources",
"[",
"i",
"]",
".",
"defaultauthenticationgroup",
"=",
"resources",
"[",
"i",
"]",
".",
"defaultauthenticationgroup",
";",
"addresources",
"[",
"i",
"]",
".",
"callingstationid",
"=",
"resources",
"[",
"i",
"]",
".",
"callingstationid",
";",
"}",
"result",
"=",
"add_bulk_request",
"(",
"client",
",",
"addresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to add authenticationradiusaction resources. | [
"Use",
"this",
"API",
"to",
"add",
"authenticationradiusaction",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationradiusaction.java#L580-L609 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationradiusaction.java | authenticationradiusaction.get | public static authenticationradiusaction[] get(nitro_service service) throws Exception{
authenticationradiusaction obj = new authenticationradiusaction();
authenticationradiusaction[] response = (authenticationradiusaction[])obj.get_resources(service);
return response;
} | java | public static authenticationradiusaction[] get(nitro_service service) throws Exception{
authenticationradiusaction obj = new authenticationradiusaction();
authenticationradiusaction[] response = (authenticationradiusaction[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"authenticationradiusaction",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"authenticationradiusaction",
"obj",
"=",
"new",
"authenticationradiusaction",
"(",
")",
";",
"authenticationradiusaction",
"[",
"]",
"response",
"=",
"(",
"authenticationradiusaction",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the authenticationradiusaction resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"authenticationradiusaction",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationradiusaction.java#L769-L773 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationradiusaction.java | authenticationradiusaction.get | public static authenticationradiusaction get(nitro_service service, String name) throws Exception{
authenticationradiusaction obj = new authenticationradiusaction();
obj.set_name(name);
authenticationradiusaction response = (authenticationradiusaction) obj.get_resource(service);
return response;
} | java | public static authenticationradiusaction get(nitro_service service, String name) throws Exception{
authenticationradiusaction obj = new authenticationradiusaction();
obj.set_name(name);
authenticationradiusaction response = (authenticationradiusaction) obj.get_resource(service);
return response;
} | [
"public",
"static",
"authenticationradiusaction",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"authenticationradiusaction",
"obj",
"=",
"new",
"authenticationradiusaction",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"authenticationradiusaction",
"response",
"=",
"(",
"authenticationradiusaction",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch authenticationradiusaction resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"authenticationradiusaction",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationradiusaction.java#L785-L790 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationradiusaction.java | authenticationradiusaction.get_filtered | public static authenticationradiusaction[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
authenticationradiusaction obj = new authenticationradiusaction();
options option = new options();
option.set_filter(filter);
authenticationradiusaction[] response = (authenticationradiusaction[]) obj.getfiltered(service, option);
return response;
} | java | public static authenticationradiusaction[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
authenticationradiusaction obj = new authenticationradiusaction();
options option = new options();
option.set_filter(filter);
authenticationradiusaction[] response = (authenticationradiusaction[]) obj.getfiltered(service, option);
return response;
} | [
"public",
"static",
"authenticationradiusaction",
"[",
"]",
"get_filtered",
"(",
"nitro_service",
"service",
",",
"filtervalue",
"[",
"]",
"filter",
")",
"throws",
"Exception",
"{",
"authenticationradiusaction",
"obj",
"=",
"new",
"authenticationradiusaction",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_filter",
"(",
"filter",
")",
";",
"authenticationradiusaction",
"[",
"]",
"response",
"=",
"(",
"authenticationradiusaction",
"[",
"]",
")",
"obj",
".",
"getfiltered",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch filtered set of authenticationradiusaction resources.
set the filter parameter values in filtervalue object. | [
"Use",
"this",
"API",
"to",
"fetch",
"filtered",
"set",
"of",
"authenticationradiusaction",
"resources",
".",
"set",
"the",
"filter",
"parameter",
"values",
"in",
"filtervalue",
"object",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationradiusaction.java#L824-L830 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslcertkey_sslvserver_binding.java | sslcertkey_sslvserver_binding.get | public static sslcertkey_sslvserver_binding[] get(nitro_service service, String certkey) throws Exception{
sslcertkey_sslvserver_binding obj = new sslcertkey_sslvserver_binding();
obj.set_certkey(certkey);
sslcertkey_sslvserver_binding response[] = (sslcertkey_sslvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static sslcertkey_sslvserver_binding[] get(nitro_service service, String certkey) throws Exception{
sslcertkey_sslvserver_binding obj = new sslcertkey_sslvserver_binding();
obj.set_certkey(certkey);
sslcertkey_sslvserver_binding response[] = (sslcertkey_sslvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"sslcertkey_sslvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"certkey",
")",
"throws",
"Exception",
"{",
"sslcertkey_sslvserver_binding",
"obj",
"=",
"new",
"sslcertkey_sslvserver_binding",
"(",
")",
";",
"obj",
".",
"set_certkey",
"(",
"certkey",
")",
";",
"sslcertkey_sslvserver_binding",
"response",
"[",
"]",
"=",
"(",
"sslcertkey_sslvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch sslcertkey_sslvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"sslcertkey_sslvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslcertkey_sslvserver_binding.java#L235-L240 | train |
chen0040/java-moea | src/main/java/com/github/chen0040/moea/problems/TNK.java | TNK.getConstraint | private double getConstraint(double x1, double x2)
{
double c1,c2,h;
c1 = -x1*x1-x2*x2+1+0.1*Math.cos(16*Math.atan(x1/x2));
c2 = (x1-0.5)*(x1-0.5)+(x2-0.5)*(x2-0.5)-0.5;
if(c1>c2)
h = (c1>0)?c1:0;
else
h = (c2>0)?c2:0;
return h;
} | java | private double getConstraint(double x1, double x2)
{
double c1,c2,h;
c1 = -x1*x1-x2*x2+1+0.1*Math.cos(16*Math.atan(x1/x2));
c2 = (x1-0.5)*(x1-0.5)+(x2-0.5)*(x2-0.5)-0.5;
if(c1>c2)
h = (c1>0)?c1:0;
else
h = (c2>0)?c2:0;
return h;
} | [
"private",
"double",
"getConstraint",
"(",
"double",
"x1",
",",
"double",
"x2",
")",
"{",
"double",
"c1",
",",
"c2",
",",
"h",
";",
"c1",
"=",
"-",
"x1",
"*",
"x1",
"-",
"x2",
"*",
"x2",
"+",
"1",
"+",
"0.1",
"*",
"Math",
".",
"cos",
"(",
"16",
"*",
"Math",
".",
"atan",
"(",
"x1",
"/",
"x2",
")",
")",
";",
"c2",
"=",
"(",
"x1",
"-",
"0.5",
")",
"*",
"(",
"x1",
"-",
"0.5",
")",
"+",
"(",
"x2",
"-",
"0.5",
")",
"*",
"(",
"x2",
"-",
"0.5",
")",
"-",
"0.5",
";",
"if",
"(",
"c1",
">",
"c2",
")",
"h",
"=",
"(",
"c1",
">",
"0",
")",
"?",
"c1",
":",
"0",
";",
"else",
"h",
"=",
"(",
"c2",
">",
"0",
")",
"?",
"c2",
":",
"0",
";",
"return",
"h",
";",
"}"
] | use the design parameters to compute the constraint equation to get the value | [
"use",
"the",
"design",
"parameters",
"to",
"compute",
"the",
"constraint",
"equation",
"to",
"get",
"the",
"value"
] | 2d865b5ba5a333f44883333efe590460aad7d545 | https://github.com/chen0040/java-moea/blob/2d865b5ba5a333f44883333efe590460aad7d545/src/main/java/com/github/chen0040/moea/problems/TNK.java#L42-L52 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/lb/lbvserver_stats.java | lbvserver_stats.get | public static lbvserver_stats[] get(nitro_service service) throws Exception{
lbvserver_stats obj = new lbvserver_stats();
lbvserver_stats[] response = (lbvserver_stats[])obj.stat_resources(service);
return response;
} | java | public static lbvserver_stats[] get(nitro_service service) throws Exception{
lbvserver_stats obj = new lbvserver_stats();
lbvserver_stats[] response = (lbvserver_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"lbvserver_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"lbvserver_stats",
"obj",
"=",
"new",
"lbvserver_stats",
"(",
")",
";",
"lbvserver_stats",
"[",
"]",
"response",
"=",
"(",
"lbvserver_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all lbvserver_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"lbvserver_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/lb/lbvserver_stats.java#L499-L503 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/lb/lbvserver_stats.java | lbvserver_stats.get | public static lbvserver_stats get(nitro_service service, String name) throws Exception{
lbvserver_stats obj = new lbvserver_stats();
obj.set_name(name);
lbvserver_stats response = (lbvserver_stats) obj.stat_resource(service);
return response;
} | java | public static lbvserver_stats get(nitro_service service, String name) throws Exception{
lbvserver_stats obj = new lbvserver_stats();
obj.set_name(name);
lbvserver_stats response = (lbvserver_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"lbvserver_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"lbvserver_stats",
"obj",
"=",
"new",
"lbvserver_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"lbvserver_stats",
"response",
"=",
"(",
"lbvserver_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of lbvserver_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"lbvserver_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/lb/lbvserver_stats.java#L517-L522 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/tree/MtasRBTree.java | MtasRBTree.updateMax | private void updateMax(MtasRBTreeNode n, MtasRBTreeNode c) {
if (c != null) {
if (n.max < c.max) {
n.max = c.max;
}
}
} | java | private void updateMax(MtasRBTreeNode n, MtasRBTreeNode c) {
if (c != null) {
if (n.max < c.max) {
n.max = c.max;
}
}
} | [
"private",
"void",
"updateMax",
"(",
"MtasRBTreeNode",
"n",
",",
"MtasRBTreeNode",
"c",
")",
"{",
"if",
"(",
"c",
"!=",
"null",
")",
"{",
"if",
"(",
"n",
".",
"max",
"<",
"c",
".",
"max",
")",
"{",
"n",
".",
"max",
"=",
"c",
".",
"max",
";",
"}",
"}",
"}"
] | Update max.
@param n the n
@param c the c | [
"Update",
"max",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/tree/MtasRBTree.java#L124-L130 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/tree/MtasRBTree.java | MtasRBTree.setMax | private void setMax(MtasRBTreeNode n) {
n.max = n.right;
if (n.leftChild != null) {
n.max = Math.max(n.max, n.leftChild.max);
}
if (n.rightChild != null) {
n.max = Math.max(n.max, n.rightChild.max);
}
} | java | private void setMax(MtasRBTreeNode n) {
n.max = n.right;
if (n.leftChild != null) {
n.max = Math.max(n.max, n.leftChild.max);
}
if (n.rightChild != null) {
n.max = Math.max(n.max, n.rightChild.max);
}
} | [
"private",
"void",
"setMax",
"(",
"MtasRBTreeNode",
"n",
")",
"{",
"n",
".",
"max",
"=",
"n",
".",
"right",
";",
"if",
"(",
"n",
".",
"leftChild",
"!=",
"null",
")",
"{",
"n",
".",
"max",
"=",
"Math",
".",
"max",
"(",
"n",
".",
"max",
",",
"n",
".",
"leftChild",
".",
"max",
")",
";",
"}",
"if",
"(",
"n",
".",
"rightChild",
"!=",
"null",
")",
"{",
"n",
".",
"max",
"=",
"Math",
".",
"max",
"(",
"n",
".",
"max",
",",
"n",
".",
"rightChild",
".",
"max",
")",
";",
"}",
"}"
] | Sets the max.
@param n the new max | [
"Sets",
"the",
"max",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/tree/MtasRBTree.java#L220-L228 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterhtmlinjectionparameter.java | filterhtmlinjectionparameter.update | public static base_response update(nitro_service client, filterhtmlinjectionparameter resource) throws Exception {
filterhtmlinjectionparameter updateresource = new filterhtmlinjectionparameter();
updateresource.rate = resource.rate;
updateresource.frequency = resource.frequency;
updateresource.strict = resource.strict;
updateresource.htmlsearchlen = resource.htmlsearchlen;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, filterhtmlinjectionparameter resource) throws Exception {
filterhtmlinjectionparameter updateresource = new filterhtmlinjectionparameter();
updateresource.rate = resource.rate;
updateresource.frequency = resource.frequency;
updateresource.strict = resource.strict;
updateresource.htmlsearchlen = resource.htmlsearchlen;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"filterhtmlinjectionparameter",
"resource",
")",
"throws",
"Exception",
"{",
"filterhtmlinjectionparameter",
"updateresource",
"=",
"new",
"filterhtmlinjectionparameter",
"(",
")",
";",
"updateresource",
".",
"rate",
"=",
"resource",
".",
"rate",
";",
"updateresource",
".",
"frequency",
"=",
"resource",
".",
"frequency",
";",
"updateresource",
".",
"strict",
"=",
"resource",
".",
"strict",
";",
"updateresource",
".",
"htmlsearchlen",
"=",
"resource",
".",
"htmlsearchlen",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update filterhtmlinjectionparameter. | [
"Use",
"this",
"API",
"to",
"update",
"filterhtmlinjectionparameter",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterhtmlinjectionparameter.java#L178-L185 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterhtmlinjectionparameter.java | filterhtmlinjectionparameter.unset | public static base_response unset(nitro_service client, filterhtmlinjectionparameter resource, String[] args) throws Exception{
filterhtmlinjectionparameter unsetresource = new filterhtmlinjectionparameter();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, filterhtmlinjectionparameter resource, String[] args) throws Exception{
filterhtmlinjectionparameter unsetresource = new filterhtmlinjectionparameter();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"filterhtmlinjectionparameter",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"filterhtmlinjectionparameter",
"unsetresource",
"=",
"new",
"filterhtmlinjectionparameter",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of filterhtmlinjectionparameter resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"filterhtmlinjectionparameter",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterhtmlinjectionparameter.java#L191-L194 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterhtmlinjectionparameter.java | filterhtmlinjectionparameter.get | public static filterhtmlinjectionparameter get(nitro_service service, options option) throws Exception{
filterhtmlinjectionparameter obj = new filterhtmlinjectionparameter();
filterhtmlinjectionparameter[] response = (filterhtmlinjectionparameter[])obj.get_resources(service,option);
return response[0];
} | java | public static filterhtmlinjectionparameter get(nitro_service service, options option) throws Exception{
filterhtmlinjectionparameter obj = new filterhtmlinjectionparameter();
filterhtmlinjectionparameter[] response = (filterhtmlinjectionparameter[])obj.get_resources(service,option);
return response[0];
} | [
"public",
"static",
"filterhtmlinjectionparameter",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"filterhtmlinjectionparameter",
"obj",
"=",
"new",
"filterhtmlinjectionparameter",
"(",
")",
";",
"filterhtmlinjectionparameter",
"[",
"]",
"response",
"=",
"(",
"filterhtmlinjectionparameter",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the filterhtmlinjectionparameter resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"filterhtmlinjectionparameter",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterhtmlinjectionparameter.java#L208-L212 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaauser_binding.java | aaauser_binding.get | public static aaauser_binding get(nitro_service service, String username) throws Exception{
aaauser_binding obj = new aaauser_binding();
obj.set_username(username);
aaauser_binding response = (aaauser_binding) obj.get_resource(service);
return response;
} | java | public static aaauser_binding get(nitro_service service, String username) throws Exception{
aaauser_binding obj = new aaauser_binding();
obj.set_username(username);
aaauser_binding response = (aaauser_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"aaauser_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"username",
")",
"throws",
"Exception",
"{",
"aaauser_binding",
"obj",
"=",
"new",
"aaauser_binding",
"(",
")",
";",
"obj",
".",
"set_username",
"(",
"username",
")",
";",
"aaauser_binding",
"response",
"=",
"(",
"aaauser_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch aaauser_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"aaauser_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaauser_binding.java#L202-L207 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver_sslcertkey_binding.java | sslvserver_sslcertkey_binding.get | public static sslvserver_sslcertkey_binding[] get(nitro_service service, String vservername) throws Exception{
sslvserver_sslcertkey_binding obj = new sslvserver_sslcertkey_binding();
obj.set_vservername(vservername);
sslvserver_sslcertkey_binding response[] = (sslvserver_sslcertkey_binding[]) obj.get_resources(service);
return response;
} | java | public static sslvserver_sslcertkey_binding[] get(nitro_service service, String vservername) throws Exception{
sslvserver_sslcertkey_binding obj = new sslvserver_sslcertkey_binding();
obj.set_vservername(vservername);
sslvserver_sslcertkey_binding response[] = (sslvserver_sslcertkey_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"sslvserver_sslcertkey_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"vservername",
")",
"throws",
"Exception",
"{",
"sslvserver_sslcertkey_binding",
"obj",
"=",
"new",
"sslvserver_sslcertkey_binding",
"(",
")",
";",
"obj",
".",
"set_vservername",
"(",
"vservername",
")",
";",
"sslvserver_sslcertkey_binding",
"response",
"[",
"]",
"=",
"(",
"sslvserver_sslcertkey_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch sslvserver_sslcertkey_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"sslvserver_sslcertkey_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver_sslcertkey_binding.java#L304-L309 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmsessionparameter.java | tmsessionparameter.unset | public static base_response unset(nitro_service client, tmsessionparameter resource, String[] args) throws Exception{
tmsessionparameter unsetresource = new tmsessionparameter();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, tmsessionparameter resource, String[] args) throws Exception{
tmsessionparameter unsetresource = new tmsessionparameter();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"tmsessionparameter",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"tmsessionparameter",
"unsetresource",
"=",
"new",
"tmsessionparameter",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of tmsessionparameter resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"tmsessionparameter",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmsessionparameter.java#L315-L318 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmsessionparameter.java | tmsessionparameter.get | public static tmsessionparameter get(nitro_service service) throws Exception{
tmsessionparameter obj = new tmsessionparameter();
tmsessionparameter[] response = (tmsessionparameter[])obj.get_resources(service);
return response[0];
} | java | public static tmsessionparameter get(nitro_service service) throws Exception{
tmsessionparameter obj = new tmsessionparameter();
tmsessionparameter[] response = (tmsessionparameter[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"tmsessionparameter",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"tmsessionparameter",
"obj",
"=",
"new",
"tmsessionparameter",
"(",
")",
";",
"tmsessionparameter",
"[",
"]",
"response",
"=",
"(",
"tmsessionparameter",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the tmsessionparameter resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"tmsessionparameter",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmsessionparameter.java#L323-L327 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java | systemuser.add | public static base_response add(nitro_service client, systemuser resource) throws Exception {
systemuser addresource = new systemuser();
addresource.username = resource.username;
addresource.password = resource.password;
addresource.externalauth = resource.externalauth;
addresource.promptstring = resource.promptstring;
addresource.timeout = resource.timeout;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, systemuser resource) throws Exception {
systemuser addresource = new systemuser();
addresource.username = resource.username;
addresource.password = resource.password;
addresource.externalauth = resource.externalauth;
addresource.promptstring = resource.promptstring;
addresource.timeout = resource.timeout;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"systemuser",
"resource",
")",
"throws",
"Exception",
"{",
"systemuser",
"addresource",
"=",
"new",
"systemuser",
"(",
")",
";",
"addresource",
".",
"username",
"=",
"resource",
".",
"username",
";",
"addresource",
".",
"password",
"=",
"resource",
".",
"password",
";",
"addresource",
".",
"externalauth",
"=",
"resource",
".",
"externalauth",
";",
"addresource",
".",
"promptstring",
"=",
"resource",
".",
"promptstring",
";",
"addresource",
".",
"timeout",
"=",
"resource",
".",
"timeout",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add systemuser. | [
"Use",
"this",
"API",
"to",
"add",
"systemuser",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java#L231-L239 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java | systemuser.add | public static base_responses add(nitro_service client, systemuser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systemuser addresources[] = new systemuser[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new systemuser();
addresources[i].username = resources[i].username;
addresources[i].password = resources[i].password;
addresources[i].externalauth = resources[i].externalauth;
addresources[i].promptstring = resources[i].promptstring;
addresources[i].timeout = resources[i].timeout;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | public static base_responses add(nitro_service client, systemuser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systemuser addresources[] = new systemuser[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new systemuser();
addresources[i].username = resources[i].username;
addresources[i].password = resources[i].password;
addresources[i].externalauth = resources[i].externalauth;
addresources[i].promptstring = resources[i].promptstring;
addresources[i].timeout = resources[i].timeout;
}
result = add_bulk_request(client, addresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"systemuser",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"systemuser",
"addresources",
"[",
"]",
"=",
"new",
"systemuser",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"addresources",
"[",
"i",
"]",
"=",
"new",
"systemuser",
"(",
")",
";",
"addresources",
"[",
"i",
"]",
".",
"username",
"=",
"resources",
"[",
"i",
"]",
".",
"username",
";",
"addresources",
"[",
"i",
"]",
".",
"password",
"=",
"resources",
"[",
"i",
"]",
".",
"password",
";",
"addresources",
"[",
"i",
"]",
".",
"externalauth",
"=",
"resources",
"[",
"i",
"]",
".",
"externalauth",
";",
"addresources",
"[",
"i",
"]",
".",
"promptstring",
"=",
"resources",
"[",
"i",
"]",
".",
"promptstring",
";",
"addresources",
"[",
"i",
"]",
".",
"timeout",
"=",
"resources",
"[",
"i",
"]",
".",
"timeout",
";",
"}",
"result",
"=",
"add_bulk_request",
"(",
"client",
",",
"addresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to add systemuser resources. | [
"Use",
"this",
"API",
"to",
"add",
"systemuser",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java#L244-L259 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java | systemuser.delete | public static base_response delete(nitro_service client, String username) throws Exception {
systemuser deleteresource = new systemuser();
deleteresource.username = username;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, String username) throws Exception {
systemuser deleteresource = new systemuser();
deleteresource.username = username;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"username",
")",
"throws",
"Exception",
"{",
"systemuser",
"deleteresource",
"=",
"new",
"systemuser",
"(",
")",
";",
"deleteresource",
".",
"username",
"=",
"username",
";",
"return",
"deleteresource",
".",
"delete_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to delete systemuser of given name. | [
"Use",
"this",
"API",
"to",
"delete",
"systemuser",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java#L264-L268 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java | systemuser.update | public static base_response update(nitro_service client, systemuser resource) throws Exception {
systemuser updateresource = new systemuser();
updateresource.username = resource.username;
updateresource.password = resource.password;
updateresource.externalauth = resource.externalauth;
updateresource.promptstring = resource.promptstring;
updateresource.timeout = resource.timeout;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, systemuser resource) throws Exception {
systemuser updateresource = new systemuser();
updateresource.username = resource.username;
updateresource.password = resource.password;
updateresource.externalauth = resource.externalauth;
updateresource.promptstring = resource.promptstring;
updateresource.timeout = resource.timeout;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"systemuser",
"resource",
")",
"throws",
"Exception",
"{",
"systemuser",
"updateresource",
"=",
"new",
"systemuser",
"(",
")",
";",
"updateresource",
".",
"username",
"=",
"resource",
".",
"username",
";",
"updateresource",
".",
"password",
"=",
"resource",
".",
"password",
";",
"updateresource",
".",
"externalauth",
"=",
"resource",
".",
"externalauth",
";",
"updateresource",
".",
"promptstring",
"=",
"resource",
".",
"promptstring",
";",
"updateresource",
".",
"timeout",
"=",
"resource",
".",
"timeout",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update systemuser. | [
"Use",
"this",
"API",
"to",
"update",
"systemuser",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java#L314-L322 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java | systemuser.update | public static base_responses update(nitro_service client, systemuser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systemuser updateresources[] = new systemuser[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new systemuser();
updateresources[i].username = resources[i].username;
updateresources[i].password = resources[i].password;
updateresources[i].externalauth = resources[i].externalauth;
updateresources[i].promptstring = resources[i].promptstring;
updateresources[i].timeout = resources[i].timeout;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | public static base_responses update(nitro_service client, systemuser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systemuser updateresources[] = new systemuser[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new systemuser();
updateresources[i].username = resources[i].username;
updateresources[i].password = resources[i].password;
updateresources[i].externalauth = resources[i].externalauth;
updateresources[i].promptstring = resources[i].promptstring;
updateresources[i].timeout = resources[i].timeout;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"systemuser",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"systemuser",
"updateresources",
"[",
"]",
"=",
"new",
"systemuser",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"updateresources",
"[",
"i",
"]",
"=",
"new",
"systemuser",
"(",
")",
";",
"updateresources",
"[",
"i",
"]",
".",
"username",
"=",
"resources",
"[",
"i",
"]",
".",
"username",
";",
"updateresources",
"[",
"i",
"]",
".",
"password",
"=",
"resources",
"[",
"i",
"]",
".",
"password",
";",
"updateresources",
"[",
"i",
"]",
".",
"externalauth",
"=",
"resources",
"[",
"i",
"]",
".",
"externalauth",
";",
"updateresources",
"[",
"i",
"]",
".",
"promptstring",
"=",
"resources",
"[",
"i",
"]",
".",
"promptstring",
";",
"updateresources",
"[",
"i",
"]",
".",
"timeout",
"=",
"resources",
"[",
"i",
"]",
".",
"timeout",
";",
"}",
"result",
"=",
"update_bulk_request",
"(",
"client",
",",
"updateresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to update systemuser resources. | [
"Use",
"this",
"API",
"to",
"update",
"systemuser",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java#L327-L342 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java | systemuser.unset | public static base_response unset(nitro_service client, systemuser resource, String[] args) throws Exception{
systemuser unsetresource = new systemuser();
unsetresource.username = resource.username;
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, systemuser resource, String[] args) throws Exception{
systemuser unsetresource = new systemuser();
unsetresource.username = resource.username;
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"systemuser",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"systemuser",
"unsetresource",
"=",
"new",
"systemuser",
"(",
")",
";",
"unsetresource",
".",
"username",
"=",
"resource",
".",
"username",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of systemuser resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"systemuser",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java#L348-L352 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java | systemuser.unset | public static base_responses unset(nitro_service client, String username[], String args[]) throws Exception {
base_responses result = null;
if (username != null && username.length > 0) {
systemuser unsetresources[] = new systemuser[username.length];
for (int i=0;i<username.length;i++){
unsetresources[i] = new systemuser();
unsetresources[i].username = username[i];
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | java | public static base_responses unset(nitro_service client, String username[], String args[]) throws Exception {
base_responses result = null;
if (username != null && username.length > 0) {
systemuser unsetresources[] = new systemuser[username.length];
for (int i=0;i<username.length;i++){
unsetresources[i] = new systemuser();
unsetresources[i].username = username[i];
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | [
"public",
"static",
"base_responses",
"unset",
"(",
"nitro_service",
"client",
",",
"String",
"username",
"[",
"]",
",",
"String",
"args",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"username",
"!=",
"null",
"&&",
"username",
".",
"length",
">",
"0",
")",
"{",
"systemuser",
"unsetresources",
"[",
"]",
"=",
"new",
"systemuser",
"[",
"username",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"username",
".",
"length",
";",
"i",
"++",
")",
"{",
"unsetresources",
"[",
"i",
"]",
"=",
"new",
"systemuser",
"(",
")",
";",
"unsetresources",
"[",
"i",
"]",
".",
"username",
"=",
"username",
"[",
"i",
"]",
";",
"}",
"result",
"=",
"unset_bulk_request",
"(",
"client",
",",
"unsetresources",
",",
"args",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to unset the properties of systemuser resources.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"systemuser",
"resources",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java#L358-L369 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java | systemuser.get | public static systemuser[] get(nitro_service service) throws Exception{
systemuser obj = new systemuser();
systemuser[] response = (systemuser[])obj.get_resources(service);
return response;
} | java | public static systemuser[] get(nitro_service service) throws Exception{
systemuser obj = new systemuser();
systemuser[] response = (systemuser[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"systemuser",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"systemuser",
"obj",
"=",
"new",
"systemuser",
"(",
")",
";",
"systemuser",
"[",
"]",
"response",
"=",
"(",
"systemuser",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the systemuser resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"systemuser",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java#L391-L395 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java | systemuser.get | public static systemuser get(nitro_service service, String username) throws Exception{
systemuser obj = new systemuser();
obj.set_username(username);
systemuser response = (systemuser) obj.get_resource(service);
return response;
} | java | public static systemuser get(nitro_service service, String username) throws Exception{
systemuser obj = new systemuser();
obj.set_username(username);
systemuser response = (systemuser) obj.get_resource(service);
return response;
} | [
"public",
"static",
"systemuser",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"username",
")",
"throws",
"Exception",
"{",
"systemuser",
"obj",
"=",
"new",
"systemuser",
"(",
")",
";",
"obj",
".",
"set_username",
"(",
"username",
")",
";",
"systemuser",
"response",
"=",
"(",
"systemuser",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch systemuser resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"systemuser",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser.java#L407-L412 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/basic/service_stats.java | service_stats.get | public static service_stats[] get(nitro_service service) throws Exception{
service_stats obj = new service_stats();
service_stats[] response = (service_stats[])obj.stat_resources(service);
return response;
} | java | public static service_stats[] get(nitro_service service) throws Exception{
service_stats obj = new service_stats();
service_stats[] response = (service_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"service_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"service_stats",
"obj",
"=",
"new",
"service_stats",
"(",
")",
";",
"service_stats",
"[",
"]",
"response",
"=",
"(",
"service_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all service_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"service_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/basic/service_stats.java#L372-L376 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/basic/service_stats.java | service_stats.get | public static service_stats get(nitro_service service, String name) throws Exception{
service_stats obj = new service_stats();
obj.set_name(name);
service_stats response = (service_stats) obj.stat_resource(service);
return response;
} | java | public static service_stats get(nitro_service service, String name) throws Exception{
service_stats obj = new service_stats();
obj.set_name(name);
service_stats response = (service_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"service_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"service_stats",
"obj",
"=",
"new",
"service_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"service_stats",
"response",
"=",
"(",
"service_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of service_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"service_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/basic/service_stats.java#L390-L395 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/inatparam.java | inatparam.update | public static base_response update(nitro_service client, inatparam resource) throws Exception {
inatparam updateresource = new inatparam();
updateresource.nat46v6prefix = resource.nat46v6prefix;
updateresource.nat46ignoretos = resource.nat46ignoretos;
updateresource.nat46zerochecksum = resource.nat46zerochecksum;
updateresource.nat46v6mtu = resource.nat46v6mtu;
updateresource.nat46fragheader = resource.nat46fragheader;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, inatparam resource) throws Exception {
inatparam updateresource = new inatparam();
updateresource.nat46v6prefix = resource.nat46v6prefix;
updateresource.nat46ignoretos = resource.nat46ignoretos;
updateresource.nat46zerochecksum = resource.nat46zerochecksum;
updateresource.nat46v6mtu = resource.nat46v6mtu;
updateresource.nat46fragheader = resource.nat46fragheader;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"inatparam",
"resource",
")",
"throws",
"Exception",
"{",
"inatparam",
"updateresource",
"=",
"new",
"inatparam",
"(",
")",
";",
"updateresource",
".",
"nat46v6prefix",
"=",
"resource",
".",
"nat46v6prefix",
";",
"updateresource",
".",
"nat46ignoretos",
"=",
"resource",
".",
"nat46ignoretos",
";",
"updateresource",
".",
"nat46zerochecksum",
"=",
"resource",
".",
"nat46zerochecksum",
";",
"updateresource",
".",
"nat46v6mtu",
"=",
"resource",
".",
"nat46v6mtu",
";",
"updateresource",
".",
"nat46fragheader",
"=",
"resource",
".",
"nat46fragheader",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update inatparam. | [
"Use",
"this",
"API",
"to",
"update",
"inatparam",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/inatparam.java#L179-L187 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/inatparam.java | inatparam.unset | public static base_response unset(nitro_service client, inatparam resource, String[] args) throws Exception{
inatparam unsetresource = new inatparam();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, inatparam resource, String[] args) throws Exception{
inatparam unsetresource = new inatparam();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"inatparam",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"inatparam",
"unsetresource",
"=",
"new",
"inatparam",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of inatparam resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"inatparam",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/inatparam.java#L193-L196 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/inatparam.java | inatparam.get | public static inatparam get(nitro_service service) throws Exception{
inatparam obj = new inatparam();
inatparam[] response = (inatparam[])obj.get_resources(service);
return response[0];
} | java | public static inatparam get(nitro_service service) throws Exception{
inatparam obj = new inatparam();
inatparam[] response = (inatparam[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"inatparam",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"inatparam",
"obj",
"=",
"new",
"inatparam",
"(",
")",
";",
"inatparam",
"[",
"]",
"response",
"=",
"(",
"inatparam",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the inatparam resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"inatparam",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/inatparam.java#L201-L205 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/ie/crf/FloatFactorTable.java | FloatFactorTable.conditionalLogProb | public float conditionalLogProb(int[] given, int of) {
if (given.length != windowSize - 1) {
System.err.println("error computing conditional log prob");
System.exit(0);
}
int[] label = indicesFront(given);
float[] masses = new float[label.length];
for (int i = 0; i < masses.length; i++) {
masses[i] = table[label[i]];
}
float z = ArrayMath.logSum(masses);
return table[indexOf(given, of)] - z;
} | java | public float conditionalLogProb(int[] given, int of) {
if (given.length != windowSize - 1) {
System.err.println("error computing conditional log prob");
System.exit(0);
}
int[] label = indicesFront(given);
float[] masses = new float[label.length];
for (int i = 0; i < masses.length; i++) {
masses[i] = table[label[i]];
}
float z = ArrayMath.logSum(masses);
return table[indexOf(given, of)] - z;
} | [
"public",
"float",
"conditionalLogProb",
"(",
"int",
"[",
"]",
"given",
",",
"int",
"of",
")",
"{",
"if",
"(",
"given",
".",
"length",
"!=",
"windowSize",
"-",
"1",
")",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"error computing conditional log prob\"",
")",
";",
"System",
".",
"exit",
"(",
"0",
")",
";",
"}",
"int",
"[",
"]",
"label",
"=",
"indicesFront",
"(",
"given",
")",
";",
"float",
"[",
"]",
"masses",
"=",
"new",
"float",
"[",
"label",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"masses",
".",
"length",
";",
"i",
"++",
")",
"{",
"masses",
"[",
"i",
"]",
"=",
"table",
"[",
"label",
"[",
"i",
"]",
"]",
";",
"}",
"float",
"z",
"=",
"ArrayMath",
".",
"logSum",
"(",
"masses",
")",
";",
"return",
"table",
"[",
"indexOf",
"(",
"given",
",",
"of",
")",
"]",
"-",
"z",
";",
"}"
] | given is at the begining, of is at the end | [
"given",
"is",
"at",
"the",
"begining",
"of",
"is",
"at",
"the",
"end"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ie/crf/FloatFactorTable.java#L179-L192 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaaparameter.java | aaaparameter.update | public static base_response update(nitro_service client, aaaparameter resource) throws Exception {
aaaparameter updateresource = new aaaparameter();
updateresource.enablestaticpagecaching = resource.enablestaticpagecaching;
updateresource.enableenhancedauthfeedback = resource.enableenhancedauthfeedback;
updateresource.defaultauthtype = resource.defaultauthtype;
updateresource.maxaaausers = resource.maxaaausers;
updateresource.maxloginattempts = resource.maxloginattempts;
updateresource.failedlogintimeout = resource.failedlogintimeout;
updateresource.aaadnatip = resource.aaadnatip;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, aaaparameter resource) throws Exception {
aaaparameter updateresource = new aaaparameter();
updateresource.enablestaticpagecaching = resource.enablestaticpagecaching;
updateresource.enableenhancedauthfeedback = resource.enableenhancedauthfeedback;
updateresource.defaultauthtype = resource.defaultauthtype;
updateresource.maxaaausers = resource.maxaaausers;
updateresource.maxloginattempts = resource.maxloginattempts;
updateresource.failedlogintimeout = resource.failedlogintimeout;
updateresource.aaadnatip = resource.aaadnatip;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"aaaparameter",
"resource",
")",
"throws",
"Exception",
"{",
"aaaparameter",
"updateresource",
"=",
"new",
"aaaparameter",
"(",
")",
";",
"updateresource",
".",
"enablestaticpagecaching",
"=",
"resource",
".",
"enablestaticpagecaching",
";",
"updateresource",
".",
"enableenhancedauthfeedback",
"=",
"resource",
".",
"enableenhancedauthfeedback",
";",
"updateresource",
".",
"defaultauthtype",
"=",
"resource",
".",
"defaultauthtype",
";",
"updateresource",
".",
"maxaaausers",
"=",
"resource",
".",
"maxaaausers",
";",
"updateresource",
".",
"maxloginattempts",
"=",
"resource",
".",
"maxloginattempts",
";",
"updateresource",
".",
"failedlogintimeout",
"=",
"resource",
".",
"failedlogintimeout",
";",
"updateresource",
".",
"aaadnatip",
"=",
"resource",
".",
"aaadnatip",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update aaaparameter. | [
"Use",
"this",
"API",
"to",
"update",
"aaaparameter",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaaparameter.java#L235-L245 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaaparameter.java | aaaparameter.unset | public static base_response unset(nitro_service client, aaaparameter resource, String[] args) throws Exception{
aaaparameter unsetresource = new aaaparameter();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, aaaparameter resource, String[] args) throws Exception{
aaaparameter unsetresource = new aaaparameter();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"aaaparameter",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"aaaparameter",
"unsetresource",
"=",
"new",
"aaaparameter",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of aaaparameter resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"aaaparameter",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaaparameter.java#L251-L254 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaaparameter.java | aaaparameter.get | public static aaaparameter get(nitro_service service) throws Exception{
aaaparameter obj = new aaaparameter();
aaaparameter[] response = (aaaparameter[])obj.get_resources(service);
return response[0];
} | java | public static aaaparameter get(nitro_service service) throws Exception{
aaaparameter obj = new aaaparameter();
aaaparameter[] response = (aaaparameter[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"aaaparameter",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"aaaparameter",
"obj",
"=",
"new",
"aaaparameter",
"(",
")",
";",
"aaaparameter",
"[",
"]",
"response",
"=",
"(",
"aaaparameter",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the aaaparameter resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"aaaparameter",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaaparameter.java#L259-L263 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbvserver_spilloverpolicy_binding.java | gslbvserver_spilloverpolicy_binding.get | public static gslbvserver_spilloverpolicy_binding[] get(nitro_service service, String name) throws Exception{
gslbvserver_spilloverpolicy_binding obj = new gslbvserver_spilloverpolicy_binding();
obj.set_name(name);
gslbvserver_spilloverpolicy_binding response[] = (gslbvserver_spilloverpolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static gslbvserver_spilloverpolicy_binding[] get(nitro_service service, String name) throws Exception{
gslbvserver_spilloverpolicy_binding obj = new gslbvserver_spilloverpolicy_binding();
obj.set_name(name);
gslbvserver_spilloverpolicy_binding response[] = (gslbvserver_spilloverpolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"gslbvserver_spilloverpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"gslbvserver_spilloverpolicy_binding",
"obj",
"=",
"new",
"gslbvserver_spilloverpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"gslbvserver_spilloverpolicy_binding",
"response",
"[",
"]",
"=",
"(",
"gslbvserver_spilloverpolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch gslbvserver_spilloverpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"gslbvserver_spilloverpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbvserver_spilloverpolicy_binding.java#L235-L240 | train |
meertensinstituut/mtas | src/main/java/mtas/parser/cql/util/MtasCQLParserSentencePartCondition.java | MtasCQLParserSentencePartCondition.setFirstOccurence | public void setFirstOccurence(int min, int max) throws ParseException {
if (fullCondition == null) {
if ((min < 0) || (min > max) || (max < 1)) {
throw new ParseException("Illegal number {" + min + "," + max + "}");
}
if (min == 0) {
firstOptional = true;
}
firstMinimumOccurence = Math.max(1, min);
firstMaximumOccurence = max;
} else {
throw new ParseException("fullCondition already generated");
}
} | java | public void setFirstOccurence(int min, int max) throws ParseException {
if (fullCondition == null) {
if ((min < 0) || (min > max) || (max < 1)) {
throw new ParseException("Illegal number {" + min + "," + max + "}");
}
if (min == 0) {
firstOptional = true;
}
firstMinimumOccurence = Math.max(1, min);
firstMaximumOccurence = max;
} else {
throw new ParseException("fullCondition already generated");
}
} | [
"public",
"void",
"setFirstOccurence",
"(",
"int",
"min",
",",
"int",
"max",
")",
"throws",
"ParseException",
"{",
"if",
"(",
"fullCondition",
"==",
"null",
")",
"{",
"if",
"(",
"(",
"min",
"<",
"0",
")",
"||",
"(",
"min",
">",
"max",
")",
"||",
"(",
"max",
"<",
"1",
")",
")",
"{",
"throw",
"new",
"ParseException",
"(",
"\"Illegal number {\"",
"+",
"min",
"+",
"\",\"",
"+",
"max",
"+",
"\"}\"",
")",
";",
"}",
"if",
"(",
"min",
"==",
"0",
")",
"{",
"firstOptional",
"=",
"true",
";",
"}",
"firstMinimumOccurence",
"=",
"Math",
".",
"max",
"(",
"1",
",",
"min",
")",
";",
"firstMaximumOccurence",
"=",
"max",
";",
"}",
"else",
"{",
"throw",
"new",
"ParseException",
"(",
"\"fullCondition already generated\"",
")",
";",
"}",
"}"
] | Sets the first occurence.
@param min the min
@param max the max
@throws ParseException the parse exception | [
"Sets",
"the",
"first",
"occurence",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/parser/cql/util/MtasCQLParserSentencePartCondition.java#L83-L96 | train |
meertensinstituut/mtas | src/main/java/mtas/parser/cql/util/MtasCQLParserSentencePartCondition.java | MtasCQLParserSentencePartCondition.createFullSentence | public MtasCQLParserSentenceCondition createFullSentence()
throws ParseException {
if (fullCondition == null) {
if (secondSentencePart == null) {
if (firstBasicSentence != null) {
fullCondition = new MtasCQLParserSentenceCondition(firstBasicSentence,
ignoreClause, maximumIgnoreLength);
} else {
fullCondition = firstSentence;
}
fullCondition.setOccurence(firstMinimumOccurence,
firstMaximumOccurence);
if (firstOptional) {
fullCondition.setOptional(firstOptional);
}
return fullCondition;
} else {
if (!orOperator) {
if (firstBasicSentence != null) {
firstBasicSentence.setOccurence(firstMinimumOccurence,
firstMaximumOccurence);
firstBasicSentence.setOptional(firstOptional);
fullCondition = new MtasCQLParserSentenceCondition(
firstBasicSentence, ignoreClause, maximumIgnoreLength);
} else {
firstSentence.setOccurence(firstMinimumOccurence,
firstMaximumOccurence);
firstSentence.setOptional(firstOptional);
fullCondition = new MtasCQLParserSentenceCondition(firstSentence,
ignoreClause, maximumIgnoreLength);
}
fullCondition.addSentenceToEndLatestSequence(
secondSentencePart.createFullSentence());
} else {
MtasCQLParserSentenceCondition sentence = secondSentencePart
.createFullSentence();
if (firstBasicSentence != null) {
sentence.addSentenceAsFirstOption(
new MtasCQLParserSentenceCondition(firstBasicSentence,
ignoreClause, maximumIgnoreLength));
} else {
sentence.addSentenceAsFirstOption(firstSentence);
}
fullCondition = sentence;
}
return fullCondition;
}
} else {
return fullCondition;
}
} | java | public MtasCQLParserSentenceCondition createFullSentence()
throws ParseException {
if (fullCondition == null) {
if (secondSentencePart == null) {
if (firstBasicSentence != null) {
fullCondition = new MtasCQLParserSentenceCondition(firstBasicSentence,
ignoreClause, maximumIgnoreLength);
} else {
fullCondition = firstSentence;
}
fullCondition.setOccurence(firstMinimumOccurence,
firstMaximumOccurence);
if (firstOptional) {
fullCondition.setOptional(firstOptional);
}
return fullCondition;
} else {
if (!orOperator) {
if (firstBasicSentence != null) {
firstBasicSentence.setOccurence(firstMinimumOccurence,
firstMaximumOccurence);
firstBasicSentence.setOptional(firstOptional);
fullCondition = new MtasCQLParserSentenceCondition(
firstBasicSentence, ignoreClause, maximumIgnoreLength);
} else {
firstSentence.setOccurence(firstMinimumOccurence,
firstMaximumOccurence);
firstSentence.setOptional(firstOptional);
fullCondition = new MtasCQLParserSentenceCondition(firstSentence,
ignoreClause, maximumIgnoreLength);
}
fullCondition.addSentenceToEndLatestSequence(
secondSentencePart.createFullSentence());
} else {
MtasCQLParserSentenceCondition sentence = secondSentencePart
.createFullSentence();
if (firstBasicSentence != null) {
sentence.addSentenceAsFirstOption(
new MtasCQLParserSentenceCondition(firstBasicSentence,
ignoreClause, maximumIgnoreLength));
} else {
sentence.addSentenceAsFirstOption(firstSentence);
}
fullCondition = sentence;
}
return fullCondition;
}
} else {
return fullCondition;
}
} | [
"public",
"MtasCQLParserSentenceCondition",
"createFullSentence",
"(",
")",
"throws",
"ParseException",
"{",
"if",
"(",
"fullCondition",
"==",
"null",
")",
"{",
"if",
"(",
"secondSentencePart",
"==",
"null",
")",
"{",
"if",
"(",
"firstBasicSentence",
"!=",
"null",
")",
"{",
"fullCondition",
"=",
"new",
"MtasCQLParserSentenceCondition",
"(",
"firstBasicSentence",
",",
"ignoreClause",
",",
"maximumIgnoreLength",
")",
";",
"}",
"else",
"{",
"fullCondition",
"=",
"firstSentence",
";",
"}",
"fullCondition",
".",
"setOccurence",
"(",
"firstMinimumOccurence",
",",
"firstMaximumOccurence",
")",
";",
"if",
"(",
"firstOptional",
")",
"{",
"fullCondition",
".",
"setOptional",
"(",
"firstOptional",
")",
";",
"}",
"return",
"fullCondition",
";",
"}",
"else",
"{",
"if",
"(",
"!",
"orOperator",
")",
"{",
"if",
"(",
"firstBasicSentence",
"!=",
"null",
")",
"{",
"firstBasicSentence",
".",
"setOccurence",
"(",
"firstMinimumOccurence",
",",
"firstMaximumOccurence",
")",
";",
"firstBasicSentence",
".",
"setOptional",
"(",
"firstOptional",
")",
";",
"fullCondition",
"=",
"new",
"MtasCQLParserSentenceCondition",
"(",
"firstBasicSentence",
",",
"ignoreClause",
",",
"maximumIgnoreLength",
")",
";",
"}",
"else",
"{",
"firstSentence",
".",
"setOccurence",
"(",
"firstMinimumOccurence",
",",
"firstMaximumOccurence",
")",
";",
"firstSentence",
".",
"setOptional",
"(",
"firstOptional",
")",
";",
"fullCondition",
"=",
"new",
"MtasCQLParserSentenceCondition",
"(",
"firstSentence",
",",
"ignoreClause",
",",
"maximumIgnoreLength",
")",
";",
"}",
"fullCondition",
".",
"addSentenceToEndLatestSequence",
"(",
"secondSentencePart",
".",
"createFullSentence",
"(",
")",
")",
";",
"}",
"else",
"{",
"MtasCQLParserSentenceCondition",
"sentence",
"=",
"secondSentencePart",
".",
"createFullSentence",
"(",
")",
";",
"if",
"(",
"firstBasicSentence",
"!=",
"null",
")",
"{",
"sentence",
".",
"addSentenceAsFirstOption",
"(",
"new",
"MtasCQLParserSentenceCondition",
"(",
"firstBasicSentence",
",",
"ignoreClause",
",",
"maximumIgnoreLength",
")",
")",
";",
"}",
"else",
"{",
"sentence",
".",
"addSentenceAsFirstOption",
"(",
"firstSentence",
")",
";",
"}",
"fullCondition",
"=",
"sentence",
";",
"}",
"return",
"fullCondition",
";",
"}",
"}",
"else",
"{",
"return",
"fullCondition",
";",
"}",
"}"
] | Creates the full sentence.
@return the mtas CQL parser sentence condition
@throws ParseException the parse exception | [
"Creates",
"the",
"full",
"sentence",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/parser/cql/util/MtasCQLParserSentencePartCondition.java#L147-L198 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/vserver.java | vserver.update | public static base_response update(nitro_service client, vserver resource) throws Exception {
vserver updateresource = new vserver();
updateresource.name = resource.name;
updateresource.backupvserver = resource.backupvserver;
updateresource.redirecturl = resource.redirecturl;
updateresource.cacheable = resource.cacheable;
updateresource.clttimeout = resource.clttimeout;
updateresource.somethod = resource.somethod;
updateresource.sopersistence = resource.sopersistence;
updateresource.sopersistencetimeout = resource.sopersistencetimeout;
updateresource.sothreshold = resource.sothreshold;
updateresource.pushvserver = resource.pushvserver;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, vserver resource) throws Exception {
vserver updateresource = new vserver();
updateresource.name = resource.name;
updateresource.backupvserver = resource.backupvserver;
updateresource.redirecturl = resource.redirecturl;
updateresource.cacheable = resource.cacheable;
updateresource.clttimeout = resource.clttimeout;
updateresource.somethod = resource.somethod;
updateresource.sopersistence = resource.sopersistence;
updateresource.sopersistencetimeout = resource.sopersistencetimeout;
updateresource.sothreshold = resource.sothreshold;
updateresource.pushvserver = resource.pushvserver;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"vserver",
"resource",
")",
"throws",
"Exception",
"{",
"vserver",
"updateresource",
"=",
"new",
"vserver",
"(",
")",
";",
"updateresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"updateresource",
".",
"backupvserver",
"=",
"resource",
".",
"backupvserver",
";",
"updateresource",
".",
"redirecturl",
"=",
"resource",
".",
"redirecturl",
";",
"updateresource",
".",
"cacheable",
"=",
"resource",
".",
"cacheable",
";",
"updateresource",
".",
"clttimeout",
"=",
"resource",
".",
"clttimeout",
";",
"updateresource",
".",
"somethod",
"=",
"resource",
".",
"somethod",
";",
"updateresource",
".",
"sopersistence",
"=",
"resource",
".",
"sopersistence",
";",
"updateresource",
".",
"sopersistencetimeout",
"=",
"resource",
".",
"sopersistencetimeout",
";",
"updateresource",
".",
"sothreshold",
"=",
"resource",
".",
"sothreshold",
";",
"updateresource",
".",
"pushvserver",
"=",
"resource",
".",
"pushvserver",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update vserver. | [
"Use",
"this",
"API",
"to",
"update",
"vserver",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/vserver.java#L310-L323 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/vserver.java | vserver.disable | public static base_response disable(nitro_service client, String name) throws Exception {
vserver disableresource = new vserver();
disableresource.name = name;
return disableresource.perform_operation(client,"disable");
} | java | public static base_response disable(nitro_service client, String name) throws Exception {
vserver disableresource = new vserver();
disableresource.name = name;
return disableresource.perform_operation(client,"disable");
} | [
"public",
"static",
"base_response",
"disable",
"(",
"nitro_service",
"client",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vserver",
"disableresource",
"=",
"new",
"vserver",
"(",
")",
";",
"disableresource",
".",
"name",
"=",
"name",
";",
"return",
"disableresource",
".",
"perform_operation",
"(",
"client",
",",
"\"disable\"",
")",
";",
"}"
] | Use this API to disable vserver of given name. | [
"Use",
"this",
"API",
"to",
"disable",
"vserver",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/vserver.java#L346-L350 | train |
Subsets and Splits