idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
2,400
public static base_response enable ( nitro_service client , String acl6name ) throws Exception { nsacl6 enableresource = new nsacl6 ( ) ; enableresource . acl6name = acl6name ; return enableresource . perform_operation ( client , "enable" ) ; }
Use this API to enable nsacl6 of given name .
2,401
public static base_responses enable ( nitro_service client , String acl6name [ ] ) throws Exception { base_responses result = null ; if ( acl6name != null && acl6name . length > 0 ) { nsacl6 enableresources [ ] = new nsacl6 [ acl6name . length ] ; for ( int i = 0 ; i < acl6name . length ; i ++ ) { enableresources [ i ]...
Use this API to enable nsacl6 resources of given names .
2,402
public static base_response disable ( nitro_service client , nsacl6 resource ) throws Exception { nsacl6 disableresource = new nsacl6 ( ) ; disableresource . acl6name = resource . acl6name ; return disableresource . perform_operation ( client , "disable" ) ; }
Use this API to disable nsacl6 .
2,403
public static base_responses disable ( nitro_service client , String acl6name [ ] ) throws Exception { base_responses result = null ; if ( acl6name != null && acl6name . length > 0 ) { nsacl6 disableresources [ ] = new nsacl6 [ acl6name . length ] ; for ( int i = 0 ; i < acl6name . length ; i ++ ) { disableresources [ ...
Use this API to disable nsacl6 resources of given names .
2,404
public static base_response rename ( nitro_service client , nsacl6 resource , String new_acl6name ) throws Exception { nsacl6 renameresource = new nsacl6 ( ) ; renameresource . acl6name = resource . acl6name ; return renameresource . rename_resource ( client , new_acl6name ) ; }
Use this API to rename a nsacl6 resource .
2,405
public static nsacl6 [ ] get ( nitro_service service ) throws Exception { nsacl6 obj = new nsacl6 ( ) ; nsacl6 [ ] response = ( nsacl6 [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the nsacl6 resources that are configured on netscaler .
2,406
public static nsacl6 get ( nitro_service service , String acl6name ) throws Exception { nsacl6 obj = new nsacl6 ( ) ; obj . set_acl6name ( acl6name ) ; nsacl6 response = ( nsacl6 ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch nsacl6 resource of given name .
2,407
public static nsacl6 [ ] get ( nitro_service service , String acl6name [ ] ) throws Exception { if ( acl6name != null && acl6name . length > 0 ) { nsacl6 response [ ] = new nsacl6 [ acl6name . length ] ; nsacl6 obj [ ] = new nsacl6 [ acl6name . length ] ; for ( int i = 0 ; i < acl6name . length ; i ++ ) { obj [ i ] = n...
Use this API to fetch nsacl6 resources of given names .
2,408
public static service_dospolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { service_dospolicy_binding obj = new service_dospolicy_binding ( ) ; obj . set_name ( name ) ; service_dospolicy_binding response [ ] = ( service_dospolicy_binding [ ] ) obj . get_resources ( service ) ; return res...
Use this API to fetch service_dospolicy_binding resources of given name .
2,409
public static appfwprofile_csrftag_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_csrftag_binding obj = new appfwprofile_csrftag_binding ( ) ; obj . set_name ( name ) ; appfwprofile_csrftag_binding response [ ] = ( appfwprofile_csrftag_binding [ ] ) obj . get_resources ( service...
Use this API to fetch appfwprofile_csrftag_binding resources of given name .
2,410
public static dnsview_binding get ( nitro_service service , String viewname ) throws Exception { dnsview_binding obj = new dnsview_binding ( ) ; obj . set_viewname ( viewname ) ; dnsview_binding response = ( dnsview_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch dnsview_binding resource of given name .
2,411
public static base_response update ( nitro_service client , nsspparams resource ) throws Exception { nsspparams updateresource = new nsspparams ( ) ; updateresource . basethreshold = resource . basethreshold ; updateresource . throttle = resource . throttle ; return updateresource . update_resource ( client ) ; }
Use this API to update nsspparams .
2,412
public static base_response unset ( nitro_service client , nsspparams resource , String [ ] args ) throws Exception { nsspparams unsetresource = new nsspparams ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of nsspparams resource . Properties that need to be unset are specified in args array .
2,413
public static nsspparams get ( nitro_service service ) throws Exception { nsspparams obj = new nsspparams ( ) ; nsspparams [ ] response = ( nsspparams [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the nsspparams resources that are configured on netscaler .
2,414
public static List < Integer > asList ( int [ ] a ) { List < Integer > result = new ArrayList < Integer > ( a . length ) ; for ( int i = 0 ; i < a . length ; i ++ ) { result . add ( Integer . valueOf ( a [ i ] ) ) ; } return result ; }
Utils for making collections out of arrays of primitive types .
2,415
public static < T > List < T > makeList ( T ... items ) { List < T > s = new ArrayList < T > ( items . length ) ; for ( int i = 0 ; i < items . length ; i ++ ) { s . add ( items [ i ] ) ; } return s ; }
Returns a new List containing the given objects .
2,416
public static < T > Set < T > asSet ( T [ ] o ) { return new HashSet < T > ( Arrays . asList ( o ) ) ; }
Returns a new Set containing all the objects in the specified array .
2,417
public static < T > Collection < T > diff ( Collection < T > list1 , Collection < T > list2 ) { Collection < T > diff = new ArrayList < T > ( ) ; for ( T t : list1 ) { if ( ! list2 . contains ( t ) ) { diff . add ( t ) ; } } return diff ; }
all objects in list1 that are not in list2
2,418
public static < E > Collection < E > sampleWithoutReplacement ( Collection < E > c , int n ) { return sampleWithoutReplacement ( c , n , new Random ( ) ) ; }
Samples without replacement from a collection .
2,419
public static < E > Collection < E > sampleWithReplacement ( Collection < E > c , int n ) { return sampleWithReplacement ( c , n , new Random ( ) ) ; }
Samples with replacement from a collection
2,420
public static < T extends Comparable < T > > int compareLists ( List < T > list1 , List < T > list2 ) { if ( list1 == null && list2 == null ) return 0 ; if ( list1 == null || list2 == null ) { throw new IllegalArgumentException ( ) ; } int size1 = list1 . size ( ) ; int size2 = list2 . size ( ) ; int size = Math . min ...
Provides a consistent ordering over lists . First compares by the first element . If that element is equal the next element is considered and so on .
2,421
public static < T > List < T > toList ( Iterable < T > items ) { List < T > list = new ArrayList < T > ( ) ; addAll ( list , items ) ; return list ; }
Create a list out of the items in the Iterable .
2,422
public static < T > Set < T > toSet ( Iterable < T > items ) { Set < T > set = new HashSet < T > ( ) ; addAll ( set , items ) ; return set ; }
Create a set out of the items in the Iterable .
2,423
public static < T > void addAll ( Collection < T > collection , Iterable < ? extends T > items ) { for ( T item : items ) { collection . add ( item ) ; } }
Add all the items from an iterable to a collection .
2,424
public static < T > List < List < T > > getNGrams ( List < T > items , int minSize , int maxSize ) { List < List < T > > ngrams = new ArrayList < List < T > > ( ) ; int listSize = items . size ( ) ; for ( int i = 0 ; i < listSize ; ++ i ) { for ( int ngramSize = minSize ; ngramSize <= maxSize ; ++ ngramSize ) { if ( i ...
Get all sub - lists of the given list of the given sizes .
2,425
public static < T > List < T > flatten ( Collection < List < T > > nestedList ) { List < T > result = new ArrayList < T > ( ) ; for ( List < T > list : nestedList ) { result . addAll ( list ) ; } return result ; }
combines all the lists in a collection to a single list
2,426
public static < ObjType , Hashable > Collection < ObjType > uniqueNonhashableObjects ( Collection < ObjType > objects , Function < ObjType , Hashable > customHasher ) { Map < Hashable , ObjType > hashesToObjects = new HashMap < Hashable , ObjType > ( ) ; for ( ObjType object : objects ) { hashesToObjects . put ( custom...
Makes it possible to uniquify a collection of objects which are normally non - hashable . Alternatively it lets you define an alternate hash function for them for limited - use hashing .
2,427
public static < T > boolean containsAny ( Collection < T > collection , Collection < T > toCheck ) { for ( T c : toCheck ) { if ( collection . contains ( c ) ) return true ; } return false ; }
if any item in toCheck is present in collection
2,428
public static < T > T mode ( Collection < T > values ) { Set < T > modes = modes ( values ) ; return modes . iterator ( ) . next ( ) ; }
Returns the mode in the Collection . If the Collection has multiple modes this method picks one arbitrarily .
2,429
public static crvserver_binding get ( nitro_service service , String name ) throws Exception { crvserver_binding obj = new crvserver_binding ( ) ; obj . set_name ( name ) ; crvserver_binding response = ( crvserver_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch crvserver_binding resource of given name .
2,430
public static base_response restore ( nitro_service client , appfwprofile resource ) throws Exception { appfwprofile restoreresource = new appfwprofile ( ) ; restoreresource . archivename = resource . archivename ; return restoreresource . perform_operation ( client , "restore" ) ; }
Use this API to restore appfwprofile .
2,431
public static base_responses restore ( nitro_service client , appfwprofile resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { appfwprofile restoreresources [ ] = new appfwprofile [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ...
Use this API to restore appfwprofile resources .
2,432
public static appfwprofile [ ] get ( nitro_service service ) throws Exception { appfwprofile obj = new appfwprofile ( ) ; appfwprofile [ ] response = ( appfwprofile [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the appfwprofile resources that are configured on netscaler .
2,433
public static appfwprofile get ( nitro_service service , String name ) throws Exception { appfwprofile obj = new appfwprofile ( ) ; obj . set_name ( name ) ; appfwprofile response = ( appfwprofile ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch appfwprofile resource of given name .
2,434
public static base_response add ( nitro_service client , route6 resource ) throws Exception { route6 addresource = new route6 ( ) ; addresource . network = resource . network ; addresource . gateway = resource . gateway ; addresource . vlan = resource . vlan ; addresource . weight = resource . weight ; addresource . di...
Use this API to add route6 .
2,435
public static base_responses add ( nitro_service client , route6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { route6 addresources [ ] = new route6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = n...
Use this API to add route6 resources .
2,436
public static base_response clear ( nitro_service client , route6 resource ) throws Exception { route6 clearresource = new route6 ( ) ; clearresource . routetype = resource . routetype ; return clearresource . perform_operation ( client , "clear" ) ; }
Use this API to clear route6 .
2,437
public static base_responses clear ( nitro_service client , route6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { route6 clearresources [ ] = new route6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { clearresources [ i...
Use this API to clear route6 resources .
2,438
public static base_response delete ( nitro_service client , String network ) throws Exception { route6 deleteresource = new route6 ( ) ; deleteresource . network = network ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete route6 of given name .
2,439
public static base_response delete ( nitro_service client , route6 resource ) throws Exception { route6 deleteresource = new route6 ( ) ; deleteresource . network = resource . network ; deleteresource . gateway = resource . gateway ; deleteresource . vlan = resource . vlan ; deleteresource . td = resource . td ; return...
Use this API to delete route6 .
2,440
public static base_responses delete ( nitro_service client , String network [ ] ) throws Exception { base_responses result = null ; if ( network != null && network . length > 0 ) { route6 deleteresources [ ] = new route6 [ network . length ] ; for ( int i = 0 ; i < network . length ; i ++ ) { deleteresources [ i ] = ne...
Use this API to delete route6 resources of given names .
2,441
public static base_responses delete ( nitro_service client , route6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { route6 deleteresources [ ] = new route6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { deleteresources ...
Use this API to delete route6 resources .
2,442
public static base_response update ( nitro_service client , route6 resource ) throws Exception { route6 updateresource = new route6 ( ) ; updateresource . network = resource . network ; updateresource . gateway = resource . gateway ; updateresource . vlan = resource . vlan ; updateresource . weight = resource . weight ...
Use this API to update route6 .
2,443
public static base_responses update ( nitro_service client , route6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { route6 updateresources [ ] = new route6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources ...
Use this API to update route6 resources .
2,444
public static route6 [ ] get ( nitro_service service ) throws Exception { route6 obj = new route6 ( ) ; route6 [ ] response = ( route6 [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the route6 resources that are configured on netscaler .
2,445
public static route6 [ ] get ( nitro_service service , route6_args args ) throws Exception { route6 obj = new route6 ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; route6 [ ] response = ( route6 [ ] ) obj . get_resources ( service , option ) ; retur...
Use this API to fetch all the route6 resources that are configured on netscaler . This uses route6_args which is a way to provide additional arguments while fetching the resources .
2,446
public static auditsyslogpolicy_vpnglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { auditsyslogpolicy_vpnglobal_binding obj = new auditsyslogpolicy_vpnglobal_binding ( ) ; obj . set_name ( name ) ; auditsyslogpolicy_vpnglobal_binding response [ ] = ( auditsyslogpolicy_vpnglobal_binding ...
Use this API to fetch auditsyslogpolicy_vpnglobal_binding resources of given name .
2,447
public void addWord ( MtasCQLParserWordFullCondition w ) throws ParseException { assert w . getCondition ( ) . not ( ) == false : "condition word should be positive in sentence definition" ; if ( ! simplified ) { partList . add ( w ) ; } else { throw new ParseException ( "already simplified" ) ; } }
Adds the word .
2,448
public void addBasicSentence ( MtasCQLParserBasicSentenceCondition s ) throws ParseException { if ( ! simplified ) { List < MtasCQLParserBasicSentencePartCondition > newWordList = s . getPartList ( ) ; partList . addAll ( newWordList ) ; } else { throw new ParseException ( "already simplified" ) ; } }
Adds the basic sentence .
2,449
public void setOccurence ( int min , int max ) throws ParseException { if ( ! simplified ) { if ( ( min < 0 ) || ( min > max ) || ( max < 1 ) ) { throw new ParseException ( "Illegal number {" + min + "," + max + "}" ) ; } if ( min == 0 ) { optional = true ; } minimumOccurence = Math . max ( 1 , min ) ; maximumOccurence...
Sets the occurence .
2,450
public static base_response add ( nitro_service client , nspbr6 resource ) throws Exception { nspbr6 addresource = new nspbr6 ( ) ; addresource . name = resource . name ; addresource . td = resource . td ; addresource . action = resource . action ; addresource . srcipv6 = resource . srcipv6 ; addresource . srcipop = re...
Use this API to add nspbr6 .
2,451
public static base_responses add ( nitro_service client , nspbr6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nspbr6 addresources [ ] = new nspbr6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = n...
Use this API to add nspbr6 resources .
2,452
public static base_response renumber ( nitro_service client ) throws Exception { nspbr6 renumberresource = new nspbr6 ( ) ; return renumberresource . perform_operation ( client , "renumber" ) ; }
Use this API to renumber nspbr6 .
2,453
public static base_responses renumber ( nitro_service client , nspbr6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nspbr6 renumberresources [ ] = new nspbr6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { renumberreso...
Use this API to renumber nspbr6 resources .
2,454
public static base_response update ( nitro_service client , nspbr6 resource ) throws Exception { nspbr6 updateresource = new nspbr6 ( ) ; updateresource . name = resource . name ; updateresource . action = resource . action ; updateresource . srcipv6 = resource . srcipv6 ; updateresource . srcipop = resource . srcipop ...
Use this API to update nspbr6 .
2,455
public static base_responses update ( nitro_service client , nspbr6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nspbr6 updateresources [ ] = new nspbr6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources ...
Use this API to update nspbr6 resources .
2,456
public static base_response clear ( nitro_service client ) throws Exception { nspbr6 clearresource = new nspbr6 ( ) ; return clearresource . perform_operation ( client , "clear" ) ; }
Use this API to clear nspbr6 .
2,457
public static base_response apply ( nitro_service client ) throws Exception { nspbr6 applyresource = new nspbr6 ( ) ; return applyresource . perform_operation ( client , "apply" ) ; }
Use this API to apply nspbr6 .
2,458
public static base_responses apply ( nitro_service client , nspbr6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nspbr6 applyresources [ ] = new nspbr6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { applyresources [ i...
Use this API to apply nspbr6 resources .
2,459
public static nspbr6 [ ] get ( nitro_service service ) throws Exception { nspbr6 obj = new nspbr6 ( ) ; nspbr6 [ ] response = ( nspbr6 [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the nspbr6 resources that are configured on netscaler .
2,460
public static nspbr6 [ ] get ( nitro_service service , nspbr6_args args ) throws Exception { nspbr6 obj = new nspbr6 ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; nspbr6 [ ] response = ( nspbr6 [ ] ) obj . get_resources ( service , option ) ; retur...
Use this API to fetch all the nspbr6 resources that are configured on netscaler . This uses nspbr6_args which is a way to provide additional arguments while fetching the resources .
2,461
public static nspbr6 get ( nitro_service service , String name ) throws Exception { nspbr6 obj = new nspbr6 ( ) ; obj . set_name ( name ) ; nspbr6 response = ( nspbr6 ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch nspbr6 resource of given name .
2,462
public static spilloverpolicy_stats [ ] get ( nitro_service service ) throws Exception { spilloverpolicy_stats obj = new spilloverpolicy_stats ( ) ; spilloverpolicy_stats [ ] response = ( spilloverpolicy_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all spilloverpolicy_stats resources that are configured on netscaler .
2,463
public static spilloverpolicy_stats get ( nitro_service service , String name ) throws Exception { spilloverpolicy_stats obj = new spilloverpolicy_stats ( ) ; obj . set_name ( name ) ; spilloverpolicy_stats response = ( spilloverpolicy_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of spilloverpolicy_stats resource of given name .
2,464
public static appfwprofile_xmlvalidationurl_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_xmlvalidationurl_binding obj = new appfwprofile_xmlvalidationurl_binding ( ) ; obj . set_name ( name ) ; appfwprofile_xmlvalidationurl_binding response [ ] = ( appfwprofile_xmlvalidationur...
Use this API to fetch appfwprofile_xmlvalidationurl_binding resources of given name .
2,465
public static vpnvserver_responderpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_responderpolicy_binding obj = new vpnvserver_responderpolicy_binding ( ) ; obj . set_name ( name ) ; vpnvserver_responderpolicy_binding response [ ] = ( vpnvserver_responderpolicy_binding [ ] )...
Use this API to fetch vpnvserver_responderpolicy_binding resources of given name .
2,466
public static base_response add ( nitro_service client , responderpolicy resource ) throws Exception { responderpolicy addresource = new responderpolicy ( ) ; addresource . name = resource . name ; addresource . rule = resource . rule ; addresource . action = resource . action ; addresource . undefaction = resource . u...
Use this API to add responderpolicy .
2,467
public static base_response update ( nitro_service client , responderpolicy resource ) throws Exception { responderpolicy updateresource = new responderpolicy ( ) ; updateresource . name = resource . name ; updateresource . rule = resource . rule ; updateresource . action = resource . action ; updateresource . undefact...
Use this API to update responderpolicy .
2,468
public static base_responses update ( nitro_service client , responderpolicy resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { responderpolicy updateresources [ ] = new responderpolicy [ resources . length ] ; for ( int i = 0 ; i < resources . length ...
Use this API to update responderpolicy resources .
2,469
public static base_response unset ( nitro_service client , responderpolicy resource , String [ ] args ) throws Exception { responderpolicy unsetresource = new responderpolicy ( ) ; unsetresource . name = resource . name ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of responderpolicy resource . Properties that need to be unset are specified in args array .
2,470
public static base_response rename ( nitro_service client , responderpolicy resource , String new_name ) throws Exception { responderpolicy renameresource = new responderpolicy ( ) ; renameresource . name = resource . name ; return renameresource . rename_resource ( client , new_name ) ; }
Use this API to rename a responderpolicy resource .
2,471
public static responderpolicy [ ] get ( nitro_service service ) throws Exception { responderpolicy obj = new responderpolicy ( ) ; responderpolicy [ ] response = ( responderpolicy [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the responderpolicy resources that are configured on netscaler .
2,472
public static responderpolicy get ( nitro_service service , String name ) throws Exception { responderpolicy obj = new responderpolicy ( ) ; obj . set_name ( name ) ; responderpolicy response = ( responderpolicy ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch responderpolicy resource of given name .
2,473
public static hanode_routemonitor6_binding [ ] get ( nitro_service service , Long id ) throws Exception { hanode_routemonitor6_binding obj = new hanode_routemonitor6_binding ( ) ; obj . set_id ( id ) ; hanode_routemonitor6_binding response [ ] = ( hanode_routemonitor6_binding [ ] ) obj . get_resources ( service ) ; ret...
Use this API to fetch hanode_routemonitor6_binding resources of given name .
2,474
public HashMap < String , IndexInput > getIndexInputList ( ) { HashMap < String , IndexInput > clonedIndexInputList = new HashMap < String , IndexInput > ( ) ; for ( Entry < String , IndexInput > entry : indexInputList . entrySet ( ) ) { clonedIndexInputList . put ( entry . getKey ( ) , entry . getValue ( ) . clone ( )...
Gets the index input list .
2,475
public static base_response delete ( nitro_service client , systementitydata resource ) throws Exception { systementitydata deleteresource = new systementitydata ( ) ; deleteresource . type = resource . type ; deleteresource . name = resource . name ; deleteresource . alldeleted = resource . alldeleted ; deleteresource...
Use this API to delete systementitydata .
2,476
public static systementitydata [ ] get ( nitro_service service , systementitydata_args args ) throws Exception { systementitydata obj = new systementitydata ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; systementitydata [ ] response = ( systementit...
Use this API to fetch all the systementitydata resources that are configured on netscaler . This uses systementitydata_args which is a way to provide additional arguments while fetching the resources .
2,477
public static dos_stats get ( nitro_service service , options option ) throws Exception { dos_stats obj = new dos_stats ( ) ; dos_stats [ ] response = ( dos_stats [ ] ) obj . stat_resources ( service , option ) ; return response [ 0 ] ; }
Use this API to fetch the statistics of all dos_stats resources that are configured on netscaler .
2,478
public static base_response add ( nitro_service client , linkset resource ) throws Exception { linkset addresource = new linkset ( ) ; addresource . id = resource . id ; return addresource . add_resource ( client ) ; }
Use this API to add linkset .
2,479
public static base_response delete ( nitro_service client , String id ) throws Exception { linkset deleteresource = new linkset ( ) ; deleteresource . id = id ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete linkset of given name .
2,480
public static linkset [ ] get ( nitro_service service ) throws Exception { linkset obj = new linkset ( ) ; linkset [ ] response = ( linkset [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the linkset resources that are configured on netscaler .
2,481
public static linkset get ( nitro_service service , String id ) throws Exception { linkset obj = new linkset ( ) ; obj . set_id ( id ) ; linkset response = ( linkset ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch linkset resource of given name .
2,482
public static nsrollbackcmd get ( nitro_service service ) throws Exception { nsrollbackcmd obj = new nsrollbackcmd ( ) ; nsrollbackcmd [ ] response = ( nsrollbackcmd [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler .
2,483
public static nsrollbackcmd [ ] get ( nitro_service service , nsrollbackcmd_args args ) throws Exception { nsrollbackcmd obj = new nsrollbackcmd ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; nsrollbackcmd [ ] response = ( nsrollbackcmd [ ] ) obj . ...
Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler . This uses nsrollbackcmd_args which is a way to provide additional arguments while fetching the resources .
2,484
private int getPositiveInteger ( String number ) { try { return Math . max ( 0 , Integer . parseInt ( number ) ) ; } catch ( NumberFormatException e ) { return 0 ; } }
Gets the positive integer .
2,485
public static cachepolicylabel_binding get ( nitro_service service , String labelname ) throws Exception { cachepolicylabel_binding obj = new cachepolicylabel_binding ( ) ; obj . set_labelname ( labelname ) ; cachepolicylabel_binding response = ( cachepolicylabel_binding ) obj . get_resource ( service ) ; return respon...
Use this API to fetch cachepolicylabel_binding resource of given name .
2,486
public static sslvserver_sslciphersuite_binding [ ] get ( nitro_service service , String vservername ) throws Exception { sslvserver_sslciphersuite_binding obj = new sslvserver_sslciphersuite_binding ( ) ; obj . set_vservername ( vservername ) ; sslvserver_sslciphersuite_binding response [ ] = ( sslvserver_sslciphersui...
Use this API to fetch sslvserver_sslciphersuite_binding resources of given name .
2,487
public static long count ( nitro_service service , String vservername ) throws Exception { sslvserver_sslciphersuite_binding obj = new sslvserver_sslciphersuite_binding ( ) ; obj . set_vservername ( vservername ) ; options option = new options ( ) ; option . set_count ( true ) ; sslvserver_sslciphersuite_binding respon...
Use this API to count sslvserver_sslciphersuite_binding resources configued on NetScaler .
2,488
public static base_response add ( nitro_service client , nssimpleacl resource ) throws Exception { nssimpleacl addresource = new nssimpleacl ( ) ; addresource . aclname = resource . aclname ; addresource . aclaction = resource . aclaction ; addresource . td = resource . td ; addresource . srcip = resource . srcip ; add...
Use this API to add nssimpleacl .
2,489
public static base_response clear ( nitro_service client ) throws Exception { nssimpleacl clearresource = new nssimpleacl ( ) ; return clearresource . perform_operation ( client , "clear" ) ; }
Use this API to clear nssimpleacl .
2,490
public static base_response delete ( nitro_service client , nssimpleacl resource ) throws Exception { nssimpleacl deleteresource = new nssimpleacl ( ) ; deleteresource . aclname = resource . aclname ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete nssimpleacl .
2,491
public static base_response flush ( nitro_service client , nssimpleacl resource ) throws Exception { nssimpleacl flushresource = new nssimpleacl ( ) ; flushresource . estsessions = resource . estsessions ; return flushresource . perform_operation ( client , "flush" ) ; }
Use this API to flush nssimpleacl .
2,492
public static nssimpleacl [ ] get ( nitro_service service ) throws Exception { nssimpleacl obj = new nssimpleacl ( ) ; nssimpleacl [ ] response = ( nssimpleacl [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the nssimpleacl resources that are configured on netscaler .
2,493
public static nssimpleacl get ( nitro_service service , String aclname ) throws Exception { nssimpleacl obj = new nssimpleacl ( ) ; obj . set_aclname ( aclname ) ; nssimpleacl response = ( nssimpleacl ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch nssimpleacl resource of given name .
2,494
public static nssimpleacl [ ] get ( nitro_service service , String aclname [ ] ) throws Exception { if ( aclname != null && aclname . length > 0 ) { nssimpleacl response [ ] = new nssimpleacl [ aclname . length ] ; nssimpleacl obj [ ] = new nssimpleacl [ aclname . length ] ; for ( int i = 0 ; i < aclname . length ; i +...
Use this API to fetch nssimpleacl resources of given names .
2,495
public static base_response update ( nitro_service client , nstimeout resource ) throws Exception { nstimeout updateresource = new nstimeout ( ) ; updateresource . zombie = resource . zombie ; updateresource . client = resource . client ; updateresource . server = resource . server ; updateresource . httpclient = resou...
Use this API to update nstimeout .
2,496
public static base_response unset ( nitro_service client , nstimeout resource , String [ ] args ) throws Exception { nstimeout unsetresource = new nstimeout ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of nstimeout resource . Properties that need to be unset are specified in args array .
2,497
public static nstimeout get ( nitro_service service ) throws Exception { nstimeout obj = new nstimeout ( ) ; nstimeout [ ] response = ( nstimeout [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the nstimeout resources that are configured on netscaler .
2,498
private Map < String , Entry > readEntries ( String mapping , boolean ignoreCase ) { Map < String , Entry > entries = new HashMap < > ( ) ; try { InputStream is = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( mapping ) ; if ( is == null ) is = new FileInputStream ( mapping ) ; BufferedReader rd = new Buffer...
Creates a combined list of Entries using the provided mapping file and sorts them by first by priority then the number of tokens in the regex .
2,499
public < VALUEBASE , VALUE extends VALUEBASE , KEY extends Key < CoreMap , VALUEBASE > > VALUE set ( Class < KEY > key , VALUE value ) { if ( immutableKeys . contains ( key ) ) { throw new HashableCoreMapException ( "Attempt to change value " + "of immutable field " + key . getSimpleName ( ) ) ; } return super . set ( ...
Sets the value associated with the given key ; if the the key is one of the hashable keys throws an exception .