public static base_response update ( nitro_service client , dnspolicy resource ) throws Exception { dnspolicy updateresource = new dnspolicy ( ) ; updateresource . name = resource . name ; updateresource . rule = resource . rule ; updateresource . viewname = resource . viewname ; updateresource . preferredlocation = resource . preferredlocation ; updateresource . preferredloclist = resource . preferredloclist ; updateresource . drop = resource . drop ; updateresource . cachebypass = resource . cachebypass ; updateresource . actionname = resource . actionname ; return updateresource . update_resource ( client ) ; }
Use this API to update dnspolicy .