X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=apps%2Fnst%2Fmodels%2Fapi%2FnstSelectionRequest.py;fp=apps%2Fnst%2Fmodels%2Fapi%2FnstSelectionRequest.py;h=99c5df681c0f38c667daaaadab06a2ad0cde09f8;hb=7ae420b25aade14f12fb7c94a407f0f9fd6aff4e;hp=dcc385e2a377a1133cde971c7a176ba0ef77f8dd;hpb=b1d0b8f247738f6d638ee6eefb870f43a1b2790a;p=optf%2Fosdf.git 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)