public static base_responses update ( nitro_service client , cachepolicy resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { cachepolicy updateresources [ ] = new cachepolicy [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new cachepolicy ( ) ; updateresources [ i ] . policyname = resources [ i ] . policyname ; updateresources [ i ] . rule = resources [ i ] . rule ; updateresources [ i ] . action = resources [ i ] . action ; updateresources [ i ] . storeingroup = resources [ i ] . storeingroup ; updateresources [ i ] . invalgroups = resources [ i ] . invalgroups ; updateresources [ i ] . invalobjects = resources [ i ] . invalobjects ; updateresources [ i ] . undefaction = resources [ i ] . undefaction ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update cachepolicy resources .