use of io.hops.hopsworks.api.modelregistry.models.dto.ModelDTO in project hopsworks by logicalclocks.
the class ModelsController method delete.
public void delete(Users user, Project project, ProvStateDTO fileState) throws DatasetException, ModelRegistryException {
JSONObject summary = new JSONObject(fileState.getXattrs().get(MODEL_SUMMARY_XATTR_NAME));
ModelDTO modelSummary = modelConverter.unmarshalDescription(summary.toString());
String modelPath = Utils.getProjectPath(project.getName()) + Settings.HOPS_MODELS_DATASET + "/" + modelSummary.getName() + "/" + modelSummary.getVersion();
deleteInternal(user, project, modelPath);
}
Aggregations