public static base_responses add ( nitro_service client , vrid resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { vrid addresources [ ] = new vrid [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new vrid ( ) ; addresources [ i ] . id = resources [ i ] . id ; addresources [ i ] . priority = resources [ i ] . priority ; addresources [ i ] . preemption = resources [ i ] . preemption ; addresources [ i ] . sharing = resources [ i ] . sharing ; addresources [ i ] . tracking = resources [ i ] . tracking ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add vrid resources .