aboutsummaryrefslogtreecommitdiffstats
path: root/apps/nst/models
diff options
context:
space:
mode:
authorMD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com>2020-09-29 21:01:51 +0530
committerMD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com>2020-09-29 22:20:08 +0530
commit7ae420b25aade14f12fb7c94a407f0f9fd6aff4e (patch)
tree49161a1c3b3dbd7ceb968b9b1b90355f6dd72709 /apps/nst/models
parentb1d0b8f247738f6d638ee6eefb870f43a1b2790a (diff)
Missing callback in NST selection
Issue-ID: OPTFRA-852 Signed-off-by: MD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com> Change-Id: I7e1d782d579fd5f4385802c6dfbdaa8bfaef7782
Diffstat (limited to 'apps/nst/models')
-rw-r--r--apps/nst/models/api/nstSelectionRequest.py25
1 files changed, 10 insertions, 15 deletions
diff --git a/apps/nst/models/api/nstSelectionRequest.py b/apps/nst/models/api/nstSelectionRequest.py
index dcc385e..99c5df6 100644
--- a/apps/nst/models/api/nstSelectionRequest.py
+++ b/apps/nst/models/api/nstSelectionRequest.py
@@ -16,14 +16,18 @@
# -------------------------------------------------------------------------
#
-from schematics.types import BaseType, StringType, URLType, IntType
-from schematics.types.compound import ModelType, ListType, DictType
-
from osdf.models.api.common import OSDFModel
-from osdf.logging.osdf_logging import MH, audit_log
+from schematics.types import BaseType
+from schematics.types.compound import DictType
+from schematics.types.compound import ModelType
+from schematics.types import IntType
+from schematics.types import StringType
+from schematics.types import URLType
+
class RequestInfo(OSDFModel):
"""Info for northbound request from client such as SO"""
+
transactionId = StringType(required=True)
requestId = StringType(required=True)
callbackUrl = URLType(required=True)
@@ -32,17 +36,8 @@ class RequestInfo(OSDFModel):
timeout = IntType()
-class ServiceProfile(OSDFModel):
- """Information specific to ServiceProfile """
- # resourceName = StringType(required=True)
- # resourceId = StringType(required=True)
- serviceProfileParameters = DictType(BaseType)
-
-
-
-
class NSTSelectionAPI(OSDFModel):
"""Request for NST selection """
- requestInfo = ModelType(RequestInfo, required=True)
- serviceProfile = ModelType(ServiceProfile, required=True)
+ requestInfo = ModelType(RequestInfo, required=True)
+ serviceProfile = DictType(BaseType)