class VersionResourceImpl implements VersionResource {
    @Autowired
    private ServiceResource serviceResource;

    @Autowired
    private RestTemplate consoleRestTemplate;

    @Override
    public List<ResultEntity> updateVersion(String serviceId, String version, boolean async) {<FILL_FUNCTION_BODY>}

    @Override
    public List<ResultEntity> clearVersion(String serviceId, String version, boolean async) {
        VersionClearRestInvoker versionClearRestInvoker = new VersionClearRestInvoker(serviceResource, serviceId, consoleRestTemplate, async, version);

        return versionClearRestInvoker.invoke();
    }

    @Override
    public List<ResultEntity> viewVersion(String serviceId) {
        VersionViewRestInvoker versionViewRestInvoker = new VersionViewRestInvoker(serviceResource, serviceId, consoleRestTemplate);

        return versionViewRestInvoker.invoke();
    }
}

        VersionUpdateRestInvoker versionUpdateRestInvoker = new VersionUpdateRestInvoker(serviceResource, serviceId, consoleRestTemplate, async, version);

        return versionUpdateRestInvoker.invoke();
    
<no_super_class>