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
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/fis.java
fis.get
public static fis get(nitro_service service, String name) throws Exception{ fis obj = new fis(); obj.set_name(name); fis response = (fis) obj.get_resource(service); return response; }
java
public static fis get(nitro_service service, String name) throws Exception{ fis obj = new fis(); obj.set_name(name); fis response = (fis) obj.get_resource(service); return response; }
[ "public", "static", "fis", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "fis", "obj", "=", "new", "fis", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "fis", "response", "=", "(", "fis", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch fis resource of given name .
[ "Use", "this", "API", "to", "fetch", "fis", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/fis.java#L197-L202
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloverpolicy_gslbvserver_binding.java
spilloverpolicy_gslbvserver_binding.get
public static spilloverpolicy_gslbvserver_binding[] get(nitro_service service, String name) throws Exception{ spilloverpolicy_gslbvserver_binding obj = new spilloverpolicy_gslbvserver_binding(); obj.set_name(name); spilloverpolicy_gslbvserver_binding response[] = (spilloverpolicy_gslbvserver_binding[]) obj.get_resources(service); return response; }
java
public static spilloverpolicy_gslbvserver_binding[] get(nitro_service service, String name) throws Exception{ spilloverpolicy_gslbvserver_binding obj = new spilloverpolicy_gslbvserver_binding(); obj.set_name(name); spilloverpolicy_gslbvserver_binding response[] = (spilloverpolicy_gslbvserver_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "spilloverpolicy_gslbvserver_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "spilloverpolicy_gslbvserver_binding", "obj", "=", "new", "spilloverpolicy_gslbvserver_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "spilloverpolicy_gslbvserver_binding", "response", "[", "]", "=", "(", "spilloverpolicy_gslbvserver_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch spilloverpolicy_gslbvserver_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "spilloverpolicy_gslbvserver_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloverpolicy_gslbvserver_binding.java#L162-L167
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/transform/transformpolicy_csvserver_binding.java
transformpolicy_csvserver_binding.get
public static transformpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{ transformpolicy_csvserver_binding obj = new transformpolicy_csvserver_binding(); obj.set_name(name); transformpolicy_csvserver_binding response[] = (transformpolicy_csvserver_binding[]) obj.get_resources(service); return response; }
java
public static transformpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{ transformpolicy_csvserver_binding obj = new transformpolicy_csvserver_binding(); obj.set_name(name); transformpolicy_csvserver_binding response[] = (transformpolicy_csvserver_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "transformpolicy_csvserver_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "transformpolicy_csvserver_binding", "obj", "=", "new", "transformpolicy_csvserver_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "transformpolicy_csvserver_binding", "response", "[", "]", "=", "(", "transformpolicy_csvserver_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch transformpolicy_csvserver_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "transformpolicy_csvserver_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/transform/transformpolicy_csvserver_binding.java#L162-L167
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/db/dbuser.java
dbuser.update
public static base_responses update(nitro_service client, dbuser resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dbuser updateresources[] = new dbuser[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new dbuser(); updateresources[i].username = resources[i].username; updateresources[i].password = resources[i].password; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_responses update(nitro_service client, dbuser resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dbuser updateresources[] = new dbuser[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new dbuser(); updateresources[i].username = resources[i].username; updateresources[i].password = resources[i].password; } result = update_bulk_request(client, updateresources); } return result; }
[ "public", "static", "base_responses", "update", "(", "nitro_service", "client", ",", "dbuser", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "dbuser", "updateresources", "[", "]", "=", "new", "dbuser", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "updateresources", "[", "i", "]", "=", "new", "dbuser", "(", ")", ";", "updateresources", "[", "i", "]", ".", "username", "=", "resources", "[", "i", "]", ".", "username", ";", "updateresources", "[", "i", "]", ".", "password", "=", "resources", "[", "i", "]", ".", "password", ";", "}", "result", "=", "update_bulk_request", "(", "client", ",", "updateresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to update dbuser resources.
[ "Use", "this", "API", "to", "update", "dbuser", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/db/dbuser.java#L227-L239
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/db/dbuser.java
dbuser.get
public static dbuser[] get(nitro_service service) throws Exception{ dbuser obj = new dbuser(); dbuser[] response = (dbuser[])obj.get_resources(service); return response; }
java
public static dbuser[] get(nitro_service service) throws Exception{ dbuser obj = new dbuser(); dbuser[] response = (dbuser[])obj.get_resources(service); return response; }
[ "public", "static", "dbuser", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "dbuser", "obj", "=", "new", "dbuser", "(", ")", ";", "dbuser", "[", "]", "response", "=", "(", "dbuser", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the dbuser resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "dbuser", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/db/dbuser.java#L244-L248
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/db/dbuser.java
dbuser.get
public static dbuser[] get(nitro_service service, dbuser_args args) throws Exception{ dbuser obj = new dbuser(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dbuser[] response = (dbuser[])obj.get_resources(service, option); return response; }
java
public static dbuser[] get(nitro_service service, dbuser_args args) throws Exception{ dbuser obj = new dbuser(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dbuser[] response = (dbuser[])obj.get_resources(service, option); return response; }
[ "public", "static", "dbuser", "[", "]", "get", "(", "nitro_service", "service", ",", "dbuser_args", "args", ")", "throws", "Exception", "{", "dbuser", "obj", "=", "new", "dbuser", "(", ")", ";", "options", "option", "=", "new", "options", "(", ")", ";", "option", ".", "set_args", "(", "nitro_util", ".", "object_to_string_withoutquotes", "(", "args", ")", ")", ";", "dbuser", "[", "]", "response", "=", "(", "dbuser", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the dbuser resources that are configured on netscaler. This uses dbuser_args which is a way to provide additional arguments while fetching the resources.
[ "Use", "this", "API", "to", "fetch", "all", "the", "dbuser", "resources", "that", "are", "configured", "on", "netscaler", ".", "This", "uses", "dbuser_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/db/dbuser.java#L261-L267
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/db/dbuser.java
dbuser.get
public static dbuser get(nitro_service service, String username) throws Exception{ dbuser obj = new dbuser(); obj.set_username(username); dbuser response = (dbuser) obj.get_resource(service); return response; }
java
public static dbuser get(nitro_service service, String username) throws Exception{ dbuser obj = new dbuser(); obj.set_username(username); dbuser response = (dbuser) obj.get_resource(service); return response; }
[ "public", "static", "dbuser", "get", "(", "nitro_service", "service", ",", "String", "username", ")", "throws", "Exception", "{", "dbuser", "obj", "=", "new", "dbuser", "(", ")", ";", "obj", ".", "set_username", "(", "username", ")", ";", "dbuser", "response", "=", "(", "dbuser", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch dbuser resource of given name .
[ "Use", "this", "API", "to", "fetch", "dbuser", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/db/dbuser.java#L272-L277
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/system/system_stats.java
system_stats.get
public static system_stats get(nitro_service service) throws Exception{ system_stats obj = new system_stats(); system_stats[] response = (system_stats[])obj.stat_resources(service); return response[0]; }
java
public static system_stats get(nitro_service service) throws Exception{ system_stats obj = new system_stats(); system_stats[] response = (system_stats[])obj.stat_resources(service); return response[0]; }
[ "public", "static", "system_stats", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "system_stats", "obj", "=", "new", "system_stats", "(", ")", ";", "system_stats", "[", "]", "response", "=", "(", "system_stats", "[", "]", ")", "obj", ".", "stat_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch the statistics of all system_stats resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "the", "statistics", "of", "all", "system_stats", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/system/system_stats.java#L729-L733
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnspolicylabel_binding.java
dnspolicylabel_binding.get
public static dnspolicylabel_binding get(nitro_service service, String labelname) throws Exception{ dnspolicylabel_binding obj = new dnspolicylabel_binding(); obj.set_labelname(labelname); dnspolicylabel_binding response = (dnspolicylabel_binding) obj.get_resource(service); return response; }
java
public static dnspolicylabel_binding get(nitro_service service, String labelname) throws Exception{ dnspolicylabel_binding obj = new dnspolicylabel_binding(); obj.set_labelname(labelname); dnspolicylabel_binding response = (dnspolicylabel_binding) obj.get_resource(service); return response; }
[ "public", "static", "dnspolicylabel_binding", "get", "(", "nitro_service", "service", ",", "String", "labelname", ")", "throws", "Exception", "{", "dnspolicylabel_binding", "obj", "=", "new", "dnspolicylabel_binding", "(", ")", ";", "obj", ".", "set_labelname", "(", "labelname", ")", ";", "dnspolicylabel_binding", "response", "=", "(", "dnspolicylabel_binding", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch dnspolicylabel_binding resource of given name .
[ "Use", "this", "API", "to", "fetch", "dnspolicylabel_binding", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnspolicylabel_binding.java#L114-L119
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/cs/csvserver_stats.java
csvserver_stats.get
public static csvserver_stats[] get(nitro_service service) throws Exception{ csvserver_stats obj = new csvserver_stats(); csvserver_stats[] response = (csvserver_stats[])obj.stat_resources(service); return response; }
java
public static csvserver_stats[] get(nitro_service service) throws Exception{ csvserver_stats obj = new csvserver_stats(); csvserver_stats[] response = (csvserver_stats[])obj.stat_resources(service); return response; }
[ "public", "static", "csvserver_stats", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "csvserver_stats", "obj", "=", "new", "csvserver_stats", "(", ")", ";", "csvserver_stats", "[", "]", "response", "=", "(", "csvserver_stats", "[", "]", ")", "obj", ".", "stat_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch the statistics of all csvserver_stats resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "the", "statistics", "of", "all", "csvserver_stats", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/cs/csvserver_stats.java#L401-L405
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/cs/csvserver_stats.java
csvserver_stats.get
public static csvserver_stats get(nitro_service service, String name) throws Exception{ csvserver_stats obj = new csvserver_stats(); obj.set_name(name); csvserver_stats response = (csvserver_stats) obj.stat_resource(service); return response; }
java
public static csvserver_stats get(nitro_service service, String name) throws Exception{ csvserver_stats obj = new csvserver_stats(); obj.set_name(name); csvserver_stats response = (csvserver_stats) obj.stat_resource(service); return response; }
[ "public", "static", "csvserver_stats", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "csvserver_stats", "obj", "=", "new", "csvserver_stats", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "csvserver_stats", "response", "=", "(", "csvserver_stats", ")", "obj", ".", "stat_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch statistics of csvserver_stats resource of given name .
[ "Use", "this", "API", "to", "fetch", "statistics", "of", "csvserver_stats", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/cs/csvserver_stats.java#L419-L424
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/ssl/ssl_stats.java
ssl_stats.get
public static ssl_stats get(nitro_service service) throws Exception{ ssl_stats obj = new ssl_stats(); ssl_stats[] response = (ssl_stats[])obj.stat_resources(service); return response[0]; }
java
public static ssl_stats get(nitro_service service) throws Exception{ ssl_stats obj = new ssl_stats(); ssl_stats[] response = (ssl_stats[])obj.stat_resources(service); return response[0]; }
[ "public", "static", "ssl_stats", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "ssl_stats", "obj", "=", "new", "ssl_stats", "(", ")", ";", "ssl_stats", "[", "]", "response", "=", "(", "ssl_stats", "[", "]", ")", "obj", ".", "stat_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch the statistics of all ssl_stats resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "the", "statistics", "of", "all", "ssl_stats", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/ssl/ssl_stats.java#L2431-L2435
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/basic/servicegroup_binding.java
servicegroup_binding.get
public static servicegroup_binding get(nitro_service service, String servicegroupname) throws Exception{ servicegroup_binding obj = new servicegroup_binding(); obj.set_servicegroupname(servicegroupname); servicegroup_binding response = (servicegroup_binding) obj.get_resource(service); return response; }
java
public static servicegroup_binding get(nitro_service service, String servicegroupname) throws Exception{ servicegroup_binding obj = new servicegroup_binding(); obj.set_servicegroupname(servicegroupname); servicegroup_binding response = (servicegroup_binding) obj.get_resource(service); return response; }
[ "public", "static", "servicegroup_binding", "get", "(", "nitro_service", "service", ",", "String", "servicegroupname", ")", "throws", "Exception", "{", "servicegroup_binding", "obj", "=", "new", "servicegroup_binding", "(", ")", ";", "obj", ".", "set_servicegroupname", "(", "servicegroupname", ")", ";", "servicegroup_binding", "response", "=", "(", "servicegroup_binding", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch servicegroup_binding resource of given name .
[ "Use", "this", "API", "to", "fetch", "servicegroup_binding", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/servicegroup_binding.java#L125-L130
train
meertensinstituut/mtas
src/main/java/mtas/search/spans/MtasSpanRecurrenceQuery.java
MtasSpanRecurrenceQuery.setRecurrence
public void setRecurrence(int minimumRecurrence, int maximumRecurrence) { if (minimumRecurrence > maximumRecurrence) { throw new IllegalArgumentException( "minimumRecurrence > maximumRecurrence"); } else if (minimumRecurrence < 1) { throw new IllegalArgumentException("minimumRecurrence < 1 not supported"); } else if (query == null) { throw new IllegalArgumentException("no clause"); } this.minimumRecurrence = minimumRecurrence; this.maximumRecurrence = maximumRecurrence; // set minimum/maximum Integer minimum = null; Integer maximum = null; if (query.getMinimumWidth() != null) { minimum = minimumRecurrence * query.getMinimumWidth(); } if (query.getMaximumWidth() != null) { maximum = maximumRecurrence * query.getMaximumWidth(); if (ignoreQuery != null && maximumIgnoreLength != null) { if (ignoreQuery.getMaximumWidth() != null) { maximum += (maximumRecurrence - 1) * maximumIgnoreLength * ignoreQuery.getMaximumWidth(); } else { maximum = null; } } } setWidth(minimum, maximum); }
java
public void setRecurrence(int minimumRecurrence, int maximumRecurrence) { if (minimumRecurrence > maximumRecurrence) { throw new IllegalArgumentException( "minimumRecurrence > maximumRecurrence"); } else if (minimumRecurrence < 1) { throw new IllegalArgumentException("minimumRecurrence < 1 not supported"); } else if (query == null) { throw new IllegalArgumentException("no clause"); } this.minimumRecurrence = minimumRecurrence; this.maximumRecurrence = maximumRecurrence; // set minimum/maximum Integer minimum = null; Integer maximum = null; if (query.getMinimumWidth() != null) { minimum = minimumRecurrence * query.getMinimumWidth(); } if (query.getMaximumWidth() != null) { maximum = maximumRecurrence * query.getMaximumWidth(); if (ignoreQuery != null && maximumIgnoreLength != null) { if (ignoreQuery.getMaximumWidth() != null) { maximum += (maximumRecurrence - 1) * maximumIgnoreLength * ignoreQuery.getMaximumWidth(); } else { maximum = null; } } } setWidth(minimum, maximum); }
[ "public", "void", "setRecurrence", "(", "int", "minimumRecurrence", ",", "int", "maximumRecurrence", ")", "{", "if", "(", "minimumRecurrence", ">", "maximumRecurrence", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"minimumRecurrence > maximumRecurrence\"", ")", ";", "}", "else", "if", "(", "minimumRecurrence", "<", "1", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"minimumRecurrence < 1 not supported\"", ")", ";", "}", "else", "if", "(", "query", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"no clause\"", ")", ";", "}", "this", ".", "minimumRecurrence", "=", "minimumRecurrence", ";", "this", ".", "maximumRecurrence", "=", "maximumRecurrence", ";", "// set minimum/maximum", "Integer", "minimum", "=", "null", ";", "Integer", "maximum", "=", "null", ";", "if", "(", "query", ".", "getMinimumWidth", "(", ")", "!=", "null", ")", "{", "minimum", "=", "minimumRecurrence", "*", "query", ".", "getMinimumWidth", "(", ")", ";", "}", "if", "(", "query", ".", "getMaximumWidth", "(", ")", "!=", "null", ")", "{", "maximum", "=", "maximumRecurrence", "*", "query", ".", "getMaximumWidth", "(", ")", ";", "if", "(", "ignoreQuery", "!=", "null", "&&", "maximumIgnoreLength", "!=", "null", ")", "{", "if", "(", "ignoreQuery", ".", "getMaximumWidth", "(", ")", "!=", "null", ")", "{", "maximum", "+=", "(", "maximumRecurrence", "-", "1", ")", "*", "maximumIgnoreLength", "*", "ignoreQuery", ".", "getMaximumWidth", "(", ")", ";", "}", "else", "{", "maximum", "=", "null", ";", "}", "}", "}", "setWidth", "(", "minimum", ",", "maximum", ")", ";", "}" ]
Sets the recurrence. @param minimumRecurrence the minimum recurrence @param maximumRecurrence the maximum recurrence
[ "Sets", "the", "recurrence", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/search/spans/MtasSpanRecurrenceQuery.java#L129-L158
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/cs/cspolicylabel_cspolicy_binding.java
cspolicylabel_cspolicy_binding.get
public static cspolicylabel_cspolicy_binding[] get(nitro_service service, String labelname) throws Exception{ cspolicylabel_cspolicy_binding obj = new cspolicylabel_cspolicy_binding(); obj.set_labelname(labelname); cspolicylabel_cspolicy_binding response[] = (cspolicylabel_cspolicy_binding[]) obj.get_resources(service); return response; }
java
public static cspolicylabel_cspolicy_binding[] get(nitro_service service, String labelname) throws Exception{ cspolicylabel_cspolicy_binding obj = new cspolicylabel_cspolicy_binding(); obj.set_labelname(labelname); cspolicylabel_cspolicy_binding response[] = (cspolicylabel_cspolicy_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "cspolicylabel_cspolicy_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "labelname", ")", "throws", "Exception", "{", "cspolicylabel_cspolicy_binding", "obj", "=", "new", "cspolicylabel_cspolicy_binding", "(", ")", ";", "obj", ".", "set_labelname", "(", "labelname", ")", ";", "cspolicylabel_cspolicy_binding", "response", "[", "]", "=", "(", "cspolicylabel_cspolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch cspolicylabel_cspolicy_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "cspolicylabel_cspolicy_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cs/cspolicylabel_cspolicy_binding.java#L298-L303
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/cs/cspolicylabel_cspolicy_binding.java
cspolicylabel_cspolicy_binding.count
public static long count(nitro_service service, String labelname) throws Exception{ cspolicylabel_cspolicy_binding obj = new cspolicylabel_cspolicy_binding(); obj.set_labelname(labelname); options option = new options(); option.set_count(true); cspolicylabel_cspolicy_binding response[] = (cspolicylabel_cspolicy_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
java
public static long count(nitro_service service, String labelname) throws Exception{ cspolicylabel_cspolicy_binding obj = new cspolicylabel_cspolicy_binding(); obj.set_labelname(labelname); options option = new options(); option.set_count(true); cspolicylabel_cspolicy_binding response[] = (cspolicylabel_cspolicy_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
[ "public", "static", "long", "count", "(", "nitro_service", "service", ",", "String", "labelname", ")", "throws", "Exception", "{", "cspolicylabel_cspolicy_binding", "obj", "=", "new", "cspolicylabel_cspolicy_binding", "(", ")", ";", "obj", ".", "set_labelname", "(", "labelname", ")", ";", "options", "option", "=", "new", "options", "(", ")", ";", "option", ".", "set_count", "(", "true", ")", ";", "cspolicylabel_cspolicy_binding", "response", "[", "]", "=", "(", "cspolicylabel_cspolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "if", "(", "response", "!=", "null", ")", "{", "return", "response", "[", "0", "]", ".", "__count", ";", "}", "return", "0", ";", "}" ]
Use this API to count cspolicylabel_cspolicy_binding resources configued on NetScaler.
[ "Use", "this", "API", "to", "count", "cspolicylabel_cspolicy_binding", "resources", "configued", "on", "NetScaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cs/cspolicylabel_cspolicy_binding.java#L334-L344
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_appflowpolicy_binding.java
vpnvserver_appflowpolicy_binding.get
public static vpnvserver_appflowpolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_appflowpolicy_binding obj = new vpnvserver_appflowpolicy_binding(); obj.set_name(name); vpnvserver_appflowpolicy_binding response[] = (vpnvserver_appflowpolicy_binding[]) obj.get_resources(service); return response; }
java
public static vpnvserver_appflowpolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_appflowpolicy_binding obj = new vpnvserver_appflowpolicy_binding(); obj.set_name(name); vpnvserver_appflowpolicy_binding response[] = (vpnvserver_appflowpolicy_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "vpnvserver_appflowpolicy_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "vpnvserver_appflowpolicy_binding", "obj", "=", "new", "vpnvserver_appflowpolicy_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "vpnvserver_appflowpolicy_binding", "response", "[", "]", "=", "(", "vpnvserver_appflowpolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch vpnvserver_appflowpolicy_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "vpnvserver_appflowpolicy_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_appflowpolicy_binding.java#L292-L297
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/cs/cspolicy_csvserver_binding.java
cspolicy_csvserver_binding.get
public static cspolicy_csvserver_binding[] get(nitro_service service, String policyname) throws Exception{ cspolicy_csvserver_binding obj = new cspolicy_csvserver_binding(); obj.set_policyname(policyname); cspolicy_csvserver_binding response[] = (cspolicy_csvserver_binding[]) obj.get_resources(service); return response; }
java
public static cspolicy_csvserver_binding[] get(nitro_service service, String policyname) throws Exception{ cspolicy_csvserver_binding obj = new cspolicy_csvserver_binding(); obj.set_policyname(policyname); cspolicy_csvserver_binding response[] = (cspolicy_csvserver_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "cspolicy_csvserver_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "policyname", ")", "throws", "Exception", "{", "cspolicy_csvserver_binding", "obj", "=", "new", "cspolicy_csvserver_binding", "(", ")", ";", "obj", ".", "set_policyname", "(", "policyname", ")", ";", "cspolicy_csvserver_binding", "response", "[", "]", "=", "(", "cspolicy_csvserver_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch cspolicy_csvserver_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "cspolicy_csvserver_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cs/cspolicy_csvserver_binding.java#L192-L197
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java
rnat6.add
public static base_response add(nitro_service client, rnat6 resource) throws Exception { rnat6 addresource = new rnat6(); addresource.name = resource.name; addresource.network = resource.network; addresource.acl6name = resource.acl6name; addresource.redirectport = resource.redirectport; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, rnat6 resource) throws Exception { rnat6 addresource = new rnat6(); addresource.name = resource.name; addresource.network = resource.network; addresource.acl6name = resource.acl6name; addresource.redirectport = resource.redirectport; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "rnat6", "resource", ")", "throws", "Exception", "{", "rnat6", "addresource", "=", "new", "rnat6", "(", ")", ";", "addresource", ".", "name", "=", "resource", ".", "name", ";", "addresource", ".", "network", "=", "resource", ".", "network", ";", "addresource", ".", "acl6name", "=", "resource", ".", "acl6name", ";", "addresource", ".", "redirectport", "=", "resource", ".", "redirectport", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add rnat6.
[ "Use", "this", "API", "to", "add", "rnat6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java#L159-L166
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java
rnat6.add
public static base_responses add(nitro_service client, rnat6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat6 addresources[] = new rnat6[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new rnat6(); addresources[i].name = resources[i].name; addresources[i].network = resources[i].network; addresources[i].acl6name = resources[i].acl6name; addresources[i].redirectport = resources[i].redirectport; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_responses add(nitro_service client, rnat6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat6 addresources[] = new rnat6[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new rnat6(); addresources[i].name = resources[i].name; addresources[i].network = resources[i].network; addresources[i].acl6name = resources[i].acl6name; addresources[i].redirectport = resources[i].redirectport; } result = add_bulk_request(client, addresources); } return result; }
[ "public", "static", "base_responses", "add", "(", "nitro_service", "client", ",", "rnat6", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "rnat6", "addresources", "[", "]", "=", "new", "rnat6", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "addresources", "[", "i", "]", "=", "new", "rnat6", "(", ")", ";", "addresources", "[", "i", "]", ".", "name", "=", "resources", "[", "i", "]", ".", "name", ";", "addresources", "[", "i", "]", ".", "network", "=", "resources", "[", "i", "]", ".", "network", ";", "addresources", "[", "i", "]", ".", "acl6name", "=", "resources", "[", "i", "]", ".", "acl6name", ";", "addresources", "[", "i", "]", ".", "redirectport", "=", "resources", "[", "i", "]", ".", "redirectport", ";", "}", "result", "=", "add_bulk_request", "(", "client", ",", "addresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to add rnat6 resources.
[ "Use", "this", "API", "to", "add", "rnat6", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java#L171-L185
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java
rnat6.update
public static base_response update(nitro_service client, rnat6 resource) throws Exception { rnat6 updateresource = new rnat6(); updateresource.name = resource.name; updateresource.redirectport = resource.redirectport; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, rnat6 resource) throws Exception { rnat6 updateresource = new rnat6(); updateresource.name = resource.name; updateresource.redirectport = resource.redirectport; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "rnat6", "resource", ")", "throws", "Exception", "{", "rnat6", "updateresource", "=", "new", "rnat6", "(", ")", ";", "updateresource", ".", "name", "=", "resource", ".", "name", ";", "updateresource", ".", "redirectport", "=", "resource", ".", "redirectport", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update rnat6.
[ "Use", "this", "API", "to", "update", "rnat6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java#L190-L195
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java
rnat6.update
public static base_responses update(nitro_service client, rnat6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat6 updateresources[] = new rnat6[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new rnat6(); updateresources[i].name = resources[i].name; updateresources[i].redirectport = resources[i].redirectport; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_responses update(nitro_service client, rnat6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat6 updateresources[] = new rnat6[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new rnat6(); updateresources[i].name = resources[i].name; updateresources[i].redirectport = resources[i].redirectport; } result = update_bulk_request(client, updateresources); } return result; }
[ "public", "static", "base_responses", "update", "(", "nitro_service", "client", ",", "rnat6", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "rnat6", "updateresources", "[", "]", "=", "new", "rnat6", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "updateresources", "[", "i", "]", "=", "new", "rnat6", "(", ")", ";", "updateresources", "[", "i", "]", ".", "name", "=", "resources", "[", "i", "]", ".", "name", ";", "updateresources", "[", "i", "]", ".", "redirectport", "=", "resources", "[", "i", "]", ".", "redirectport", ";", "}", "result", "=", "update_bulk_request", "(", "client", ",", "updateresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to update rnat6 resources.
[ "Use", "this", "API", "to", "update", "rnat6", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java#L200-L212
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java
rnat6.clear
public static base_response clear(nitro_service client, rnat6 resource) throws Exception { rnat6 clearresource = new rnat6(); clearresource.name = resource.name; return clearresource.perform_operation(client,"clear"); }
java
public static base_response clear(nitro_service client, rnat6 resource) throws Exception { rnat6 clearresource = new rnat6(); clearresource.name = resource.name; return clearresource.perform_operation(client,"clear"); }
[ "public", "static", "base_response", "clear", "(", "nitro_service", "client", ",", "rnat6", "resource", ")", "throws", "Exception", "{", "rnat6", "clearresource", "=", "new", "rnat6", "(", ")", ";", "clearresource", ".", "name", "=", "resource", ".", "name", ";", "return", "clearresource", ".", "perform_operation", "(", "client", ",", "\"clear\"", ")", ";", "}" ]
Use this API to clear rnat6.
[ "Use", "this", "API", "to", "clear", "rnat6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java#L271-L275
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java
rnat6.clear
public static base_responses clear(nitro_service client, rnat6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat6 clearresources[] = new rnat6[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new rnat6(); clearresources[i].name = resources[i].name; } result = perform_operation_bulk_request(client, clearresources,"clear"); } return result; }
java
public static base_responses clear(nitro_service client, rnat6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { rnat6 clearresources[] = new rnat6[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new rnat6(); clearresources[i].name = resources[i].name; } result = perform_operation_bulk_request(client, clearresources,"clear"); } return result; }
[ "public", "static", "base_responses", "clear", "(", "nitro_service", "client", ",", "rnat6", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "rnat6", "clearresources", "[", "]", "=", "new", "rnat6", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "clearresources", "[", "i", "]", "=", "new", "rnat6", "(", ")", ";", "clearresources", "[", "i", "]", ".", "name", "=", "resources", "[", "i", "]", ".", "name", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "clearresources", ",", "\"clear\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to clear rnat6 resources.
[ "Use", "this", "API", "to", "clear", "rnat6", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java#L280-L291
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java
rnat6.get
public static rnat6[] get(nitro_service service) throws Exception{ rnat6 obj = new rnat6(); rnat6[] response = (rnat6[])obj.get_resources(service); return response; }
java
public static rnat6[] get(nitro_service service) throws Exception{ rnat6 obj = new rnat6(); rnat6[] response = (rnat6[])obj.get_resources(service); return response; }
[ "public", "static", "rnat6", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "rnat6", "obj", "=", "new", "rnat6", "(", ")", ";", "rnat6", "[", "]", "response", "=", "(", "rnat6", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the rnat6 resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "rnat6", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java#L296-L300
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java
rnat6.get
public static rnat6 get(nitro_service service, String name) throws Exception{ rnat6 obj = new rnat6(); obj.set_name(name); rnat6 response = (rnat6) obj.get_resource(service); return response; }
java
public static rnat6 get(nitro_service service, String name) throws Exception{ rnat6 obj = new rnat6(); obj.set_name(name); rnat6 response = (rnat6) obj.get_resource(service); return response; }
[ "public", "static", "rnat6", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "rnat6", "obj", "=", "new", "rnat6", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "rnat6", "response", "=", "(", "rnat6", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch rnat6 resource of given name .
[ "Use", "this", "API", "to", "fetch", "rnat6", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6.java#L312-L317
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloveraction.java
spilloveraction.add
public static base_response add(nitro_service client, spilloveraction resource) throws Exception { spilloveraction addresource = new spilloveraction(); addresource.name = resource.name; addresource.action = resource.action; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, spilloveraction resource) throws Exception { spilloveraction addresource = new spilloveraction(); addresource.name = resource.name; addresource.action = resource.action; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "spilloveraction", "resource", ")", "throws", "Exception", "{", "spilloveraction", "addresource", "=", "new", "spilloveraction", "(", ")", ";", "addresource", ".", "name", "=", "resource", ".", "name", ";", "addresource", ".", "action", "=", "resource", ".", "action", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add spilloveraction.
[ "Use", "this", "API", "to", "add", "spilloveraction", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloveraction.java#L154-L159
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloveraction.java
spilloveraction.get
public static spilloveraction[] get(nitro_service service, options option) throws Exception{ spilloveraction obj = new spilloveraction(); spilloveraction[] response = (spilloveraction[])obj.get_resources(service,option); return response; }
java
public static spilloveraction[] get(nitro_service service, options option) throws Exception{ spilloveraction obj = new spilloveraction(); spilloveraction[] response = (spilloveraction[])obj.get_resources(service,option); return response; }
[ "public", "static", "spilloveraction", "[", "]", "get", "(", "nitro_service", "service", ",", "options", "option", ")", "throws", "Exception", "{", "spilloveraction", "obj", "=", "new", "spilloveraction", "(", ")", ";", "spilloveraction", "[", "]", "response", "=", "(", "spilloveraction", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the spilloveraction resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "spilloveraction", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloveraction.java#L257-L261
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloveraction.java
spilloveraction.get
public static spilloveraction get(nitro_service service, String name) throws Exception{ spilloveraction obj = new spilloveraction(); obj.set_name(name); spilloveraction response = (spilloveraction) obj.get_resource(service); return response; }
java
public static spilloveraction get(nitro_service service, String name) throws Exception{ spilloveraction obj = new spilloveraction(); obj.set_name(name); spilloveraction response = (spilloveraction) obj.get_resource(service); return response; }
[ "public", "static", "spilloveraction", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "spilloveraction", "obj", "=", "new", "spilloveraction", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "spilloveraction", "response", "=", "(", "spilloveraction", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch spilloveraction resource of given name .
[ "Use", "this", "API", "to", "fetch", "spilloveraction", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloveraction.java#L265-L270
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hanode_fis_binding.java
hanode_fis_binding.get
public static hanode_fis_binding[] get(nitro_service service, Long id) throws Exception{ hanode_fis_binding obj = new hanode_fis_binding(); obj.set_id(id); hanode_fis_binding response[] = (hanode_fis_binding[]) obj.get_resources(service); return response; }
java
public static hanode_fis_binding[] get(nitro_service service, Long id) throws Exception{ hanode_fis_binding obj = new hanode_fis_binding(); obj.set_id(id); hanode_fis_binding response[] = (hanode_fis_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "hanode_fis_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "Long", "id", ")", "throws", "Exception", "{", "hanode_fis_binding", "obj", "=", "new", "hanode_fis_binding", "(", ")", ";", "obj", ".", "set_id", "(", "id", ")", ";", "hanode_fis_binding", "response", "[", "]", "=", "(", "hanode_fis_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch hanode_fis_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "hanode_fis_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hanode_fis_binding.java#L153-L158
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_authenticationnegotiatepolicy_binding.java
vpnglobal_authenticationnegotiatepolicy_binding.get
public static vpnglobal_authenticationnegotiatepolicy_binding[] get(nitro_service service) throws Exception{ vpnglobal_authenticationnegotiatepolicy_binding obj = new vpnglobal_authenticationnegotiatepolicy_binding(); vpnglobal_authenticationnegotiatepolicy_binding response[] = (vpnglobal_authenticationnegotiatepolicy_binding[]) obj.get_resources(service); return response; }
java
public static vpnglobal_authenticationnegotiatepolicy_binding[] get(nitro_service service) throws Exception{ vpnglobal_authenticationnegotiatepolicy_binding obj = new vpnglobal_authenticationnegotiatepolicy_binding(); vpnglobal_authenticationnegotiatepolicy_binding response[] = (vpnglobal_authenticationnegotiatepolicy_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "vpnglobal_authenticationnegotiatepolicy_binding", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "vpnglobal_authenticationnegotiatepolicy_binding", "obj", "=", "new", "vpnglobal_authenticationnegotiatepolicy_binding", "(", ")", ";", "vpnglobal_authenticationnegotiatepolicy_binding", "response", "[", "]", "=", "(", "vpnglobal_authenticationnegotiatepolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch a vpnglobal_authenticationnegotiatepolicy_binding resources.
[ "Use", "this", "API", "to", "fetch", "a", "vpnglobal_authenticationnegotiatepolicy_binding", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_authenticationnegotiatepolicy_binding.java#L149-L153
train
meertensinstituut/mtas
src/main/java/mtas/codec/tree/MtasTreeNode.java
MtasTreeNode.addIdAndRef
final public void addIdAndRef(Integer id, Long ref, int additionalId, long additionalRef) { if (id != null) { MtasTreeNodeId tnId = new MtasTreeNodeId(ref, additionalId, additionalRef); ids.put(id, tnId); } }
java
final public void addIdAndRef(Integer id, Long ref, int additionalId, long additionalRef) { if (id != null) { MtasTreeNodeId tnId = new MtasTreeNodeId(ref, additionalId, additionalRef); ids.put(id, tnId); } }
[ "final", "public", "void", "addIdAndRef", "(", "Integer", "id", ",", "Long", "ref", ",", "int", "additionalId", ",", "long", "additionalRef", ")", "{", "if", "(", "id", "!=", "null", ")", "{", "MtasTreeNodeId", "tnId", "=", "new", "MtasTreeNodeId", "(", "ref", ",", "additionalId", ",", "additionalRef", ")", ";", "ids", ".", "put", "(", "id", ",", "tnId", ")", ";", "}", "}" ]
Adds the id and ref. @param id the id @param ref the ref @param additionalId the additional id @param additionalRef the additional ref
[ "Adds", "the", "id", "and", "ref", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/tree/MtasTreeNode.java#L53-L60
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/base/Json.java
Json.string_to_resource
public Object string_to_resource(Class<?> responseClass, String response) { Gson gson = new Gson(); return gson.fromJson(response, responseClass); }
java
public Object string_to_resource(Class<?> responseClass, String response) { Gson gson = new Gson(); return gson.fromJson(response, responseClass); }
[ "public", "Object", "string_to_resource", "(", "Class", "<", "?", ">", "responseClass", ",", "String", "response", ")", "{", "Gson", "gson", "=", "new", "Gson", "(", ")", ";", "return", "gson", ".", "fromJson", "(", "response", ",", "responseClass", ")", ";", "}" ]
Converts Json string to netscaler resource. @param responseClass Type of the class to which the string has to be converted to. @param response input string. @return returns nitro resource object.
[ "Converts", "Json", "string", "to", "netscaler", "resource", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/base/Json.java#L47-L51
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/base/Json.java
Json.resource_to_string
public String resource_to_string(base_resource resources[], String id, options option,Boolean warning, String onerror) { String objecttype = resources[0].get_object_type(); String request = "{"; if ( (option != null && option.get_action() != null) || (warning!=null && warning==true) || (!onerror.equals("")) ) { request = request + "\"params\":{"; if (option != null) { if(option.get_action() != null) { request = request + "\"action\":\"" + option.get_action()+"\","; } } if(warning != null && warning==true) { request = request + "\"warning\":\"yes\","; } if((!onerror.equals(""))) { request = request + "\"onerror\":\"" + onerror + "\""; } request = request + "},"; } String sessionid = id; if (sessionid != null) request = request +"\"sessionid\":\""+sessionid+"\","; request = request + "\"" + objecttype + "\":["; for (int i = 0; i < resources.length ; i++) { String str = this.resource_to_string(resources[i]); request = request + str + ","; } request = request + "]}"; return request; }
java
public String resource_to_string(base_resource resources[], String id, options option,Boolean warning, String onerror) { String objecttype = resources[0].get_object_type(); String request = "{"; if ( (option != null && option.get_action() != null) || (warning!=null && warning==true) || (!onerror.equals("")) ) { request = request + "\"params\":{"; if (option != null) { if(option.get_action() != null) { request = request + "\"action\":\"" + option.get_action()+"\","; } } if(warning != null && warning==true) { request = request + "\"warning\":\"yes\","; } if((!onerror.equals(""))) { request = request + "\"onerror\":\"" + onerror + "\""; } request = request + "},"; } String sessionid = id; if (sessionid != null) request = request +"\"sessionid\":\""+sessionid+"\","; request = request + "\"" + objecttype + "\":["; for (int i = 0; i < resources.length ; i++) { String str = this.resource_to_string(resources[i]); request = request + str + ","; } request = request + "]}"; return request; }
[ "public", "String", "resource_to_string", "(", "base_resource", "resources", "[", "]", ",", "String", "id", ",", "options", "option", ",", "Boolean", "warning", ",", "String", "onerror", ")", "{", "String", "objecttype", "=", "resources", "[", "0", "]", ".", "get_object_type", "(", ")", ";", "String", "request", "=", "\"{\"", ";", "if", "(", "(", "option", "!=", "null", "&&", "option", ".", "get_action", "(", ")", "!=", "null", ")", "||", "(", "warning", "!=", "null", "&&", "warning", "==", "true", ")", "||", "(", "!", "onerror", ".", "equals", "(", "\"\"", ")", ")", ")", "{", "request", "=", "request", "+", "\"\\\"params\\\":{\"", ";", "if", "(", "option", "!=", "null", ")", "{", "if", "(", "option", ".", "get_action", "(", ")", "!=", "null", ")", "{", "request", "=", "request", "+", "\"\\\"action\\\":\\\"\"", "+", "option", ".", "get_action", "(", ")", "+", "\"\\\",\"", ";", "}", "}", "if", "(", "warning", "!=", "null", "&&", "warning", "==", "true", ")", "{", "request", "=", "request", "+", "\"\\\"warning\\\":\\\"yes\\\",\"", ";", "}", "if", "(", "(", "!", "onerror", ".", "equals", "(", "\"\"", ")", ")", ")", "{", "request", "=", "request", "+", "\"\\\"onerror\\\":\\\"\"", "+", "onerror", "+", "\"\\\"\"", ";", "}", "request", "=", "request", "+", "\"},\"", ";", "}", "String", "sessionid", "=", "id", ";", "if", "(", "sessionid", "!=", "null", ")", "request", "=", "request", "+", "\"\\\"sessionid\\\":\\\"\"", "+", "sessionid", "+", "\"\\\",\"", ";", "request", "=", "request", "+", "\"\\\"\"", "+", "objecttype", "+", "\"\\\":[\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "String", "str", "=", "this", ".", "resource_to_string", "(", "resources", "[", "i", "]", ")", ";", "request", "=", "request", "+", "str", "+", "\",\"", ";", "}", "request", "=", "request", "+", "\"]}\"", ";", "return", "request", ";", "}" ]
Converts netscaler resources to Json string. @param resources nitro resources. @param id sessionId. @param option options class object. @return returns a String
[ "Converts", "netscaler", "resources", "to", "Json", "string", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/base/Json.java#L96-L134
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/base/Json.java
Json.unset_string
public String unset_string(base_resource resrc, String id, options option, String args[], Boolean warning) throws Exception { String objstr; String result = "{ "; if ((option != null && option.get_action() != null) || (warning!=null && warning==true)) { result = result + "\"params\":{"; if (option != null) { if(option.get_action() != null) { result = result + "\"action\":\"" + option.get_action()+"\","; } } if(warning != null && warning==true) { result = result + "\"warning\":\"yes\""; } result = result + "},"; } if (id != null) result = result + "\"sessionid\":\"" + id + "\","; result = result + "\"" + resrc.get_object_type() + "\": {" ; objstr = nitro_util.object_to_string(resrc); if(objstr != null) { result = result + objstr+","; } if (args != null) { for(int i = 0; i < args.length ; i++) { result = result + "\"" + args[i] + "\": true,"; } } result = result + "}," ; result = result + "}"; return result; }
java
public String unset_string(base_resource resrc, String id, options option, String args[], Boolean warning) throws Exception { String objstr; String result = "{ "; if ((option != null && option.get_action() != null) || (warning!=null && warning==true)) { result = result + "\"params\":{"; if (option != null) { if(option.get_action() != null) { result = result + "\"action\":\"" + option.get_action()+"\","; } } if(warning != null && warning==true) { result = result + "\"warning\":\"yes\""; } result = result + "},"; } if (id != null) result = result + "\"sessionid\":\"" + id + "\","; result = result + "\"" + resrc.get_object_type() + "\": {" ; objstr = nitro_util.object_to_string(resrc); if(objstr != null) { result = result + objstr+","; } if (args != null) { for(int i = 0; i < args.length ; i++) { result = result + "\"" + args[i] + "\": true,"; } } result = result + "}," ; result = result + "}"; return result; }
[ "public", "String", "unset_string", "(", "base_resource", "resrc", ",", "String", "id", ",", "options", "option", ",", "String", "args", "[", "]", ",", "Boolean", "warning", ")", "throws", "Exception", "{", "String", "objstr", ";", "String", "result", "=", "\"{ \"", ";", "if", "(", "(", "option", "!=", "null", "&&", "option", ".", "get_action", "(", ")", "!=", "null", ")", "||", "(", "warning", "!=", "null", "&&", "warning", "==", "true", ")", ")", "{", "result", "=", "result", "+", "\"\\\"params\\\":{\"", ";", "if", "(", "option", "!=", "null", ")", "{", "if", "(", "option", ".", "get_action", "(", ")", "!=", "null", ")", "{", "result", "=", "result", "+", "\"\\\"action\\\":\\\"\"", "+", "option", ".", "get_action", "(", ")", "+", "\"\\\",\"", ";", "}", "}", "if", "(", "warning", "!=", "null", "&&", "warning", "==", "true", ")", "{", "result", "=", "result", "+", "\"\\\"warning\\\":\\\"yes\\\"\"", ";", "}", "result", "=", "result", "+", "\"},\"", ";", "}", "if", "(", "id", "!=", "null", ")", "result", "=", "result", "+", "\"\\\"sessionid\\\":\\\"\"", "+", "id", "+", "\"\\\",\"", ";", "result", "=", "result", "+", "\"\\\"\"", "+", "resrc", ".", "get_object_type", "(", ")", "+", "\"\\\": {\"", ";", "objstr", "=", "nitro_util", ".", "object_to_string", "(", "resrc", ")", ";", "if", "(", "objstr", "!=", "null", ")", "{", "result", "=", "result", "+", "objstr", "+", "\",\"", ";", "}", "if", "(", "args", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "args", ".", "length", ";", "i", "++", ")", "{", "result", "=", "result", "+", "\"\\\"\"", "+", "args", "[", "i", "]", "+", "\"\\\": true,\"", ";", "}", "}", "result", "=", "result", "+", "\"},\"", ";", "result", "=", "result", "+", "\"}\"", ";", "return", "result", ";", "}" ]
Converts nitro resource to Json string. This is exclusively for forming unset string. @param resrc nitro resource. @param id sessionId. @param option options class object. @param args Array of arguments of resource that are to be unset. @return returns a String
[ "Converts", "nitro", "resource", "to", "Json", "string", ".", "This", "is", "exclusively", "for", "forming", "unset", "string", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/base/Json.java#L164-L204
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationpolicy_aaagroup_binding.java
authorizationpolicy_aaagroup_binding.get
public static authorizationpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{ authorizationpolicy_aaagroup_binding obj = new authorizationpolicy_aaagroup_binding(); obj.set_name(name); authorizationpolicy_aaagroup_binding response[] = (authorizationpolicy_aaagroup_binding[]) obj.get_resources(service); return response; }
java
public static authorizationpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{ authorizationpolicy_aaagroup_binding obj = new authorizationpolicy_aaagroup_binding(); obj.set_name(name); authorizationpolicy_aaagroup_binding response[] = (authorizationpolicy_aaagroup_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "authorizationpolicy_aaagroup_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "authorizationpolicy_aaagroup_binding", "obj", "=", "new", "authorizationpolicy_aaagroup_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "authorizationpolicy_aaagroup_binding", "response", "[", "]", "=", "(", "authorizationpolicy_aaagroup_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch authorizationpolicy_aaagroup_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "authorizationpolicy_aaagroup_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationpolicy_aaagroup_binding.java#L122-L127
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/cache/cache_stats.java
cache_stats.get
public static cache_stats get(nitro_service service) throws Exception{ cache_stats obj = new cache_stats(); cache_stats[] response = (cache_stats[])obj.stat_resources(service); return response[0]; }
java
public static cache_stats get(nitro_service service) throws Exception{ cache_stats obj = new cache_stats(); cache_stats[] response = (cache_stats[])obj.stat_resources(service); return response[0]; }
[ "public", "static", "cache_stats", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "cache_stats", "obj", "=", "new", "cache_stats", "(", ")", ";", "cache_stats", "[", "]", "response", "=", "(", "cache_stats", "[", "]", ")", "obj", ".", "stat_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch the statistics of all cache_stats resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "the", "statistics", "of", "all", "cache_stats", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/cache/cache_stats.java#L921-L925
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbldnsentry.java
gslbldnsentry.delete
public static base_response delete(nitro_service client, gslbldnsentry resource) throws Exception { gslbldnsentry deleteresource = new gslbldnsentry(); deleteresource.ipaddress = resource.ipaddress; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, gslbldnsentry resource) throws Exception { gslbldnsentry deleteresource = new gslbldnsentry(); deleteresource.ipaddress = resource.ipaddress; return deleteresource.delete_resource(client); }
[ "public", "static", "base_response", "delete", "(", "nitro_service", "client", ",", "gslbldnsentry", "resource", ")", "throws", "Exception", "{", "gslbldnsentry", "deleteresource", "=", "new", "gslbldnsentry", "(", ")", ";", "deleteresource", ".", "ipaddress", "=", "resource", ".", "ipaddress", ";", "return", "deleteresource", ".", "delete_resource", "(", "client", ")", ";", "}" ]
Use this API to delete gslbldnsentry.
[ "Use", "this", "API", "to", "delete", "gslbldnsentry", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbldnsentry.java#L94-L98
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaauser_tmsessionpolicy_binding.java
aaauser_tmsessionpolicy_binding.get
public static aaauser_tmsessionpolicy_binding[] get(nitro_service service, String username) throws Exception{ aaauser_tmsessionpolicy_binding obj = new aaauser_tmsessionpolicy_binding(); obj.set_username(username); aaauser_tmsessionpolicy_binding response[] = (aaauser_tmsessionpolicy_binding[]) obj.get_resources(service); return response; }
java
public static aaauser_tmsessionpolicy_binding[] get(nitro_service service, String username) throws Exception{ aaauser_tmsessionpolicy_binding obj = new aaauser_tmsessionpolicy_binding(); obj.set_username(username); aaauser_tmsessionpolicy_binding response[] = (aaauser_tmsessionpolicy_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "aaauser_tmsessionpolicy_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "username", ")", "throws", "Exception", "{", "aaauser_tmsessionpolicy_binding", "obj", "=", "new", "aaauser_tmsessionpolicy_binding", "(", ")", ";", "obj", ".", "set_username", "(", "username", ")", ";", "aaauser_tmsessionpolicy_binding", "response", "[", "]", "=", "(", "aaauser_tmsessionpolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch aaauser_tmsessionpolicy_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "aaauser_tmsessionpolicy_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaauser_tmsessionpolicy_binding.java#L240-L245
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hanode_ci_binding.java
hanode_ci_binding.get
public static hanode_ci_binding[] get(nitro_service service, Long id) throws Exception{ hanode_ci_binding obj = new hanode_ci_binding(); obj.set_id(id); hanode_ci_binding response[] = (hanode_ci_binding[]) obj.get_resources(service); return response; }
java
public static hanode_ci_binding[] get(nitro_service service, Long id) throws Exception{ hanode_ci_binding obj = new hanode_ci_binding(); obj.set_id(id); hanode_ci_binding response[] = (hanode_ci_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "hanode_ci_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "Long", "id", ")", "throws", "Exception", "{", "hanode_ci_binding", "obj", "=", "new", "hanode_ci_binding", "(", ")", ";", "obj", ".", "set_id", "(", "id", ")", ";", "hanode_ci_binding", "response", "[", "]", "=", "(", "hanode_ci_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch hanode_ci_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "hanode_ci_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hanode_ci_binding.java#L143-L148
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditnslogpolicy_aaauser_binding.java
auditnslogpolicy_aaauser_binding.get
public static auditnslogpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{ auditnslogpolicy_aaauser_binding obj = new auditnslogpolicy_aaauser_binding(); obj.set_name(name); auditnslogpolicy_aaauser_binding response[] = (auditnslogpolicy_aaauser_binding[]) obj.get_resources(service); return response; }
java
public static auditnslogpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{ auditnslogpolicy_aaauser_binding obj = new auditnslogpolicy_aaauser_binding(); obj.set_name(name); auditnslogpolicy_aaauser_binding response[] = (auditnslogpolicy_aaauser_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "auditnslogpolicy_aaauser_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "auditnslogpolicy_aaauser_binding", "obj", "=", "new", "auditnslogpolicy_aaauser_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "auditnslogpolicy_aaauser_binding", "response", "[", "]", "=", "(", "auditnslogpolicy_aaauser_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch auditnslogpolicy_aaauser_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "auditnslogpolicy_aaauser_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditnslogpolicy_aaauser_binding.java#L132-L137
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/trees/TransformingTreebank.java
TransformingTreebank.apply
@Override public void apply(TreeVisitor tv) { for (Tree t : tb) { if (VERBOSE) System.out.println("TfTbApply transforming " + t); Tree tmpT = t.deepCopy(); if (transformer != null) { tmpT = transformer.transformTree(tmpT); } if (VERBOSE) System.out.println(" to " + tmpT); tv.visitTree(tmpT); } }
java
@Override public void apply(TreeVisitor tv) { for (Tree t : tb) { if (VERBOSE) System.out.println("TfTbApply transforming " + t); Tree tmpT = t.deepCopy(); if (transformer != null) { tmpT = transformer.transformTree(tmpT); } if (VERBOSE) System.out.println(" to " + tmpT); tv.visitTree(tmpT); } }
[ "@", "Override", "public", "void", "apply", "(", "TreeVisitor", "tv", ")", "{", "for", "(", "Tree", "t", ":", "tb", ")", "{", "if", "(", "VERBOSE", ")", "System", ".", "out", ".", "println", "(", "\"TfTbApply transforming \"", "+", "t", ")", ";", "Tree", "tmpT", "=", "t", ".", "deepCopy", "(", ")", ";", "if", "(", "transformer", "!=", "null", ")", "{", "tmpT", "=", "transformer", ".", "transformTree", "(", "tmpT", ")", ";", "}", "if", "(", "VERBOSE", ")", "System", ".", "out", ".", "println", "(", "\" to \"", "+", "tmpT", ")", ";", "tv", ".", "visitTree", "(", "tmpT", ")", ";", "}", "}" ]
Applies the TreeVisitor to to all trees in the Treebank. @param tv A class that can process trees.
[ "Applies", "the", "TreeVisitor", "to", "to", "all", "trees", "in", "the", "Treebank", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/TransformingTreebank.java#L100-L111
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.add
public static base_response add(nitro_service client, dnskey resource) throws Exception { dnskey addresource = new dnskey(); addresource.keyname = resource.keyname; addresource.publickey = resource.publickey; addresource.privatekey = resource.privatekey; addresource.expires = resource.expires; addresource.units1 = resource.units1; addresource.notificationperiod = resource.notificationperiod; addresource.units2 = resource.units2; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, dnskey resource) throws Exception { dnskey addresource = new dnskey(); addresource.keyname = resource.keyname; addresource.publickey = resource.publickey; addresource.privatekey = resource.privatekey; addresource.expires = resource.expires; addresource.units1 = resource.units1; addresource.notificationperiod = resource.notificationperiod; addresource.units2 = resource.units2; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "dnskey", "resource", ")", "throws", "Exception", "{", "dnskey", "addresource", "=", "new", "dnskey", "(", ")", ";", "addresource", ".", "keyname", "=", "resource", ".", "keyname", ";", "addresource", ".", "publickey", "=", "resource", ".", "publickey", ";", "addresource", ".", "privatekey", "=", "resource", ".", "privatekey", ";", "addresource", ".", "expires", "=", "resource", ".", "expires", ";", "addresource", ".", "units1", "=", "resource", ".", "units1", ";", "addresource", ".", "notificationperiod", "=", "resource", ".", "notificationperiod", ";", "addresource", ".", "units2", "=", "resource", ".", "units2", ";", "addresource", ".", "ttl", "=", "resource", ".", "ttl", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add dnskey.
[ "Use", "this", "API", "to", "add", "dnskey", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java#L354-L365
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.add
public static base_responses add(nitro_service client, dnskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnskey addresources[] = new dnskey[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnskey(); addresources[i].keyname = resources[i].keyname; addresources[i].publickey = resources[i].publickey; addresources[i].privatekey = resources[i].privatekey; addresources[i].expires = resources[i].expires; addresources[i].units1 = resources[i].units1; addresources[i].notificationperiod = resources[i].notificationperiod; addresources[i].units2 = resources[i].units2; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_responses add(nitro_service client, dnskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnskey addresources[] = new dnskey[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnskey(); addresources[i].keyname = resources[i].keyname; addresources[i].publickey = resources[i].publickey; addresources[i].privatekey = resources[i].privatekey; addresources[i].expires = resources[i].expires; addresources[i].units1 = resources[i].units1; addresources[i].notificationperiod = resources[i].notificationperiod; addresources[i].units2 = resources[i].units2; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
[ "public", "static", "base_responses", "add", "(", "nitro_service", "client", ",", "dnskey", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "dnskey", "addresources", "[", "]", "=", "new", "dnskey", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "addresources", "[", "i", "]", "=", "new", "dnskey", "(", ")", ";", "addresources", "[", "i", "]", ".", "keyname", "=", "resources", "[", "i", "]", ".", "keyname", ";", "addresources", "[", "i", "]", ".", "publickey", "=", "resources", "[", "i", "]", ".", "publickey", ";", "addresources", "[", "i", "]", ".", "privatekey", "=", "resources", "[", "i", "]", ".", "privatekey", ";", "addresources", "[", "i", "]", ".", "expires", "=", "resources", "[", "i", "]", ".", "expires", ";", "addresources", "[", "i", "]", ".", "units1", "=", "resources", "[", "i", "]", ".", "units1", ";", "addresources", "[", "i", "]", ".", "notificationperiod", "=", "resources", "[", "i", "]", ".", "notificationperiod", ";", "addresources", "[", "i", "]", ".", "units2", "=", "resources", "[", "i", "]", ".", "units2", ";", "addresources", "[", "i", "]", ".", "ttl", "=", "resources", "[", "i", "]", ".", "ttl", ";", "}", "result", "=", "add_bulk_request", "(", "client", ",", "addresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to add dnskey resources.
[ "Use", "this", "API", "to", "add", "dnskey", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java#L370-L388
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.create
public static base_response create(nitro_service client, dnskey resource) throws Exception { dnskey createresource = new dnskey(); createresource.zonename = resource.zonename; createresource.keytype = resource.keytype; createresource.algorithm = resource.algorithm; createresource.keysize = resource.keysize; createresource.filenameprefix = resource.filenameprefix; return createresource.perform_operation(client,"create"); }
java
public static base_response create(nitro_service client, dnskey resource) throws Exception { dnskey createresource = new dnskey(); createresource.zonename = resource.zonename; createresource.keytype = resource.keytype; createresource.algorithm = resource.algorithm; createresource.keysize = resource.keysize; createresource.filenameprefix = resource.filenameprefix; return createresource.perform_operation(client,"create"); }
[ "public", "static", "base_response", "create", "(", "nitro_service", "client", ",", "dnskey", "resource", ")", "throws", "Exception", "{", "dnskey", "createresource", "=", "new", "dnskey", "(", ")", ";", "createresource", ".", "zonename", "=", "resource", ".", "zonename", ";", "createresource", ".", "keytype", "=", "resource", ".", "keytype", ";", "createresource", ".", "algorithm", "=", "resource", ".", "algorithm", ";", "createresource", ".", "keysize", "=", "resource", ".", "keysize", ";", "createresource", ".", "filenameprefix", "=", "resource", ".", "filenameprefix", ";", "return", "createresource", ".", "perform_operation", "(", "client", ",", "\"create\"", ")", ";", "}" ]
Use this API to create dnskey.
[ "Use", "this", "API", "to", "create", "dnskey", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java#L393-L401
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.create
public static base_responses create(nitro_service client, dnskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnskey createresources[] = new dnskey[resources.length]; for (int i=0;i<resources.length;i++){ createresources[i] = new dnskey(); createresources[i].zonename = resources[i].zonename; createresources[i].keytype = resources[i].keytype; createresources[i].algorithm = resources[i].algorithm; createresources[i].keysize = resources[i].keysize; createresources[i].filenameprefix = resources[i].filenameprefix; } result = perform_operation_bulk_request(client, createresources,"create"); } return result; }
java
public static base_responses create(nitro_service client, dnskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnskey createresources[] = new dnskey[resources.length]; for (int i=0;i<resources.length;i++){ createresources[i] = new dnskey(); createresources[i].zonename = resources[i].zonename; createresources[i].keytype = resources[i].keytype; createresources[i].algorithm = resources[i].algorithm; createresources[i].keysize = resources[i].keysize; createresources[i].filenameprefix = resources[i].filenameprefix; } result = perform_operation_bulk_request(client, createresources,"create"); } return result; }
[ "public", "static", "base_responses", "create", "(", "nitro_service", "client", ",", "dnskey", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "dnskey", "createresources", "[", "]", "=", "new", "dnskey", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "createresources", "[", "i", "]", "=", "new", "dnskey", "(", ")", ";", "createresources", "[", "i", "]", ".", "zonename", "=", "resources", "[", "i", "]", ".", "zonename", ";", "createresources", "[", "i", "]", ".", "keytype", "=", "resources", "[", "i", "]", ".", "keytype", ";", "createresources", "[", "i", "]", ".", "algorithm", "=", "resources", "[", "i", "]", ".", "algorithm", ";", "createresources", "[", "i", "]", ".", "keysize", "=", "resources", "[", "i", "]", ".", "keysize", ";", "createresources", "[", "i", "]", ".", "filenameprefix", "=", "resources", "[", "i", "]", ".", "filenameprefix", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "createresources", ",", "\"create\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to create dnskey resources.
[ "Use", "this", "API", "to", "create", "dnskey", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java#L406-L421
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.update
public static base_response update(nitro_service client, dnskey resource) throws Exception { dnskey updateresource = new dnskey(); updateresource.keyname = resource.keyname; updateresource.expires = resource.expires; updateresource.units1 = resource.units1; updateresource.notificationperiod = resource.notificationperiod; updateresource.units2 = resource.units2; updateresource.ttl = resource.ttl; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, dnskey resource) throws Exception { dnskey updateresource = new dnskey(); updateresource.keyname = resource.keyname; updateresource.expires = resource.expires; updateresource.units1 = resource.units1; updateresource.notificationperiod = resource.notificationperiod; updateresource.units2 = resource.units2; updateresource.ttl = resource.ttl; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "dnskey", "resource", ")", "throws", "Exception", "{", "dnskey", "updateresource", "=", "new", "dnskey", "(", ")", ";", "updateresource", ".", "keyname", "=", "resource", ".", "keyname", ";", "updateresource", ".", "expires", "=", "resource", ".", "expires", ";", "updateresource", ".", "units1", "=", "resource", ".", "units1", ";", "updateresource", ".", "notificationperiod", "=", "resource", ".", "notificationperiod", ";", "updateresource", ".", "units2", "=", "resource", ".", "units2", ";", "updateresource", ".", "ttl", "=", "resource", ".", "ttl", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update dnskey.
[ "Use", "this", "API", "to", "update", "dnskey", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java#L426-L435
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.update
public static base_responses update(nitro_service client, dnskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnskey updateresources[] = new dnskey[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new dnskey(); updateresources[i].keyname = resources[i].keyname; updateresources[i].expires = resources[i].expires; updateresources[i].units1 = resources[i].units1; updateresources[i].notificationperiod = resources[i].notificationperiod; updateresources[i].units2 = resources[i].units2; updateresources[i].ttl = resources[i].ttl; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_responses update(nitro_service client, dnskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnskey updateresources[] = new dnskey[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new dnskey(); updateresources[i].keyname = resources[i].keyname; updateresources[i].expires = resources[i].expires; updateresources[i].units1 = resources[i].units1; updateresources[i].notificationperiod = resources[i].notificationperiod; updateresources[i].units2 = resources[i].units2; updateresources[i].ttl = resources[i].ttl; } result = update_bulk_request(client, updateresources); } return result; }
[ "public", "static", "base_responses", "update", "(", "nitro_service", "client", ",", "dnskey", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "dnskey", "updateresources", "[", "]", "=", "new", "dnskey", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "updateresources", "[", "i", "]", "=", "new", "dnskey", "(", ")", ";", "updateresources", "[", "i", "]", ".", "keyname", "=", "resources", "[", "i", "]", ".", "keyname", ";", "updateresources", "[", "i", "]", ".", "expires", "=", "resources", "[", "i", "]", ".", "expires", ";", "updateresources", "[", "i", "]", ".", "units1", "=", "resources", "[", "i", "]", ".", "units1", ";", "updateresources", "[", "i", "]", ".", "notificationperiod", "=", "resources", "[", "i", "]", ".", "notificationperiod", ";", "updateresources", "[", "i", "]", ".", "units2", "=", "resources", "[", "i", "]", ".", "units2", ";", "updateresources", "[", "i", "]", ".", "ttl", "=", "resources", "[", "i", "]", ".", "ttl", ";", "}", "result", "=", "update_bulk_request", "(", "client", ",", "updateresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to update dnskey resources.
[ "Use", "this", "API", "to", "update", "dnskey", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java#L440-L456
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.unset
public static base_response unset(nitro_service client, dnskey resource, String[] args) throws Exception{ dnskey unsetresource = new dnskey(); unsetresource.keyname = resource.keyname; return unsetresource.unset_resource(client,args); }
java
public static base_response unset(nitro_service client, dnskey resource, String[] args) throws Exception{ dnskey unsetresource = new dnskey(); unsetresource.keyname = resource.keyname; return unsetresource.unset_resource(client,args); }
[ "public", "static", "base_response", "unset", "(", "nitro_service", "client", ",", "dnskey", "resource", ",", "String", "[", "]", "args", ")", "throws", "Exception", "{", "dnskey", "unsetresource", "=", "new", "dnskey", "(", ")", ";", "unsetresource", ".", "keyname", "=", "resource", ".", "keyname", ";", "return", "unsetresource", ".", "unset_resource", "(", "client", ",", "args", ")", ";", "}" ]
Use this API to unset the properties of dnskey resource. Properties that need to be unset are specified in args array.
[ "Use", "this", "API", "to", "unset", "the", "properties", "of", "dnskey", "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/dnskey.java#L462-L466
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.unset
public static base_responses unset(nitro_service client, String keyname[], String args[]) throws Exception { base_responses result = null; if (keyname != null && keyname.length > 0) { dnskey unsetresources[] = new dnskey[keyname.length]; for (int i=0;i<keyname.length;i++){ unsetresources[i] = new dnskey(); unsetresources[i].keyname = keyname[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
public static base_responses unset(nitro_service client, String keyname[], String args[]) throws Exception { base_responses result = null; if (keyname != null && keyname.length > 0) { dnskey unsetresources[] = new dnskey[keyname.length]; for (int i=0;i<keyname.length;i++){ unsetresources[i] = new dnskey(); unsetresources[i].keyname = keyname[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
[ "public", "static", "base_responses", "unset", "(", "nitro_service", "client", ",", "String", "keyname", "[", "]", ",", "String", "args", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "keyname", "!=", "null", "&&", "keyname", ".", "length", ">", "0", ")", "{", "dnskey", "unsetresources", "[", "]", "=", "new", "dnskey", "[", "keyname", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "keyname", ".", "length", ";", "i", "++", ")", "{", "unsetresources", "[", "i", "]", "=", "new", "dnskey", "(", ")", ";", "unsetresources", "[", "i", "]", ".", "keyname", "=", "keyname", "[", "i", "]", ";", "}", "result", "=", "unset_bulk_request", "(", "client", ",", "unsetresources", ",", "args", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to unset the properties of dnskey resources. Properties that need to be unset are specified in args array.
[ "Use", "this", "API", "to", "unset", "the", "properties", "of", "dnskey", "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/dns/dnskey.java#L472-L483
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.delete
public static base_response delete(nitro_service client, String keyname) throws Exception { dnskey deleteresource = new dnskey(); deleteresource.keyname = keyname; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, String keyname) throws Exception { dnskey deleteresource = new dnskey(); deleteresource.keyname = keyname; return deleteresource.delete_resource(client); }
[ "public", "static", "base_response", "delete", "(", "nitro_service", "client", ",", "String", "keyname", ")", "throws", "Exception", "{", "dnskey", "deleteresource", "=", "new", "dnskey", "(", ")", ";", "deleteresource", ".", "keyname", "=", "keyname", ";", "return", "deleteresource", ".", "delete_resource", "(", "client", ")", ";", "}" ]
Use this API to delete dnskey of given name.
[ "Use", "this", "API", "to", "delete", "dnskey", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java#L505-L509
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.delete
public static base_responses delete(nitro_service client, dnskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnskey deleteresources[] = new dnskey[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new dnskey(); deleteresources[i].keyname = resources[i].keyname; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_responses delete(nitro_service client, dnskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnskey deleteresources[] = new dnskey[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new dnskey(); deleteresources[i].keyname = resources[i].keyname; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "public", "static", "base_responses", "delete", "(", "nitro_service", "client", ",", "dnskey", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "dnskey", "deleteresources", "[", "]", "=", "new", "dnskey", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "deleteresources", "[", "i", "]", "=", "new", "dnskey", "(", ")", ";", "deleteresources", "[", "i", "]", ".", "keyname", "=", "resources", "[", "i", "]", ".", "keyname", ";", "}", "result", "=", "delete_bulk_request", "(", "client", ",", "deleteresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to delete dnskey resources.
[ "Use", "this", "API", "to", "delete", "dnskey", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java#L539-L550
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.get
public static dnskey[] get(nitro_service service) throws Exception{ dnskey obj = new dnskey(); dnskey[] response = (dnskey[])obj.get_resources(service); return response; }
java
public static dnskey[] get(nitro_service service) throws Exception{ dnskey obj = new dnskey(); dnskey[] response = (dnskey[])obj.get_resources(service); return response; }
[ "public", "static", "dnskey", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "dnskey", "obj", "=", "new", "dnskey", "(", ")", ";", "dnskey", "[", "]", "response", "=", "(", "dnskey", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the dnskey resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "dnskey", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java#L555-L559
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.get
public static dnskey get(nitro_service service, String keyname) throws Exception{ dnskey obj = new dnskey(); obj.set_keyname(keyname); dnskey response = (dnskey) obj.get_resource(service); return response; }
java
public static dnskey get(nitro_service service, String keyname) throws Exception{ dnskey obj = new dnskey(); obj.set_keyname(keyname); dnskey response = (dnskey) obj.get_resource(service); return response; }
[ "public", "static", "dnskey", "get", "(", "nitro_service", "service", ",", "String", "keyname", ")", "throws", "Exception", "{", "dnskey", "obj", "=", "new", "dnskey", "(", ")", ";", "obj", ".", "set_keyname", "(", "keyname", ")", ";", "dnskey", "response", "=", "(", "dnskey", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch dnskey resource of given name .
[ "Use", "this", "API", "to", "fetch", "dnskey", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java#L571-L576
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java
dnskey.get
public static dnskey[] get(nitro_service service, String keyname[]) throws Exception{ if (keyname !=null && keyname.length>0) { dnskey response[] = new dnskey[keyname.length]; dnskey obj[] = new dnskey[keyname.length]; for (int i=0;i<keyname.length;i++) { obj[i] = new dnskey(); obj[i].set_keyname(keyname[i]); response[i] = (dnskey) obj[i].get_resource(service); } return response; } return null; }
java
public static dnskey[] get(nitro_service service, String keyname[]) throws Exception{ if (keyname !=null && keyname.length>0) { dnskey response[] = new dnskey[keyname.length]; dnskey obj[] = new dnskey[keyname.length]; for (int i=0;i<keyname.length;i++) { obj[i] = new dnskey(); obj[i].set_keyname(keyname[i]); response[i] = (dnskey) obj[i].get_resource(service); } return response; } return null; }
[ "public", "static", "dnskey", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "keyname", "[", "]", ")", "throws", "Exception", "{", "if", "(", "keyname", "!=", "null", "&&", "keyname", ".", "length", ">", "0", ")", "{", "dnskey", "response", "[", "]", "=", "new", "dnskey", "[", "keyname", ".", "length", "]", ";", "dnskey", "obj", "[", "]", "=", "new", "dnskey", "[", "keyname", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "keyname", ".", "length", ";", "i", "++", ")", "{", "obj", "[", "i", "]", "=", "new", "dnskey", "(", ")", ";", "obj", "[", "i", "]", ".", "set_keyname", "(", "keyname", "[", "i", "]", ")", ";", "response", "[", "i", "]", "=", "(", "dnskey", ")", "obj", "[", "i", "]", ".", "get_resource", "(", "service", ")", ";", "}", "return", "response", ";", "}", "return", "null", ";", "}" ]
Use this API to fetch dnskey resources of given names .
[ "Use", "this", "API", "to", "fetch", "dnskey", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnskey.java#L581-L593
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java
systemcmdpolicy.add
public static base_response add(nitro_service client, systemcmdpolicy resource) throws Exception { systemcmdpolicy addresource = new systemcmdpolicy(); addresource.policyname = resource.policyname; addresource.action = resource.action; addresource.cmdspec = resource.cmdspec; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, systemcmdpolicy resource) throws Exception { systemcmdpolicy addresource = new systemcmdpolicy(); addresource.policyname = resource.policyname; addresource.action = resource.action; addresource.cmdspec = resource.cmdspec; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "systemcmdpolicy", "resource", ")", "throws", "Exception", "{", "systemcmdpolicy", "addresource", "=", "new", "systemcmdpolicy", "(", ")", ";", "addresource", ".", "policyname", "=", "resource", ".", "policyname", ";", "addresource", ".", "action", "=", "resource", ".", "action", ";", "addresource", ".", "cmdspec", "=", "resource", ".", "cmdspec", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add systemcmdpolicy.
[ "Use", "this", "API", "to", "add", "systemcmdpolicy", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java#L148-L154
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java
systemcmdpolicy.add
public static base_responses add(nitro_service client, systemcmdpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemcmdpolicy addresources[] = new systemcmdpolicy[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new systemcmdpolicy(); addresources[i].policyname = resources[i].policyname; addresources[i].action = resources[i].action; addresources[i].cmdspec = resources[i].cmdspec; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_responses add(nitro_service client, systemcmdpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemcmdpolicy addresources[] = new systemcmdpolicy[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new systemcmdpolicy(); addresources[i].policyname = resources[i].policyname; addresources[i].action = resources[i].action; addresources[i].cmdspec = resources[i].cmdspec; } result = add_bulk_request(client, addresources); } return result; }
[ "public", "static", "base_responses", "add", "(", "nitro_service", "client", ",", "systemcmdpolicy", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "systemcmdpolicy", "addresources", "[", "]", "=", "new", "systemcmdpolicy", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "addresources", "[", "i", "]", "=", "new", "systemcmdpolicy", "(", ")", ";", "addresources", "[", "i", "]", ".", "policyname", "=", "resources", "[", "i", "]", ".", "policyname", ";", "addresources", "[", "i", "]", ".", "action", "=", "resources", "[", "i", "]", ".", "action", ";", "addresources", "[", "i", "]", ".", "cmdspec", "=", "resources", "[", "i", "]", ".", "cmdspec", ";", "}", "result", "=", "add_bulk_request", "(", "client", ",", "addresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to add systemcmdpolicy resources.
[ "Use", "this", "API", "to", "add", "systemcmdpolicy", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java#L159-L172
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java
systemcmdpolicy.update
public static base_response update(nitro_service client, systemcmdpolicy resource) throws Exception { systemcmdpolicy updateresource = new systemcmdpolicy(); updateresource.policyname = resource.policyname; updateresource.action = resource.action; updateresource.cmdspec = resource.cmdspec; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, systemcmdpolicy resource) throws Exception { systemcmdpolicy updateresource = new systemcmdpolicy(); updateresource.policyname = resource.policyname; updateresource.action = resource.action; updateresource.cmdspec = resource.cmdspec; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "systemcmdpolicy", "resource", ")", "throws", "Exception", "{", "systemcmdpolicy", "updateresource", "=", "new", "systemcmdpolicy", "(", ")", ";", "updateresource", ".", "policyname", "=", "resource", ".", "policyname", ";", "updateresource", ".", "action", "=", "resource", ".", "action", ";", "updateresource", ".", "cmdspec", "=", "resource", ".", "cmdspec", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update systemcmdpolicy.
[ "Use", "this", "API", "to", "update", "systemcmdpolicy", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java#L227-L233
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java
systemcmdpolicy.update
public static base_responses update(nitro_service client, systemcmdpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemcmdpolicy updateresources[] = new systemcmdpolicy[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new systemcmdpolicy(); updateresources[i].policyname = resources[i].policyname; updateresources[i].action = resources[i].action; updateresources[i].cmdspec = resources[i].cmdspec; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_responses update(nitro_service client, systemcmdpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemcmdpolicy updateresources[] = new systemcmdpolicy[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new systemcmdpolicy(); updateresources[i].policyname = resources[i].policyname; updateresources[i].action = resources[i].action; updateresources[i].cmdspec = resources[i].cmdspec; } result = update_bulk_request(client, updateresources); } return result; }
[ "public", "static", "base_responses", "update", "(", "nitro_service", "client", ",", "systemcmdpolicy", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "systemcmdpolicy", "updateresources", "[", "]", "=", "new", "systemcmdpolicy", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "updateresources", "[", "i", "]", "=", "new", "systemcmdpolicy", "(", ")", ";", "updateresources", "[", "i", "]", ".", "policyname", "=", "resources", "[", "i", "]", ".", "policyname", ";", "updateresources", "[", "i", "]", ".", "action", "=", "resources", "[", "i", "]", ".", "action", ";", "updateresources", "[", "i", "]", ".", "cmdspec", "=", "resources", "[", "i", "]", ".", "cmdspec", ";", "}", "result", "=", "update_bulk_request", "(", "client", ",", "updateresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to update systemcmdpolicy resources.
[ "Use", "this", "API", "to", "update", "systemcmdpolicy", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java#L238-L251
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java
systemcmdpolicy.get
public static systemcmdpolicy[] get(nitro_service service) throws Exception{ systemcmdpolicy obj = new systemcmdpolicy(); systemcmdpolicy[] response = (systemcmdpolicy[])obj.get_resources(service); return response; }
java
public static systemcmdpolicy[] get(nitro_service service) throws Exception{ systemcmdpolicy obj = new systemcmdpolicy(); systemcmdpolicy[] response = (systemcmdpolicy[])obj.get_resources(service); return response; }
[ "public", "static", "systemcmdpolicy", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "systemcmdpolicy", "obj", "=", "new", "systemcmdpolicy", "(", ")", ";", "systemcmdpolicy", "[", "]", "response", "=", "(", "systemcmdpolicy", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the systemcmdpolicy resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "systemcmdpolicy", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java#L256-L260
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java
systemcmdpolicy.get
public static systemcmdpolicy get(nitro_service service, String policyname) throws Exception{ systemcmdpolicy obj = new systemcmdpolicy(); obj.set_policyname(policyname); systemcmdpolicy response = (systemcmdpolicy) obj.get_resource(service); return response; }
java
public static systemcmdpolicy get(nitro_service service, String policyname) throws Exception{ systemcmdpolicy obj = new systemcmdpolicy(); obj.set_policyname(policyname); systemcmdpolicy response = (systemcmdpolicy) obj.get_resource(service); return response; }
[ "public", "static", "systemcmdpolicy", "get", "(", "nitro_service", "service", ",", "String", "policyname", ")", "throws", "Exception", "{", "systemcmdpolicy", "obj", "=", "new", "systemcmdpolicy", "(", ")", ";", "obj", ".", "set_policyname", "(", "policyname", ")", ";", "systemcmdpolicy", "response", "=", "(", "systemcmdpolicy", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch systemcmdpolicy resource of given name .
[ "Use", "this", "API", "to", "fetch", "systemcmdpolicy", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcmdpolicy.java#L272-L277
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java
dnsptrrec.add
public static base_response add(nitro_service client, dnsptrrec resource) throws Exception { dnsptrrec addresource = new dnsptrrec(); addresource.reversedomain = resource.reversedomain; addresource.domain = resource.domain; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, dnsptrrec resource) throws Exception { dnsptrrec addresource = new dnsptrrec(); addresource.reversedomain = resource.reversedomain; addresource.domain = resource.domain; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "dnsptrrec", "resource", ")", "throws", "Exception", "{", "dnsptrrec", "addresource", "=", "new", "dnsptrrec", "(", ")", ";", "addresource", ".", "reversedomain", "=", "resource", ".", "reversedomain", ";", "addresource", ".", "domain", "=", "resource", ".", "domain", ";", "addresource", ".", "ttl", "=", "resource", ".", "ttl", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add dnsptrrec.
[ "Use", "this", "API", "to", "add", "dnsptrrec", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java#L178-L184
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java
dnsptrrec.add
public static base_responses add(nitro_service client, dnsptrrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsptrrec addresources[] = new dnsptrrec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnsptrrec(); addresources[i].reversedomain = resources[i].reversedomain; addresources[i].domain = resources[i].domain; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_responses add(nitro_service client, dnsptrrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsptrrec addresources[] = new dnsptrrec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnsptrrec(); addresources[i].reversedomain = resources[i].reversedomain; addresources[i].domain = resources[i].domain; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
[ "public", "static", "base_responses", "add", "(", "nitro_service", "client", ",", "dnsptrrec", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "dnsptrrec", "addresources", "[", "]", "=", "new", "dnsptrrec", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "addresources", "[", "i", "]", "=", "new", "dnsptrrec", "(", ")", ";", "addresources", "[", "i", "]", ".", "reversedomain", "=", "resources", "[", "i", "]", ".", "reversedomain", ";", "addresources", "[", "i", "]", ".", "domain", "=", "resources", "[", "i", "]", ".", "domain", ";", "addresources", "[", "i", "]", ".", "ttl", "=", "resources", "[", "i", "]", ".", "ttl", ";", "}", "result", "=", "add_bulk_request", "(", "client", ",", "addresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to add dnsptrrec resources.
[ "Use", "this", "API", "to", "add", "dnsptrrec", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java#L189-L202
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java
dnsptrrec.delete
public static base_response delete(nitro_service client, String reversedomain) throws Exception { dnsptrrec deleteresource = new dnsptrrec(); deleteresource.reversedomain = reversedomain; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, String reversedomain) throws Exception { dnsptrrec deleteresource = new dnsptrrec(); deleteresource.reversedomain = reversedomain; return deleteresource.delete_resource(client); }
[ "public", "static", "base_response", "delete", "(", "nitro_service", "client", ",", "String", "reversedomain", ")", "throws", "Exception", "{", "dnsptrrec", "deleteresource", "=", "new", "dnsptrrec", "(", ")", ";", "deleteresource", ".", "reversedomain", "=", "reversedomain", ";", "return", "deleteresource", ".", "delete_resource", "(", "client", ")", ";", "}" ]
Use this API to delete dnsptrrec of given name.
[ "Use", "this", "API", "to", "delete", "dnsptrrec", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java#L207-L211
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java
dnsptrrec.delete
public static base_response delete(nitro_service client, dnsptrrec resource) throws Exception { dnsptrrec deleteresource = new dnsptrrec(); deleteresource.reversedomain = resource.reversedomain; deleteresource.domain = resource.domain; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, dnsptrrec resource) throws Exception { dnsptrrec deleteresource = new dnsptrrec(); deleteresource.reversedomain = resource.reversedomain; deleteresource.domain = resource.domain; return deleteresource.delete_resource(client); }
[ "public", "static", "base_response", "delete", "(", "nitro_service", "client", ",", "dnsptrrec", "resource", ")", "throws", "Exception", "{", "dnsptrrec", "deleteresource", "=", "new", "dnsptrrec", "(", ")", ";", "deleteresource", ".", "reversedomain", "=", "resource", ".", "reversedomain", ";", "deleteresource", ".", "domain", "=", "resource", ".", "domain", ";", "return", "deleteresource", ".", "delete_resource", "(", "client", ")", ";", "}" ]
Use this API to delete dnsptrrec.
[ "Use", "this", "API", "to", "delete", "dnsptrrec", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java#L216-L221
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java
dnsptrrec.delete
public static base_responses delete(nitro_service client, String reversedomain[]) throws Exception { base_responses result = null; if (reversedomain != null && reversedomain.length > 0) { dnsptrrec deleteresources[] = new dnsptrrec[reversedomain.length]; for (int i=0;i<reversedomain.length;i++){ deleteresources[i] = new dnsptrrec(); deleteresources[i].reversedomain = reversedomain[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_responses delete(nitro_service client, String reversedomain[]) throws Exception { base_responses result = null; if (reversedomain != null && reversedomain.length > 0) { dnsptrrec deleteresources[] = new dnsptrrec[reversedomain.length]; for (int i=0;i<reversedomain.length;i++){ deleteresources[i] = new dnsptrrec(); deleteresources[i].reversedomain = reversedomain[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "public", "static", "base_responses", "delete", "(", "nitro_service", "client", ",", "String", "reversedomain", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "reversedomain", "!=", "null", "&&", "reversedomain", ".", "length", ">", "0", ")", "{", "dnsptrrec", "deleteresources", "[", "]", "=", "new", "dnsptrrec", "[", "reversedomain", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "reversedomain", ".", "length", ";", "i", "++", ")", "{", "deleteresources", "[", "i", "]", "=", "new", "dnsptrrec", "(", ")", ";", "deleteresources", "[", "i", "]", ".", "reversedomain", "=", "reversedomain", "[", "i", "]", ";", "}", "result", "=", "delete_bulk_request", "(", "client", ",", "deleteresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to delete dnsptrrec resources of given names.
[ "Use", "this", "API", "to", "delete", "dnsptrrec", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java#L226-L237
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java
dnsptrrec.get
public static dnsptrrec[] get(nitro_service service) throws Exception{ dnsptrrec obj = new dnsptrrec(); dnsptrrec[] response = (dnsptrrec[])obj.get_resources(service); return response; }
java
public static dnsptrrec[] get(nitro_service service) throws Exception{ dnsptrrec obj = new dnsptrrec(); dnsptrrec[] response = (dnsptrrec[])obj.get_resources(service); return response; }
[ "public", "static", "dnsptrrec", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "dnsptrrec", "obj", "=", "new", "dnsptrrec", "(", ")", ";", "dnsptrrec", "[", "]", "response", "=", "(", "dnsptrrec", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the dnsptrrec resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "dnsptrrec", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java#L259-L263
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java
dnsptrrec.get
public static dnsptrrec[] get(nitro_service service, dnsptrrec_args args) throws Exception{ dnsptrrec obj = new dnsptrrec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnsptrrec[] response = (dnsptrrec[])obj.get_resources(service, option); return response; }
java
public static dnsptrrec[] get(nitro_service service, dnsptrrec_args args) throws Exception{ dnsptrrec obj = new dnsptrrec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnsptrrec[] response = (dnsptrrec[])obj.get_resources(service, option); return response; }
[ "public", "static", "dnsptrrec", "[", "]", "get", "(", "nitro_service", "service", ",", "dnsptrrec_args", "args", ")", "throws", "Exception", "{", "dnsptrrec", "obj", "=", "new", "dnsptrrec", "(", ")", ";", "options", "option", "=", "new", "options", "(", ")", ";", "option", ".", "set_args", "(", "nitro_util", ".", "object_to_string_withoutquotes", "(", "args", ")", ")", ";", "dnsptrrec", "[", "]", "response", "=", "(", "dnsptrrec", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the dnsptrrec resources that are configured on netscaler. This uses dnsptrrec_args which is a way to provide additional arguments while fetching the resources.
[ "Use", "this", "API", "to", "fetch", "all", "the", "dnsptrrec", "resources", "that", "are", "configured", "on", "netscaler", ".", "This", "uses", "dnsptrrec_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/dns/dnsptrrec.java#L276-L282
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java
dnsptrrec.get
public static dnsptrrec get(nitro_service service, String reversedomain) throws Exception{ dnsptrrec obj = new dnsptrrec(); obj.set_reversedomain(reversedomain); dnsptrrec response = (dnsptrrec) obj.get_resource(service); return response; }
java
public static dnsptrrec get(nitro_service service, String reversedomain) throws Exception{ dnsptrrec obj = new dnsptrrec(); obj.set_reversedomain(reversedomain); dnsptrrec response = (dnsptrrec) obj.get_resource(service); return response; }
[ "public", "static", "dnsptrrec", "get", "(", "nitro_service", "service", ",", "String", "reversedomain", ")", "throws", "Exception", "{", "dnsptrrec", "obj", "=", "new", "dnsptrrec", "(", ")", ";", "obj", ".", "set_reversedomain", "(", "reversedomain", ")", ";", "dnsptrrec", "response", "=", "(", "dnsptrrec", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch dnsptrrec resource of given name .
[ "Use", "this", "API", "to", "fetch", "dnsptrrec", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java#L287-L292
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java
dnsptrrec.get
public static dnsptrrec[] get(nitro_service service, String reversedomain[]) throws Exception{ if (reversedomain !=null && reversedomain.length>0) { dnsptrrec response[] = new dnsptrrec[reversedomain.length]; dnsptrrec obj[] = new dnsptrrec[reversedomain.length]; for (int i=0;i<reversedomain.length;i++) { obj[i] = new dnsptrrec(); obj[i].set_reversedomain(reversedomain[i]); response[i] = (dnsptrrec) obj[i].get_resource(service); } return response; } return null; }
java
public static dnsptrrec[] get(nitro_service service, String reversedomain[]) throws Exception{ if (reversedomain !=null && reversedomain.length>0) { dnsptrrec response[] = new dnsptrrec[reversedomain.length]; dnsptrrec obj[] = new dnsptrrec[reversedomain.length]; for (int i=0;i<reversedomain.length;i++) { obj[i] = new dnsptrrec(); obj[i].set_reversedomain(reversedomain[i]); response[i] = (dnsptrrec) obj[i].get_resource(service); } return response; } return null; }
[ "public", "static", "dnsptrrec", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "reversedomain", "[", "]", ")", "throws", "Exception", "{", "if", "(", "reversedomain", "!=", "null", "&&", "reversedomain", ".", "length", ">", "0", ")", "{", "dnsptrrec", "response", "[", "]", "=", "new", "dnsptrrec", "[", "reversedomain", ".", "length", "]", ";", "dnsptrrec", "obj", "[", "]", "=", "new", "dnsptrrec", "[", "reversedomain", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "reversedomain", ".", "length", ";", "i", "++", ")", "{", "obj", "[", "i", "]", "=", "new", "dnsptrrec", "(", ")", ";", "obj", "[", "i", "]", ".", "set_reversedomain", "(", "reversedomain", "[", "i", "]", ")", ";", "response", "[", "i", "]", "=", "(", "dnsptrrec", ")", "obj", "[", "i", "]", ".", "get_resource", "(", "service", ")", ";", "}", "return", "response", ";", "}", "return", "null", ";", "}" ]
Use this API to fetch dnsptrrec resources of given names .
[ "Use", "this", "API", "to", "fetch", "dnsptrrec", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsptrrec.java#L297-L309
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_vpnintranetapplication_binding.java
vpnvserver_vpnintranetapplication_binding.get
public static vpnvserver_vpnintranetapplication_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_vpnintranetapplication_binding obj = new vpnvserver_vpnintranetapplication_binding(); obj.set_name(name); vpnvserver_vpnintranetapplication_binding response[] = (vpnvserver_vpnintranetapplication_binding[]) obj.get_resources(service); return response; }
java
public static vpnvserver_vpnintranetapplication_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_vpnintranetapplication_binding obj = new vpnvserver_vpnintranetapplication_binding(); obj.set_name(name); vpnvserver_vpnintranetapplication_binding response[] = (vpnvserver_vpnintranetapplication_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "vpnvserver_vpnintranetapplication_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "vpnvserver_vpnintranetapplication_binding", "obj", "=", "new", "vpnvserver_vpnintranetapplication_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "vpnvserver_vpnintranetapplication_binding", "response", "[", "]", "=", "(", "vpnvserver_vpnintranetapplication_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch vpnvserver_vpnintranetapplication_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "vpnvserver_vpnintranetapplication_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_vpnintranetapplication_binding.java#L164-L169
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel_binding.java
cmppolicylabel_binding.get
public static cmppolicylabel_binding get(nitro_service service, String labelname) throws Exception{ cmppolicylabel_binding obj = new cmppolicylabel_binding(); obj.set_labelname(labelname); cmppolicylabel_binding response = (cmppolicylabel_binding) obj.get_resource(service); return response; }
java
public static cmppolicylabel_binding get(nitro_service service, String labelname) throws Exception{ cmppolicylabel_binding obj = new cmppolicylabel_binding(); obj.set_labelname(labelname); cmppolicylabel_binding response = (cmppolicylabel_binding) obj.get_resource(service); return response; }
[ "public", "static", "cmppolicylabel_binding", "get", "(", "nitro_service", "service", ",", "String", "labelname", ")", "throws", "Exception", "{", "cmppolicylabel_binding", "obj", "=", "new", "cmppolicylabel_binding", "(", ")", ";", "obj", ".", "set_labelname", "(", "labelname", ")", ";", "cmppolicylabel_binding", "response", "=", "(", "cmppolicylabel_binding", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch cmppolicylabel_binding resource of given name .
[ "Use", "this", "API", "to", "fetch", "cmppolicylabel_binding", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel_binding.java#L114-L119
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel_binding.java
cmppolicylabel_binding.get
public static cmppolicylabel_binding[] get(nitro_service service, String labelname[]) throws Exception{ if (labelname !=null && labelname.length>0) { cmppolicylabel_binding response[] = new cmppolicylabel_binding[labelname.length]; cmppolicylabel_binding obj[] = new cmppolicylabel_binding[labelname.length]; for (int i=0;i<labelname.length;i++) { obj[i] = new cmppolicylabel_binding(); obj[i].set_labelname(labelname[i]); response[i] = (cmppolicylabel_binding) obj[i].get_resource(service); } return response; } return null; }
java
public static cmppolicylabel_binding[] get(nitro_service service, String labelname[]) throws Exception{ if (labelname !=null && labelname.length>0) { cmppolicylabel_binding response[] = new cmppolicylabel_binding[labelname.length]; cmppolicylabel_binding obj[] = new cmppolicylabel_binding[labelname.length]; for (int i=0;i<labelname.length;i++) { obj[i] = new cmppolicylabel_binding(); obj[i].set_labelname(labelname[i]); response[i] = (cmppolicylabel_binding) obj[i].get_resource(service); } return response; } return null; }
[ "public", "static", "cmppolicylabel_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "labelname", "[", "]", ")", "throws", "Exception", "{", "if", "(", "labelname", "!=", "null", "&&", "labelname", ".", "length", ">", "0", ")", "{", "cmppolicylabel_binding", "response", "[", "]", "=", "new", "cmppolicylabel_binding", "[", "labelname", ".", "length", "]", ";", "cmppolicylabel_binding", "obj", "[", "]", "=", "new", "cmppolicylabel_binding", "[", "labelname", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "labelname", ".", "length", ";", "i", "++", ")", "{", "obj", "[", "i", "]", "=", "new", "cmppolicylabel_binding", "(", ")", ";", "obj", "[", "i", "]", ".", "set_labelname", "(", "labelname", "[", "i", "]", ")", ";", "response", "[", "i", "]", "=", "(", "cmppolicylabel_binding", ")", "obj", "[", "i", "]", ".", "get_resource", "(", "service", ")", ";", "}", "return", "response", ";", "}", "return", "null", ";", "}" ]
Use this API to fetch cmppolicylabel_binding resources of given names .
[ "Use", "this", "API", "to", "fetch", "cmppolicylabel_binding", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel_binding.java#L124-L136
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/objectbank/ResettableReaderIteratorFactory.java
ResettableReaderIteratorFactory.iterator
@Override public Iterator<Reader> iterator() { Collection<Object> newCollection = new ArrayList<Object>(); for (Object o : c) { if (o instanceof Reader) { String name = o.toString()+".tmp"; File tmpFile; try { tmpFile = File.createTempFile(name,""); } catch (Exception e) { throw new RuntimeException(e.getMessage()); } tmpFile.deleteOnExit(); StringUtils.printToFile(tmpFile, IOUtils.slurpReader((Reader)o), false, false, enc); newCollection.add(tmpFile); } else { newCollection.add(o); } } c = newCollection; return new ReaderIterator(); }
java
@Override public Iterator<Reader> iterator() { Collection<Object> newCollection = new ArrayList<Object>(); for (Object o : c) { if (o instanceof Reader) { String name = o.toString()+".tmp"; File tmpFile; try { tmpFile = File.createTempFile(name,""); } catch (Exception e) { throw new RuntimeException(e.getMessage()); } tmpFile.deleteOnExit(); StringUtils.printToFile(tmpFile, IOUtils.slurpReader((Reader)o), false, false, enc); newCollection.add(tmpFile); } else { newCollection.add(o); } } c = newCollection; return new ReaderIterator(); }
[ "@", "Override", "public", "Iterator", "<", "Reader", ">", "iterator", "(", ")", "{", "Collection", "<", "Object", ">", "newCollection", "=", "new", "ArrayList", "<", "Object", ">", "(", ")", ";", "for", "(", "Object", "o", ":", "c", ")", "{", "if", "(", "o", "instanceof", "Reader", ")", "{", "String", "name", "=", "o", ".", "toString", "(", ")", "+", "\".tmp\"", ";", "File", "tmpFile", ";", "try", "{", "tmpFile", "=", "File", ".", "createTempFile", "(", "name", ",", "\"\"", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "new", "RuntimeException", "(", "e", ".", "getMessage", "(", ")", ")", ";", "}", "tmpFile", ".", "deleteOnExit", "(", ")", ";", "StringUtils", ".", "printToFile", "(", "tmpFile", ",", "IOUtils", ".", "slurpReader", "(", "(", "Reader", ")", "o", ")", ",", "false", ",", "false", ",", "enc", ")", ";", "newCollection", ".", "add", "(", "tmpFile", ")", ";", "}", "else", "{", "newCollection", ".", "add", "(", "o", ")", ";", "}", "}", "c", "=", "newCollection", ";", "return", "new", "ReaderIterator", "(", ")", ";", "}" ]
Returns an Iterator over the input sources in the underlying Collection. @return an Iterator over the input sources in the underlying Collection.
[ "Returns", "an", "Iterator", "over", "the", "input", "sources", "in", "the", "underlying", "Collection", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/objectbank/ResettableReaderIteratorFactory.java#L69-L91
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/rewrite/rewritepolicy_lbvserver_binding.java
rewritepolicy_lbvserver_binding.get
public static rewritepolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{ rewritepolicy_lbvserver_binding obj = new rewritepolicy_lbvserver_binding(); obj.set_name(name); rewritepolicy_lbvserver_binding response[] = (rewritepolicy_lbvserver_binding[]) obj.get_resources(service); return response; }
java
public static rewritepolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{ rewritepolicy_lbvserver_binding obj = new rewritepolicy_lbvserver_binding(); obj.set_name(name); rewritepolicy_lbvserver_binding response[] = (rewritepolicy_lbvserver_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "rewritepolicy_lbvserver_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "rewritepolicy_lbvserver_binding", "obj", "=", "new", "rewritepolicy_lbvserver_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "rewritepolicy_lbvserver_binding", "response", "[", "]", "=", "(", "rewritepolicy_lbvserver_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch rewritepolicy_lbvserver_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "rewritepolicy_lbvserver_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/rewrite/rewritepolicy_lbvserver_binding.java#L162-L167
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonbindings.java
lbmonbindings.get
public static lbmonbindings get(nitro_service service, String monitorname) throws Exception{ lbmonbindings obj = new lbmonbindings(); obj.set_monitorname(monitorname); lbmonbindings response = (lbmonbindings) obj.get_resource(service); return response; }
java
public static lbmonbindings get(nitro_service service, String monitorname) throws Exception{ lbmonbindings obj = new lbmonbindings(); obj.set_monitorname(monitorname); lbmonbindings response = (lbmonbindings) obj.get_resource(service); return response; }
[ "public", "static", "lbmonbindings", "get", "(", "nitro_service", "service", ",", "String", "monitorname", ")", "throws", "Exception", "{", "lbmonbindings", "obj", "=", "new", "lbmonbindings", "(", ")", ";", "obj", ".", "set_monitorname", "(", "monitorname", ")", ";", "lbmonbindings", "response", "=", "(", "lbmonbindings", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch lbmonbindings resource of given name .
[ "Use", "this", "API", "to", "fetch", "lbmonbindings", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmonbindings.java#L116-L121
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/netprofile.java
netprofile.add
public static base_response add(nitro_service client, netprofile resource) throws Exception { netprofile addresource = new netprofile(); addresource.name = resource.name; addresource.td = resource.td; addresource.srcip = resource.srcip; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, netprofile resource) throws Exception { netprofile addresource = new netprofile(); addresource.name = resource.name; addresource.td = resource.td; addresource.srcip = resource.srcip; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "netprofile", "resource", ")", "throws", "Exception", "{", "netprofile", "addresource", "=", "new", "netprofile", "(", ")", ";", "addresource", ".", "name", "=", "resource", ".", "name", ";", "addresource", ".", "td", "=", "resource", ".", "td", ";", "addresource", ".", "srcip", "=", "resource", ".", "srcip", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add netprofile.
[ "Use", "this", "API", "to", "add", "netprofile", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/netprofile.java#L140-L146
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/netprofile.java
netprofile.update
public static base_response update(nitro_service client, netprofile resource) throws Exception { netprofile updateresource = new netprofile(); updateresource.name = resource.name; updateresource.srcip = resource.srcip; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, netprofile resource) throws Exception { netprofile updateresource = new netprofile(); updateresource.name = resource.name; updateresource.srcip = resource.srcip; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "netprofile", "resource", ")", "throws", "Exception", "{", "netprofile", "updateresource", "=", "new", "netprofile", "(", ")", ";", "updateresource", ".", "name", "=", "resource", ".", "name", ";", "updateresource", ".", "srcip", "=", "resource", ".", "srcip", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update netprofile.
[ "Use", "this", "API", "to", "update", "netprofile", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/netprofile.java#L219-L224
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/netprofile.java
netprofile.update
public static base_responses update(nitro_service client, netprofile resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { netprofile updateresources[] = new netprofile[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new netprofile(); updateresources[i].name = resources[i].name; updateresources[i].srcip = resources[i].srcip; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_responses update(nitro_service client, netprofile resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { netprofile updateresources[] = new netprofile[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new netprofile(); updateresources[i].name = resources[i].name; updateresources[i].srcip = resources[i].srcip; } result = update_bulk_request(client, updateresources); } return result; }
[ "public", "static", "base_responses", "update", "(", "nitro_service", "client", ",", "netprofile", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "netprofile", "updateresources", "[", "]", "=", "new", "netprofile", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "updateresources", "[", "i", "]", "=", "new", "netprofile", "(", ")", ";", "updateresources", "[", "i", "]", ".", "name", "=", "resources", "[", "i", "]", ".", "name", ";", "updateresources", "[", "i", "]", ".", "srcip", "=", "resources", "[", "i", "]", ".", "srcip", ";", "}", "result", "=", "update_bulk_request", "(", "client", ",", "updateresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to update netprofile resources.
[ "Use", "this", "API", "to", "update", "netprofile", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/netprofile.java#L229-L241
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/netprofile.java
netprofile.get
public static netprofile[] get(nitro_service service, options option) throws Exception{ netprofile obj = new netprofile(); netprofile[] response = (netprofile[])obj.get_resources(service,option); return response; }
java
public static netprofile[] get(nitro_service service, options option) throws Exception{ netprofile obj = new netprofile(); netprofile[] response = (netprofile[])obj.get_resources(service,option); return response; }
[ "public", "static", "netprofile", "[", "]", "get", "(", "nitro_service", "service", ",", "options", "option", ")", "throws", "Exception", "{", "netprofile", "obj", "=", "new", "netprofile", "(", ")", ";", "netprofile", "[", "]", "response", "=", "(", "netprofile", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the netprofile resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "netprofile", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/netprofile.java#L308-L312
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/netprofile.java
netprofile.get
public static netprofile get(nitro_service service, String name) throws Exception{ netprofile obj = new netprofile(); obj.set_name(name); netprofile response = (netprofile) obj.get_resource(service); return response; }
java
public static netprofile get(nitro_service service, String name) throws Exception{ netprofile obj = new netprofile(); obj.set_name(name); netprofile response = (netprofile) obj.get_resource(service); return response; }
[ "public", "static", "netprofile", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "netprofile", "obj", "=", "new", "netprofile", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "netprofile", "response", "=", "(", "netprofile", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch netprofile resource of given name .
[ "Use", "this", "API", "to", "fetch", "netprofile", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/netprofile.java#L316-L321
train
meertensinstituut/mtas
src/main/java/mtas/solr/update/processor/MtasUpdateRequestProcessorResultReader.java
MtasUpdateRequestProcessorResultReader.forceClose
private void forceClose() { if (file != null) { if (file.exists() && file.canWrite() && !file.delete()) { log.debug("couldn't delete " + file.getName()); } file = null; } try { objectInputStream.close(); } catch (IOException e) { log.debug(e); } closed = true; }
java
private void forceClose() { if (file != null) { if (file.exists() && file.canWrite() && !file.delete()) { log.debug("couldn't delete " + file.getName()); } file = null; } try { objectInputStream.close(); } catch (IOException e) { log.debug(e); } closed = true; }
[ "private", "void", "forceClose", "(", ")", "{", "if", "(", "file", "!=", "null", ")", "{", "if", "(", "file", ".", "exists", "(", ")", "&&", "file", ".", "canWrite", "(", ")", "&&", "!", "file", ".", "delete", "(", ")", ")", "{", "log", ".", "debug", "(", "\"couldn't delete \"", "+", "file", ".", "getName", "(", ")", ")", ";", "}", "file", "=", "null", ";", "}", "try", "{", "objectInputStream", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "log", ".", "debug", "(", "e", ")", ";", "}", "closed", "=", "true", ";", "}" ]
Force close.
[ "Force", "close", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/solr/update/processor/MtasUpdateRequestProcessorResultReader.java#L181-L194
train
aerogear/aerogear-android-pipe
library/src/main/java/org/jboss/aerogear/android/pipe/rest/RestRunner.java
RestRunner.loadAuth
private ModuleFields loadAuth(URI relativeURI, String httpMethod) { ModuleFields authFields = new ModuleFields(); for (PipeModule module : modules) { ModuleFields moduleFields = module.loadModule(relativeURI, httpMethod, new byte[] {}); if (!moduleFields.getHeaders().isEmpty()) { for (Pair<String, String> header : moduleFields.getHeaders()) { authFields.addHeader(header.first, header.second); } } if (!moduleFields.getQueryParameters().isEmpty()) { for (Pair<String, String> header : moduleFields.getQueryParameters()) { authFields.addQueryParameter(header.first, header.second); } } } return authFields; }
java
private ModuleFields loadAuth(URI relativeURI, String httpMethod) { ModuleFields authFields = new ModuleFields(); for (PipeModule module : modules) { ModuleFields moduleFields = module.loadModule(relativeURI, httpMethod, new byte[] {}); if (!moduleFields.getHeaders().isEmpty()) { for (Pair<String, String> header : moduleFields.getHeaders()) { authFields.addHeader(header.first, header.second); } } if (!moduleFields.getQueryParameters().isEmpty()) { for (Pair<String, String> header : moduleFields.getQueryParameters()) { authFields.addQueryParameter(header.first, header.second); } } } return authFields; }
[ "private", "ModuleFields", "loadAuth", "(", "URI", "relativeURI", ",", "String", "httpMethod", ")", "{", "ModuleFields", "authFields", "=", "new", "ModuleFields", "(", ")", ";", "for", "(", "PipeModule", "module", ":", "modules", ")", "{", "ModuleFields", "moduleFields", "=", "module", ".", "loadModule", "(", "relativeURI", ",", "httpMethod", ",", "new", "byte", "[", "]", "{", "}", ")", ";", "if", "(", "!", "moduleFields", ".", "getHeaders", "(", ")", ".", "isEmpty", "(", ")", ")", "{", "for", "(", "Pair", "<", "String", ",", "String", ">", "header", ":", "moduleFields", ".", "getHeaders", "(", ")", ")", "{", "authFields", ".", "addHeader", "(", "header", ".", "first", ",", "header", ".", "second", ")", ";", "}", "}", "if", "(", "!", "moduleFields", ".", "getQueryParameters", "(", ")", ".", "isEmpty", "(", ")", ")", "{", "for", "(", "Pair", "<", "String", ",", "String", ">", "header", ":", "moduleFields", ".", "getQueryParameters", "(", ")", ")", "{", "authFields", ".", "addQueryParameter", "(", "header", ".", "first", ",", "header", ".", "second", ")", ";", "}", "}", "}", "return", "authFields", ";", "}" ]
Apply authentication if the token is present
[ "Apply", "authentication", "if", "the", "token", "is", "present" ]
ac747965c2d06d6ad46dd8abfbabf3d793f06fa5
https://github.com/aerogear/aerogear-android-pipe/blob/ac747965c2d06d6ad46dd8abfbabf3d793f06fa5/library/src/main/java/org/jboss/aerogear/android/pipe/rest/RestRunner.java#L205-L227
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwxmlerrorpage.java
appfwxmlerrorpage.get
public static appfwxmlerrorpage get(nitro_service service) throws Exception{ appfwxmlerrorpage obj = new appfwxmlerrorpage(); appfwxmlerrorpage[] response = (appfwxmlerrorpage[])obj.get_resources(service); return response[0]; }
java
public static appfwxmlerrorpage get(nitro_service service) throws Exception{ appfwxmlerrorpage obj = new appfwxmlerrorpage(); appfwxmlerrorpage[] response = (appfwxmlerrorpage[])obj.get_resources(service); return response[0]; }
[ "public", "static", "appfwxmlerrorpage", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "appfwxmlerrorpage", "obj", "=", "new", "appfwxmlerrorpage", "(", ")", ";", "appfwxmlerrorpage", "[", "]", "response", "=", "(", "appfwxmlerrorpage", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch all the appfwxmlerrorpage resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "appfwxmlerrorpage", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwxmlerrorpage.java#L116-L120
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwxmlerrorpage.java
appfwxmlerrorpage.get
public static appfwxmlerrorpage get(nitro_service service, String name) throws Exception{ appfwxmlerrorpage obj = new appfwxmlerrorpage(); obj.set_name(name); appfwxmlerrorpage response = (appfwxmlerrorpage) obj.get_resource(service); return response; }
java
public static appfwxmlerrorpage get(nitro_service service, String name) throws Exception{ appfwxmlerrorpage obj = new appfwxmlerrorpage(); obj.set_name(name); appfwxmlerrorpage response = (appfwxmlerrorpage) obj.get_resource(service); return response; }
[ "public", "static", "appfwxmlerrorpage", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "appfwxmlerrorpage", "obj", "=", "new", "appfwxmlerrorpage", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "appfwxmlerrorpage", "response", "=", "(", "appfwxmlerrorpage", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch appfwxmlerrorpage resource of given name .
[ "Use", "this", "API", "to", "fetch", "appfwxmlerrorpage", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwxmlerrorpage.java#L134-L139
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_fieldformat_binding.java
appfwprofile_fieldformat_binding.get
public static appfwprofile_fieldformat_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_fieldformat_binding obj = new appfwprofile_fieldformat_binding(); obj.set_name(name); appfwprofile_fieldformat_binding response[] = (appfwprofile_fieldformat_binding[]) obj.get_resources(service); return response; }
java
public static appfwprofile_fieldformat_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_fieldformat_binding obj = new appfwprofile_fieldformat_binding(); obj.set_name(name); appfwprofile_fieldformat_binding response[] = (appfwprofile_fieldformat_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "appfwprofile_fieldformat_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "appfwprofile_fieldformat_binding", "obj", "=", "new", "appfwprofile_fieldformat_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "appfwprofile_fieldformat_binding", "response", "[", "]", "=", "(", "appfwprofile_fieldformat_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch appfwprofile_fieldformat_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "appfwprofile_fieldformat_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_fieldformat_binding.java#L321-L326
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacls6.java
nsacls6.clear
public static base_response clear(nitro_service client) throws Exception { nsacls6 clearresource = new nsacls6(); return clearresource.perform_operation(client,"clear"); }
java
public static base_response clear(nitro_service client) throws Exception { nsacls6 clearresource = new nsacls6(); return clearresource.perform_operation(client,"clear"); }
[ "public", "static", "base_response", "clear", "(", "nitro_service", "client", ")", "throws", "Exception", "{", "nsacls6", "clearresource", "=", "new", "nsacls6", "(", ")", ";", "return", "clearresource", ".", "perform_operation", "(", "client", ",", "\"clear\"", ")", ";", "}" ]
Use this API to clear nsacls6.
[ "Use", "this", "API", "to", "clear", "nsacls6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacls6.java#L75-L78
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacls6.java
nsacls6.apply
public static base_response apply(nitro_service client) throws Exception { nsacls6 applyresource = new nsacls6(); return applyresource.perform_operation(client,"apply"); }
java
public static base_response apply(nitro_service client) throws Exception { nsacls6 applyresource = new nsacls6(); return applyresource.perform_operation(client,"apply"); }
[ "public", "static", "base_response", "apply", "(", "nitro_service", "client", ")", "throws", "Exception", "{", "nsacls6", "applyresource", "=", "new", "nsacls6", "(", ")", ";", "return", "applyresource", ".", "perform_operation", "(", "client", ",", "\"apply\"", ")", ";", "}" ]
Use this API to apply nsacls6.
[ "Use", "this", "API", "to", "apply", "nsacls6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacls6.java#L83-L86
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacls6.java
nsacls6.renumber
public static base_response renumber(nitro_service client) throws Exception { nsacls6 renumberresource = new nsacls6(); return renumberresource.perform_operation(client,"renumber"); }
java
public static base_response renumber(nitro_service client) throws Exception { nsacls6 renumberresource = new nsacls6(); return renumberresource.perform_operation(client,"renumber"); }
[ "public", "static", "base_response", "renumber", "(", "nitro_service", "client", ")", "throws", "Exception", "{", "nsacls6", "renumberresource", "=", "new", "nsacls6", "(", ")", ";", "return", "renumberresource", ".", "perform_operation", "(", "client", ",", "\"renumber\"", ")", ";", "}" ]
Use this API to renumber nsacls6.
[ "Use", "this", "API", "to", "renumber", "nsacls6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacls6.java#L91-L94
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/vpn/vpn_stats.java
vpn_stats.get
public static vpn_stats get(nitro_service service) throws Exception{ vpn_stats obj = new vpn_stats(); vpn_stats[] response = (vpn_stats[])obj.stat_resources(service); return response[0]; }
java
public static vpn_stats get(nitro_service service) throws Exception{ vpn_stats obj = new vpn_stats(); vpn_stats[] response = (vpn_stats[])obj.stat_resources(service); return response[0]; }
[ "public", "static", "vpn_stats", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "vpn_stats", "obj", "=", "new", "vpn_stats", "(", ")", ";", "vpn_stats", "[", "]", "response", "=", "(", "vpn_stats", "[", "]", ")", "obj", ".", "stat_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch the statistics of all vpn_stats resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "the", "statistics", "of", "all", "vpn_stats", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/vpn/vpn_stats.java#L711-L715
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/vlan_binding.java
vlan_binding.get
public static vlan_binding get(nitro_service service, Long id) throws Exception{ vlan_binding obj = new vlan_binding(); obj.set_id(id); vlan_binding response = (vlan_binding) obj.get_resource(service); return response; }
java
public static vlan_binding get(nitro_service service, Long id) throws Exception{ vlan_binding obj = new vlan_binding(); obj.set_id(id); vlan_binding response = (vlan_binding) obj.get_resource(service); return response; }
[ "public", "static", "vlan_binding", "get", "(", "nitro_service", "service", ",", "Long", "id", ")", "throws", "Exception", "{", "vlan_binding", "obj", "=", "new", "vlan_binding", "(", ")", ";", "obj", ".", "set_id", "(", "id", ")", ";", "vlan_binding", "response", "=", "(", "vlan_binding", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch vlan_binding resource of given name .
[ "Use", "this", "API", "to", "fetch", "vlan_binding", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/vlan_binding.java#L159-L164
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/math/ADMath.java
ADMath.logSum
public static DoubleAD logSum(DoubleAD[] logInputs, int fromIndex, int toIndex) { if (logInputs.length == 0) throw new IllegalArgumentException(); if(fromIndex >= 0 && toIndex < logInputs.length && fromIndex >= toIndex) return new DoubleAD(Double.NEGATIVE_INFINITY,Double.NEGATIVE_INFINITY); int maxIdx = fromIndex; double max = logInputs[fromIndex].getval(); double maxdot = logInputs[fromIndex].getdot(); for (int i = fromIndex+1; i < toIndex; i++) { if (logInputs[i].getval() > max) { maxIdx = i; maxdot = logInputs[i].getdot(); max = logInputs[i].getval(); } } DoubleAD ret = new DoubleAD(); boolean haveTerms = false; double intermediate = 0.0; double intermediateDot = 0.0; double curEXP; double cutoff = max - SloppyMath.LOGTOLERANCE; // we avoid rearranging the array and so test indices each time! for (int i = fromIndex; i < toIndex; i++) { if (i != maxIdx && logInputs[i].getval() > cutoff) { haveTerms = true; curEXP = Math.exp(logInputs[i].getval() - max); intermediate += curEXP; intermediateDot += curEXP*logInputs[i].getdot(); } } if (haveTerms) { ret.setval(max + Math.log(1.0 + intermediate)); ret.setdot((maxdot + intermediateDot)/(1.0 + intermediate)); } else { ret.setval(max); ret.setdot(maxdot); } return ret; }
java
public static DoubleAD logSum(DoubleAD[] logInputs, int fromIndex, int toIndex) { if (logInputs.length == 0) throw new IllegalArgumentException(); if(fromIndex >= 0 && toIndex < logInputs.length && fromIndex >= toIndex) return new DoubleAD(Double.NEGATIVE_INFINITY,Double.NEGATIVE_INFINITY); int maxIdx = fromIndex; double max = logInputs[fromIndex].getval(); double maxdot = logInputs[fromIndex].getdot(); for (int i = fromIndex+1; i < toIndex; i++) { if (logInputs[i].getval() > max) { maxIdx = i; maxdot = logInputs[i].getdot(); max = logInputs[i].getval(); } } DoubleAD ret = new DoubleAD(); boolean haveTerms = false; double intermediate = 0.0; double intermediateDot = 0.0; double curEXP; double cutoff = max - SloppyMath.LOGTOLERANCE; // we avoid rearranging the array and so test indices each time! for (int i = fromIndex; i < toIndex; i++) { if (i != maxIdx && logInputs[i].getval() > cutoff) { haveTerms = true; curEXP = Math.exp(logInputs[i].getval() - max); intermediate += curEXP; intermediateDot += curEXP*logInputs[i].getdot(); } } if (haveTerms) { ret.setval(max + Math.log(1.0 + intermediate)); ret.setdot((maxdot + intermediateDot)/(1.0 + intermediate)); } else { ret.setval(max); ret.setdot(maxdot); } return ret; }
[ "public", "static", "DoubleAD", "logSum", "(", "DoubleAD", "[", "]", "logInputs", ",", "int", "fromIndex", ",", "int", "toIndex", ")", "{", "if", "(", "logInputs", ".", "length", "==", "0", ")", "throw", "new", "IllegalArgumentException", "(", ")", ";", "if", "(", "fromIndex", ">=", "0", "&&", "toIndex", "<", "logInputs", ".", "length", "&&", "fromIndex", ">=", "toIndex", ")", "return", "new", "DoubleAD", "(", "Double", ".", "NEGATIVE_INFINITY", ",", "Double", ".", "NEGATIVE_INFINITY", ")", ";", "int", "maxIdx", "=", "fromIndex", ";", "double", "max", "=", "logInputs", "[", "fromIndex", "]", ".", "getval", "(", ")", ";", "double", "maxdot", "=", "logInputs", "[", "fromIndex", "]", ".", "getdot", "(", ")", ";", "for", "(", "int", "i", "=", "fromIndex", "+", "1", ";", "i", "<", "toIndex", ";", "i", "++", ")", "{", "if", "(", "logInputs", "[", "i", "]", ".", "getval", "(", ")", ">", "max", ")", "{", "maxIdx", "=", "i", ";", "maxdot", "=", "logInputs", "[", "i", "]", ".", "getdot", "(", ")", ";", "max", "=", "logInputs", "[", "i", "]", ".", "getval", "(", ")", ";", "}", "}", "DoubleAD", "ret", "=", "new", "DoubleAD", "(", ")", ";", "boolean", "haveTerms", "=", "false", ";", "double", "intermediate", "=", "0.0", ";", "double", "intermediateDot", "=", "0.0", ";", "double", "curEXP", ";", "double", "cutoff", "=", "max", "-", "SloppyMath", ".", "LOGTOLERANCE", ";", "// we avoid rearranging the array and so test indices each time!\r", "for", "(", "int", "i", "=", "fromIndex", ";", "i", "<", "toIndex", ";", "i", "++", ")", "{", "if", "(", "i", "!=", "maxIdx", "&&", "logInputs", "[", "i", "]", ".", "getval", "(", ")", ">", "cutoff", ")", "{", "haveTerms", "=", "true", ";", "curEXP", "=", "Math", ".", "exp", "(", "logInputs", "[", "i", "]", ".", "getval", "(", ")", "-", "max", ")", ";", "intermediate", "+=", "curEXP", ";", "intermediateDot", "+=", "curEXP", "*", "logInputs", "[", "i", "]", ".", "getdot", "(", ")", ";", "}", "}", "if", "(", "haveTerms", ")", "{", "ret", ".", "setval", "(", "max", "+", "Math", ".", "log", "(", "1.0", "+", "intermediate", ")", ")", ";", "ret", ".", "setdot", "(", "(", "maxdot", "+", "intermediateDot", ")", "/", "(", "1.0", "+", "intermediate", ")", ")", ";", "}", "else", "{", "ret", ".", "setval", "(", "max", ")", ";", "ret", ".", "setdot", "(", "maxdot", ")", ";", "}", "return", "ret", ";", "}" ]
Some of this might need to change for optimal AD
[ "Some", "of", "this", "might", "need", "to", "change", "for", "optimal", "AD" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ADMath.java#L97-L137
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java
sslvserver.update
public static base_response update(nitro_service client, sslvserver resource) throws Exception { sslvserver updateresource = new sslvserver(); updateresource.vservername = resource.vservername; updateresource.cleartextport = resource.cleartextport; updateresource.dh = resource.dh; updateresource.dhfile = resource.dhfile; updateresource.dhcount = resource.dhcount; updateresource.ersa = resource.ersa; updateresource.ersacount = resource.ersacount; updateresource.sessreuse = resource.sessreuse; updateresource.sesstimeout = resource.sesstimeout; updateresource.cipherredirect = resource.cipherredirect; updateresource.cipherurl = resource.cipherurl; updateresource.sslv2redirect = resource.sslv2redirect; updateresource.sslv2url = resource.sslv2url; updateresource.clientauth = resource.clientauth; updateresource.clientcert = resource.clientcert; updateresource.sslredirect = resource.sslredirect; updateresource.redirectportrewrite = resource.redirectportrewrite; updateresource.nonfipsciphers = resource.nonfipsciphers; updateresource.ssl2 = resource.ssl2; updateresource.ssl3 = resource.ssl3; updateresource.tls1 = resource.tls1; updateresource.tls11 = resource.tls11; updateresource.tls12 = resource.tls12; updateresource.snienable = resource.snienable; updateresource.pushenctrigger = resource.pushenctrigger; updateresource.sendclosenotify = resource.sendclosenotify; updateresource.dtlsprofilename = resource.dtlsprofilename; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, sslvserver resource) throws Exception { sslvserver updateresource = new sslvserver(); updateresource.vservername = resource.vservername; updateresource.cleartextport = resource.cleartextport; updateresource.dh = resource.dh; updateresource.dhfile = resource.dhfile; updateresource.dhcount = resource.dhcount; updateresource.ersa = resource.ersa; updateresource.ersacount = resource.ersacount; updateresource.sessreuse = resource.sessreuse; updateresource.sesstimeout = resource.sesstimeout; updateresource.cipherredirect = resource.cipherredirect; updateresource.cipherurl = resource.cipherurl; updateresource.sslv2redirect = resource.sslv2redirect; updateresource.sslv2url = resource.sslv2url; updateresource.clientauth = resource.clientauth; updateresource.clientcert = resource.clientcert; updateresource.sslredirect = resource.sslredirect; updateresource.redirectportrewrite = resource.redirectportrewrite; updateresource.nonfipsciphers = resource.nonfipsciphers; updateresource.ssl2 = resource.ssl2; updateresource.ssl3 = resource.ssl3; updateresource.tls1 = resource.tls1; updateresource.tls11 = resource.tls11; updateresource.tls12 = resource.tls12; updateresource.snienable = resource.snienable; updateresource.pushenctrigger = resource.pushenctrigger; updateresource.sendclosenotify = resource.sendclosenotify; updateresource.dtlsprofilename = resource.dtlsprofilename; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "sslvserver", "resource", ")", "throws", "Exception", "{", "sslvserver", "updateresource", "=", "new", "sslvserver", "(", ")", ";", "updateresource", ".", "vservername", "=", "resource", ".", "vservername", ";", "updateresource", ".", "cleartextport", "=", "resource", ".", "cleartextport", ";", "updateresource", ".", "dh", "=", "resource", ".", "dh", ";", "updateresource", ".", "dhfile", "=", "resource", ".", "dhfile", ";", "updateresource", ".", "dhcount", "=", "resource", ".", "dhcount", ";", "updateresource", ".", "ersa", "=", "resource", ".", "ersa", ";", "updateresource", ".", "ersacount", "=", "resource", ".", "ersacount", ";", "updateresource", ".", "sessreuse", "=", "resource", ".", "sessreuse", ";", "updateresource", ".", "sesstimeout", "=", "resource", ".", "sesstimeout", ";", "updateresource", ".", "cipherredirect", "=", "resource", ".", "cipherredirect", ";", "updateresource", ".", "cipherurl", "=", "resource", ".", "cipherurl", ";", "updateresource", ".", "sslv2redirect", "=", "resource", ".", "sslv2redirect", ";", "updateresource", ".", "sslv2url", "=", "resource", ".", "sslv2url", ";", "updateresource", ".", "clientauth", "=", "resource", ".", "clientauth", ";", "updateresource", ".", "clientcert", "=", "resource", ".", "clientcert", ";", "updateresource", ".", "sslredirect", "=", "resource", ".", "sslredirect", ";", "updateresource", ".", "redirectportrewrite", "=", "resource", ".", "redirectportrewrite", ";", "updateresource", ".", "nonfipsciphers", "=", "resource", ".", "nonfipsciphers", ";", "updateresource", ".", "ssl2", "=", "resource", ".", "ssl2", ";", "updateresource", ".", "ssl3", "=", "resource", ".", "ssl3", ";", "updateresource", ".", "tls1", "=", "resource", ".", "tls1", ";", "updateresource", ".", "tls11", "=", "resource", ".", "tls11", ";", "updateresource", ".", "tls12", "=", "resource", ".", "tls12", ";", "updateresource", ".", "snienable", "=", "resource", ".", "snienable", ";", "updateresource", ".", "pushenctrigger", "=", "resource", ".", "pushenctrigger", ";", "updateresource", ".", "sendclosenotify", "=", "resource", ".", "sendclosenotify", ";", "updateresource", ".", "dtlsprofilename", "=", "resource", ".", "dtlsprofilename", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update sslvserver.
[ "Use", "this", "API", "to", "update", "sslvserver", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java#L750-L780
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java
sslvserver.update
public static base_responses update(nitro_service client, sslvserver resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslvserver updateresources[] = new sslvserver[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new sslvserver(); updateresources[i].vservername = resources[i].vservername; updateresources[i].cleartextport = resources[i].cleartextport; updateresources[i].dh = resources[i].dh; updateresources[i].dhfile = resources[i].dhfile; updateresources[i].dhcount = resources[i].dhcount; updateresources[i].ersa = resources[i].ersa; updateresources[i].ersacount = resources[i].ersacount; updateresources[i].sessreuse = resources[i].sessreuse; updateresources[i].sesstimeout = resources[i].sesstimeout; updateresources[i].cipherredirect = resources[i].cipherredirect; updateresources[i].cipherurl = resources[i].cipherurl; updateresources[i].sslv2redirect = resources[i].sslv2redirect; updateresources[i].sslv2url = resources[i].sslv2url; updateresources[i].clientauth = resources[i].clientauth; updateresources[i].clientcert = resources[i].clientcert; updateresources[i].sslredirect = resources[i].sslredirect; updateresources[i].redirectportrewrite = resources[i].redirectportrewrite; updateresources[i].nonfipsciphers = resources[i].nonfipsciphers; updateresources[i].ssl2 = resources[i].ssl2; updateresources[i].ssl3 = resources[i].ssl3; updateresources[i].tls1 = resources[i].tls1; updateresources[i].tls11 = resources[i].tls11; updateresources[i].tls12 = resources[i].tls12; updateresources[i].snienable = resources[i].snienable; updateresources[i].pushenctrigger = resources[i].pushenctrigger; updateresources[i].sendclosenotify = resources[i].sendclosenotify; updateresources[i].dtlsprofilename = resources[i].dtlsprofilename; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_responses update(nitro_service client, sslvserver resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslvserver updateresources[] = new sslvserver[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new sslvserver(); updateresources[i].vservername = resources[i].vservername; updateresources[i].cleartextport = resources[i].cleartextport; updateresources[i].dh = resources[i].dh; updateresources[i].dhfile = resources[i].dhfile; updateresources[i].dhcount = resources[i].dhcount; updateresources[i].ersa = resources[i].ersa; updateresources[i].ersacount = resources[i].ersacount; updateresources[i].sessreuse = resources[i].sessreuse; updateresources[i].sesstimeout = resources[i].sesstimeout; updateresources[i].cipherredirect = resources[i].cipherredirect; updateresources[i].cipherurl = resources[i].cipherurl; updateresources[i].sslv2redirect = resources[i].sslv2redirect; updateresources[i].sslv2url = resources[i].sslv2url; updateresources[i].clientauth = resources[i].clientauth; updateresources[i].clientcert = resources[i].clientcert; updateresources[i].sslredirect = resources[i].sslredirect; updateresources[i].redirectportrewrite = resources[i].redirectportrewrite; updateresources[i].nonfipsciphers = resources[i].nonfipsciphers; updateresources[i].ssl2 = resources[i].ssl2; updateresources[i].ssl3 = resources[i].ssl3; updateresources[i].tls1 = resources[i].tls1; updateresources[i].tls11 = resources[i].tls11; updateresources[i].tls12 = resources[i].tls12; updateresources[i].snienable = resources[i].snienable; updateresources[i].pushenctrigger = resources[i].pushenctrigger; updateresources[i].sendclosenotify = resources[i].sendclosenotify; updateresources[i].dtlsprofilename = resources[i].dtlsprofilename; } result = update_bulk_request(client, updateresources); } return result; }
[ "public", "static", "base_responses", "update", "(", "nitro_service", "client", ",", "sslvserver", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "sslvserver", "updateresources", "[", "]", "=", "new", "sslvserver", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "updateresources", "[", "i", "]", "=", "new", "sslvserver", "(", ")", ";", "updateresources", "[", "i", "]", ".", "vservername", "=", "resources", "[", "i", "]", ".", "vservername", ";", "updateresources", "[", "i", "]", ".", "cleartextport", "=", "resources", "[", "i", "]", ".", "cleartextport", ";", "updateresources", "[", "i", "]", ".", "dh", "=", "resources", "[", "i", "]", ".", "dh", ";", "updateresources", "[", "i", "]", ".", "dhfile", "=", "resources", "[", "i", "]", ".", "dhfile", ";", "updateresources", "[", "i", "]", ".", "dhcount", "=", "resources", "[", "i", "]", ".", "dhcount", ";", "updateresources", "[", "i", "]", ".", "ersa", "=", "resources", "[", "i", "]", ".", "ersa", ";", "updateresources", "[", "i", "]", ".", "ersacount", "=", "resources", "[", "i", "]", ".", "ersacount", ";", "updateresources", "[", "i", "]", ".", "sessreuse", "=", "resources", "[", "i", "]", ".", "sessreuse", ";", "updateresources", "[", "i", "]", ".", "sesstimeout", "=", "resources", "[", "i", "]", ".", "sesstimeout", ";", "updateresources", "[", "i", "]", ".", "cipherredirect", "=", "resources", "[", "i", "]", ".", "cipherredirect", ";", "updateresources", "[", "i", "]", ".", "cipherurl", "=", "resources", "[", "i", "]", ".", "cipherurl", ";", "updateresources", "[", "i", "]", ".", "sslv2redirect", "=", "resources", "[", "i", "]", ".", "sslv2redirect", ";", "updateresources", "[", "i", "]", ".", "sslv2url", "=", "resources", "[", "i", "]", ".", "sslv2url", ";", "updateresources", "[", "i", "]", ".", "clientauth", "=", "resources", "[", "i", "]", ".", "clientauth", ";", "updateresources", "[", "i", "]", ".", "clientcert", "=", "resources", "[", "i", "]", ".", "clientcert", ";", "updateresources", "[", "i", "]", ".", "sslredirect", "=", "resources", "[", "i", "]", ".", "sslredirect", ";", "updateresources", "[", "i", "]", ".", "redirectportrewrite", "=", "resources", "[", "i", "]", ".", "redirectportrewrite", ";", "updateresources", "[", "i", "]", ".", "nonfipsciphers", "=", "resources", "[", "i", "]", ".", "nonfipsciphers", ";", "updateresources", "[", "i", "]", ".", "ssl2", "=", "resources", "[", "i", "]", ".", "ssl2", ";", "updateresources", "[", "i", "]", ".", "ssl3", "=", "resources", "[", "i", "]", ".", "ssl3", ";", "updateresources", "[", "i", "]", ".", "tls1", "=", "resources", "[", "i", "]", ".", "tls1", ";", "updateresources", "[", "i", "]", ".", "tls11", "=", "resources", "[", "i", "]", ".", "tls11", ";", "updateresources", "[", "i", "]", ".", "tls12", "=", "resources", "[", "i", "]", ".", "tls12", ";", "updateresources", "[", "i", "]", ".", "snienable", "=", "resources", "[", "i", "]", ".", "snienable", ";", "updateresources", "[", "i", "]", ".", "pushenctrigger", "=", "resources", "[", "i", "]", ".", "pushenctrigger", ";", "updateresources", "[", "i", "]", ".", "sendclosenotify", "=", "resources", "[", "i", "]", ".", "sendclosenotify", ";", "updateresources", "[", "i", "]", ".", "dtlsprofilename", "=", "resources", "[", "i", "]", ".", "dtlsprofilename", ";", "}", "result", "=", "update_bulk_request", "(", "client", ",", "updateresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to update sslvserver resources.
[ "Use", "this", "API", "to", "update", "sslvserver", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java#L785-L822
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java
sslvserver.unset
public static base_response unset(nitro_service client, sslvserver resource, String[] args) throws Exception{ sslvserver unsetresource = new sslvserver(); unsetresource.vservername = resource.vservername; return unsetresource.unset_resource(client,args); }
java
public static base_response unset(nitro_service client, sslvserver resource, String[] args) throws Exception{ sslvserver unsetresource = new sslvserver(); unsetresource.vservername = resource.vservername; return unsetresource.unset_resource(client,args); }
[ "public", "static", "base_response", "unset", "(", "nitro_service", "client", ",", "sslvserver", "resource", ",", "String", "[", "]", "args", ")", "throws", "Exception", "{", "sslvserver", "unsetresource", "=", "new", "sslvserver", "(", ")", ";", "unsetresource", ".", "vservername", "=", "resource", ".", "vservername", ";", "return", "unsetresource", ".", "unset_resource", "(", "client", ",", "args", ")", ";", "}" ]
Use this API to unset the properties of sslvserver resource. Properties that need to be unset are specified in args array.
[ "Use", "this", "API", "to", "unset", "the", "properties", "of", "sslvserver", "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/ssl/sslvserver.java#L828-L832
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java
sslvserver.unset
public static base_responses unset(nitro_service client, String vservername[], String args[]) throws Exception { base_responses result = null; if (vservername != null && vservername.length > 0) { sslvserver unsetresources[] = new sslvserver[vservername.length]; for (int i=0;i<vservername.length;i++){ unsetresources[i] = new sslvserver(); unsetresources[i].vservername = vservername[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
public static base_responses unset(nitro_service client, String vservername[], String args[]) throws Exception { base_responses result = null; if (vservername != null && vservername.length > 0) { sslvserver unsetresources[] = new sslvserver[vservername.length]; for (int i=0;i<vservername.length;i++){ unsetresources[i] = new sslvserver(); unsetresources[i].vservername = vservername[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
[ "public", "static", "base_responses", "unset", "(", "nitro_service", "client", ",", "String", "vservername", "[", "]", ",", "String", "args", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "vservername", "!=", "null", "&&", "vservername", ".", "length", ">", "0", ")", "{", "sslvserver", "unsetresources", "[", "]", "=", "new", "sslvserver", "[", "vservername", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "vservername", ".", "length", ";", "i", "++", ")", "{", "unsetresources", "[", "i", "]", "=", "new", "sslvserver", "(", ")", ";", "unsetresources", "[", "i", "]", ".", "vservername", "=", "vservername", "[", "i", "]", ";", "}", "result", "=", "unset_bulk_request", "(", "client", ",", "unsetresources", ",", "args", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to unset the properties of sslvserver resources. Properties that need to be unset are specified in args array.
[ "Use", "this", "API", "to", "unset", "the", "properties", "of", "sslvserver", "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/ssl/sslvserver.java#L838-L849
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java
sslvserver.get
public static sslvserver[] get(nitro_service service) throws Exception{ sslvserver obj = new sslvserver(); sslvserver[] response = (sslvserver[])obj.get_resources(service); return response; }
java
public static sslvserver[] get(nitro_service service) throws Exception{ sslvserver obj = new sslvserver(); sslvserver[] response = (sslvserver[])obj.get_resources(service); return response; }
[ "public", "static", "sslvserver", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "sslvserver", "obj", "=", "new", "sslvserver", "(", ")", ";", "sslvserver", "[", "]", "response", "=", "(", "sslvserver", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the sslvserver resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "sslvserver", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java#L871-L875
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java
sslvserver.get
public static sslvserver[] get(nitro_service service, sslvserver_args args) throws Exception{ sslvserver obj = new sslvserver(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); sslvserver[] response = (sslvserver[])obj.get_resources(service, option); return response; }
java
public static sslvserver[] get(nitro_service service, sslvserver_args args) throws Exception{ sslvserver obj = new sslvserver(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); sslvserver[] response = (sslvserver[])obj.get_resources(service, option); return response; }
[ "public", "static", "sslvserver", "[", "]", "get", "(", "nitro_service", "service", ",", "sslvserver_args", "args", ")", "throws", "Exception", "{", "sslvserver", "obj", "=", "new", "sslvserver", "(", ")", ";", "options", "option", "=", "new", "options", "(", ")", ";", "option", ".", "set_args", "(", "nitro_util", ".", "object_to_string_withoutquotes", "(", "args", ")", ")", ";", "sslvserver", "[", "]", "response", "=", "(", "sslvserver", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the sslvserver resources that are configured on netscaler. This uses sslvserver_args which is a way to provide additional arguments while fetching the resources.
[ "Use", "this", "API", "to", "fetch", "all", "the", "sslvserver", "resources", "that", "are", "configured", "on", "netscaler", ".", "This", "uses", "sslvserver_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/ssl/sslvserver.java#L888-L894
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java
sslvserver.get
public static sslvserver get(nitro_service service, String vservername) throws Exception{ sslvserver obj = new sslvserver(); obj.set_vservername(vservername); sslvserver response = (sslvserver) obj.get_resource(service); return response; }
java
public static sslvserver get(nitro_service service, String vservername) throws Exception{ sslvserver obj = new sslvserver(); obj.set_vservername(vservername); sslvserver response = (sslvserver) obj.get_resource(service); return response; }
[ "public", "static", "sslvserver", "get", "(", "nitro_service", "service", ",", "String", "vservername", ")", "throws", "Exception", "{", "sslvserver", "obj", "=", "new", "sslvserver", "(", ")", ";", "obj", ".", "set_vservername", "(", "vservername", ")", ";", "sslvserver", "response", "=", "(", "sslvserver", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch sslvserver resource of given name .
[ "Use", "this", "API", "to", "fetch", "sslvserver", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java#L899-L904
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver.java
sslvserver.get_filtered
public static sslvserver[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ sslvserver obj = new sslvserver(); options option = new options(); option.set_filter(filter); sslvserver[] response = (sslvserver[]) obj.getfiltered(service, option); return response; }
java
public static sslvserver[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ sslvserver obj = new sslvserver(); options option = new options(); option.set_filter(filter); sslvserver[] response = (sslvserver[]) obj.getfiltered(service, option); return response; }
[ "public", "static", "sslvserver", "[", "]", "get_filtered", "(", "nitro_service", "service", ",", "filtervalue", "[", "]", "filter", ")", "throws", "Exception", "{", "sslvserver", "obj", "=", "new", "sslvserver", "(", ")", ";", "options", "option", "=", "new", "options", "(", ")", ";", "option", ".", "set_filter", "(", "filter", ")", ";", "sslvserver", "[", "]", "response", "=", "(", "sslvserver", "[", "]", ")", "obj", ".", "getfiltered", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch filtered set of sslvserver resources. set the filter parameter values in filtervalue object.
[ "Use", "this", "API", "to", "fetch", "filtered", "set", "of", "sslvserver", "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/ssl/sslvserver.java#L938-L944
train