X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2dms%2Fviews%2Fdms_dto.py;fp=o2dms%2Fviews%2Fdms_dto.py;h=e52bc3e867cf39395a613b2c251f5ac27d33edac;hb=7fb3d02a3744ecb368b0531f16175034b987d42f;hp=4acc9a35d5b58a3cc1ef6671a00ba7623f36be70;hpb=c3ab2dcb442a0e66b7a621c59c6c7a679c26cee9;p=pti%2Fo2.git diff --git a/o2dms/views/dms_dto.py b/o2dms/views/dms_dto.py index 4acc9a3..e52bc3e 100644 --- a/o2dms/views/dms_dto.py +++ b/o2dms/views/dms_dto.py @@ -33,7 +33,7 @@ class DmsDTO: class DmsLcmNfDeploymentDescriptorDTO: - dmslcm_NfDeploymentDescriptor_get = api_dms_lcm_v1.model( + NfDeploymentDescriptor_get = api_dms_lcm_v1.model( "NfDeploymentDescriptorGetDto", { 'id': fields.String( @@ -65,7 +65,7 @@ class DmsLcmNfDeploymentDescriptorDTO: ) NfDeploymentDescriptor_update = api_dms_lcm_v1.model( - "NfDeploymentDescriptorCreateDto", + "NfDeploymentDescriptorUpdateDto", { 'name': fields.String, 'description': fields.String, @@ -73,3 +73,64 @@ class DmsLcmNfDeploymentDescriptorDTO: 'outputParams': fields.String } ) + + +class DmsLcmNfDeploymentDTO: + NfDeployment_get = api_dms_lcm_v1.model( + "NfDeploymentGetDto", + { + 'id': fields.String( + required=True, + description='NfDeployment ID'), + 'name': fields.String, + 'description': fields.String, + 'descriptorId': fields.String, + 'parentDeploymentId': fields.String, + 'status': fields.Integer + } + ) + + NfDeployment_create = api_dms_lcm_v1.model( + "NfDeploymentCreateDto", + { + 'name': fields.String, + 'description': fields.String, + 'descriptorId': fields.String, + 'parentDeploymentId': fields.String + } + ) + + NfDeployment_create_post_resp = api_dms_lcm_v1.model( + "NfDeploymentCreateRespDto", + { + 'id': fields.String( + required=True, description='NfDeployment ID'), + } + ) + + NfDeployment_update = api_dms_lcm_v1.model( + "NfDeploymentUpdateDto", + { + 'name': fields.String, + 'description': fields.String, + 'descriptorId': fields.String, + 'parentDeploymentId': fields.String + } + ) + + +class DmsLcmNfOCloudVResourceDTO: + NfOCloudVResource_get = api_dms_lcm_v1.model( + "NfOCloudVResourceGetDto", + { + 'id': fields.String( + required=True, + description='NfOCloudVResource ID'), + 'name': fields.String, + 'description': fields.String, + 'descriptorId': fields.String, + 'vresourceType': fields.String, + 'status': fields.Integer, + 'metadata': fields.String + } + )