idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
2,500
public static base_response Import ( nitro_service client , responderhtmlpage resource ) throws Exception { responderhtmlpage Importresource = new responderhtmlpage ( ) ; Importresource . src = resource . src ; Importresource . name = resource . name ; Importresource . comment = resource . comment ; Importresource . ov...
Use this API to Import responderhtmlpage .
2,501
public static base_response change ( nitro_service client , responderhtmlpage resource ) throws Exception { responderhtmlpage updateresource = new responderhtmlpage ( ) ; updateresource . name = resource . name ; return updateresource . perform_operation ( client , "update" ) ; }
Use this API to change responderhtmlpage .
2,502
public static responderhtmlpage get ( nitro_service service ) throws Exception { responderhtmlpage obj = new responderhtmlpage ( ) ; responderhtmlpage [ ] response = ( responderhtmlpage [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the responderhtmlpage resources that are configured on netscaler .
2,503
public static responderhtmlpage get ( nitro_service service , String name ) throws Exception { responderhtmlpage obj = new responderhtmlpage ( ) ; obj . set_name ( name ) ; responderhtmlpage response = ( responderhtmlpage ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch responderhtmlpage resource of given name .
2,504
private double goldenMean ( double a , double b ) { if ( geometric ) { return a * Math . pow ( b / a , GOLDEN_SECTION ) ; } else { return a + ( b - a ) * GOLDEN_SECTION ; } }
The point that is the GOLDEN_SECTION along the way from a to b . a may be less or greater than b you find the point 60 - odd percent of the way from a to b .
2,505
public int getNumWeights ( ) { if ( weights == null ) return 0 ; int numWeights = 0 ; for ( double [ ] wts : weights ) { numWeights += wts . length ; } return numWeights ; }
Returns the total number of weights associated with this classifier .
2,506
public void scaleWeights ( double scale ) { for ( int i = 0 ; i < weights . length ; i ++ ) { for ( int j = 0 ; j < weights [ i ] . length ; j ++ ) { weights [ i ] [ j ] *= scale ; } } }
Scales the weights of this crfclassifier by the specified weight
2,507
public void combine ( CRFClassifier < IN > crf , double weight ) { Timing timer = new Timing ( ) ; if ( ! this . pad . equals ( crf . pad ) ) { throw new RuntimeException ( "Incompatible CRFClassifier: pad does not match" ) ; } if ( this . windowSize != crf . windowSize ) { throw new RuntimeException ( "Incompatible CR...
Combines weighted crf with this crf
2,508
public Pair < int [ ] [ ] [ ] , int [ ] > documentToDataAndLabels ( List < IN > document ) { int docSize = document . size ( ) ; int [ ] [ ] [ ] data = new int [ docSize ] [ windowSize ] [ ] ; int [ ] labels = new int [ docSize ] ; if ( flags . useReverse ) { Collections . reverse ( document ) ; } for ( int j = 0 ; j <...
Convert a document List into arrays storing the data features and labels .
2,509
public Pair < int [ ] [ ] [ ] [ ] , int [ ] [ ] > documentsToDataAndLabels ( Collection < List < IN > > documents ) { List < int [ ] [ ] [ ] > data = new ArrayList < int [ ] [ ] [ ] > ( ) ; List < int [ ] > labels = new ArrayList < int [ ] > ( ) ; int numDatums = 0 ; for ( List < IN > doc : documents ) { Pair < int [ ]...
Convert an ObjectBank to arrays of data features and labels .
2,510
public List < Pair < int [ ] [ ] [ ] , int [ ] > > documentsToDataAndLabelsList ( Collection < List < IN > > documents ) { int numDatums = 0 ; List < Pair < int [ ] [ ] [ ] , int [ ] > > docList = new ArrayList < Pair < int [ ] [ ] [ ] , int [ ] > > ( ) ; for ( List < IN > doc : documents ) { Pair < int [ ] [ ] [ ] , i...
Convert an ObjectBank to corresponding collection of data features and labels .
2,511
public CRFDatum < List < String > , CRFLabel > makeDatum ( List < IN > info , int loc , edu . stanford . nlp . sequences . FeatureFactory < IN > featureFactory ) { pad . set ( AnswerAnnotation . class , flags . backgroundSymbol ) ; PaddedList < IN > pInfo = new PaddedList < IN > ( info , pad ) ; ArrayList < List < Stri...
Makes a CRFDatum by producing features and a label from input data at a specific position using the provided factory .
2,512
public List < CRFCliqueTree > getCliqueTrees ( String filename , DocumentReaderAndWriter < IN > readerAndWriter ) { flags . ocrTrain = false ; List < CRFCliqueTree > cts = new ArrayList < CRFCliqueTree > ( ) ; ObjectBank < List < IN > > docs = makeObjectBankFromFile ( filename , readerAndWriter ) ; for ( List < IN > do...
Want to make arbitrary probability queries? Then this is the method for you . Given the filename it reads it in and breaks it into documents and then makes a CRFCliqueTree for each document . you can then ask the clique tree for marginals and conditional probabilities of almost anything you want .
2,513
protected List < CRFDatum > extractDatumSequence ( int [ ] [ ] [ ] allData , int beginPosition , int endPosition , List < IN > labeledWordInfos ) { List < CRFDatum > result = new ArrayList < CRFDatum > ( ) ; int beginContext = beginPosition - windowSize + 1 ; if ( beginContext < 0 ) { beginContext = 0 ; } for ( int pos...
Creates a new CRFDatum from the preprocessed allData format given the document number position number and a List of Object labels .
2,514
protected void addProcessedData ( List < List < CRFDatum < Collection < String > , String > > > processedData , int [ ] [ ] [ ] [ ] data , int [ ] [ ] labels , int offset ) { for ( int i = 0 , pdSize = processedData . size ( ) ; i < pdSize ; i ++ ) { int dataIndex = i + offset ; List < CRFDatum < Collection < String > ...
Adds the List of Lists of CRFDatums to the data and labels arrays treating each datum as if it were its own document . Adds context labels in addition to the target label for each datum meaning that for a particular document the number of labels will be windowSize - 1 greater than the number of datums .
2,515
public static < IN extends CoreMap > CRFClassifier < IN > getJarClassifier ( String resourceName , Properties props ) { CRFClassifier < IN > crf = new CRFClassifier < IN > ( ) ; crf . loadJarClassifier ( resourceName , props ) ; return crf ; }
Used to load a classifier stored as a resource inside a jar file . THIS FUNCTION WILL ONLY WORK IF THE CODE WAS LOADED FROM A JAR FILE WHICH HAS A SERIALIZED CLASSIFIER STORED INSIDE IT .
2,516
public static < IN extends CoreMap > CRFClassifier < IN > getClassifier ( File file ) throws IOException , ClassCastException , ClassNotFoundException { CRFClassifier < IN > crf = new CRFClassifier < IN > ( ) ; crf . loadClassifier ( file ) ; return crf ; }
Loads a CRF classifier from a filepath and returns it .
2,517
public static CRFClassifier getClassifier ( InputStream in ) throws IOException , ClassCastException , ClassNotFoundException { CRFClassifier crf = new CRFClassifier ( ) ; crf . loadClassifier ( in ) ; return crf ; }
Loads a CRF classifier from an InputStream and returns it . This method does not buffer the InputStream so you should have buffered it before calling this method .
2,518
public static void main ( String [ ] args ) throws Exception { StringUtils . printErrInvocationString ( "CRFClassifier" , args ) ; Properties props = StringUtils . argsToProperties ( args ) ; CRFClassifier < CoreLabel > crf = new CRFClassifier < CoreLabel > ( props ) ; String testFile = crf . flags . testFile ; String ...
The main method . See the class documentation .
2,519
public static appfwglobal_auditsyslogpolicy_binding [ ] get ( nitro_service service ) throws Exception { appfwglobal_auditsyslogpolicy_binding obj = new appfwglobal_auditsyslogpolicy_binding ( ) ; appfwglobal_auditsyslogpolicy_binding response [ ] = ( appfwglobal_auditsyslogpolicy_binding [ ] ) obj . get_resources ( se...
Use this API to fetch a appfwglobal_auditsyslogpolicy_binding resources .
2,520
public static csvserver_cmppolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { csvserver_cmppolicy_binding obj = new csvserver_cmppolicy_binding ( ) ; obj . set_name ( name ) ; csvserver_cmppolicy_binding response [ ] = ( csvserver_cmppolicy_binding [ ] ) obj . get_resources ( service ) ; ...
Use this API to fetch csvserver_cmppolicy_binding resources of given name .
2,521
public static ipset_nsip_binding [ ] get ( nitro_service service , String name ) throws Exception { ipset_nsip_binding obj = new ipset_nsip_binding ( ) ; obj . set_name ( name ) ; ipset_nsip_binding response [ ] = ( ipset_nsip_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch ipset_nsip_binding resources of given name .
2,522
public static base_response delete ( nitro_service client , appfwlearningdata resource ) throws Exception { appfwlearningdata deleteresource = new appfwlearningdata ( ) ; deleteresource . profilename = resource . profilename ; deleteresource . starturl = resource . starturl ; deleteresource . cookieconsistency = resour...
Use this API to delete appfwlearningdata .
2,523
public static base_responses delete ( nitro_service client , appfwlearningdata resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { appfwlearningdata deleteresources [ ] = new appfwlearningdata [ resources . length ] ; for ( int i = 0 ; i < resources . l...
Use this API to delete appfwlearningdata resources .
2,524
public static base_response reset ( nitro_service client ) throws Exception { appfwlearningdata resetresource = new appfwlearningdata ( ) ; return resetresource . perform_operation ( client , "reset" ) ; }
Use this API to reset appfwlearningdata .
2,525
public static base_responses reset ( nitro_service client , appfwlearningdata resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { appfwlearningdata resetresources [ ] = new appfwlearningdata [ resources . length ] ; for ( int i = 0 ; i < resources . len...
Use this API to reset appfwlearningdata resources .
2,526
public static base_response export ( nitro_service client , appfwlearningdata resource ) throws Exception { appfwlearningdata exportresource = new appfwlearningdata ( ) ; exportresource . profilename = resource . profilename ; exportresource . securitycheck = resource . securitycheck ; exportresource . target = resourc...
Use this API to export appfwlearningdata .
2,527
public static base_responses export ( nitro_service client , appfwlearningdata resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { appfwlearningdata exportresources [ ] = new appfwlearningdata [ resources . length ] ; for ( int i = 0 ; i < resources . l...
Use this API to export appfwlearningdata resources .
2,528
public static appfwlearningdata [ ] get ( nitro_service service , appfwlearningdata_args args ) throws Exception { appfwlearningdata obj = new appfwlearningdata ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; appfwlearningdata [ ] response = ( appfwl...
Use this API to fetch all the appfwlearningdata resources that are configured on netscaler . This uses appfwlearningdata_args which is a way to provide additional arguments while fetching the resources .
2,529
public static appfwprofile_safeobject_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_safeobject_binding obj = new appfwprofile_safeobject_binding ( ) ; obj . set_name ( name ) ; appfwprofile_safeobject_binding response [ ] = ( appfwprofile_safeobject_binding [ ] ) obj . get_reso...
Use this API to fetch appfwprofile_safeobject_binding resources of given name .
2,530
public static tmsessionpolicy_binding get ( nitro_service service , String name ) throws Exception { tmsessionpolicy_binding obj = new tmsessionpolicy_binding ( ) ; obj . set_name ( name ) ; tmsessionpolicy_binding response = ( tmsessionpolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch tmsessionpolicy_binding resource of given name .
2,531
public static vpnvserver_auditnslogpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_auditnslogpolicy_binding obj = new vpnvserver_auditnslogpolicy_binding ( ) ; obj . set_name ( name ) ; vpnvserver_auditnslogpolicy_binding response [ ] = ( vpnvserver_auditnslogpolicy_binding ...
Use this API to fetch vpnvserver_auditnslogpolicy_binding resources of given name .
2,532
private void calculateSCL ( double [ ] x ) { value = 0.0 ; Arrays . fill ( derivative , 0.0 ) ; double [ ] sums = new double [ numClasses ] ; double [ ] probs = new double [ numClasses ] ; double [ ] counts = new double [ numClasses ] ; Arrays . fill ( counts , 0.0 ) ; for ( int d = 0 ; d < data . length ; d ++ ) { int...
Calculate the summed conditional likelihood of this data by summing conditional estimates .
2,533
public static vrid6 [ ] get ( nitro_service service ) throws Exception { vrid6 obj = new vrid6 ( ) ; vrid6 [ ] response = ( vrid6 [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the vrid6 resources that are configured on netscaler .
2,534
public static vrid6 get ( nitro_service service , Long id ) throws Exception { vrid6 obj = new vrid6 ( ) ; obj . set_id ( id ) ; vrid6 response = ( vrid6 ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch vrid6 resource of given name .
2,535
private static Iterator < String > splitIntoDocs ( Reader r ) { if ( TREAT_FILE_AS_ONE_DOCUMENT ) { return Collections . singleton ( IOUtils . slurpReader ( r ) ) . iterator ( ) ; } else { Collection < String > docs = new ArrayList < String > ( ) ; ObjectBank < String > ob = ObjectBank . getLineIterator ( r ) ; StringB...
end class CoNLLIterator
2,536
private CoreLabel makeCoreLabel ( String line ) { CoreLabel wi = new CoreLabel ( ) ; String [ ] bits = line . split ( "\\s+" ) ; switch ( bits . length ) { case 0 : case 1 : wi . setWord ( BOUNDARY ) ; wi . set ( AnswerAnnotation . class , OTHER ) ; break ; case 2 : wi . setWord ( bits [ 0 ] ) ; wi . set ( AnswerAnnota...
This deals with the CoNLL files for different languages which have between 2 and 5 columns on non - blank lines .
2,537
private void deEndify ( List < CoreLabel > tokens ) { if ( flags . retainEntitySubclassification ) { return ; } tokens = new PaddedList < CoreLabel > ( tokens , new CoreLabel ( ) ) ; int k = tokens . size ( ) ; String [ ] newAnswers = new String [ k ] ; for ( int i = 0 ; i < k ; i ++ ) { CoreLabel c = tokens . get ( i ...
Return the coding scheme to IOB1 coding regardless of what was used internally . This is useful for scoring against CoNLL test output .
2,538
public void printAnswers ( List < CoreLabel > doc , PrintWriter out ) { if ( ! "iob1" . equalsIgnoreCase ( flags . entitySubclassification ) ) { deEndify ( doc ) ; } for ( CoreLabel fl : doc ) { String word = fl . word ( ) ; if ( word == BOUNDARY ) { out . println ( ) ; } else { String gold = fl . get ( OriginalAnswerA...
Write a standard CoNLL format output file .
2,539
public static void main ( String [ ] args ) throws IOException , ClassNotFoundException { CoNLLDocumentReaderAndWriter f = new CoNLLDocumentReaderAndWriter ( ) ; f . init ( new SeqClassifierFlags ( ) ) ; int numDocs = 0 ; int numTokens = 0 ; int numEntities = 0 ; String lastAnsBase = "" ; for ( Iterator < List < CoreLa...
Count some stats on what occurs in a file .
2,540
protected void getBatch ( int batchSize ) { if ( thisBatch == null || thisBatch . length != batchSize ) { thisBatch = new int [ batchSize ] ; } if ( sampleMethod . equals ( SamplingMethod . RandomWithReplacement ) ) { for ( int i = 0 ; i < batchSize ; i ++ ) { thisBatch [ i ] = randGenerator . nextInt ( this . dataDime...
private int numCalls = 0 ;
2,541
public static server_service_binding [ ] get ( nitro_service service , String name ) throws Exception { server_service_binding obj = new server_service_binding ( ) ; obj . set_name ( name ) ; server_service_binding response [ ] = ( server_service_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch server_service_binding resources of given name .
2,542
@ SuppressWarnings ( "rawtypes" ) public void setReplicationClassLoader ( Fqn regionFqn , ClassLoader classLoader ) { if ( ! isLocalMode ( ) ) { final Region region = jBossCache . getRegion ( regionFqn , true ) ; region . registerContextClassLoader ( classLoader ) ; if ( ! region . isActive ( ) && jBossCache . getCache...
Sets the class loader to be used on serialization operations for data stored in the specified fqn and child nodes . Note that if another class loader is set for a specific child node tree the cache will use instead that class loader .
2,543
@ SuppressWarnings ( "rawtypes" ) public void unsetReplicationClassLoader ( Fqn regionFqn , ClassLoader classLoader ) { if ( ! isLocalMode ( ) ) { final Region region = jBossCache . getRegion ( regionFqn , true ) ; if ( region != null ) { if ( region . isActive ( ) ) { region . deactivate ( ) ; } region . unregisterCon...
Unsets the class loader to be used on serialization operations for data stored in the specified fqn and child nodes .
2,544
public static systemglobal_authenticationradiuspolicy_binding [ ] get ( nitro_service service ) throws Exception { systemglobal_authenticationradiuspolicy_binding obj = new systemglobal_authenticationradiuspolicy_binding ( ) ; systemglobal_authenticationradiuspolicy_binding response [ ] = ( systemglobal_authenticationr...
Use this API to fetch a systemglobal_authenticationradiuspolicy_binding resources .
2,545
public static auditsyslogpolicy_authenticationvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { auditsyslogpolicy_authenticationvserver_binding obj = new auditsyslogpolicy_authenticationvserver_binding ( ) ; obj . set_name ( name ) ; auditsyslogpolicy_authenticationvserver_binding respo...
Use this API to fetch auditsyslogpolicy_authenticationvserver_binding resources of given name .
2,546
public static lbgroup_lbvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { lbgroup_lbvserver_binding obj = new lbgroup_lbvserver_binding ( ) ; obj . set_name ( name ) ; lbgroup_lbvserver_binding response [ ] = ( lbgroup_lbvserver_binding [ ] ) obj . get_resources ( service ) ; return res...
Use this API to fetch lbgroup_lbvserver_binding resources of given name .
2,547
public static base_response add ( nitro_service client , nspbr resource ) throws Exception { nspbr addresource = new nspbr ( ) ; addresource . name = resource . name ; addresource . action = resource . action ; addresource . td = resource . td ; addresource . srcip = resource . srcip ; addresource . srcipop = resource ...
Use this API to add nspbr .
2,548
public static base_responses add ( nitro_service client , nspbr resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nspbr addresources [ ] = new nspbr [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new ...
Use this API to add nspbr resources .
2,549
public static base_response update ( nitro_service client , nspbr resource ) throws Exception { nspbr updateresource = new nspbr ( ) ; updateresource . name = resource . name ; updateresource . action = resource . action ; updateresource . srcip = resource . srcip ; updateresource . srcipop = resource . srcipop ; updat...
Use this API to update nspbr .
2,550
public static base_responses update ( nitro_service client , nspbr resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nspbr updateresources [ ] = new nspbr [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i...
Use this API to update nspbr resources .
2,551
public static base_response enable ( nitro_service client , nspbr resource ) throws Exception { nspbr enableresource = new nspbr ( ) ; enableresource . name = resource . name ; return enableresource . perform_operation ( client , "enable" ) ; }
Use this API to enable nspbr .
2,552
public static base_responses enable ( nitro_service client , nspbr resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nspbr enableresources [ ] = new nspbr [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { enableresources [ i...
Use this API to enable nspbr resources .
2,553
public static nspbr [ ] get ( nitro_service service ) throws Exception { nspbr obj = new nspbr ( ) ; nspbr [ ] response = ( nspbr [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the nspbr resources that are configured on netscaler .
2,554
public static nspbr [ ] get ( nitro_service service , nspbr_args args ) throws Exception { nspbr obj = new nspbr ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; nspbr [ ] response = ( nspbr [ ] ) obj . get_resources ( service , option ) ; return resp...
Use this API to fetch all the nspbr resources that are configured on netscaler . This uses nspbr_args which is a way to provide additional arguments while fetching the resources .
2,555
public static nspbr get ( nitro_service service , String name ) throws Exception { nspbr obj = new nspbr ( ) ; obj . set_name ( name ) ; nspbr response = ( nspbr ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch nspbr resource of given name .
2,556
public static vpnglobal_vpnintranetapplication_binding [ ] get ( nitro_service service ) throws Exception { vpnglobal_vpnintranetapplication_binding obj = new vpnglobal_vpnintranetapplication_binding ( ) ; vpnglobal_vpnintranetapplication_binding response [ ] = ( vpnglobal_vpnintranetapplication_binding [ ] ) obj . get...
Use this API to fetch a vpnglobal_vpnintranetapplication_binding resources .
2,557
public static aaauser_authorizationpolicy_binding [ ] get ( nitro_service service , String username ) throws Exception { aaauser_authorizationpolicy_binding obj = new aaauser_authorizationpolicy_binding ( ) ; obj . set_username ( username ) ; aaauser_authorizationpolicy_binding response [ ] = ( aaauser_authorizationpol...
Use this API to fetch aaauser_authorizationpolicy_binding resources of given name .
2,558
public static base_response clear ( nitro_service client , rnat resource ) throws Exception { rnat clearresource = new rnat ( ) ; clearresource . network = resource . network ; clearresource . netmask = resource . netmask ; clearresource . aclname = resource . aclname ; clearresource . redirectport = resource . redirec...
Use this API to clear rnat .
2,559
public static base_responses clear ( nitro_service client , rnat resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { rnat clearresources [ ] = new rnat [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { clearresources [ i ] = n...
Use this API to clear rnat resources .
2,560
public static base_response update ( nitro_service client , rnat resource ) throws Exception { rnat updateresource = new rnat ( ) ; updateresource . network = resource . network ; updateresource . netmask = resource . netmask ; updateresource . natip = resource . natip ; updateresource . td = resource . td ; updatereso...
Use this API to update rnat .
2,561
public static base_responses update ( nitro_service client , rnat resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { rnat updateresources [ ] = new rnat [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] ...
Use this API to update rnat resources .
2,562
public static base_response unset ( nitro_service client , rnat resource , String [ ] args ) throws Exception { rnat unsetresource = new rnat ( ) ; unsetresource . network = resource . network ; unsetresource . netmask = resource . netmask ; unsetresource . td = resource . td ; unsetresource . aclname = resource . acln...
Use this API to unset the properties of rnat resource . Properties that need to be unset are specified in args array .
2,563
public static base_responses unset ( nitro_service client , rnat resources [ ] , String [ ] args ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { rnat unsetresources [ ] = new rnat [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { unsetr...
Use this API to unset the properties of rnat resources . Properties that need to be unset are specified in args array .
2,564
public static rnat [ ] get ( nitro_service service , options option ) throws Exception { rnat obj = new rnat ( ) ; rnat [ ] response = ( rnat [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the rnat resources that are configured on netscaler .
2,565
public static authorizationpolicy_binding get ( nitro_service service , String name ) throws Exception { authorizationpolicy_binding obj = new authorizationpolicy_binding ( ) ; obj . set_name ( name ) ; authorizationpolicy_binding response = ( authorizationpolicy_binding ) obj . get_resource ( service ) ; return respon...
Use this API to fetch authorizationpolicy_binding resource of given name .
2,566
public static cachepolicy_cachepolicylabel_binding [ ] get ( nitro_service service , String policyname ) throws Exception { cachepolicy_cachepolicylabel_binding obj = new cachepolicy_cachepolicylabel_binding ( ) ; obj . set_policyname ( policyname ) ; cachepolicy_cachepolicylabel_binding response [ ] = ( cachepolicy_ca...
Use this API to fetch cachepolicy_cachepolicylabel_binding resources of given name .
2,567
public static authenticationtacacspolicy_vpnvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationtacacspolicy_vpnvserver_binding obj = new authenticationtacacspolicy_vpnvserver_binding ( ) ; obj . set_name ( name ) ; authenticationtacacspolicy_vpnvserver_binding response [ ] ...
Use this API to fetch authenticationtacacspolicy_vpnvserver_binding resources of given name .
2,568
public static gslbsite_binding get ( nitro_service service , String sitename ) throws Exception { gslbsite_binding obj = new gslbsite_binding ( ) ; obj . set_sitename ( sitename ) ; gslbsite_binding response = ( gslbsite_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch gslbsite_binding resource of given name .
2,569
public static base_response Install ( nitro_service client , wipackage resource ) throws Exception { wipackage Installresource = new wipackage ( ) ; Installresource . jre = resource . jre ; Installresource . wi = resource . wi ; Installresource . maxsites = resource . maxsites ; return Installresource . perform_operati...
Use this API to Install wipackage .
2,570
public static vrid6_interface_binding [ ] get ( nitro_service service , Long id ) throws Exception { vrid6_interface_binding obj = new vrid6_interface_binding ( ) ; obj . set_id ( id ) ; vrid6_interface_binding response [ ] = ( vrid6_interface_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch vrid6_interface_binding resources of given name .
2,571
public static dnspolicy64 [ ] get ( nitro_service service ) throws Exception { dnspolicy64 obj = new dnspolicy64 ( ) ; dnspolicy64 [ ] response = ( dnspolicy64 [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the dnspolicy64 resources that are configured on netscaler .
2,572
public static dnspolicy64 get ( nitro_service service , String name ) throws Exception { dnspolicy64 obj = new dnspolicy64 ( ) ; obj . set_name ( name ) ; dnspolicy64 response = ( dnspolicy64 ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch dnspolicy64 resource of given name .
2,573
public static dnspolicy64 [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { dnspolicy64 obj = new dnspolicy64 ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; dnspolicy64 [ ] response = ( dnspolicy64 [ ] ) obj . getfiltered ( service , option ) ; return resp...
Use this API to fetch filtered set of dnspolicy64 resources . set the filter parameter values in filtervalue object .
2,574
public static vpnvserver_intranetip_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_intranetip_binding obj = new vpnvserver_intranetip_binding ( ) ; obj . set_name ( name ) ; vpnvserver_intranetip_binding response [ ] = ( vpnvserver_intranetip_binding [ ] ) obj . get_resources ( se...
Use this API to fetch vpnvserver_intranetip_binding resources of given name .
2,575
public static vpnglobal_authenticationcertpolicy_binding [ ] get ( nitro_service service ) throws Exception { vpnglobal_authenticationcertpolicy_binding obj = new vpnglobal_authenticationcertpolicy_binding ( ) ; vpnglobal_authenticationcertpolicy_binding response [ ] = ( vpnglobal_authenticationcertpolicy_binding [ ] )...
Use this API to fetch a vpnglobal_authenticationcertpolicy_binding resources .
2,576
public static netbridge_binding get ( nitro_service service , String name ) throws Exception { netbridge_binding obj = new netbridge_binding ( ) ; obj . set_name ( name ) ; netbridge_binding response = ( netbridge_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch netbridge_binding resource of given name .
2,577
public static appqoepolicy_stats [ ] get ( nitro_service service ) throws Exception { appqoepolicy_stats obj = new appqoepolicy_stats ( ) ; appqoepolicy_stats [ ] response = ( appqoepolicy_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all appqoepolicy_stats resources that are configured on netscaler .
2,578
public static appqoepolicy_stats get ( nitro_service service , String name ) throws Exception { appqoepolicy_stats obj = new appqoepolicy_stats ( ) ; obj . set_name ( name ) ; appqoepolicy_stats response = ( appqoepolicy_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of appqoepolicy_stats resource of given name .
2,579
public static nstrace get ( nitro_service service ) throws Exception { nstrace obj = new nstrace ( ) ; nstrace [ ] response = ( nstrace [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the nstrace resources that are configured on netscaler .
2,580
public static base_response release ( nitro_service client ) throws Exception { nsdhcpip releaseresource = new nsdhcpip ( ) ; return releaseresource . perform_operation ( client , "release" ) ; }
Use this API to release nsdhcpip .
2,581
public static cachepolicy_stats [ ] get ( nitro_service service ) throws Exception { cachepolicy_stats obj = new cachepolicy_stats ( ) ; cachepolicy_stats [ ] response = ( cachepolicy_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all cachepolicy_stats resources that are configured on netscaler .
2,582
public static cachepolicy_stats get ( nitro_service service , String policyname ) throws Exception { cachepolicy_stats obj = new cachepolicy_stats ( ) ; obj . set_policyname ( policyname ) ; cachepolicy_stats response = ( cachepolicy_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of cachepolicy_stats resource of given name .
2,583
public static gslbsite_gslbservice_binding [ ] get ( nitro_service service , String sitename ) throws Exception { gslbsite_gslbservice_binding obj = new gslbsite_gslbservice_binding ( ) ; obj . set_sitename ( sitename ) ; gslbsite_gslbservice_binding response [ ] = ( gslbsite_gslbservice_binding [ ] ) obj . get_resourc...
Use this API to fetch gslbsite_gslbservice_binding resources of given name .
2,584
public static gslbsite_gslbservice_binding [ ] get_filtered ( nitro_service service , String sitename , filtervalue [ ] filter ) throws Exception { gslbsite_gslbservice_binding obj = new gslbsite_gslbservice_binding ( ) ; obj . set_sitename ( sitename ) ; options option = new options ( ) ; option . set_filter ( filter ...
Use this API to fetch filtered set of gslbsite_gslbservice_binding resources . set the filter parameter values in filtervalue object .
2,585
public static long count ( nitro_service service , String sitename ) throws Exception { gslbsite_gslbservice_binding obj = new gslbsite_gslbservice_binding ( ) ; obj . set_sitename ( sitename ) ; options option = new options ( ) ; option . set_count ( true ) ; gslbsite_gslbservice_binding response [ ] = ( gslbsite_gslb...
Use this API to count gslbsite_gslbservice_binding resources configued on NetScaler .
2,586
public static gslbsite_stats [ ] get ( nitro_service service , options option ) throws Exception { gslbsite_stats obj = new gslbsite_stats ( ) ; gslbsite_stats [ ] response = ( gslbsite_stats [ ] ) obj . stat_resources ( service , option ) ; return response ; }
Use this API to fetch the statistics of all gslbsite_stats resources that are configured on netscaler .
2,587
public static gslbsite_stats get ( nitro_service service , String sitename ) throws Exception { gslbsite_stats obj = new gslbsite_stats ( ) ; obj . set_sitename ( sitename ) ; gslbsite_stats response = ( gslbsite_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of gslbsite_stats resource of given name .
2,588
public static base_response add ( nitro_service client , dnsaddrec resource ) throws Exception { dnsaddrec addresource = new dnsaddrec ( ) ; addresource . hostname = resource . hostname ; addresource . ipaddress = resource . ipaddress ; addresource . ttl = resource . ttl ; return addresource . add_resource ( client ) ;...
Use this API to add dnsaddrec .
2,589
public static base_responses add ( nitro_service client , dnsaddrec resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnsaddrec addresources [ ] = new dnsaddrec [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources ...
Use this API to add dnsaddrec resources .
2,590
public static base_response delete ( nitro_service client , String hostname ) throws Exception { dnsaddrec deleteresource = new dnsaddrec ( ) ; deleteresource . hostname = hostname ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete dnsaddrec of given name .
2,591
public static base_response delete ( nitro_service client , dnsaddrec resource ) throws Exception { dnsaddrec deleteresource = new dnsaddrec ( ) ; deleteresource . hostname = resource . hostname ; deleteresource . ipaddress = resource . ipaddress ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete dnsaddrec .
2,592
public static base_responses delete ( nitro_service client , dnsaddrec resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnsaddrec deleteresources [ ] = new dnsaddrec [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { deleter...
Use this API to delete dnsaddrec resources .
2,593
public static dnsaddrec [ ] get ( nitro_service service ) throws Exception { dnsaddrec obj = new dnsaddrec ( ) ; dnsaddrec [ ] response = ( dnsaddrec [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the dnsaddrec resources that are configured on netscaler .
2,594
public static dnsaddrec [ ] get ( nitro_service service , dnsaddrec_args args ) throws Exception { dnsaddrec obj = new dnsaddrec ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; dnsaddrec [ ] response = ( dnsaddrec [ ] ) obj . get_resources ( service ...
Use this API to fetch all the dnsaddrec resources that are configured on netscaler . This uses dnsaddrec_args which is a way to provide additional arguments while fetching the resources .
2,595
public static dnsaddrec get ( nitro_service service , String hostname ) throws Exception { dnsaddrec obj = new dnsaddrec ( ) ; obj . set_hostname ( hostname ) ; dnsaddrec response = ( dnsaddrec ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch dnsaddrec resource of given name .
2,596
public static authorizationpolicy_aaauser_binding [ ] get ( nitro_service service , String name ) throws Exception { authorizationpolicy_aaauser_binding obj = new authorizationpolicy_aaauser_binding ( ) ; obj . set_name ( name ) ; authorizationpolicy_aaauser_binding response [ ] = ( authorizationpolicy_aaauser_binding ...
Use this API to fetch authorizationpolicy_aaauser_binding resources of given name .
2,597
public static base_response add ( nitro_service client , nsxmlnamespace resource ) throws Exception { nsxmlnamespace addresource = new nsxmlnamespace ( ) ; addresource . prefix = resource . prefix ; addresource . Namespace = resource . Namespace ; return addresource . add_resource ( client ) ; }
Use this API to add nsxmlnamespace .
2,598
public static base_responses add ( nitro_service client , nsxmlnamespace resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nsxmlnamespace addresources [ ] = new nsxmlnamespace [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) ...
Use this API to add nsxmlnamespace resources .
2,599
public static base_response delete ( nitro_service client , String prefix ) throws Exception { nsxmlnamespace deleteresource = new nsxmlnamespace ( ) ; deleteresource . prefix = prefix ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete nsxmlnamespace of given name .