1 # Copyright (C) 2021 Wind River Systems, Inc.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 from flask_restx import fields
16 from o2dms.views import api_dms_lcm_v1
20 dms_get = api_dms_lcm_v1.model(
23 'deploymentManagerId': fields.String(
25 description='Deployment manager ID'),
26 'name': fields.String,
27 'description': fields.String,
28 'supportedLocations': fields.String,
29 'capabilities': fields.String,
30 'capacity': fields.String,
35 class DmsLcmNfDeploymentDescriptorDTO:
36 dmslcm_NfDeploymentDescriptor_get = api_dms_lcm_v1.model(
37 "NfDeploymentDescriptorGetDto",
41 description='NfDeploymentDescriptor ID'),
42 'name': fields.String,
43 'description': fields.String,
44 'inputParams': fields.String,
45 'outputParams': fields.String
49 NfDeploymentDescriptor_create = api_dms_lcm_v1.model(
50 "NfDeploymentDescriptorCreateDto",
52 'name': fields.String,
53 'description': fields.String,
54 'inputParams': fields.String,
55 'outputParams': fields.String
59 NfDeploymentDescriptor_create_post_resp = api_dms_lcm_v1.model(
60 "NfDeploymentDescriptorCreateRespDto",
63 required=True, description='NfDeploymentDescriptor ID'),
67 NfDeploymentDescriptor_update = api_dms_lcm_v1.model(
68 "NfDeploymentDescriptorCreateDto",
70 'name': fields.String,
71 'description': fields.String,
72 'inputParams': fields.String,
73 'outputParams': fields.String