示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 def deleteWorkflowById(self, request, context):
     status = self.store.delete_workflow_by_id(workflow_id=request.id)
     return _wrap_delete_response(status)
示例#5
0
 def deleteArtifactByName(self, request, context):
     status = self.store.delete_artifact_by_name(request.name)
     return _wrap_delete_response(status)
示例#6
0
 def deleteArtifactById(self, request, context):
     status = self.store.delete_artifact_by_id(request.id)
     return _wrap_delete_response(status)
示例#7
0
 def deleteModelVersionRelationByVersion(self, request, context):
     status = self.store.delete_model_version_relation_by_version(
         request.name, request.model_id)
     return _wrap_delete_response(status)
示例#8
0
 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)
示例#9
0
 def deleteModelRelationByName(self, request, context):
     status = self.store.delete_model_relation_by_name(request.name)
     return _wrap_delete_response(status)
示例#10
0
 def deleteModelRelationById(self, request, context):
     status = self.store.delete_model_relation_by_id(request.id)
     return _wrap_delete_response(status)
示例#11
0
 def deleteDatasetByName(self, request, context):
     status = self.store.delete_dataset_by_name(request.name)
     return _wrap_delete_response(status)
示例#12
0
 def deleteDatasetById(self, request, context):
     status = self.store.delete_dataset_by_id(request.id)
     return _wrap_delete_response(status)