public static base_responses add ( nitro_service client , policymap resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { policymap addresources [ ] = new policymap [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new policymap ( ) ; addresources [ i ] . mappolicyname = resources [ i ] . mappolicyname ; addresources [ i ] . sd = resources [ i ] . sd ; addresources [ i ] . su = resources [ i ] . su ; addresources [ i ] . td = resources [ i ] . td ; addresources [ i ] . tu = resources [ i ] . tu ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add policymap resources .