class SentinelUpdateRestInvoker extends AbstractRestInvoker {
    private SentinelRuleType ruleType;
    private String rule;

    public SentinelUpdateRestInvoker(ServiceResource serviceResource, String serviceId, RestTemplate restTemplate, SentinelRuleType ruleType, String rule) {
        super(serviceResource, serviceId, restTemplate);

        this.ruleType = ruleType;
        this.rule = rule;
    }

    @Override
    protected String getDescription() {
        return "Sentinel rules updated";
    }

    @Override
    protected String getSuffixPath() {<FILL_FUNCTION_BODY>}

    @Override
    protected String doRest(String url) {
        return restTemplate.postForEntity(url, getInvokeEntity(rule), String.class).getBody();
    }
}

        String path = StringUtils.equals(ruleType.toString(), "param-flow") ? "sentinel-param" : "sentinel-core";

        return path + "/update-" + ruleType + "-rules";
    
<methods>public void <init>(com.nepxion.discovery.console.resource.ServiceResource, java.lang.String, RestTemplate) ,public void <init>(com.nepxion.discovery.console.resource.ServiceResource, java.lang.String, RestTemplate, boolean) ,public List<com.nepxion.discovery.common.entity.ResultEntity> invoke() <variables>private static final Logger LOG,protected boolean async,protected RestTemplate restTemplate,protected java.lang.String serviceId,protected com.nepxion.discovery.console.resource.ServiceResource serviceResource