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/snmp/snmpmib.java | snmpmib.update | public static base_response update(nitro_service client, snmpmib resource) throws Exception {
snmpmib updateresource = new snmpmib();
updateresource.contact = resource.contact;
updateresource.name = resource.name;
updateresource.location = resource.location;
updateresource.customid = resource.customid;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, snmpmib resource) throws Exception {
snmpmib updateresource = new snmpmib();
updateresource.contact = resource.contact;
updateresource.name = resource.name;
updateresource.location = resource.location;
updateresource.customid = resource.customid;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"snmpmib",
"resource",
")",
"throws",
"Exception",
"{",
"snmpmib",
"updateresource",
"=",
"new",
"snmpmib",
"(",
")",
";",
"updateresource",
".",
"contact",
"=",
"resource",
".",
"contact",
";",
"updateresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"updateresource",
".",
"location",
"=",
"resource",
".",
"location",
";",
"updateresource",
".",
"customid",
"=",
"resource",
".",
"customid",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update snmpmib. | [
"Use",
"this",
"API",
"to",
"update",
"snmpmib",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpmib.java#L218-L225 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpmib.java | snmpmib.unset | public static base_response unset(nitro_service client, snmpmib resource, String[] args) throws Exception{
snmpmib unsetresource = new snmpmib();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, snmpmib resource, String[] args) throws Exception{
snmpmib unsetresource = new snmpmib();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"snmpmib",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"snmpmib",
"unsetresource",
"=",
"new",
"snmpmib",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of snmpmib resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"snmpmib",
"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/snmp/snmpmib.java#L231-L234 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpmib.java | snmpmib.get | public static snmpmib get(nitro_service service, options option) throws Exception{
snmpmib obj = new snmpmib();
snmpmib[] response = (snmpmib[])obj.get_resources(service,option);
return response[0];
} | java | public static snmpmib get(nitro_service service, options option) throws Exception{
snmpmib obj = new snmpmib();
snmpmib[] response = (snmpmib[])obj.get_resources(service,option);
return response[0];
} | [
"public",
"static",
"snmpmib",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"snmpmib",
"obj",
"=",
"new",
"snmpmib",
"(",
")",
";",
"snmpmib",
"[",
"]",
"response",
"=",
"(",
"snmpmib",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the snmpmib resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"snmpmib",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpmib.java#L248-L252 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java | systemgroup.add | public static base_response add(nitro_service client, systemgroup resource) throws Exception {
systemgroup addresource = new systemgroup();
addresource.groupname = resource.groupname;
addresource.promptstring = resource.promptstring;
addresource.timeout = resource.timeout;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, systemgroup resource) throws Exception {
systemgroup addresource = new systemgroup();
addresource.groupname = resource.groupname;
addresource.promptstring = resource.promptstring;
addresource.timeout = resource.timeout;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"systemgroup",
"resource",
")",
"throws",
"Exception",
"{",
"systemgroup",
"addresource",
"=",
"new",
"systemgroup",
"(",
")",
";",
"addresource",
".",
"groupname",
"=",
"resource",
".",
"groupname",
";",
"addresource",
".",
"promptstring",
"=",
"resource",
".",
"promptstring",
";",
"addresource",
".",
"timeout",
"=",
"resource",
".",
"timeout",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add systemgroup. | [
"Use",
"this",
"API",
"to",
"add",
"systemgroup",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java#L160-L166 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java | systemgroup.add | public static base_responses add(nitro_service client, systemgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systemgroup addresources[] = new systemgroup[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new systemgroup();
addresources[i].groupname = resources[i].groupname;
addresources[i].promptstring = resources[i].promptstring;
addresources[i].timeout = resources[i].timeout;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | public static base_responses add(nitro_service client, systemgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systemgroup addresources[] = new systemgroup[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new systemgroup();
addresources[i].groupname = resources[i].groupname;
addresources[i].promptstring = resources[i].promptstring;
addresources[i].timeout = resources[i].timeout;
}
result = add_bulk_request(client, addresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"systemgroup",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"systemgroup",
"addresources",
"[",
"]",
"=",
"new",
"systemgroup",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"addresources",
"[",
"i",
"]",
"=",
"new",
"systemgroup",
"(",
")",
";",
"addresources",
"[",
"i",
"]",
".",
"groupname",
"=",
"resources",
"[",
"i",
"]",
".",
"groupname",
";",
"addresources",
"[",
"i",
"]",
".",
"promptstring",
"=",
"resources",
"[",
"i",
"]",
".",
"promptstring",
";",
"addresources",
"[",
"i",
"]",
".",
"timeout",
"=",
"resources",
"[",
"i",
"]",
".",
"timeout",
";",
"}",
"result",
"=",
"add_bulk_request",
"(",
"client",
",",
"addresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to add systemgroup resources. | [
"Use",
"this",
"API",
"to",
"add",
"systemgroup",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java#L171-L184 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java | systemgroup.delete | public static base_response delete(nitro_service client, String groupname) throws Exception {
systemgroup deleteresource = new systemgroup();
deleteresource.groupname = groupname;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, String groupname) throws Exception {
systemgroup deleteresource = new systemgroup();
deleteresource.groupname = groupname;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"groupname",
")",
"throws",
"Exception",
"{",
"systemgroup",
"deleteresource",
"=",
"new",
"systemgroup",
"(",
")",
";",
"deleteresource",
".",
"groupname",
"=",
"groupname",
";",
"return",
"deleteresource",
".",
"delete_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to delete systemgroup of given name. | [
"Use",
"this",
"API",
"to",
"delete",
"systemgroup",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java#L189-L193 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java | systemgroup.update | public static base_response update(nitro_service client, systemgroup resource) throws Exception {
systemgroup updateresource = new systemgroup();
updateresource.groupname = resource.groupname;
updateresource.promptstring = resource.promptstring;
updateresource.timeout = resource.timeout;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, systemgroup resource) throws Exception {
systemgroup updateresource = new systemgroup();
updateresource.groupname = resource.groupname;
updateresource.promptstring = resource.promptstring;
updateresource.timeout = resource.timeout;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"systemgroup",
"resource",
")",
"throws",
"Exception",
"{",
"systemgroup",
"updateresource",
"=",
"new",
"systemgroup",
"(",
")",
";",
"updateresource",
".",
"groupname",
"=",
"resource",
".",
"groupname",
";",
"updateresource",
".",
"promptstring",
"=",
"resource",
".",
"promptstring",
";",
"updateresource",
".",
"timeout",
"=",
"resource",
".",
"timeout",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update systemgroup. | [
"Use",
"this",
"API",
"to",
"update",
"systemgroup",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java#L239-L245 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java | systemgroup.update | public static base_responses update(nitro_service client, systemgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systemgroup updateresources[] = new systemgroup[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new systemgroup();
updateresources[i].groupname = resources[i].groupname;
updateresources[i].promptstring = resources[i].promptstring;
updateresources[i].timeout = resources[i].timeout;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | public static base_responses update(nitro_service client, systemgroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
systemgroup updateresources[] = new systemgroup[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new systemgroup();
updateresources[i].groupname = resources[i].groupname;
updateresources[i].promptstring = resources[i].promptstring;
updateresources[i].timeout = resources[i].timeout;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"systemgroup",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"systemgroup",
"updateresources",
"[",
"]",
"=",
"new",
"systemgroup",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"updateresources",
"[",
"i",
"]",
"=",
"new",
"systemgroup",
"(",
")",
";",
"updateresources",
"[",
"i",
"]",
".",
"groupname",
"=",
"resources",
"[",
"i",
"]",
".",
"groupname",
";",
"updateresources",
"[",
"i",
"]",
".",
"promptstring",
"=",
"resources",
"[",
"i",
"]",
".",
"promptstring",
";",
"updateresources",
"[",
"i",
"]",
".",
"timeout",
"=",
"resources",
"[",
"i",
"]",
".",
"timeout",
";",
"}",
"result",
"=",
"update_bulk_request",
"(",
"client",
",",
"updateresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to update systemgroup resources. | [
"Use",
"this",
"API",
"to",
"update",
"systemgroup",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java#L250-L263 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java | systemgroup.unset | public static base_response unset(nitro_service client, systemgroup resource, String[] args) throws Exception{
systemgroup unsetresource = new systemgroup();
unsetresource.groupname = resource.groupname;
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, systemgroup resource, String[] args) throws Exception{
systemgroup unsetresource = new systemgroup();
unsetresource.groupname = resource.groupname;
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"systemgroup",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"systemgroup",
"unsetresource",
"=",
"new",
"systemgroup",
"(",
")",
";",
"unsetresource",
".",
"groupname",
"=",
"resource",
".",
"groupname",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of systemgroup resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"systemgroup",
"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/systemgroup.java#L269-L273 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java | systemgroup.unset | public static base_responses unset(nitro_service client, String groupname[], String args[]) throws Exception {
base_responses result = null;
if (groupname != null && groupname.length > 0) {
systemgroup unsetresources[] = new systemgroup[groupname.length];
for (int i=0;i<groupname.length;i++){
unsetresources[i] = new systemgroup();
unsetresources[i].groupname = groupname[i];
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | java | public static base_responses unset(nitro_service client, String groupname[], String args[]) throws Exception {
base_responses result = null;
if (groupname != null && groupname.length > 0) {
systemgroup unsetresources[] = new systemgroup[groupname.length];
for (int i=0;i<groupname.length;i++){
unsetresources[i] = new systemgroup();
unsetresources[i].groupname = groupname[i];
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | [
"public",
"static",
"base_responses",
"unset",
"(",
"nitro_service",
"client",
",",
"String",
"groupname",
"[",
"]",
",",
"String",
"args",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"groupname",
"!=",
"null",
"&&",
"groupname",
".",
"length",
">",
"0",
")",
"{",
"systemgroup",
"unsetresources",
"[",
"]",
"=",
"new",
"systemgroup",
"[",
"groupname",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"groupname",
".",
"length",
";",
"i",
"++",
")",
"{",
"unsetresources",
"[",
"i",
"]",
"=",
"new",
"systemgroup",
"(",
")",
";",
"unsetresources",
"[",
"i",
"]",
".",
"groupname",
"=",
"groupname",
"[",
"i",
"]",
";",
"}",
"result",
"=",
"unset_bulk_request",
"(",
"client",
",",
"unsetresources",
",",
"args",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to unset the properties of systemgroup resources.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"systemgroup",
"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/systemgroup.java#L279-L290 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java | systemgroup.get | public static systemgroup[] get(nitro_service service) throws Exception{
systemgroup obj = new systemgroup();
systemgroup[] response = (systemgroup[])obj.get_resources(service);
return response;
} | java | public static systemgroup[] get(nitro_service service) throws Exception{
systemgroup obj = new systemgroup();
systemgroup[] response = (systemgroup[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"systemgroup",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"systemgroup",
"obj",
"=",
"new",
"systemgroup",
"(",
")",
";",
"systemgroup",
"[",
"]",
"response",
"=",
"(",
"systemgroup",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the systemgroup resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"systemgroup",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java#L312-L316 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java | systemgroup.get | public static systemgroup get(nitro_service service, String groupname) throws Exception{
systemgroup obj = new systemgroup();
obj.set_groupname(groupname);
systemgroup response = (systemgroup) obj.get_resource(service);
return response;
} | java | public static systemgroup get(nitro_service service, String groupname) throws Exception{
systemgroup obj = new systemgroup();
obj.set_groupname(groupname);
systemgroup response = (systemgroup) obj.get_resource(service);
return response;
} | [
"public",
"static",
"systemgroup",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"groupname",
")",
"throws",
"Exception",
"{",
"systemgroup",
"obj",
"=",
"new",
"systemgroup",
"(",
")",
";",
"obj",
".",
"set_groupname",
"(",
"groupname",
")",
";",
"systemgroup",
"response",
"=",
"(",
"systemgroup",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch systemgroup resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"systemgroup",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java#L328-L333 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java | systemgroup.get | public static systemgroup[] get(nitro_service service, String groupname[]) throws Exception{
if (groupname !=null && groupname.length>0) {
systemgroup response[] = new systemgroup[groupname.length];
systemgroup obj[] = new systemgroup[groupname.length];
for (int i=0;i<groupname.length;i++) {
obj[i] = new systemgroup();
obj[i].set_groupname(groupname[i]);
response[i] = (systemgroup) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | public static systemgroup[] get(nitro_service service, String groupname[]) throws Exception{
if (groupname !=null && groupname.length>0) {
systemgroup response[] = new systemgroup[groupname.length];
systemgroup obj[] = new systemgroup[groupname.length];
for (int i=0;i<groupname.length;i++) {
obj[i] = new systemgroup();
obj[i].set_groupname(groupname[i]);
response[i] = (systemgroup) obj[i].get_resource(service);
}
return response;
}
return null;
} | [
"public",
"static",
"systemgroup",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"groupname",
"[",
"]",
")",
"throws",
"Exception",
"{",
"if",
"(",
"groupname",
"!=",
"null",
"&&",
"groupname",
".",
"length",
">",
"0",
")",
"{",
"systemgroup",
"response",
"[",
"]",
"=",
"new",
"systemgroup",
"[",
"groupname",
".",
"length",
"]",
";",
"systemgroup",
"obj",
"[",
"]",
"=",
"new",
"systemgroup",
"[",
"groupname",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"groupname",
".",
"length",
";",
"i",
"++",
")",
"{",
"obj",
"[",
"i",
"]",
"=",
"new",
"systemgroup",
"(",
")",
";",
"obj",
"[",
"i",
"]",
".",
"set_groupname",
"(",
"groupname",
"[",
"i",
"]",
")",
";",
"response",
"[",
"i",
"]",
"=",
"(",
"systemgroup",
")",
"obj",
"[",
"i",
"]",
".",
"get_resource",
"(",
"service",
")",
";",
"}",
"return",
"response",
";",
"}",
"return",
"null",
";",
"}"
] | Use this API to fetch systemgroup resources of given names . | [
"Use",
"this",
"API",
"to",
"fetch",
"systemgroup",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup.java#L338-L350 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/cluster.java | cluster.join | public static base_response join(nitro_service client, cluster resource) throws Exception {
cluster joinresource = new cluster();
joinresource.clip = resource.clip;
joinresource.password = resource.password;
return joinresource.perform_operation(client,"join");
} | java | public static base_response join(nitro_service client, cluster resource) throws Exception {
cluster joinresource = new cluster();
joinresource.clip = resource.clip;
joinresource.password = resource.password;
return joinresource.perform_operation(client,"join");
} | [
"public",
"static",
"base_response",
"join",
"(",
"nitro_service",
"client",
",",
"cluster",
"resource",
")",
"throws",
"Exception",
"{",
"cluster",
"joinresource",
"=",
"new",
"cluster",
"(",
")",
";",
"joinresource",
".",
"clip",
"=",
"resource",
".",
"clip",
";",
"joinresource",
".",
"password",
"=",
"resource",
".",
"password",
";",
"return",
"joinresource",
".",
"perform_operation",
"(",
"client",
",",
"\"join\"",
")",
";",
"}"
] | Use this API to join cluster. | [
"Use",
"this",
"API",
"to",
"join",
"cluster",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/cluster.java#L110-L115 | train |
RestComm/cluster | timers/src/main/java/org/restcomm/timers/TimerTask.java | TimerTask.beforeRecover | public void beforeRecover() {
if (data.getPeriod() > 0) {
final long now = System.currentTimeMillis();
long startTime = data.getStartTime();
while(startTime <= now) {
startTime += data.getPeriod();
data.setStartTime(startTime);
}
if (logger.isDebugEnabled()) {
logger.debug("Task with id "
+ data.getTaskID() + " start time reset to " + data.getStartTime());
}
}
} | java | public void beforeRecover() {
if (data.getPeriod() > 0) {
final long now = System.currentTimeMillis();
long startTime = data.getStartTime();
while(startTime <= now) {
startTime += data.getPeriod();
data.setStartTime(startTime);
}
if (logger.isDebugEnabled()) {
logger.debug("Task with id "
+ data.getTaskID() + " start time reset to " + data.getStartTime());
}
}
} | [
"public",
"void",
"beforeRecover",
"(",
")",
"{",
"if",
"(",
"data",
".",
"getPeriod",
"(",
")",
">",
"0",
")",
"{",
"final",
"long",
"now",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
";",
"long",
"startTime",
"=",
"data",
".",
"getStartTime",
"(",
")",
";",
"while",
"(",
"startTime",
"<=",
"now",
")",
"{",
"startTime",
"+=",
"data",
".",
"getPeriod",
"(",
")",
";",
"data",
".",
"setStartTime",
"(",
"startTime",
")",
";",
"}",
"if",
"(",
"logger",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"logger",
".",
"debug",
"(",
"\"Task with id \"",
"+",
"data",
".",
"getTaskID",
"(",
")",
"+",
"\" start time reset to \"",
"+",
"data",
".",
"getStartTime",
"(",
")",
")",
";",
"}",
"}",
"}"
] | Invoked before a task is recovered, after fail over, by default simply adjust start time if it is a periodic timer. | [
"Invoked",
"before",
"a",
"task",
"is",
"recovered",
"after",
"fail",
"over",
"by",
"default",
"simply",
"adjust",
"start",
"time",
"if",
"it",
"is",
"a",
"periodic",
"timer",
"."
] | 46bff5e9ae89528ccc7b43ba50a0de5b96913e6f | https://github.com/RestComm/cluster/blob/46bff5e9ae89528ccc7b43ba50a0de5b96913e6f/timers/src/main/java/org/restcomm/timers/TimerTask.java#L166-L179 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/tunnel/tunnelglobal_binding.java | tunnelglobal_binding.get | public static tunnelglobal_binding get(nitro_service service) throws Exception{
tunnelglobal_binding obj = new tunnelglobal_binding();
tunnelglobal_binding response = (tunnelglobal_binding) obj.get_resource(service);
return response;
} | java | public static tunnelglobal_binding get(nitro_service service) throws Exception{
tunnelglobal_binding obj = new tunnelglobal_binding();
tunnelglobal_binding response = (tunnelglobal_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"tunnelglobal_binding",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"tunnelglobal_binding",
"obj",
"=",
"new",
"tunnelglobal_binding",
"(",
")",
";",
"tunnelglobal_binding",
"response",
"=",
"(",
"tunnelglobal_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a tunnelglobal_binding resource . | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"tunnelglobal_binding",
"resource",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/tunnel/tunnelglobal_binding.java#L84-L88 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpview.java | snmpview.add | public static base_response add(nitro_service client, snmpview resource) throws Exception {
snmpview addresource = new snmpview();
addresource.name = resource.name;
addresource.subtree = resource.subtree;
addresource.type = resource.type;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, snmpview resource) throws Exception {
snmpview addresource = new snmpview();
addresource.name = resource.name;
addresource.subtree = resource.subtree;
addresource.type = resource.type;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"snmpview",
"resource",
")",
"throws",
"Exception",
"{",
"snmpview",
"addresource",
"=",
"new",
"snmpview",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"addresource",
".",
"subtree",
"=",
"resource",
".",
"subtree",
";",
"addresource",
".",
"type",
"=",
"resource",
".",
"type",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add snmpview. | [
"Use",
"this",
"API",
"to",
"add",
"snmpview",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpview.java#L160-L166 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpview.java | snmpview.delete | public static base_response delete(nitro_service client, snmpview resource) throws Exception {
snmpview deleteresource = new snmpview();
deleteresource.name = resource.name;
deleteresource.subtree = resource.subtree;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, snmpview resource) throws Exception {
snmpview deleteresource = new snmpview();
deleteresource.name = resource.name;
deleteresource.subtree = resource.subtree;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"snmpview",
"resource",
")",
"throws",
"Exception",
"{",
"snmpview",
"deleteresource",
"=",
"new",
"snmpview",
"(",
")",
";",
"deleteresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"deleteresource",
".",
"subtree",
"=",
"resource",
".",
"subtree",
";",
"return",
"deleteresource",
".",
"delete_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to delete snmpview. | [
"Use",
"this",
"API",
"to",
"delete",
"snmpview",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpview.java#L198-L203 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpview.java | snmpview.update | public static base_response update(nitro_service client, snmpview resource) throws Exception {
snmpview updateresource = new snmpview();
updateresource.name = resource.name;
updateresource.subtree = resource.subtree;
updateresource.type = resource.type;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, snmpview resource) throws Exception {
snmpview updateresource = new snmpview();
updateresource.name = resource.name;
updateresource.subtree = resource.subtree;
updateresource.type = resource.type;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"snmpview",
"resource",
")",
"throws",
"Exception",
"{",
"snmpview",
"updateresource",
"=",
"new",
"snmpview",
"(",
")",
";",
"updateresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"updateresource",
".",
"subtree",
"=",
"resource",
".",
"subtree",
";",
"updateresource",
".",
"type",
"=",
"resource",
".",
"type",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update snmpview. | [
"Use",
"this",
"API",
"to",
"update",
"snmpview",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpview.java#L241-L247 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpview.java | snmpview.update | public static base_responses update(nitro_service client, snmpview resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpview updateresources[] = new snmpview[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new snmpview();
updateresources[i].name = resources[i].name;
updateresources[i].subtree = resources[i].subtree;
updateresources[i].type = resources[i].type;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | public static base_responses update(nitro_service client, snmpview resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpview updateresources[] = new snmpview[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new snmpview();
updateresources[i].name = resources[i].name;
updateresources[i].subtree = resources[i].subtree;
updateresources[i].type = resources[i].type;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"snmpview",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"snmpview",
"updateresources",
"[",
"]",
"=",
"new",
"snmpview",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"updateresources",
"[",
"i",
"]",
"=",
"new",
"snmpview",
"(",
")",
";",
"updateresources",
"[",
"i",
"]",
".",
"name",
"=",
"resources",
"[",
"i",
"]",
".",
"name",
";",
"updateresources",
"[",
"i",
"]",
".",
"subtree",
"=",
"resources",
"[",
"i",
"]",
".",
"subtree",
";",
"updateresources",
"[",
"i",
"]",
".",
"type",
"=",
"resources",
"[",
"i",
"]",
".",
"type",
";",
"}",
"result",
"=",
"update_bulk_request",
"(",
"client",
",",
"updateresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to update snmpview resources. | [
"Use",
"this",
"API",
"to",
"update",
"snmpview",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpview.java#L252-L265 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpview.java | snmpview.get | public static snmpview[] get(nitro_service service, options option) throws Exception{
snmpview obj = new snmpview();
snmpview[] response = (snmpview[])obj.get_resources(service,option);
return response;
} | java | public static snmpview[] get(nitro_service service, options option) throws Exception{
snmpview obj = new snmpview();
snmpview[] response = (snmpview[])obj.get_resources(service,option);
return response;
} | [
"public",
"static",
"snmpview",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"snmpview",
"obj",
"=",
"new",
"snmpview",
"(",
")",
";",
"snmpview",
"[",
"]",
"response",
"=",
"(",
"snmpview",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the snmpview resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"snmpview",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpview.java#L278-L282 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/Timing.java | Timing.endDoing | public static void endDoing() {
long elapsed = System.currentTimeMillis() - startTime;
System.err.println("done [" + nf.format(((double) elapsed) / 1000) +
" sec].");
} | java | public static void endDoing() {
long elapsed = System.currentTimeMillis() - startTime;
System.err.println("done [" + nf.format(((double) elapsed) / 1000) +
" sec].");
} | [
"public",
"static",
"void",
"endDoing",
"(",
")",
"{",
"long",
"elapsed",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
"-",
"startTime",
";",
"System",
".",
"err",
".",
"println",
"(",
"\"done [\"",
"+",
"nf",
".",
"format",
"(",
"(",
"(",
"double",
")",
"elapsed",
")",
"/",
"1000",
")",
"+",
"\" sec].\"",
")",
";",
"}"
] | Finish the line from startDoing with the end of the timing done message
and elapsed time in x.y seconds. | [
"Finish",
"the",
"line",
"from",
"startDoing",
"with",
"the",
"end",
"of",
"the",
"timing",
"done",
"message",
"and",
"elapsed",
"time",
"in",
"x",
".",
"y",
"seconds",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/Timing.java#L279-L283 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/network/inatsession_stats.java | inatsession_stats.get | public static inatsession_stats get(nitro_service service, String name) throws Exception{
inatsession_stats obj = new inatsession_stats();
obj.set_name(name);
inatsession_stats response = (inatsession_stats) obj.stat_resource(service);
return response;
} | java | public static inatsession_stats get(nitro_service service, String name) throws Exception{
inatsession_stats obj = new inatsession_stats();
obj.set_name(name);
inatsession_stats response = (inatsession_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"inatsession_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"inatsession_stats",
"obj",
"=",
"new",
"inatsession_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"inatsession_stats",
"response",
"=",
"(",
"inatsession_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of inatsession_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"inatsession_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/network/inatsession_stats.java#L231-L236 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/network/inatsession_stats.java | inatsession_stats.get | public static inatsession_stats get(nitro_service service, inatsession_stats obj) throws Exception{
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(obj));
inatsession_stats response = (inatsession_stats) obj.stat_resource(service,option);
return response;
} | java | public static inatsession_stats get(nitro_service service, inatsession_stats obj) throws Exception{
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(obj));
inatsession_stats response = (inatsession_stats) obj.stat_resource(service,option);
return response;
} | [
"public",
"static",
"inatsession_stats",
"get",
"(",
"nitro_service",
"service",
",",
"inatsession_stats",
"obj",
")",
"throws",
"Exception",
"{",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_args",
"(",
"nitro_util",
".",
"object_to_string_withoutquotes",
"(",
"obj",
")",
")",
";",
"inatsession_stats",
"response",
"=",
"(",
"inatsession_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of inatsession_stats resource of the given information. | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"inatsession_stats",
"resource",
"of",
"the",
"given",
"information",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/network/inatsession_stats.java#L241-L246 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy_responderglobal_binding.java | responderpolicy_responderglobal_binding.get | public static responderpolicy_responderglobal_binding[] get(nitro_service service, String name) throws Exception{
responderpolicy_responderglobal_binding obj = new responderpolicy_responderglobal_binding();
obj.set_name(name);
responderpolicy_responderglobal_binding response[] = (responderpolicy_responderglobal_binding[]) obj.get_resources(service);
return response;
} | java | public static responderpolicy_responderglobal_binding[] get(nitro_service service, String name) throws Exception{
responderpolicy_responderglobal_binding obj = new responderpolicy_responderglobal_binding();
obj.set_name(name);
responderpolicy_responderglobal_binding response[] = (responderpolicy_responderglobal_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"responderpolicy_responderglobal_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"responderpolicy_responderglobal_binding",
"obj",
"=",
"new",
"responderpolicy_responderglobal_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"responderpolicy_responderglobal_binding",
"response",
"[",
"]",
"=",
"(",
"responderpolicy_responderglobal_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch responderpolicy_responderglobal_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"responderpolicy_responderglobal_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy_responderglobal_binding.java#L162-L167 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/ip6tunnelparam.java | ip6tunnelparam.update | public static base_response update(nitro_service client, ip6tunnelparam resource) throws Exception {
ip6tunnelparam updateresource = new ip6tunnelparam();
updateresource.srcip = resource.srcip;
updateresource.dropfrag = resource.dropfrag;
updateresource.dropfragcputhreshold = resource.dropfragcputhreshold;
updateresource.srciproundrobin = resource.srciproundrobin;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, ip6tunnelparam resource) throws Exception {
ip6tunnelparam updateresource = new ip6tunnelparam();
updateresource.srcip = resource.srcip;
updateresource.dropfrag = resource.dropfrag;
updateresource.dropfragcputhreshold = resource.dropfragcputhreshold;
updateresource.srciproundrobin = resource.srciproundrobin;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"ip6tunnelparam",
"resource",
")",
"throws",
"Exception",
"{",
"ip6tunnelparam",
"updateresource",
"=",
"new",
"ip6tunnelparam",
"(",
")",
";",
"updateresource",
".",
"srcip",
"=",
"resource",
".",
"srcip",
";",
"updateresource",
".",
"dropfrag",
"=",
"resource",
".",
"dropfrag",
";",
"updateresource",
".",
"dropfragcputhreshold",
"=",
"resource",
".",
"dropfragcputhreshold",
";",
"updateresource",
".",
"srciproundrobin",
"=",
"resource",
".",
"srciproundrobin",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update ip6tunnelparam. | [
"Use",
"this",
"API",
"to",
"update",
"ip6tunnelparam",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/ip6tunnelparam.java#L160-L167 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/ip6tunnelparam.java | ip6tunnelparam.unset | public static base_response unset(nitro_service client, ip6tunnelparam resource, String[] args) throws Exception{
ip6tunnelparam unsetresource = new ip6tunnelparam();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, ip6tunnelparam resource, String[] args) throws Exception{
ip6tunnelparam unsetresource = new ip6tunnelparam();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"ip6tunnelparam",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"ip6tunnelparam",
"unsetresource",
"=",
"new",
"ip6tunnelparam",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of ip6tunnelparam resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"ip6tunnelparam",
"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/ip6tunnelparam.java#L173-L176 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/ip6tunnelparam.java | ip6tunnelparam.get | public static ip6tunnelparam get(nitro_service service) throws Exception{
ip6tunnelparam obj = new ip6tunnelparam();
ip6tunnelparam[] response = (ip6tunnelparam[])obj.get_resources(service);
return response[0];
} | java | public static ip6tunnelparam get(nitro_service service) throws Exception{
ip6tunnelparam obj = new ip6tunnelparam();
ip6tunnelparam[] response = (ip6tunnelparam[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"ip6tunnelparam",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"ip6tunnelparam",
"obj",
"=",
"new",
"ip6tunnelparam",
"(",
")",
";",
"ip6tunnelparam",
"[",
"]",
"response",
"=",
"(",
"ip6tunnelparam",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the ip6tunnelparam resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"ip6tunnelparam",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/ip6tunnelparam.java#L181-L185 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowaction.java | appflowaction.add | public static base_response add(nitro_service client, appflowaction resource) throws Exception {
appflowaction addresource = new appflowaction();
addresource.name = resource.name;
addresource.collectors = resource.collectors;
addresource.comment = resource.comment;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, appflowaction resource) throws Exception {
appflowaction addresource = new appflowaction();
addresource.name = resource.name;
addresource.collectors = resource.collectors;
addresource.comment = resource.comment;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"appflowaction",
"resource",
")",
"throws",
"Exception",
"{",
"appflowaction",
"addresource",
"=",
"new",
"appflowaction",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"addresource",
".",
"collectors",
"=",
"resource",
".",
"collectors",
";",
"addresource",
".",
"comment",
"=",
"resource",
".",
"comment",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add appflowaction. | [
"Use",
"this",
"API",
"to",
"add",
"appflowaction",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowaction.java#L197-L203 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowaction.java | appflowaction.update | public static base_response update(nitro_service client, appflowaction resource) throws Exception {
appflowaction updateresource = new appflowaction();
updateresource.name = resource.name;
updateresource.collectors = resource.collectors;
updateresource.comment = resource.comment;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, appflowaction resource) throws Exception {
appflowaction updateresource = new appflowaction();
updateresource.name = resource.name;
updateresource.collectors = resource.collectors;
updateresource.comment = resource.comment;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"appflowaction",
"resource",
")",
"throws",
"Exception",
"{",
"appflowaction",
"updateresource",
"=",
"new",
"appflowaction",
"(",
")",
";",
"updateresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"updateresource",
".",
"collectors",
"=",
"resource",
".",
"collectors",
";",
"updateresource",
".",
"comment",
"=",
"resource",
".",
"comment",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update appflowaction. | [
"Use",
"this",
"API",
"to",
"update",
"appflowaction",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowaction.java#L276-L282 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowaction.java | appflowaction.update | public static base_responses update(nitro_service client, appflowaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appflowaction updateresources[] = new appflowaction[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new appflowaction();
updateresources[i].name = resources[i].name;
updateresources[i].collectors = resources[i].collectors;
updateresources[i].comment = resources[i].comment;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | public static base_responses update(nitro_service client, appflowaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appflowaction updateresources[] = new appflowaction[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new appflowaction();
updateresources[i].name = resources[i].name;
updateresources[i].collectors = resources[i].collectors;
updateresources[i].comment = resources[i].comment;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"appflowaction",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"appflowaction",
"updateresources",
"[",
"]",
"=",
"new",
"appflowaction",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"updateresources",
"[",
"i",
"]",
"=",
"new",
"appflowaction",
"(",
")",
";",
"updateresources",
"[",
"i",
"]",
".",
"name",
"=",
"resources",
"[",
"i",
"]",
".",
"name",
";",
"updateresources",
"[",
"i",
"]",
".",
"collectors",
"=",
"resources",
"[",
"i",
"]",
".",
"collectors",
";",
"updateresources",
"[",
"i",
"]",
".",
"comment",
"=",
"resources",
"[",
"i",
"]",
".",
"comment",
";",
"}",
"result",
"=",
"update_bulk_request",
"(",
"client",
",",
"updateresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to update appflowaction resources. | [
"Use",
"this",
"API",
"to",
"update",
"appflowaction",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowaction.java#L287-L300 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowaction.java | appflowaction.get | public static appflowaction[] get(nitro_service service, options option) throws Exception{
appflowaction obj = new appflowaction();
appflowaction[] response = (appflowaction[])obj.get_resources(service,option);
return response;
} | java | public static appflowaction[] get(nitro_service service, options option) throws Exception{
appflowaction obj = new appflowaction();
appflowaction[] response = (appflowaction[])obj.get_resources(service,option);
return response;
} | [
"public",
"static",
"appflowaction",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"appflowaction",
"obj",
"=",
"new",
"appflowaction",
"(",
")",
";",
"appflowaction",
"[",
"]",
"response",
"=",
"(",
"appflowaction",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the appflowaction resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"appflowaction",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowaction.java#L375-L379 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowaction.java | appflowaction.get | public static appflowaction get(nitro_service service, String name) throws Exception{
appflowaction obj = new appflowaction();
obj.set_name(name);
appflowaction response = (appflowaction) obj.get_resource(service);
return response;
} | java | public static appflowaction get(nitro_service service, String name) throws Exception{
appflowaction obj = new appflowaction();
obj.set_name(name);
appflowaction response = (appflowaction) obj.get_resource(service);
return response;
} | [
"public",
"static",
"appflowaction",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appflowaction",
"obj",
"=",
"new",
"appflowaction",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"appflowaction",
"response",
"=",
"(",
"appflowaction",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch appflowaction resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appflowaction",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowaction.java#L383-L388 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslcert.java | sslcert.create | public static base_response create(nitro_service client, sslcert resource) throws Exception {
sslcert createresource = new sslcert();
createresource.certfile = resource.certfile;
createresource.reqfile = resource.reqfile;
createresource.certtype = resource.certtype;
createresource.keyfile = resource.keyfile;
createresource.keyform = resource.keyform;
createresource.pempassphrase = resource.pempassphrase;
createresource.days = resource.days;
createresource.certform = resource.certform;
createresource.cacert = resource.cacert;
createresource.cacertform = resource.cacertform;
createresource.cakey = resource.cakey;
createresource.cakeyform = resource.cakeyform;
createresource.caserial = resource.caserial;
return createresource.perform_operation(client,"create");
} | java | public static base_response create(nitro_service client, sslcert resource) throws Exception {
sslcert createresource = new sslcert();
createresource.certfile = resource.certfile;
createresource.reqfile = resource.reqfile;
createresource.certtype = resource.certtype;
createresource.keyfile = resource.keyfile;
createresource.keyform = resource.keyform;
createresource.pempassphrase = resource.pempassphrase;
createresource.days = resource.days;
createresource.certform = resource.certform;
createresource.cacert = resource.cacert;
createresource.cacertform = resource.cacertform;
createresource.cakey = resource.cakey;
createresource.cakeyform = resource.cakeyform;
createresource.caserial = resource.caserial;
return createresource.perform_operation(client,"create");
} | [
"public",
"static",
"base_response",
"create",
"(",
"nitro_service",
"client",
",",
"sslcert",
"resource",
")",
"throws",
"Exception",
"{",
"sslcert",
"createresource",
"=",
"new",
"sslcert",
"(",
")",
";",
"createresource",
".",
"certfile",
"=",
"resource",
".",
"certfile",
";",
"createresource",
".",
"reqfile",
"=",
"resource",
".",
"reqfile",
";",
"createresource",
".",
"certtype",
"=",
"resource",
".",
"certtype",
";",
"createresource",
".",
"keyfile",
"=",
"resource",
".",
"keyfile",
";",
"createresource",
".",
"keyform",
"=",
"resource",
".",
"keyform",
";",
"createresource",
".",
"pempassphrase",
"=",
"resource",
".",
"pempassphrase",
";",
"createresource",
".",
"days",
"=",
"resource",
".",
"days",
";",
"createresource",
".",
"certform",
"=",
"resource",
".",
"certform",
";",
"createresource",
".",
"cacert",
"=",
"resource",
".",
"cacert",
";",
"createresource",
".",
"cacertform",
"=",
"resource",
".",
"cacertform",
";",
"createresource",
".",
"cakey",
"=",
"resource",
".",
"cakey",
";",
"createresource",
".",
"cakeyform",
"=",
"resource",
".",
"cakeyform",
";",
"createresource",
".",
"caserial",
"=",
"resource",
".",
"caserial",
";",
"return",
"createresource",
".",
"perform_operation",
"(",
"client",
",",
"\"create\"",
")",
";",
"}"
] | Use this API to create sslcert. | [
"Use",
"this",
"API",
"to",
"create",
"sslcert",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslcert.java#L341-L357 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/utility/techsupport.java | techsupport.get | public static techsupport get(nitro_service service) throws Exception{
techsupport obj = new techsupport();
techsupport[] response = (techsupport[])obj.get_resources(service);
return response[0];
} | java | public static techsupport get(nitro_service service) throws Exception{
techsupport obj = new techsupport();
techsupport[] response = (techsupport[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"techsupport",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"techsupport",
"obj",
"=",
"new",
"techsupport",
"(",
")",
";",
"techsupport",
"[",
"]",
"response",
"=",
"(",
"techsupport",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the techsupport resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"techsupport",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/utility/techsupport.java#L107-L111 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/utility/techsupport.java | techsupport.get | public static techsupport[] get(nitro_service service, techsupport_args args) throws Exception{
techsupport obj = new techsupport();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
techsupport[] response = (techsupport[])obj.get_resources(service, option);
return response;
} | java | public static techsupport[] get(nitro_service service, techsupport_args args) throws Exception{
techsupport obj = new techsupport();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
techsupport[] response = (techsupport[])obj.get_resources(service, option);
return response;
} | [
"public",
"static",
"techsupport",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"techsupport_args",
"args",
")",
"throws",
"Exception",
"{",
"techsupport",
"obj",
"=",
"new",
"techsupport",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_args",
"(",
"nitro_util",
".",
"object_to_string_withoutquotes",
"(",
"args",
")",
")",
";",
"techsupport",
"[",
"]",
"response",
"=",
"(",
"techsupport",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the techsupport resources that are configured on netscaler.
This uses techsupport_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"techsupport",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"techsupport_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/utility/techsupport.java#L126-L132 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/vrid_nsip_binding.java | vrid_nsip_binding.get | public static vrid_nsip_binding[] get(nitro_service service, Long id) throws Exception{
vrid_nsip_binding obj = new vrid_nsip_binding();
obj.set_id(id);
vrid_nsip_binding response[] = (vrid_nsip_binding[]) obj.get_resources(service);
return response;
} | java | public static vrid_nsip_binding[] get(nitro_service service, Long id) throws Exception{
vrid_nsip_binding obj = new vrid_nsip_binding();
obj.set_id(id);
vrid_nsip_binding response[] = (vrid_nsip_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vrid_nsip_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"id",
")",
"throws",
"Exception",
"{",
"vrid_nsip_binding",
"obj",
"=",
"new",
"vrid_nsip_binding",
"(",
")",
";",
"obj",
".",
"set_id",
"(",
"id",
")",
";",
"vrid_nsip_binding",
"response",
"[",
"]",
"=",
"(",
"vrid_nsip_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch vrid_nsip_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vrid_nsip_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/vrid_nsip_binding.java#L153-L158 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/cr/crvserver_stats.java | crvserver_stats.get | public static crvserver_stats[] get(nitro_service service) throws Exception{
crvserver_stats obj = new crvserver_stats();
crvserver_stats[] response = (crvserver_stats[])obj.stat_resources(service);
return response;
} | java | public static crvserver_stats[] get(nitro_service service) throws Exception{
crvserver_stats obj = new crvserver_stats();
crvserver_stats[] response = (crvserver_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"crvserver_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"crvserver_stats",
"obj",
"=",
"new",
"crvserver_stats",
"(",
")",
";",
"crvserver_stats",
"[",
"]",
"response",
"=",
"(",
"crvserver_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all crvserver_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"crvserver_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/cr/crvserver_stats.java#L231-L235 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/cr/crvserver_stats.java | crvserver_stats.get | public static crvserver_stats get(nitro_service service, String name) throws Exception{
crvserver_stats obj = new crvserver_stats();
obj.set_name(name);
crvserver_stats response = (crvserver_stats) obj.stat_resource(service);
return response;
} | java | public static crvserver_stats get(nitro_service service, String name) throws Exception{
crvserver_stats obj = new crvserver_stats();
obj.set_name(name);
crvserver_stats response = (crvserver_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"crvserver_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"crvserver_stats",
"obj",
"=",
"new",
"crvserver_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"crvserver_stats",
"response",
"=",
"(",
"crvserver_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of crvserver_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"crvserver_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/cr/crvserver_stats.java#L249-L254 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationaction.java | authorizationaction.get | public static authorizationaction[] get(nitro_service service) throws Exception{
authorizationaction obj = new authorizationaction();
authorizationaction[] response = (authorizationaction[])obj.get_resources(service);
return response;
} | java | public static authorizationaction[] get(nitro_service service) throws Exception{
authorizationaction obj = new authorizationaction();
authorizationaction[] response = (authorizationaction[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"authorizationaction",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"authorizationaction",
"obj",
"=",
"new",
"authorizationaction",
"(",
")",
";",
"authorizationaction",
"[",
"]",
"response",
"=",
"(",
"authorizationaction",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the authorizationaction resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"authorizationaction",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationaction.java#L93-L97 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationaction.java | authorizationaction.get | public static authorizationaction get(nitro_service service, String name) throws Exception{
authorizationaction obj = new authorizationaction();
obj.set_name(name);
authorizationaction response = (authorizationaction) obj.get_resource(service);
return response;
} | java | public static authorizationaction get(nitro_service service, String name) throws Exception{
authorizationaction obj = new authorizationaction();
obj.set_name(name);
authorizationaction response = (authorizationaction) obj.get_resource(service);
return response;
} | [
"public",
"static",
"authorizationaction",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"authorizationaction",
"obj",
"=",
"new",
"authorizationaction",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"authorizationaction",
"response",
"=",
"(",
"authorizationaction",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch authorizationaction resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"authorizationaction",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationaction.java#L109-L114 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/ns/nstrafficdomain_stats.java | nstrafficdomain_stats.get | public static nstrafficdomain_stats[] get(nitro_service service, options option) throws Exception{
nstrafficdomain_stats obj = new nstrafficdomain_stats();
nstrafficdomain_stats[] response = (nstrafficdomain_stats[])obj.stat_resources(service,option);
return response;
} | java | public static nstrafficdomain_stats[] get(nitro_service service, options option) throws Exception{
nstrafficdomain_stats obj = new nstrafficdomain_stats();
nstrafficdomain_stats[] response = (nstrafficdomain_stats[])obj.stat_resources(service,option);
return response;
} | [
"public",
"static",
"nstrafficdomain_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"nstrafficdomain_stats",
"obj",
"=",
"new",
"nstrafficdomain_stats",
"(",
")",
";",
"nstrafficdomain_stats",
"[",
"]",
"response",
"=",
"(",
"nstrafficdomain_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all nstrafficdomain_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"nstrafficdomain_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/nstrafficdomain_stats.java#L192-L196 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/ns/nstrafficdomain_stats.java | nstrafficdomain_stats.get | public static nstrafficdomain_stats get(nitro_service service, Long td) throws Exception{
nstrafficdomain_stats obj = new nstrafficdomain_stats();
obj.set_td(td);
nstrafficdomain_stats response = (nstrafficdomain_stats) obj.stat_resource(service);
return response;
} | java | public static nstrafficdomain_stats get(nitro_service service, Long td) throws Exception{
nstrafficdomain_stats obj = new nstrafficdomain_stats();
obj.set_td(td);
nstrafficdomain_stats response = (nstrafficdomain_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"nstrafficdomain_stats",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"td",
")",
"throws",
"Exception",
"{",
"nstrafficdomain_stats",
"obj",
"=",
"new",
"nstrafficdomain_stats",
"(",
")",
";",
"obj",
".",
"set_td",
"(",
"td",
")",
";",
"nstrafficdomain_stats",
"response",
"=",
"(",
"nstrafficdomain_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of nstrafficdomain_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"nstrafficdomain_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/ns/nstrafficdomain_stats.java#L201-L206 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/netbridge_iptunnel_binding.java | netbridge_iptunnel_binding.get | public static netbridge_iptunnel_binding[] get(nitro_service service, String name) throws Exception{
netbridge_iptunnel_binding obj = new netbridge_iptunnel_binding();
obj.set_name(name);
netbridge_iptunnel_binding response[] = (netbridge_iptunnel_binding[]) obj.get_resources(service);
return response;
} | java | public static netbridge_iptunnel_binding[] get(nitro_service service, String name) throws Exception{
netbridge_iptunnel_binding obj = new netbridge_iptunnel_binding();
obj.set_name(name);
netbridge_iptunnel_binding response[] = (netbridge_iptunnel_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"netbridge_iptunnel_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"netbridge_iptunnel_binding",
"obj",
"=",
"new",
"netbridge_iptunnel_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"netbridge_iptunnel_binding",
"response",
"[",
"]",
"=",
"(",
"netbridge_iptunnel_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch netbridge_iptunnel_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"netbridge_iptunnel_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/netbridge_iptunnel_binding.java#L154-L159 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cr/crvserver_lbvserver_binding.java | crvserver_lbvserver_binding.get | public static crvserver_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
crvserver_lbvserver_binding obj = new crvserver_lbvserver_binding();
obj.set_name(name);
crvserver_lbvserver_binding response[] = (crvserver_lbvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static crvserver_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
crvserver_lbvserver_binding obj = new crvserver_lbvserver_binding();
obj.set_name(name);
crvserver_lbvserver_binding response[] = (crvserver_lbvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"crvserver_lbvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"crvserver_lbvserver_binding",
"obj",
"=",
"new",
"crvserver_lbvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"crvserver_lbvserver_binding",
"response",
"[",
"]",
"=",
"(",
"crvserver_lbvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch crvserver_lbvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"crvserver_lbvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cr/crvserver_lbvserver_binding.java#L164-L169 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java | dnsaction.add | public static base_response add(nitro_service client, dnsaction resource) throws Exception {
dnsaction addresource = new dnsaction();
addresource.actionname = resource.actionname;
addresource.actiontype = resource.actiontype;
addresource.ipaddress = resource.ipaddress;
addresource.ttl = resource.ttl;
addresource.viewname = resource.viewname;
addresource.preferredloclist = resource.preferredloclist;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, dnsaction resource) throws Exception {
dnsaction addresource = new dnsaction();
addresource.actionname = resource.actionname;
addresource.actiontype = resource.actiontype;
addresource.ipaddress = resource.ipaddress;
addresource.ttl = resource.ttl;
addresource.viewname = resource.viewname;
addresource.preferredloclist = resource.preferredloclist;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"dnsaction",
"resource",
")",
"throws",
"Exception",
"{",
"dnsaction",
"addresource",
"=",
"new",
"dnsaction",
"(",
")",
";",
"addresource",
".",
"actionname",
"=",
"resource",
".",
"actionname",
";",
"addresource",
".",
"actiontype",
"=",
"resource",
".",
"actiontype",
";",
"addresource",
".",
"ipaddress",
"=",
"resource",
".",
"ipaddress",
";",
"addresource",
".",
"ttl",
"=",
"resource",
".",
"ttl",
";",
"addresource",
".",
"viewname",
"=",
"resource",
".",
"viewname",
";",
"addresource",
".",
"preferredloclist",
"=",
"resource",
".",
"preferredloclist",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add dnsaction. | [
"Use",
"this",
"API",
"to",
"add",
"dnsaction",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java#L232-L241 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java | dnsaction.add | public static base_responses add(nitro_service client, dnsaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsaction addresources[] = new dnsaction[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnsaction();
addresources[i].actionname = resources[i].actionname;
addresources[i].actiontype = resources[i].actiontype;
addresources[i].ipaddress = resources[i].ipaddress;
addresources[i].ttl = resources[i].ttl;
addresources[i].viewname = resources[i].viewname;
addresources[i].preferredloclist = resources[i].preferredloclist;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | public static base_responses add(nitro_service client, dnsaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsaction addresources[] = new dnsaction[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnsaction();
addresources[i].actionname = resources[i].actionname;
addresources[i].actiontype = resources[i].actiontype;
addresources[i].ipaddress = resources[i].ipaddress;
addresources[i].ttl = resources[i].ttl;
addresources[i].viewname = resources[i].viewname;
addresources[i].preferredloclist = resources[i].preferredloclist;
}
result = add_bulk_request(client, addresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"dnsaction",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"dnsaction",
"addresources",
"[",
"]",
"=",
"new",
"dnsaction",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"addresources",
"[",
"i",
"]",
"=",
"new",
"dnsaction",
"(",
")",
";",
"addresources",
"[",
"i",
"]",
".",
"actionname",
"=",
"resources",
"[",
"i",
"]",
".",
"actionname",
";",
"addresources",
"[",
"i",
"]",
".",
"actiontype",
"=",
"resources",
"[",
"i",
"]",
".",
"actiontype",
";",
"addresources",
"[",
"i",
"]",
".",
"ipaddress",
"=",
"resources",
"[",
"i",
"]",
".",
"ipaddress",
";",
"addresources",
"[",
"i",
"]",
".",
"ttl",
"=",
"resources",
"[",
"i",
"]",
".",
"ttl",
";",
"addresources",
"[",
"i",
"]",
".",
"viewname",
"=",
"resources",
"[",
"i",
"]",
".",
"viewname",
";",
"addresources",
"[",
"i",
"]",
".",
"preferredloclist",
"=",
"resources",
"[",
"i",
"]",
".",
"preferredloclist",
";",
"}",
"result",
"=",
"add_bulk_request",
"(",
"client",
",",
"addresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to add dnsaction resources. | [
"Use",
"this",
"API",
"to",
"add",
"dnsaction",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java#L246-L262 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java | dnsaction.delete | public static base_responses delete(nitro_service client, String actionname[]) throws Exception {
base_responses result = null;
if (actionname != null && actionname.length > 0) {
dnsaction deleteresources[] = new dnsaction[actionname.length];
for (int i=0;i<actionname.length;i++){
deleteresources[i] = new dnsaction();
deleteresources[i].actionname = actionname[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | public static base_responses delete(nitro_service client, String actionname[]) throws Exception {
base_responses result = null;
if (actionname != null && actionname.length > 0) {
dnsaction deleteresources[] = new dnsaction[actionname.length];
for (int i=0;i<actionname.length;i++){
deleteresources[i] = new dnsaction();
deleteresources[i].actionname = actionname[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"actionname",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"actionname",
"!=",
"null",
"&&",
"actionname",
".",
"length",
">",
"0",
")",
"{",
"dnsaction",
"deleteresources",
"[",
"]",
"=",
"new",
"dnsaction",
"[",
"actionname",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"actionname",
".",
"length",
";",
"i",
"++",
")",
"{",
"deleteresources",
"[",
"i",
"]",
"=",
"new",
"dnsaction",
"(",
")",
";",
"deleteresources",
"[",
"i",
"]",
".",
"actionname",
"=",
"actionname",
"[",
"i",
"]",
";",
"}",
"result",
"=",
"delete_bulk_request",
"(",
"client",
",",
"deleteresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to delete dnsaction resources of given names. | [
"Use",
"this",
"API",
"to",
"delete",
"dnsaction",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java#L285-L296 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java | dnsaction.update | public static base_response update(nitro_service client, dnsaction resource) throws Exception {
dnsaction updateresource = new dnsaction();
updateresource.actionname = resource.actionname;
updateresource.ipaddress = resource.ipaddress;
updateresource.ttl = resource.ttl;
updateresource.viewname = resource.viewname;
updateresource.preferredloclist = resource.preferredloclist;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, dnsaction resource) throws Exception {
dnsaction updateresource = new dnsaction();
updateresource.actionname = resource.actionname;
updateresource.ipaddress = resource.ipaddress;
updateresource.ttl = resource.ttl;
updateresource.viewname = resource.viewname;
updateresource.preferredloclist = resource.preferredloclist;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"dnsaction",
"resource",
")",
"throws",
"Exception",
"{",
"dnsaction",
"updateresource",
"=",
"new",
"dnsaction",
"(",
")",
";",
"updateresource",
".",
"actionname",
"=",
"resource",
".",
"actionname",
";",
"updateresource",
".",
"ipaddress",
"=",
"resource",
".",
"ipaddress",
";",
"updateresource",
".",
"ttl",
"=",
"resource",
".",
"ttl",
";",
"updateresource",
".",
"viewname",
"=",
"resource",
".",
"viewname",
";",
"updateresource",
".",
"preferredloclist",
"=",
"resource",
".",
"preferredloclist",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update dnsaction. | [
"Use",
"this",
"API",
"to",
"update",
"dnsaction",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java#L317-L325 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java | dnsaction.update | public static base_responses update(nitro_service client, dnsaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsaction updateresources[] = new dnsaction[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new dnsaction();
updateresources[i].actionname = resources[i].actionname;
updateresources[i].ipaddress = resources[i].ipaddress;
updateresources[i].ttl = resources[i].ttl;
updateresources[i].viewname = resources[i].viewname;
updateresources[i].preferredloclist = resources[i].preferredloclist;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | public static base_responses update(nitro_service client, dnsaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsaction updateresources[] = new dnsaction[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new dnsaction();
updateresources[i].actionname = resources[i].actionname;
updateresources[i].ipaddress = resources[i].ipaddress;
updateresources[i].ttl = resources[i].ttl;
updateresources[i].viewname = resources[i].viewname;
updateresources[i].preferredloclist = resources[i].preferredloclist;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"dnsaction",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"dnsaction",
"updateresources",
"[",
"]",
"=",
"new",
"dnsaction",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"updateresources",
"[",
"i",
"]",
"=",
"new",
"dnsaction",
"(",
")",
";",
"updateresources",
"[",
"i",
"]",
".",
"actionname",
"=",
"resources",
"[",
"i",
"]",
".",
"actionname",
";",
"updateresources",
"[",
"i",
"]",
".",
"ipaddress",
"=",
"resources",
"[",
"i",
"]",
".",
"ipaddress",
";",
"updateresources",
"[",
"i",
"]",
".",
"ttl",
"=",
"resources",
"[",
"i",
"]",
".",
"ttl",
";",
"updateresources",
"[",
"i",
"]",
".",
"viewname",
"=",
"resources",
"[",
"i",
"]",
".",
"viewname",
";",
"updateresources",
"[",
"i",
"]",
".",
"preferredloclist",
"=",
"resources",
"[",
"i",
"]",
".",
"preferredloclist",
";",
"}",
"result",
"=",
"update_bulk_request",
"(",
"client",
",",
"updateresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to update dnsaction resources. | [
"Use",
"this",
"API",
"to",
"update",
"dnsaction",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java#L330-L345 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java | dnsaction.unset | public static base_response unset(nitro_service client, dnsaction resource, String[] args) throws Exception{
dnsaction unsetresource = new dnsaction();
unsetresource.actionname = resource.actionname;
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, dnsaction resource, String[] args) throws Exception{
dnsaction unsetresource = new dnsaction();
unsetresource.actionname = resource.actionname;
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"dnsaction",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"dnsaction",
"unsetresource",
"=",
"new",
"dnsaction",
"(",
")",
";",
"unsetresource",
".",
"actionname",
"=",
"resource",
".",
"actionname",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of dnsaction resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"dnsaction",
"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/dns/dnsaction.java#L351-L355 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java | dnsaction.get | public static dnsaction[] get(nitro_service service) throws Exception{
dnsaction obj = new dnsaction();
dnsaction[] response = (dnsaction[])obj.get_resources(service);
return response;
} | java | public static dnsaction[] get(nitro_service service) throws Exception{
dnsaction obj = new dnsaction();
dnsaction[] response = (dnsaction[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"dnsaction",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"dnsaction",
"obj",
"=",
"new",
"dnsaction",
"(",
")",
";",
"dnsaction",
"[",
"]",
"response",
"=",
"(",
"dnsaction",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the dnsaction resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"dnsaction",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java#L394-L398 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java | dnsaction.get | public static dnsaction get(nitro_service service, String actionname) throws Exception{
dnsaction obj = new dnsaction();
obj.set_actionname(actionname);
dnsaction response = (dnsaction) obj.get_resource(service);
return response;
} | java | public static dnsaction get(nitro_service service, String actionname) throws Exception{
dnsaction obj = new dnsaction();
obj.set_actionname(actionname);
dnsaction response = (dnsaction) obj.get_resource(service);
return response;
} | [
"public",
"static",
"dnsaction",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"actionname",
")",
"throws",
"Exception",
"{",
"dnsaction",
"obj",
"=",
"new",
"dnsaction",
"(",
")",
";",
"obj",
".",
"set_actionname",
"(",
"actionname",
")",
";",
"dnsaction",
"response",
"=",
"(",
"dnsaction",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch dnsaction resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"dnsaction",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsaction.java#L410-L415 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cr/crvserver_cmppolicy_binding.java | crvserver_cmppolicy_binding.get | public static crvserver_cmppolicy_binding[] get(nitro_service service, String name) throws Exception{
crvserver_cmppolicy_binding obj = new crvserver_cmppolicy_binding();
obj.set_name(name);
crvserver_cmppolicy_binding response[] = (crvserver_cmppolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static crvserver_cmppolicy_binding[] get(nitro_service service, String name) throws Exception{
crvserver_cmppolicy_binding obj = new crvserver_cmppolicy_binding();
obj.set_name(name);
crvserver_cmppolicy_binding response[] = (crvserver_cmppolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"crvserver_cmppolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"crvserver_cmppolicy_binding",
"obj",
"=",
"new",
"crvserver_cmppolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"crvserver_cmppolicy_binding",
"response",
"[",
"]",
"=",
"(",
"crvserver_cmppolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch crvserver_cmppolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"crvserver_cmppolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cr/crvserver_cmppolicy_binding.java#L205-L210 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/classify/Dataset.java | Dataset.readSVMLightFormat | public static Dataset<String, String> readSVMLightFormat(String filename) {
return readSVMLightFormat(filename, new HashIndex<String>(), new HashIndex<String>());
} | java | public static Dataset<String, String> readSVMLightFormat(String filename) {
return readSVMLightFormat(filename, new HashIndex<String>(), new HashIndex<String>());
} | [
"public",
"static",
"Dataset",
"<",
"String",
",",
"String",
">",
"readSVMLightFormat",
"(",
"String",
"filename",
")",
"{",
"return",
"readSVMLightFormat",
"(",
"filename",
",",
"new",
"HashIndex",
"<",
"String",
">",
"(",
")",
",",
"new",
"HashIndex",
"<",
"String",
">",
"(",
")",
")",
";",
"}"
] | Constructs a Dataset by reading in a file in SVM light format. | [
"Constructs",
"a",
"Dataset",
"by",
"reading",
"in",
"a",
"file",
"in",
"SVM",
"light",
"format",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/Dataset.java#L197-L199 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/classify/Dataset.java | Dataset.getFeatureCounter | public Counter<F> getFeatureCounter()
{
Counter<F> featureCounts = new ClassicCounter<F>();
for (int i=0; i < this.size(); i++)
{
BasicDatum<L, F> datum = (BasicDatum<L, F>) getDatum(i);
Set<F> featureSet = new HashSet<F>(datum.asFeatures());
for (F key : featureSet) {
featureCounts.incrementCount(key, 1.0);
}
}
return featureCounts;
} | java | public Counter<F> getFeatureCounter()
{
Counter<F> featureCounts = new ClassicCounter<F>();
for (int i=0; i < this.size(); i++)
{
BasicDatum<L, F> datum = (BasicDatum<L, F>) getDatum(i);
Set<F> featureSet = new HashSet<F>(datum.asFeatures());
for (F key : featureSet) {
featureCounts.incrementCount(key, 1.0);
}
}
return featureCounts;
} | [
"public",
"Counter",
"<",
"F",
">",
"getFeatureCounter",
"(",
")",
"{",
"Counter",
"<",
"F",
">",
"featureCounts",
"=",
"new",
"ClassicCounter",
"<",
"F",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"BasicDatum",
"<",
"L",
",",
"F",
">",
"datum",
"=",
"(",
"BasicDatum",
"<",
"L",
",",
"F",
">",
")",
"getDatum",
"(",
"i",
")",
";",
"Set",
"<",
"F",
">",
"featureSet",
"=",
"new",
"HashSet",
"<",
"F",
">",
"(",
"datum",
".",
"asFeatures",
"(",
")",
")",
";",
"for",
"(",
"F",
"key",
":",
"featureSet",
")",
"{",
"featureCounts",
".",
"incrementCount",
"(",
"key",
",",
"1.0",
")",
";",
"}",
"}",
"return",
"featureCounts",
";",
"}"
] | Get Number of datums a given feature appears in. | [
"Get",
"Number",
"of",
"datums",
"a",
"given",
"feature",
"appears",
"in",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/Dataset.java#L262-L274 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/classify/Dataset.java | Dataset.getL1NormalizedTFIDFDatum | public RVFDatum<L,F> getL1NormalizedTFIDFDatum(Datum<L,F> datum,Counter<F> featureDocCounts){
Counter<F> tfidfFeatures = new ClassicCounter<F>();
for(F feature : datum.asFeatures()){
if(featureDocCounts.containsKey(feature))
tfidfFeatures.incrementCount(feature,1.0);
}
double l1norm = 0;
for(F feature: tfidfFeatures.keySet()){
double idf = Math.log(((double)(this.size()+1))/(featureDocCounts.getCount(feature)+0.5));
double tf = tfidfFeatures.getCount(feature);
tfidfFeatures.setCount(feature, tf*idf);
l1norm += tf*idf;
}
for(F feature: tfidfFeatures.keySet()){
double tfidf = tfidfFeatures.getCount(feature);
tfidfFeatures.setCount(feature, tfidf/l1norm);
}
RVFDatum<L,F> rvfDatum = new RVFDatum<L,F>(tfidfFeatures,datum.label());
return rvfDatum;
} | java | public RVFDatum<L,F> getL1NormalizedTFIDFDatum(Datum<L,F> datum,Counter<F> featureDocCounts){
Counter<F> tfidfFeatures = new ClassicCounter<F>();
for(F feature : datum.asFeatures()){
if(featureDocCounts.containsKey(feature))
tfidfFeatures.incrementCount(feature,1.0);
}
double l1norm = 0;
for(F feature: tfidfFeatures.keySet()){
double idf = Math.log(((double)(this.size()+1))/(featureDocCounts.getCount(feature)+0.5));
double tf = tfidfFeatures.getCount(feature);
tfidfFeatures.setCount(feature, tf*idf);
l1norm += tf*idf;
}
for(F feature: tfidfFeatures.keySet()){
double tfidf = tfidfFeatures.getCount(feature);
tfidfFeatures.setCount(feature, tfidf/l1norm);
}
RVFDatum<L,F> rvfDatum = new RVFDatum<L,F>(tfidfFeatures,datum.label());
return rvfDatum;
} | [
"public",
"RVFDatum",
"<",
"L",
",",
"F",
">",
"getL1NormalizedTFIDFDatum",
"(",
"Datum",
"<",
"L",
",",
"F",
">",
"datum",
",",
"Counter",
"<",
"F",
">",
"featureDocCounts",
")",
"{",
"Counter",
"<",
"F",
">",
"tfidfFeatures",
"=",
"new",
"ClassicCounter",
"<",
"F",
">",
"(",
")",
";",
"for",
"(",
"F",
"feature",
":",
"datum",
".",
"asFeatures",
"(",
")",
")",
"{",
"if",
"(",
"featureDocCounts",
".",
"containsKey",
"(",
"feature",
")",
")",
"tfidfFeatures",
".",
"incrementCount",
"(",
"feature",
",",
"1.0",
")",
";",
"}",
"double",
"l1norm",
"=",
"0",
";",
"for",
"(",
"F",
"feature",
":",
"tfidfFeatures",
".",
"keySet",
"(",
")",
")",
"{",
"double",
"idf",
"=",
"Math",
".",
"log",
"(",
"(",
"(",
"double",
")",
"(",
"this",
".",
"size",
"(",
")",
"+",
"1",
")",
")",
"/",
"(",
"featureDocCounts",
".",
"getCount",
"(",
"feature",
")",
"+",
"0.5",
")",
")",
";",
"double",
"tf",
"=",
"tfidfFeatures",
".",
"getCount",
"(",
"feature",
")",
";",
"tfidfFeatures",
".",
"setCount",
"(",
"feature",
",",
"tf",
"*",
"idf",
")",
";",
"l1norm",
"+=",
"tf",
"*",
"idf",
";",
"}",
"for",
"(",
"F",
"feature",
":",
"tfidfFeatures",
".",
"keySet",
"(",
")",
")",
"{",
"double",
"tfidf",
"=",
"tfidfFeatures",
".",
"getCount",
"(",
"feature",
")",
";",
"tfidfFeatures",
".",
"setCount",
"(",
"feature",
",",
"tfidf",
"/",
"l1norm",
")",
";",
"}",
"RVFDatum",
"<",
"L",
",",
"F",
">",
"rvfDatum",
"=",
"new",
"RVFDatum",
"<",
"L",
",",
"F",
">",
"(",
"tfidfFeatures",
",",
"datum",
".",
"label",
"(",
")",
")",
";",
"return",
"rvfDatum",
";",
"}"
] | Method to convert features from counts to L1-normalized TFIDF based features
@param datum with a collection of features.
@param featureDocCounts a counter of doc-count for each feature.
@return RVFDatum with l1-normalized tf-idf features. | [
"Method",
"to",
"convert",
"features",
"from",
"counts",
"to",
"L1",
"-",
"normalized",
"TFIDF",
"based",
"features"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/Dataset.java#L282-L301 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/classify/Dataset.java | Dataset.getL1NormalizedTFIDFDataset | public RVFDataset<L,F> getL1NormalizedTFIDFDataset(){
RVFDataset<L,F> rvfDataset = new RVFDataset<L,F>(this.size(),this.featureIndex,this.labelIndex);
Counter<F> featureDocCounts = getFeatureCounter();
for(int i = 0; i < this.size(); i++){
Datum<L,F> datum = this.getDatum(i);
RVFDatum<L,F> rvfDatum = getL1NormalizedTFIDFDatum(datum,featureDocCounts);
rvfDataset.add(rvfDatum);
}
return rvfDataset;
} | java | public RVFDataset<L,F> getL1NormalizedTFIDFDataset(){
RVFDataset<L,F> rvfDataset = new RVFDataset<L,F>(this.size(),this.featureIndex,this.labelIndex);
Counter<F> featureDocCounts = getFeatureCounter();
for(int i = 0; i < this.size(); i++){
Datum<L,F> datum = this.getDatum(i);
RVFDatum<L,F> rvfDatum = getL1NormalizedTFIDFDatum(datum,featureDocCounts);
rvfDataset.add(rvfDatum);
}
return rvfDataset;
} | [
"public",
"RVFDataset",
"<",
"L",
",",
"F",
">",
"getL1NormalizedTFIDFDataset",
"(",
")",
"{",
"RVFDataset",
"<",
"L",
",",
"F",
">",
"rvfDataset",
"=",
"new",
"RVFDataset",
"<",
"L",
",",
"F",
">",
"(",
"this",
".",
"size",
"(",
")",
",",
"this",
".",
"featureIndex",
",",
"this",
".",
"labelIndex",
")",
";",
"Counter",
"<",
"F",
">",
"featureDocCounts",
"=",
"getFeatureCounter",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"Datum",
"<",
"L",
",",
"F",
">",
"datum",
"=",
"this",
".",
"getDatum",
"(",
"i",
")",
";",
"RVFDatum",
"<",
"L",
",",
"F",
">",
"rvfDatum",
"=",
"getL1NormalizedTFIDFDatum",
"(",
"datum",
",",
"featureDocCounts",
")",
";",
"rvfDataset",
".",
"add",
"(",
"rvfDatum",
")",
";",
"}",
"return",
"rvfDataset",
";",
"}"
] | Method to convert this dataset to RVFDataset using L1-normalized TF-IDF features
@return RVFDataset | [
"Method",
"to",
"convert",
"this",
"dataset",
"to",
"RVFDataset",
"using",
"L1",
"-",
"normalized",
"TF",
"-",
"IDF",
"features"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/Dataset.java#L307-L316 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/classify/Dataset.java | Dataset.printFullFeatureMatrix | public void printFullFeatureMatrix(PrintWriter pw) {
String sep = "\t";
for (int i = 0; i < featureIndex.size(); i++) {
pw.print(sep + featureIndex.get(i));
}
pw.println();
for (int i = 0; i < labels.length; i++) {
pw.print(labelIndex.get(i));
Set<Integer> feats = new HashSet<Integer>();
for (int j = 0; j < data[i].length; j++) {
int feature = data[i][j];
feats.add(Integer.valueOf(feature));
}
for (int j = 0; j < featureIndex.size(); j++) {
if (feats.contains(Integer.valueOf(j))) {
pw.print(sep + '1');
} else {
pw.print(sep + '0');
}
}
}
} | java | public void printFullFeatureMatrix(PrintWriter pw) {
String sep = "\t";
for (int i = 0; i < featureIndex.size(); i++) {
pw.print(sep + featureIndex.get(i));
}
pw.println();
for (int i = 0; i < labels.length; i++) {
pw.print(labelIndex.get(i));
Set<Integer> feats = new HashSet<Integer>();
for (int j = 0; j < data[i].length; j++) {
int feature = data[i][j];
feats.add(Integer.valueOf(feature));
}
for (int j = 0; j < featureIndex.size(); j++) {
if (feats.contains(Integer.valueOf(j))) {
pw.print(sep + '1');
} else {
pw.print(sep + '0');
}
}
}
} | [
"public",
"void",
"printFullFeatureMatrix",
"(",
"PrintWriter",
"pw",
")",
"{",
"String",
"sep",
"=",
"\"\\t\"",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"featureIndex",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"pw",
".",
"print",
"(",
"sep",
"+",
"featureIndex",
".",
"get",
"(",
"i",
")",
")",
";",
"}",
"pw",
".",
"println",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"labels",
".",
"length",
";",
"i",
"++",
")",
"{",
"pw",
".",
"print",
"(",
"labelIndex",
".",
"get",
"(",
"i",
")",
")",
";",
"Set",
"<",
"Integer",
">",
"feats",
"=",
"new",
"HashSet",
"<",
"Integer",
">",
"(",
")",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"data",
"[",
"i",
"]",
".",
"length",
";",
"j",
"++",
")",
"{",
"int",
"feature",
"=",
"data",
"[",
"i",
"]",
"[",
"j",
"]",
";",
"feats",
".",
"add",
"(",
"Integer",
".",
"valueOf",
"(",
"feature",
")",
")",
";",
"}",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"featureIndex",
".",
"size",
"(",
")",
";",
"j",
"++",
")",
"{",
"if",
"(",
"feats",
".",
"contains",
"(",
"Integer",
".",
"valueOf",
"(",
"j",
")",
")",
")",
"{",
"pw",
".",
"print",
"(",
"sep",
"+",
"'",
"'",
")",
";",
"}",
"else",
"{",
"pw",
".",
"print",
"(",
"sep",
"+",
"'",
"'",
")",
";",
"}",
"}",
"}",
"}"
] | prints the full feature matrix in tab-delimited form. These can be BIG
matrices, so be careful! | [
"prints",
"the",
"full",
"feature",
"matrix",
"in",
"tab",
"-",
"delimited",
"form",
".",
"These",
"can",
"be",
"BIG",
"matrices",
"so",
"be",
"careful!"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/Dataset.java#L508-L529 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/classify/Dataset.java | Dataset.selectFeatures | public void selectFeatures(int numFeatures, double[] scores) {
List<ScoredObject<F>> scoredFeatures = new ArrayList<ScoredObject<F>>();
for (int i = 0; i < scores.length; i++) {
scoredFeatures.add(new ScoredObject<F>(featureIndex.get(i), scores[i]));
}
Collections.sort(scoredFeatures, ScoredComparator.DESCENDING_COMPARATOR);
Index<F> newFeatureIndex = new HashIndex<F>();
for (int i = 0; i < scoredFeatures.size() && i < numFeatures; i++) {
newFeatureIndex.add(scoredFeatures.get(i).object());
//System.err.println(scoredFeatures.get(i));
}
for (int i = 0; i < size; i++) {
int[] newData = new int[data[i].length];
int curIndex = 0;
for (int j = 0; j < data[i].length; j++) {
int index;
if ((index = newFeatureIndex.indexOf(featureIndex.get(data[i][j]))) != -1) {
newData[curIndex++] = index;
}
}
int[] newDataTrimmed = new int[curIndex];
System.arraycopy(newData, 0, newDataTrimmed, 0, curIndex);
data[i] = newDataTrimmed;
}
featureIndex = newFeatureIndex;
} | java | public void selectFeatures(int numFeatures, double[] scores) {
List<ScoredObject<F>> scoredFeatures = new ArrayList<ScoredObject<F>>();
for (int i = 0; i < scores.length; i++) {
scoredFeatures.add(new ScoredObject<F>(featureIndex.get(i), scores[i]));
}
Collections.sort(scoredFeatures, ScoredComparator.DESCENDING_COMPARATOR);
Index<F> newFeatureIndex = new HashIndex<F>();
for (int i = 0; i < scoredFeatures.size() && i < numFeatures; i++) {
newFeatureIndex.add(scoredFeatures.get(i).object());
//System.err.println(scoredFeatures.get(i));
}
for (int i = 0; i < size; i++) {
int[] newData = new int[data[i].length];
int curIndex = 0;
for (int j = 0; j < data[i].length; j++) {
int index;
if ((index = newFeatureIndex.indexOf(featureIndex.get(data[i][j]))) != -1) {
newData[curIndex++] = index;
}
}
int[] newDataTrimmed = new int[curIndex];
System.arraycopy(newData, 0, newDataTrimmed, 0, curIndex);
data[i] = newDataTrimmed;
}
featureIndex = newFeatureIndex;
} | [
"public",
"void",
"selectFeatures",
"(",
"int",
"numFeatures",
",",
"double",
"[",
"]",
"scores",
")",
"{",
"List",
"<",
"ScoredObject",
"<",
"F",
">>",
"scoredFeatures",
"=",
"new",
"ArrayList",
"<",
"ScoredObject",
"<",
"F",
">",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"scores",
".",
"length",
";",
"i",
"++",
")",
"{",
"scoredFeatures",
".",
"add",
"(",
"new",
"ScoredObject",
"<",
"F",
">",
"(",
"featureIndex",
".",
"get",
"(",
"i",
")",
",",
"scores",
"[",
"i",
"]",
")",
")",
";",
"}",
"Collections",
".",
"sort",
"(",
"scoredFeatures",
",",
"ScoredComparator",
".",
"DESCENDING_COMPARATOR",
")",
";",
"Index",
"<",
"F",
">",
"newFeatureIndex",
"=",
"new",
"HashIndex",
"<",
"F",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"scoredFeatures",
".",
"size",
"(",
")",
"&&",
"i",
"<",
"numFeatures",
";",
"i",
"++",
")",
"{",
"newFeatureIndex",
".",
"add",
"(",
"scoredFeatures",
".",
"get",
"(",
"i",
")",
".",
"object",
"(",
")",
")",
";",
"//System.err.println(scoredFeatures.get(i));\r",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"++",
")",
"{",
"int",
"[",
"]",
"newData",
"=",
"new",
"int",
"[",
"data",
"[",
"i",
"]",
".",
"length",
"]",
";",
"int",
"curIndex",
"=",
"0",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"data",
"[",
"i",
"]",
".",
"length",
";",
"j",
"++",
")",
"{",
"int",
"index",
";",
"if",
"(",
"(",
"index",
"=",
"newFeatureIndex",
".",
"indexOf",
"(",
"featureIndex",
".",
"get",
"(",
"data",
"[",
"i",
"]",
"[",
"j",
"]",
")",
")",
")",
"!=",
"-",
"1",
")",
"{",
"newData",
"[",
"curIndex",
"++",
"]",
"=",
"index",
";",
"}",
"}",
"int",
"[",
"]",
"newDataTrimmed",
"=",
"new",
"int",
"[",
"curIndex",
"]",
";",
"System",
".",
"arraycopy",
"(",
"newData",
",",
"0",
",",
"newDataTrimmed",
",",
"0",
",",
"curIndex",
")",
";",
"data",
"[",
"i",
"]",
"=",
"newDataTrimmed",
";",
"}",
"featureIndex",
"=",
"newFeatureIndex",
";",
"}"
] | Generic method to select features based on the feature scores vector provided as an argument.
@param numFeatures number of features to be selected.
@param scores a vector of size total number of features in the data. | [
"Generic",
"method",
"to",
"select",
"features",
"based",
"on",
"the",
"feature",
"scores",
"vector",
"provided",
"as",
"an",
"argument",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/Dataset.java#L598-L627 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/classify/Dataset.java | Dataset.printSVMLightFormat | public static void printSVMLightFormat(PrintWriter pw, ClassicCounter<Integer> c, int classNo) {
Integer[] features = c.keySet().toArray(new Integer[c.keySet().size()]);
Arrays.sort(features);
StringBuilder sb = new StringBuilder();
sb.append(classNo);
sb.append(' ');
for (int f: features) {
sb.append(f + 1).append(':').append(c.getCount(f)).append(' ');
}
pw.println(sb.toString());
} | java | public static void printSVMLightFormat(PrintWriter pw, ClassicCounter<Integer> c, int classNo) {
Integer[] features = c.keySet().toArray(new Integer[c.keySet().size()]);
Arrays.sort(features);
StringBuilder sb = new StringBuilder();
sb.append(classNo);
sb.append(' ');
for (int f: features) {
sb.append(f + 1).append(':').append(c.getCount(f)).append(' ');
}
pw.println(sb.toString());
} | [
"public",
"static",
"void",
"printSVMLightFormat",
"(",
"PrintWriter",
"pw",
",",
"ClassicCounter",
"<",
"Integer",
">",
"c",
",",
"int",
"classNo",
")",
"{",
"Integer",
"[",
"]",
"features",
"=",
"c",
".",
"keySet",
"(",
")",
".",
"toArray",
"(",
"new",
"Integer",
"[",
"c",
".",
"keySet",
"(",
")",
".",
"size",
"(",
")",
"]",
")",
";",
"Arrays",
".",
"sort",
"(",
"features",
")",
";",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"classNo",
")",
";",
"sb",
".",
"append",
"(",
"'",
"'",
")",
";",
"for",
"(",
"int",
"f",
":",
"features",
")",
"{",
"sb",
".",
"append",
"(",
"f",
"+",
"1",
")",
".",
"append",
"(",
"'",
"'",
")",
".",
"append",
"(",
"c",
".",
"getCount",
"(",
"f",
")",
")",
".",
"append",
"(",
"'",
"'",
")",
";",
"}",
"pw",
".",
"println",
"(",
"sb",
".",
"toString",
"(",
")",
")",
";",
"}"
] | Need to sort the counter by feature keys and dump it | [
"Need",
"to",
"sort",
"the",
"counter",
"by",
"feature",
"keys",
"and",
"dump",
"it"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/Dataset.java#L749-L759 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemglobaldata.java | systemglobaldata.get | public static systemglobaldata[] get(nitro_service service, systemglobaldata_args args) throws Exception{
systemglobaldata obj = new systemglobaldata();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systemglobaldata[] response = (systemglobaldata[])obj.get_resources(service, option);
return response;
} | java | public static systemglobaldata[] get(nitro_service service, systemglobaldata_args args) throws Exception{
systemglobaldata obj = new systemglobaldata();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systemglobaldata[] response = (systemglobaldata[])obj.get_resources(service, option);
return response;
} | [
"public",
"static",
"systemglobaldata",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"systemglobaldata_args",
"args",
")",
"throws",
"Exception",
"{",
"systemglobaldata",
"obj",
"=",
"new",
"systemglobaldata",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_args",
"(",
"nitro_util",
".",
"object_to_string_withoutquotes",
"(",
"args",
")",
")",
";",
"systemglobaldata",
"[",
"]",
"response",
"=",
"(",
"systemglobaldata",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the systemglobaldata resources that are configured on netscaler.
This uses systemglobaldata_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"systemglobaldata",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"systemglobaldata_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/system/systemglobaldata.java#L289-L295 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_copolicy_binding.java | lbvserver_copolicy_binding.get | public static lbvserver_copolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_copolicy_binding obj = new lbvserver_copolicy_binding();
obj.set_name(name);
lbvserver_copolicy_binding response[] = (lbvserver_copolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static lbvserver_copolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_copolicy_binding obj = new lbvserver_copolicy_binding();
obj.set_name(name);
lbvserver_copolicy_binding response[] = (lbvserver_copolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"lbvserver_copolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"lbvserver_copolicy_binding",
"obj",
"=",
"new",
"lbvserver_copolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"lbvserver_copolicy_binding",
"response",
"[",
"]",
"=",
"(",
"lbvserver_copolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch lbvserver_copolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbvserver_copolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_copolicy_binding.java#L312-L317 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditsyslogpolicy_aaagroup_binding.java | auditsyslogpolicy_aaagroup_binding.get | public static auditsyslogpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{
auditsyslogpolicy_aaagroup_binding obj = new auditsyslogpolicy_aaagroup_binding();
obj.set_name(name);
auditsyslogpolicy_aaagroup_binding response[] = (auditsyslogpolicy_aaagroup_binding[]) obj.get_resources(service);
return response;
} | java | public static auditsyslogpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{
auditsyslogpolicy_aaagroup_binding obj = new auditsyslogpolicy_aaagroup_binding();
obj.set_name(name);
auditsyslogpolicy_aaagroup_binding response[] = (auditsyslogpolicy_aaagroup_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"auditsyslogpolicy_aaagroup_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"auditsyslogpolicy_aaagroup_binding",
"obj",
"=",
"new",
"auditsyslogpolicy_aaagroup_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"auditsyslogpolicy_aaagroup_binding",
"response",
"[",
"]",
"=",
"(",
"auditsyslogpolicy_aaagroup_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch auditsyslogpolicy_aaagroup_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"auditsyslogpolicy_aaagroup_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditsyslogpolicy_aaagroup_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslcertkey_binding.java | sslcertkey_binding.get | public static sslcertkey_binding get(nitro_service service, String certkey) throws Exception{
sslcertkey_binding obj = new sslcertkey_binding();
obj.set_certkey(certkey);
sslcertkey_binding response = (sslcertkey_binding) obj.get_resource(service);
return response;
} | java | public static sslcertkey_binding get(nitro_service service, String certkey) throws Exception{
sslcertkey_binding obj = new sslcertkey_binding();
obj.set_certkey(certkey);
sslcertkey_binding response = (sslcertkey_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"sslcertkey_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"certkey",
")",
"throws",
"Exception",
"{",
"sslcertkey_binding",
"obj",
"=",
"new",
"sslcertkey_binding",
"(",
")",
";",
"obj",
".",
"set_certkey",
"(",
"certkey",
")",
";",
"sslcertkey_binding",
"response",
"=",
"(",
"sslcertkey_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch sslcertkey_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"sslcertkey_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslcertkey_binding.java#L136-L141 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier_nslimitsessions_binding.java | nslimitidentifier_nslimitsessions_binding.get | public static nslimitidentifier_nslimitsessions_binding[] get(nitro_service service, String limitidentifier) throws Exception{
nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding();
obj.set_limitidentifier(limitidentifier);
nslimitidentifier_nslimitsessions_binding response[] = (nslimitidentifier_nslimitsessions_binding[]) obj.get_resources(service);
return response;
} | java | public static nslimitidentifier_nslimitsessions_binding[] get(nitro_service service, String limitidentifier) throws Exception{
nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding();
obj.set_limitidentifier(limitidentifier);
nslimitidentifier_nslimitsessions_binding response[] = (nslimitidentifier_nslimitsessions_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"nslimitidentifier_nslimitsessions_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"limitidentifier",
")",
"throws",
"Exception",
"{",
"nslimitidentifier_nslimitsessions_binding",
"obj",
"=",
"new",
"nslimitidentifier_nslimitsessions_binding",
"(",
")",
";",
"obj",
".",
"set_limitidentifier",
"(",
"limitidentifier",
")",
";",
"nslimitidentifier_nslimitsessions_binding",
"response",
"[",
"]",
"=",
"(",
"nslimitidentifier_nslimitsessions_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch nslimitidentifier_nslimitsessions_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"nslimitidentifier_nslimitsessions_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier_nslimitsessions_binding.java#L93-L98 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier_nslimitsessions_binding.java | nslimitidentifier_nslimitsessions_binding.get_filtered | public static nslimitidentifier_nslimitsessions_binding[] get_filtered(nitro_service service, String limitidentifier, filtervalue[] filter) throws Exception{
nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding();
obj.set_limitidentifier(limitidentifier);
options option = new options();
option.set_filter(filter);
nslimitidentifier_nslimitsessions_binding[] response = (nslimitidentifier_nslimitsessions_binding[]) obj.getfiltered(service, option);
return response;
} | java | public static nslimitidentifier_nslimitsessions_binding[] get_filtered(nitro_service service, String limitidentifier, filtervalue[] filter) throws Exception{
nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding();
obj.set_limitidentifier(limitidentifier);
options option = new options();
option.set_filter(filter);
nslimitidentifier_nslimitsessions_binding[] response = (nslimitidentifier_nslimitsessions_binding[]) obj.getfiltered(service, option);
return response;
} | [
"public",
"static",
"nslimitidentifier_nslimitsessions_binding",
"[",
"]",
"get_filtered",
"(",
"nitro_service",
"service",
",",
"String",
"limitidentifier",
",",
"filtervalue",
"[",
"]",
"filter",
")",
"throws",
"Exception",
"{",
"nslimitidentifier_nslimitsessions_binding",
"obj",
"=",
"new",
"nslimitidentifier_nslimitsessions_binding",
"(",
")",
";",
"obj",
".",
"set_limitidentifier",
"(",
"limitidentifier",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_filter",
"(",
"filter",
")",
";",
"nslimitidentifier_nslimitsessions_binding",
"[",
"]",
"response",
"=",
"(",
"nslimitidentifier_nslimitsessions_binding",
"[",
"]",
")",
"obj",
".",
"getfiltered",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch filtered set of nslimitidentifier_nslimitsessions_binding resources.
set the filter parameter values in filtervalue object. | [
"Use",
"this",
"API",
"to",
"fetch",
"filtered",
"set",
"of",
"nslimitidentifier_nslimitsessions_binding",
"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/ns/nslimitidentifier_nslimitsessions_binding.java#L117-L124 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier_nslimitsessions_binding.java | nslimitidentifier_nslimitsessions_binding.count | public static long count(nitro_service service, String limitidentifier) throws Exception{
nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding();
obj.set_limitidentifier(limitidentifier);
options option = new options();
option.set_count(true);
nslimitidentifier_nslimitsessions_binding response[] = (nslimitidentifier_nslimitsessions_binding[]) obj.get_resources(service,option);
if (response != null) {
return response[0].__count;
}
return 0;
} | java | public static long count(nitro_service service, String limitidentifier) throws Exception{
nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding();
obj.set_limitidentifier(limitidentifier);
options option = new options();
option.set_count(true);
nslimitidentifier_nslimitsessions_binding response[] = (nslimitidentifier_nslimitsessions_binding[]) obj.get_resources(service,option);
if (response != null) {
return response[0].__count;
}
return 0;
} | [
"public",
"static",
"long",
"count",
"(",
"nitro_service",
"service",
",",
"String",
"limitidentifier",
")",
"throws",
"Exception",
"{",
"nslimitidentifier_nslimitsessions_binding",
"obj",
"=",
"new",
"nslimitidentifier_nslimitsessions_binding",
"(",
")",
";",
"obj",
".",
"set_limitidentifier",
"(",
"limitidentifier",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_count",
"(",
"true",
")",
";",
"nslimitidentifier_nslimitsessions_binding",
"response",
"[",
"]",
"=",
"(",
"nslimitidentifier_nslimitsessions_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"if",
"(",
"response",
"!=",
"null",
")",
"{",
"return",
"response",
"[",
"0",
"]",
".",
"__count",
";",
"}",
"return",
"0",
";",
"}"
] | Use this API to count nslimitidentifier_nslimitsessions_binding resources configued on NetScaler. | [
"Use",
"this",
"API",
"to",
"count",
"nslimitidentifier_nslimitsessions_binding",
"resources",
"configued",
"on",
"NetScaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier_nslimitsessions_binding.java#L129-L139 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java | cacheforwardproxy.add | public static base_response add(nitro_service client, cacheforwardproxy resource) throws Exception {
cacheforwardproxy addresource = new cacheforwardproxy();
addresource.ipaddress = resource.ipaddress;
addresource.port = resource.port;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, cacheforwardproxy resource) throws Exception {
cacheforwardproxy addresource = new cacheforwardproxy();
addresource.ipaddress = resource.ipaddress;
addresource.port = resource.port;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"cacheforwardproxy",
"resource",
")",
"throws",
"Exception",
"{",
"cacheforwardproxy",
"addresource",
"=",
"new",
"cacheforwardproxy",
"(",
")",
";",
"addresource",
".",
"ipaddress",
"=",
"resource",
".",
"ipaddress",
";",
"addresource",
".",
"port",
"=",
"resource",
".",
"port",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add cacheforwardproxy. | [
"Use",
"this",
"API",
"to",
"add",
"cacheforwardproxy",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java#L121-L126 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java | cacheforwardproxy.add | public static base_responses add(nitro_service client, cacheforwardproxy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheforwardproxy addresources[] = new cacheforwardproxy[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new cacheforwardproxy();
addresources[i].ipaddress = resources[i].ipaddress;
addresources[i].port = resources[i].port;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | public static base_responses add(nitro_service client, cacheforwardproxy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheforwardproxy addresources[] = new cacheforwardproxy[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new cacheforwardproxy();
addresources[i].ipaddress = resources[i].ipaddress;
addresources[i].port = resources[i].port;
}
result = add_bulk_request(client, addresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"cacheforwardproxy",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"cacheforwardproxy",
"addresources",
"[",
"]",
"=",
"new",
"cacheforwardproxy",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"addresources",
"[",
"i",
"]",
"=",
"new",
"cacheforwardproxy",
"(",
")",
";",
"addresources",
"[",
"i",
"]",
".",
"ipaddress",
"=",
"resources",
"[",
"i",
"]",
".",
"ipaddress",
";",
"addresources",
"[",
"i",
"]",
".",
"port",
"=",
"resources",
"[",
"i",
"]",
".",
"port",
";",
"}",
"result",
"=",
"add_bulk_request",
"(",
"client",
",",
"addresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to add cacheforwardproxy resources. | [
"Use",
"this",
"API",
"to",
"add",
"cacheforwardproxy",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java#L131-L143 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java | cacheforwardproxy.delete | public static base_response delete(nitro_service client, String ipaddress) throws Exception {
cacheforwardproxy deleteresource = new cacheforwardproxy();
deleteresource.ipaddress = ipaddress;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, String ipaddress) throws Exception {
cacheforwardproxy deleteresource = new cacheforwardproxy();
deleteresource.ipaddress = ipaddress;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"ipaddress",
")",
"throws",
"Exception",
"{",
"cacheforwardproxy",
"deleteresource",
"=",
"new",
"cacheforwardproxy",
"(",
")",
";",
"deleteresource",
".",
"ipaddress",
"=",
"ipaddress",
";",
"return",
"deleteresource",
".",
"delete_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to delete cacheforwardproxy of given name. | [
"Use",
"this",
"API",
"to",
"delete",
"cacheforwardproxy",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java#L148-L152 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java | cacheforwardproxy.delete | public static base_response delete(nitro_service client, cacheforwardproxy resource) throws Exception {
cacheforwardproxy deleteresource = new cacheforwardproxy();
deleteresource.ipaddress = resource.ipaddress;
deleteresource.port = resource.port;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, cacheforwardproxy resource) throws Exception {
cacheforwardproxy deleteresource = new cacheforwardproxy();
deleteresource.ipaddress = resource.ipaddress;
deleteresource.port = resource.port;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"cacheforwardproxy",
"resource",
")",
"throws",
"Exception",
"{",
"cacheforwardproxy",
"deleteresource",
"=",
"new",
"cacheforwardproxy",
"(",
")",
";",
"deleteresource",
".",
"ipaddress",
"=",
"resource",
".",
"ipaddress",
";",
"deleteresource",
".",
"port",
"=",
"resource",
".",
"port",
";",
"return",
"deleteresource",
".",
"delete_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to delete cacheforwardproxy. | [
"Use",
"this",
"API",
"to",
"delete",
"cacheforwardproxy",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java#L157-L162 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java | cacheforwardproxy.delete | public static base_responses delete(nitro_service client, String ipaddress[]) throws Exception {
base_responses result = null;
if (ipaddress != null && ipaddress.length > 0) {
cacheforwardproxy deleteresources[] = new cacheforwardproxy[ipaddress.length];
for (int i=0;i<ipaddress.length;i++){
deleteresources[i] = new cacheforwardproxy();
deleteresources[i].ipaddress = ipaddress[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | public static base_responses delete(nitro_service client, String ipaddress[]) throws Exception {
base_responses result = null;
if (ipaddress != null && ipaddress.length > 0) {
cacheforwardproxy deleteresources[] = new cacheforwardproxy[ipaddress.length];
for (int i=0;i<ipaddress.length;i++){
deleteresources[i] = new cacheforwardproxy();
deleteresources[i].ipaddress = ipaddress[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"ipaddress",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"ipaddress",
"!=",
"null",
"&&",
"ipaddress",
".",
"length",
">",
"0",
")",
"{",
"cacheforwardproxy",
"deleteresources",
"[",
"]",
"=",
"new",
"cacheforwardproxy",
"[",
"ipaddress",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"ipaddress",
".",
"length",
";",
"i",
"++",
")",
"{",
"deleteresources",
"[",
"i",
"]",
"=",
"new",
"cacheforwardproxy",
"(",
")",
";",
"deleteresources",
"[",
"i",
"]",
".",
"ipaddress",
"=",
"ipaddress",
"[",
"i",
"]",
";",
"}",
"result",
"=",
"delete_bulk_request",
"(",
"client",
",",
"deleteresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to delete cacheforwardproxy resources of given names. | [
"Use",
"this",
"API",
"to",
"delete",
"cacheforwardproxy",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java#L167-L178 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java | cacheforwardproxy.delete | public static base_responses delete(nitro_service client, cacheforwardproxy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheforwardproxy deleteresources[] = new cacheforwardproxy[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new cacheforwardproxy();
deleteresources[i].ipaddress = resources[i].ipaddress;
deleteresources[i].port = resources[i].port;
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | public static base_responses delete(nitro_service client, cacheforwardproxy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheforwardproxy deleteresources[] = new cacheforwardproxy[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new cacheforwardproxy();
deleteresources[i].ipaddress = resources[i].ipaddress;
deleteresources[i].port = resources[i].port;
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"cacheforwardproxy",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"cacheforwardproxy",
"deleteresources",
"[",
"]",
"=",
"new",
"cacheforwardproxy",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"deleteresources",
"[",
"i",
"]",
"=",
"new",
"cacheforwardproxy",
"(",
")",
";",
"deleteresources",
"[",
"i",
"]",
".",
"ipaddress",
"=",
"resources",
"[",
"i",
"]",
".",
"ipaddress",
";",
"deleteresources",
"[",
"i",
"]",
".",
"port",
"=",
"resources",
"[",
"i",
"]",
".",
"port",
";",
"}",
"result",
"=",
"delete_bulk_request",
"(",
"client",
",",
"deleteresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to delete cacheforwardproxy resources. | [
"Use",
"this",
"API",
"to",
"delete",
"cacheforwardproxy",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java#L183-L195 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java | cacheforwardproxy.get | public static cacheforwardproxy[] get(nitro_service service) throws Exception{
cacheforwardproxy obj = new cacheforwardproxy();
cacheforwardproxy[] response = (cacheforwardproxy[])obj.get_resources(service);
return response;
} | java | public static cacheforwardproxy[] get(nitro_service service) throws Exception{
cacheforwardproxy obj = new cacheforwardproxy();
cacheforwardproxy[] response = (cacheforwardproxy[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"cacheforwardproxy",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"cacheforwardproxy",
"obj",
"=",
"new",
"cacheforwardproxy",
"(",
")",
";",
"cacheforwardproxy",
"[",
"]",
"response",
"=",
"(",
"cacheforwardproxy",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the cacheforwardproxy resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"cacheforwardproxy",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheforwardproxy.java#L200-L204 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/autoscale/autoscalepolicy_nstimer_binding.java | autoscalepolicy_nstimer_binding.get | public static autoscalepolicy_nstimer_binding[] get(nitro_service service, String name) throws Exception{
autoscalepolicy_nstimer_binding obj = new autoscalepolicy_nstimer_binding();
obj.set_name(name);
autoscalepolicy_nstimer_binding response[] = (autoscalepolicy_nstimer_binding[]) obj.get_resources(service);
return response;
} | java | public static autoscalepolicy_nstimer_binding[] get(nitro_service service, String name) throws Exception{
autoscalepolicy_nstimer_binding obj = new autoscalepolicy_nstimer_binding();
obj.set_name(name);
autoscalepolicy_nstimer_binding response[] = (autoscalepolicy_nstimer_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"autoscalepolicy_nstimer_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"autoscalepolicy_nstimer_binding",
"obj",
"=",
"new",
"autoscalepolicy_nstimer_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"autoscalepolicy_nstimer_binding",
"response",
"[",
"]",
"=",
"(",
"autoscalepolicy_nstimer_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch autoscalepolicy_nstimer_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"autoscalepolicy_nstimer_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/autoscale/autoscalepolicy_nstimer_binding.java#L142-L147 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy_cmpglobal_binding.java | cmppolicy_cmpglobal_binding.get | public static cmppolicy_cmpglobal_binding[] get(nitro_service service, String name) throws Exception{
cmppolicy_cmpglobal_binding obj = new cmppolicy_cmpglobal_binding();
obj.set_name(name);
cmppolicy_cmpglobal_binding response[] = (cmppolicy_cmpglobal_binding[]) obj.get_resources(service);
return response;
} | java | public static cmppolicy_cmpglobal_binding[] get(nitro_service service, String name) throws Exception{
cmppolicy_cmpglobal_binding obj = new cmppolicy_cmpglobal_binding();
obj.set_name(name);
cmppolicy_cmpglobal_binding response[] = (cmppolicy_cmpglobal_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"cmppolicy_cmpglobal_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"cmppolicy_cmpglobal_binding",
"obj",
"=",
"new",
"cmppolicy_cmpglobal_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"cmppolicy_cmpglobal_binding",
"response",
"[",
"]",
"=",
"(",
"cmppolicy_cmpglobal_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch cmppolicy_cmpglobal_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"cmppolicy_cmpglobal_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy_cmpglobal_binding.java#L162-L167 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwglobal_binding.java | appfwglobal_binding.get | public static appfwglobal_binding get(nitro_service service) throws Exception{
appfwglobal_binding obj = new appfwglobal_binding();
appfwglobal_binding response = (appfwglobal_binding) obj.get_resource(service);
return response;
} | java | public static appfwglobal_binding get(nitro_service service) throws Exception{
appfwglobal_binding obj = new appfwglobal_binding();
appfwglobal_binding response = (appfwglobal_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"appfwglobal_binding",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appfwglobal_binding",
"obj",
"=",
"new",
"appfwglobal_binding",
"(",
")",
";",
"appfwglobal_binding",
"response",
"=",
"(",
"appfwglobal_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a appfwglobal_binding resource . | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"appfwglobal_binding",
"resource",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwglobal_binding.java#L106-L110 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.delete | public static base_response delete(nitro_service client, String monitorname) throws Exception {
lbmonitor deleteresource = new lbmonitor();
deleteresource.monitorname = monitorname;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, String monitorname) throws Exception {
lbmonitor deleteresource = new lbmonitor();
deleteresource.monitorname = monitorname;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"monitorname",
")",
"throws",
"Exception",
"{",
"lbmonitor",
"deleteresource",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"deleteresource",
".",
"monitorname",
"=",
"monitorname",
";",
"return",
"deleteresource",
".",
"delete_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to delete lbmonitor of given name. | [
"Use",
"this",
"API",
"to",
"delete",
"lbmonitor",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2430-L2434 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.delete | public static base_response delete(nitro_service client, lbmonitor resource) throws Exception {
lbmonitor deleteresource = new lbmonitor();
deleteresource.monitorname = resource.monitorname;
deleteresource.type = resource.type;
deleteresource.respcode = resource.respcode;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, lbmonitor resource) throws Exception {
lbmonitor deleteresource = new lbmonitor();
deleteresource.monitorname = resource.monitorname;
deleteresource.type = resource.type;
deleteresource.respcode = resource.respcode;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"lbmonitor",
"resource",
")",
"throws",
"Exception",
"{",
"lbmonitor",
"deleteresource",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"deleteresource",
".",
"monitorname",
"=",
"resource",
".",
"monitorname",
";",
"deleteresource",
".",
"type",
"=",
"resource",
".",
"type",
";",
"deleteresource",
".",
"respcode",
"=",
"resource",
".",
"respcode",
";",
"return",
"deleteresource",
".",
"delete_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to delete lbmonitor. | [
"Use",
"this",
"API",
"to",
"delete",
"lbmonitor",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2439-L2445 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.delete | public static base_responses delete(nitro_service client, String monitorname[]) throws Exception {
base_responses result = null;
if (monitorname != null && monitorname.length > 0) {
lbmonitor deleteresources[] = new lbmonitor[monitorname.length];
for (int i=0;i<monitorname.length;i++){
deleteresources[i] = new lbmonitor();
deleteresources[i].monitorname = monitorname[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | public static base_responses delete(nitro_service client, String monitorname[]) throws Exception {
base_responses result = null;
if (monitorname != null && monitorname.length > 0) {
lbmonitor deleteresources[] = new lbmonitor[monitorname.length];
for (int i=0;i<monitorname.length;i++){
deleteresources[i] = new lbmonitor();
deleteresources[i].monitorname = monitorname[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"monitorname",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"monitorname",
"!=",
"null",
"&&",
"monitorname",
".",
"length",
">",
"0",
")",
"{",
"lbmonitor",
"deleteresources",
"[",
"]",
"=",
"new",
"lbmonitor",
"[",
"monitorname",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"monitorname",
".",
"length",
";",
"i",
"++",
")",
"{",
"deleteresources",
"[",
"i",
"]",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"deleteresources",
"[",
"i",
"]",
".",
"monitorname",
"=",
"monitorname",
"[",
"i",
"]",
";",
"}",
"result",
"=",
"delete_bulk_request",
"(",
"client",
",",
"deleteresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to delete lbmonitor resources of given names. | [
"Use",
"this",
"API",
"to",
"delete",
"lbmonitor",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2450-L2461 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.delete | public static base_responses delete(nitro_service client, lbmonitor resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor deleteresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new lbmonitor();
deleteresources[i].monitorname = resources[i].monitorname;
deleteresources[i].type = resources[i].type;
deleteresources[i].respcode = resources[i].respcode;
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | public static base_responses delete(nitro_service client, lbmonitor resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor deleteresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new lbmonitor();
deleteresources[i].monitorname = resources[i].monitorname;
deleteresources[i].type = resources[i].type;
deleteresources[i].respcode = resources[i].respcode;
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"lbmonitor",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"lbmonitor",
"deleteresources",
"[",
"]",
"=",
"new",
"lbmonitor",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"deleteresources",
"[",
"i",
"]",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"deleteresources",
"[",
"i",
"]",
".",
"monitorname",
"=",
"resources",
"[",
"i",
"]",
".",
"monitorname",
";",
"deleteresources",
"[",
"i",
"]",
".",
"type",
"=",
"resources",
"[",
"i",
"]",
".",
"type",
";",
"deleteresources",
"[",
"i",
"]",
".",
"respcode",
"=",
"resources",
"[",
"i",
"]",
".",
"respcode",
";",
"}",
"result",
"=",
"delete_bulk_request",
"(",
"client",
",",
"deleteresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to delete lbmonitor resources. | [
"Use",
"this",
"API",
"to",
"delete",
"lbmonitor",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2466-L2479 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.unset | public static base_response unset(nitro_service client, lbmonitor resource, String[] args) throws Exception{
lbmonitor unsetresource = new lbmonitor();
unsetresource.monitorname = resource.monitorname;
unsetresource.type = resource.type;
unsetresource.ipaddress = resource.ipaddress;
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, lbmonitor resource, String[] args) throws Exception{
lbmonitor unsetresource = new lbmonitor();
unsetresource.monitorname = resource.monitorname;
unsetresource.type = resource.type;
unsetresource.ipaddress = resource.ipaddress;
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"lbmonitor",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"lbmonitor",
"unsetresource",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"unsetresource",
".",
"monitorname",
"=",
"resource",
".",
"monitorname",
";",
"unsetresource",
".",
"type",
"=",
"resource",
".",
"type",
";",
"unsetresource",
".",
"ipaddress",
"=",
"resource",
".",
"ipaddress",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of lbmonitor resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"lbmonitor",
"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/lb/lbmonitor.java#L2700-L2706 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.unset | public static base_responses unset(nitro_service client, lbmonitor resources[], String[] args) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor unsetresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
unsetresources[i] = new lbmonitor();
unsetresources[i].monitorname = resources[i].monitorname;
unsetresources[i].type = resources[i].type;
unsetresources[i].ipaddress = resources[i].ipaddress;
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | java | public static base_responses unset(nitro_service client, lbmonitor resources[], String[] args) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor unsetresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
unsetresources[i] = new lbmonitor();
unsetresources[i].monitorname = resources[i].monitorname;
unsetresources[i].type = resources[i].type;
unsetresources[i].ipaddress = resources[i].ipaddress;
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | [
"public",
"static",
"base_responses",
"unset",
"(",
"nitro_service",
"client",
",",
"lbmonitor",
"resources",
"[",
"]",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"lbmonitor",
"unsetresources",
"[",
"]",
"=",
"new",
"lbmonitor",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"unsetresources",
"[",
"i",
"]",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"unsetresources",
"[",
"i",
"]",
".",
"monitorname",
"=",
"resources",
"[",
"i",
"]",
".",
"monitorname",
";",
"unsetresources",
"[",
"i",
"]",
".",
"type",
"=",
"resources",
"[",
"i",
"]",
".",
"type",
";",
"unsetresources",
"[",
"i",
"]",
".",
"ipaddress",
"=",
"resources",
"[",
"i",
"]",
".",
"ipaddress",
";",
"}",
"result",
"=",
"unset_bulk_request",
"(",
"client",
",",
"unsetresources",
",",
"args",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to unset the properties of lbmonitor resources.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"lbmonitor",
"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/lb/lbmonitor.java#L2712-L2725 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.enable | public static base_response enable(nitro_service client, String monitorname) throws Exception {
lbmonitor enableresource = new lbmonitor();
enableresource.monitorname = monitorname;
return enableresource.perform_operation(client,"enable");
} | java | public static base_response enable(nitro_service client, String monitorname) throws Exception {
lbmonitor enableresource = new lbmonitor();
enableresource.monitorname = monitorname;
return enableresource.perform_operation(client,"enable");
} | [
"public",
"static",
"base_response",
"enable",
"(",
"nitro_service",
"client",
",",
"String",
"monitorname",
")",
"throws",
"Exception",
"{",
"lbmonitor",
"enableresource",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"enableresource",
".",
"monitorname",
"=",
"monitorname",
";",
"return",
"enableresource",
".",
"perform_operation",
"(",
"client",
",",
"\"enable\"",
")",
";",
"}"
] | Use this API to enable lbmonitor of given name. | [
"Use",
"this",
"API",
"to",
"enable",
"lbmonitor",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2730-L2734 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.enable | public static base_response enable(nitro_service client, lbmonitor resource) throws Exception {
lbmonitor enableresource = new lbmonitor();
enableresource.servicename = resource.servicename;
enableresource.servicegroupname = resource.servicegroupname;
enableresource.monitorname = resource.monitorname;
return enableresource.perform_operation(client,"enable");
} | java | public static base_response enable(nitro_service client, lbmonitor resource) throws Exception {
lbmonitor enableresource = new lbmonitor();
enableresource.servicename = resource.servicename;
enableresource.servicegroupname = resource.servicegroupname;
enableresource.monitorname = resource.monitorname;
return enableresource.perform_operation(client,"enable");
} | [
"public",
"static",
"base_response",
"enable",
"(",
"nitro_service",
"client",
",",
"lbmonitor",
"resource",
")",
"throws",
"Exception",
"{",
"lbmonitor",
"enableresource",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"enableresource",
".",
"servicename",
"=",
"resource",
".",
"servicename",
";",
"enableresource",
".",
"servicegroupname",
"=",
"resource",
".",
"servicegroupname",
";",
"enableresource",
".",
"monitorname",
"=",
"resource",
".",
"monitorname",
";",
"return",
"enableresource",
".",
"perform_operation",
"(",
"client",
",",
"\"enable\"",
")",
";",
"}"
] | Use this API to enable lbmonitor. | [
"Use",
"this",
"API",
"to",
"enable",
"lbmonitor",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2739-L2745 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.enable | public static base_responses enable(nitro_service client, String monitorname[]) throws Exception {
base_responses result = null;
if (monitorname != null && monitorname.length > 0) {
lbmonitor enableresources[] = new lbmonitor[monitorname.length];
for (int i=0;i<monitorname.length;i++){
enableresources[i] = new lbmonitor();
enableresources[i].monitorname = monitorname[i];
}
result = perform_operation_bulk_request(client, enableresources,"enable");
}
return result;
} | java | public static base_responses enable(nitro_service client, String monitorname[]) throws Exception {
base_responses result = null;
if (monitorname != null && monitorname.length > 0) {
lbmonitor enableresources[] = new lbmonitor[monitorname.length];
for (int i=0;i<monitorname.length;i++){
enableresources[i] = new lbmonitor();
enableresources[i].monitorname = monitorname[i];
}
result = perform_operation_bulk_request(client, enableresources,"enable");
}
return result;
} | [
"public",
"static",
"base_responses",
"enable",
"(",
"nitro_service",
"client",
",",
"String",
"monitorname",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"monitorname",
"!=",
"null",
"&&",
"monitorname",
".",
"length",
">",
"0",
")",
"{",
"lbmonitor",
"enableresources",
"[",
"]",
"=",
"new",
"lbmonitor",
"[",
"monitorname",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"monitorname",
".",
"length",
";",
"i",
"++",
")",
"{",
"enableresources",
"[",
"i",
"]",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"enableresources",
"[",
"i",
"]",
".",
"monitorname",
"=",
"monitorname",
"[",
"i",
"]",
";",
"}",
"result",
"=",
"perform_operation_bulk_request",
"(",
"client",
",",
"enableresources",
",",
"\"enable\"",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to enable lbmonitor resources of given names. | [
"Use",
"this",
"API",
"to",
"enable",
"lbmonitor",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2750-L2761 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.enable | public static base_responses enable(nitro_service client, lbmonitor resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor enableresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
enableresources[i] = new lbmonitor();
enableresources[i].servicename = resources[i].servicename;
enableresources[i].servicegroupname = resources[i].servicegroupname;
enableresources[i].monitorname = resources[i].monitorname;
}
result = perform_operation_bulk_request(client, enableresources,"enable");
}
return result;
} | java | public static base_responses enable(nitro_service client, lbmonitor resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor enableresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
enableresources[i] = new lbmonitor();
enableresources[i].servicename = resources[i].servicename;
enableresources[i].servicegroupname = resources[i].servicegroupname;
enableresources[i].monitorname = resources[i].monitorname;
}
result = perform_operation_bulk_request(client, enableresources,"enable");
}
return result;
} | [
"public",
"static",
"base_responses",
"enable",
"(",
"nitro_service",
"client",
",",
"lbmonitor",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"lbmonitor",
"enableresources",
"[",
"]",
"=",
"new",
"lbmonitor",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"enableresources",
"[",
"i",
"]",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"enableresources",
"[",
"i",
"]",
".",
"servicename",
"=",
"resources",
"[",
"i",
"]",
".",
"servicename",
";",
"enableresources",
"[",
"i",
"]",
".",
"servicegroupname",
"=",
"resources",
"[",
"i",
"]",
".",
"servicegroupname",
";",
"enableresources",
"[",
"i",
"]",
".",
"monitorname",
"=",
"resources",
"[",
"i",
"]",
".",
"monitorname",
";",
"}",
"result",
"=",
"perform_operation_bulk_request",
"(",
"client",
",",
"enableresources",
",",
"\"enable\"",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to enable lbmonitor resources. | [
"Use",
"this",
"API",
"to",
"enable",
"lbmonitor",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2766-L2779 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.disable | public static base_response disable(nitro_service client, String monitorname) throws Exception {
lbmonitor disableresource = new lbmonitor();
disableresource.monitorname = monitorname;
return disableresource.perform_operation(client,"disable");
} | java | public static base_response disable(nitro_service client, String monitorname) throws Exception {
lbmonitor disableresource = new lbmonitor();
disableresource.monitorname = monitorname;
return disableresource.perform_operation(client,"disable");
} | [
"public",
"static",
"base_response",
"disable",
"(",
"nitro_service",
"client",
",",
"String",
"monitorname",
")",
"throws",
"Exception",
"{",
"lbmonitor",
"disableresource",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"disableresource",
".",
"monitorname",
"=",
"monitorname",
";",
"return",
"disableresource",
".",
"perform_operation",
"(",
"client",
",",
"\"disable\"",
")",
";",
"}"
] | Use this API to disable lbmonitor of given name. | [
"Use",
"this",
"API",
"to",
"disable",
"lbmonitor",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2784-L2788 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.disable | public static base_response disable(nitro_service client, lbmonitor resource) throws Exception {
lbmonitor disableresource = new lbmonitor();
disableresource.servicename = resource.servicename;
disableresource.servicegroupname = resource.servicegroupname;
disableresource.monitorname = resource.monitorname;
return disableresource.perform_operation(client,"disable");
} | java | public static base_response disable(nitro_service client, lbmonitor resource) throws Exception {
lbmonitor disableresource = new lbmonitor();
disableresource.servicename = resource.servicename;
disableresource.servicegroupname = resource.servicegroupname;
disableresource.monitorname = resource.monitorname;
return disableresource.perform_operation(client,"disable");
} | [
"public",
"static",
"base_response",
"disable",
"(",
"nitro_service",
"client",
",",
"lbmonitor",
"resource",
")",
"throws",
"Exception",
"{",
"lbmonitor",
"disableresource",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"disableresource",
".",
"servicename",
"=",
"resource",
".",
"servicename",
";",
"disableresource",
".",
"servicegroupname",
"=",
"resource",
".",
"servicegroupname",
";",
"disableresource",
".",
"monitorname",
"=",
"resource",
".",
"monitorname",
";",
"return",
"disableresource",
".",
"perform_operation",
"(",
"client",
",",
"\"disable\"",
")",
";",
"}"
] | Use this API to disable lbmonitor. | [
"Use",
"this",
"API",
"to",
"disable",
"lbmonitor",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2793-L2799 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.disable | public static base_responses disable(nitro_service client, String monitorname[]) throws Exception {
base_responses result = null;
if (monitorname != null && monitorname.length > 0) {
lbmonitor disableresources[] = new lbmonitor[monitorname.length];
for (int i=0;i<monitorname.length;i++){
disableresources[i] = new lbmonitor();
disableresources[i].monitorname = monitorname[i];
}
result = perform_operation_bulk_request(client, disableresources,"disable");
}
return result;
} | java | public static base_responses disable(nitro_service client, String monitorname[]) throws Exception {
base_responses result = null;
if (monitorname != null && monitorname.length > 0) {
lbmonitor disableresources[] = new lbmonitor[monitorname.length];
for (int i=0;i<monitorname.length;i++){
disableresources[i] = new lbmonitor();
disableresources[i].monitorname = monitorname[i];
}
result = perform_operation_bulk_request(client, disableresources,"disable");
}
return result;
} | [
"public",
"static",
"base_responses",
"disable",
"(",
"nitro_service",
"client",
",",
"String",
"monitorname",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"monitorname",
"!=",
"null",
"&&",
"monitorname",
".",
"length",
">",
"0",
")",
"{",
"lbmonitor",
"disableresources",
"[",
"]",
"=",
"new",
"lbmonitor",
"[",
"monitorname",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"monitorname",
".",
"length",
";",
"i",
"++",
")",
"{",
"disableresources",
"[",
"i",
"]",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"disableresources",
"[",
"i",
"]",
".",
"monitorname",
"=",
"monitorname",
"[",
"i",
"]",
";",
"}",
"result",
"=",
"perform_operation_bulk_request",
"(",
"client",
",",
"disableresources",
",",
"\"disable\"",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to disable lbmonitor resources of given names. | [
"Use",
"this",
"API",
"to",
"disable",
"lbmonitor",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2804-L2815 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.disable | public static base_responses disable(nitro_service client, lbmonitor resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor disableresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
disableresources[i] = new lbmonitor();
disableresources[i].servicename = resources[i].servicename;
disableresources[i].servicegroupname = resources[i].servicegroupname;
disableresources[i].monitorname = resources[i].monitorname;
}
result = perform_operation_bulk_request(client, disableresources,"disable");
}
return result;
} | java | public static base_responses disable(nitro_service client, lbmonitor resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor disableresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
disableresources[i] = new lbmonitor();
disableresources[i].servicename = resources[i].servicename;
disableresources[i].servicegroupname = resources[i].servicegroupname;
disableresources[i].monitorname = resources[i].monitorname;
}
result = perform_operation_bulk_request(client, disableresources,"disable");
}
return result;
} | [
"public",
"static",
"base_responses",
"disable",
"(",
"nitro_service",
"client",
",",
"lbmonitor",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"lbmonitor",
"disableresources",
"[",
"]",
"=",
"new",
"lbmonitor",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"disableresources",
"[",
"i",
"]",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"disableresources",
"[",
"i",
"]",
".",
"servicename",
"=",
"resources",
"[",
"i",
"]",
".",
"servicename",
";",
"disableresources",
"[",
"i",
"]",
".",
"servicegroupname",
"=",
"resources",
"[",
"i",
"]",
".",
"servicegroupname",
";",
"disableresources",
"[",
"i",
"]",
".",
"monitorname",
"=",
"resources",
"[",
"i",
"]",
".",
"monitorname",
";",
"}",
"result",
"=",
"perform_operation_bulk_request",
"(",
"client",
",",
"disableresources",
",",
"\"disable\"",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to disable lbmonitor resources. | [
"Use",
"this",
"API",
"to",
"disable",
"lbmonitor",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2820-L2833 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.get | public static lbmonitor[] get(nitro_service service) throws Exception{
lbmonitor obj = new lbmonitor();
lbmonitor[] response = (lbmonitor[])obj.get_resources(service);
return response;
} | java | public static lbmonitor[] get(nitro_service service) throws Exception{
lbmonitor obj = new lbmonitor();
lbmonitor[] response = (lbmonitor[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"lbmonitor",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"lbmonitor",
"obj",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"lbmonitor",
"[",
"]",
"response",
"=",
"(",
"lbmonitor",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the lbmonitor resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"lbmonitor",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2838-L2842 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.get | public static lbmonitor[] get(nitro_service service, lbmonitor_args args) throws Exception{
lbmonitor obj = new lbmonitor();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
lbmonitor[] response = (lbmonitor[])obj.get_resources(service, option);
return response;
} | java | public static lbmonitor[] get(nitro_service service, lbmonitor_args args) throws Exception{
lbmonitor obj = new lbmonitor();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
lbmonitor[] response = (lbmonitor[])obj.get_resources(service, option);
return response;
} | [
"public",
"static",
"lbmonitor",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"lbmonitor_args",
"args",
")",
"throws",
"Exception",
"{",
"lbmonitor",
"obj",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_args",
"(",
"nitro_util",
".",
"object_to_string_withoutquotes",
"(",
"args",
")",
")",
";",
"lbmonitor",
"[",
"]",
"response",
"=",
"(",
"lbmonitor",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the lbmonitor resources that are configured on netscaler.
This uses lbmonitor_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"lbmonitor",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"lbmonitor_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/lb/lbmonitor.java#L2855-L2861 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java | lbmonitor.get | public static lbmonitor get(nitro_service service, String monitorname) throws Exception{
lbmonitor obj = new lbmonitor();
obj.set_monitorname(monitorname);
lbmonitor response = (lbmonitor) obj.get_resource(service);
return response;
} | java | public static lbmonitor get(nitro_service service, String monitorname) throws Exception{
lbmonitor obj = new lbmonitor();
obj.set_monitorname(monitorname);
lbmonitor response = (lbmonitor) obj.get_resource(service);
return response;
} | [
"public",
"static",
"lbmonitor",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"monitorname",
")",
"throws",
"Exception",
"{",
"lbmonitor",
"obj",
"=",
"new",
"lbmonitor",
"(",
")",
";",
"obj",
".",
"set_monitorname",
"(",
"monitorname",
")",
";",
"lbmonitor",
"response",
"=",
"(",
"lbmonitor",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch lbmonitor resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbmonitor",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonitor.java#L2866-L2871 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_spilloverpolicy_binding.java | lbvserver_spilloverpolicy_binding.get | public static lbvserver_spilloverpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_spilloverpolicy_binding obj = new lbvserver_spilloverpolicy_binding();
obj.set_name(name);
lbvserver_spilloverpolicy_binding response[] = (lbvserver_spilloverpolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static lbvserver_spilloverpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_spilloverpolicy_binding obj = new lbvserver_spilloverpolicy_binding();
obj.set_name(name);
lbvserver_spilloverpolicy_binding response[] = (lbvserver_spilloverpolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"lbvserver_spilloverpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"lbvserver_spilloverpolicy_binding",
"obj",
"=",
"new",
"lbvserver_spilloverpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"lbvserver_spilloverpolicy_binding",
"response",
"[",
"]",
"=",
"(",
"lbvserver_spilloverpolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch lbvserver_spilloverpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbvserver_spilloverpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_spilloverpolicy_binding.java#L312-L317 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsstats.java | nsstats.clear | public static base_response clear(nitro_service client, nsstats resource) throws Exception {
nsstats clearresource = new nsstats();
clearresource.cleanuplevel = resource.cleanuplevel;
return clearresource.perform_operation(client,"clear");
} | java | public static base_response clear(nitro_service client, nsstats resource) throws Exception {
nsstats clearresource = new nsstats();
clearresource.cleanuplevel = resource.cleanuplevel;
return clearresource.perform_operation(client,"clear");
} | [
"public",
"static",
"base_response",
"clear",
"(",
"nitro_service",
"client",
",",
"nsstats",
"resource",
")",
"throws",
"Exception",
"{",
"nsstats",
"clearresource",
"=",
"new",
"nsstats",
"(",
")",
";",
"clearresource",
".",
"cleanuplevel",
"=",
"resource",
".",
"cleanuplevel",
";",
"return",
"clearresource",
".",
"perform_operation",
"(",
"client",
",",
"\"clear\"",
")",
";",
"}"
] | Use this API to clear nsstats. | [
"Use",
"this",
"API",
"to",
"clear",
"nsstats",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsstats.java#L94-L98 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appqoe/appqoecustomresp.java | appqoecustomresp.Import | public static base_response Import(nitro_service client, appqoecustomresp resource) throws Exception {
appqoecustomresp Importresource = new appqoecustomresp();
Importresource.src = resource.src;
Importresource.name = resource.name;
return Importresource.perform_operation(client,"Import");
} | java | public static base_response Import(nitro_service client, appqoecustomresp resource) throws Exception {
appqoecustomresp Importresource = new appqoecustomresp();
Importresource.src = resource.src;
Importresource.name = resource.name;
return Importresource.perform_operation(client,"Import");
} | [
"public",
"static",
"base_response",
"Import",
"(",
"nitro_service",
"client",
",",
"appqoecustomresp",
"resource",
")",
"throws",
"Exception",
"{",
"appqoecustomresp",
"Importresource",
"=",
"new",
"appqoecustomresp",
"(",
")",
";",
"Importresource",
".",
"src",
"=",
"resource",
".",
"src",
";",
"Importresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"return",
"Importresource",
".",
"perform_operation",
"(",
"client",
",",
"\"Import\"",
")",
";",
"}"
] | Use this API to Import appqoecustomresp. | [
"Use",
"this",
"API",
"to",
"Import",
"appqoecustomresp",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appqoe/appqoecustomresp.java#L112-L117 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appqoe/appqoecustomresp.java | appqoecustomresp.Import | public static base_responses Import(nitro_service client, appqoecustomresp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appqoecustomresp Importresources[] = new appqoecustomresp[resources.length];
for (int i=0;i<resources.length;i++){
Importresources[i] = new appqoecustomresp();
Importresources[i].src = resources[i].src;
Importresources[i].name = resources[i].name;
}
result = perform_operation_bulk_request(client, Importresources,"Import");
}
return result;
} | java | public static base_responses Import(nitro_service client, appqoecustomresp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appqoecustomresp Importresources[] = new appqoecustomresp[resources.length];
for (int i=0;i<resources.length;i++){
Importresources[i] = new appqoecustomresp();
Importresources[i].src = resources[i].src;
Importresources[i].name = resources[i].name;
}
result = perform_operation_bulk_request(client, Importresources,"Import");
}
return result;
} | [
"public",
"static",
"base_responses",
"Import",
"(",
"nitro_service",
"client",
",",
"appqoecustomresp",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"appqoecustomresp",
"Importresources",
"[",
"]",
"=",
"new",
"appqoecustomresp",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"Importresources",
"[",
"i",
"]",
"=",
"new",
"appqoecustomresp",
"(",
")",
";",
"Importresources",
"[",
"i",
"]",
".",
"src",
"=",
"resources",
"[",
"i",
"]",
".",
"src",
";",
"Importresources",
"[",
"i",
"]",
".",
"name",
"=",
"resources",
"[",
"i",
"]",
".",
"name",
";",
"}",
"result",
"=",
"perform_operation_bulk_request",
"(",
"client",
",",
"Importresources",
",",
"\"Import\"",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to Import appqoecustomresp resources. | [
"Use",
"this",
"API",
"to",
"Import",
"appqoecustomresp",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appqoe/appqoecustomresp.java#L122-L134 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appqoe/appqoecustomresp.java | appqoecustomresp.change | public static base_responses change(nitro_service client, appqoecustomresp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appqoecustomresp updateresources[] = new appqoecustomresp[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new appqoecustomresp();
updateresources[i].name = resources[i].name;
}
result = perform_operation_bulk_request(client, updateresources,"update");
}
return result;
} | java | public static base_responses change(nitro_service client, appqoecustomresp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appqoecustomresp updateresources[] = new appqoecustomresp[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new appqoecustomresp();
updateresources[i].name = resources[i].name;
}
result = perform_operation_bulk_request(client, updateresources,"update");
}
return result;
} | [
"public",
"static",
"base_responses",
"change",
"(",
"nitro_service",
"client",
",",
"appqoecustomresp",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"appqoecustomresp",
"updateresources",
"[",
"]",
"=",
"new",
"appqoecustomresp",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"updateresources",
"[",
"i",
"]",
"=",
"new",
"appqoecustomresp",
"(",
")",
";",
"updateresources",
"[",
"i",
"]",
".",
"name",
"=",
"resources",
"[",
"i",
"]",
".",
"name",
";",
"}",
"result",
"=",
"perform_operation_bulk_request",
"(",
"client",
",",
"updateresources",
",",
"\"update\"",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to change appqoecustomresp resources. | [
"Use",
"this",
"API",
"to",
"change",
"appqoecustomresp",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appqoe/appqoecustomresp.java#L198-L209 | train |
Subsets and Splits