def deleteModelById(self, request, context): model_relation = self.store.get_model_relation_by_id(request.id) if model_relation is None: return _wrap_delete_response(Status.ERROR) else: model_relation_status = self.store.delete_model_relation_by_id( request.id) self.model_center_client.delete_registered_model( model_relation.name) return _wrap_delete_response(model_relation_status)
def deleteModelVersionByVersion(self, request, context): model_version_relation = self.store.get_model_version_relation_by_version( request.name, request.model_id) if model_version_relation is None: return _wrap_delete_response(Status.ERROR) else: model_version__status = self.store.delete_model_version_relation_by_version( request.name, request.model_id) model_relation = self.store.get_model_relation_by_id( model_version_relation.model_id) if model_relation is not None: self.model_center_client.delete_model_version( model_relation.name, request.name) return _wrap_delete_response(model_version__status)
def deleteWorkflowByName(self, request, context): status = self.store.delete_workflow_by_name( project_name=request.project_name, workflow_name=request.workflow_name) return _wrap_delete_response(status)
def deleteWorkflowById(self, request, context): status = self.store.delete_workflow_by_id(workflow_id=request.id) return _wrap_delete_response(status)
def deleteArtifactByName(self, request, context): status = self.store.delete_artifact_by_name(request.name) return _wrap_delete_response(status)
def deleteArtifactById(self, request, context): status = self.store.delete_artifact_by_id(request.id) return _wrap_delete_response(status)
def deleteModelVersionRelationByVersion(self, request, context): status = self.store.delete_model_version_relation_by_version( request.name, request.model_id) return _wrap_delete_response(status)
def deleteModelByName(self, request, context): model_relation_status = self.store.delete_model_relation_by_name( request.name) self.model_center_client.delete_registered_model(request.name) return _wrap_delete_response(model_relation_status)
def deleteModelRelationByName(self, request, context): status = self.store.delete_model_relation_by_name(request.name) return _wrap_delete_response(status)
def deleteModelRelationById(self, request, context): status = self.store.delete_model_relation_by_id(request.id) return _wrap_delete_response(status)
def deleteDatasetByName(self, request, context): status = self.store.delete_dataset_by_name(request.name) return _wrap_delete_response(status)
def deleteDatasetById(self, request, context): status = self.store.delete_dataset_by_id(request.id) return _wrap_delete_response(status)