public static base_response update ( nitro_service client , cachepolicy resource ) throws Exception { cachepolicy updateresource = new cachepolicy ( ) ; updateresource . policyname = resource . policyname ; updateresource . rule = resource . rule ; updateresource . action = resource . action ; updateresource . storeingroup = resource . storeingroup ; updateresource . invalgroups = resource . invalgroups ; updateresource . invalobjects = resource . invalobjects ; updateresource . undefaction = resource . undefaction ; return updateresource . update_resource ( client ) ; }
Use this API to update cachepolicy .