コード例 #1
0
 def submit_service_for_approval(self, payload):
     service = ServiceFactory().create_service_entity_model(
         self.org_uuid, self.service_uuid, payload,
         ServiceStatus.APPROVAL_PENDING.value)
     service = ServiceRepository().save_service(
         self.username, service, ServiceStatus.APPROVAL_PENDING.value)
     return service.to_response()
コード例 #2
0
 def save_service(self, payload):
     service = ServiceFactory().create_service_entity_model(
         self.org_uuid, self.service_uuid, payload,
         ServiceStatus.DRAFT.value)
     service = ServiceRepository().save_service(self.username, service,
                                                ServiceStatus.DRAFT.value)
     return service.to_response()