public static base_response update ( nitro_service client , scpolicy resource ) throws Exception { scpolicy updateresource = new scpolicy ( ) ; updateresource . name = resource . name ; updateresource . url = resource . url ; updateresource . rule = resource . rule ; updateresource . delay = resource . delay ; updateresource . maxconn = resource . maxconn ; updateresource . action = resource . action ; updateresource . altcontentsvcname = resource . altcontentsvcname ; updateresource . altcontentpath = resource . altcontentpath ; return updateresource . update_resource ( client ) ; }
Use this API to update scpolicy .