X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2dms%2Fapi%2Fdms_dto.py;h=ae699f4dfc1bfaf90fc7ab51d88468ebff8be0b3;hb=1a9dcb5b8f598ee348f23eafecc2d92ef09c8122;hp=8b305e3424c7f43b50125fa986e2ca450963e398;hpb=defe8209b3628593c186487857fe02586d7e1503;p=pti%2Fo2.git diff --git a/o2dms/api/dms_dto.py b/o2dms/api/dms_dto.py index 8b305e3..ae699f4 100644 --- a/o2dms/api/dms_dto.py +++ b/o2dms/api/dms_dto.py @@ -19,6 +19,16 @@ logger = o2logging.get_logger(__name__) class DmsDTO: + profile = api_dms_lcm_v1.model("DMSGetDtoProfile", { + 'cluster_api_endpoint': fields.String( + attributes='cluster_api_endpoint'), + 'cluster_ca_cert': fields.String(attributes='cluster_ca_cert'), + 'admin_user': fields.String(attributes='admin_user'), + 'admin_client_cert': fields.String(attributes='admin_client_cert'), + 'admin_client_key': fields.String(attributes='admin_client_key'), + 'kube_config_file': fields.String(attributes='kube_config_file') + }) + dms_get = api_dms_lcm_v1.model( "DmsGetDto", { @@ -30,6 +40,7 @@ class DmsDTO: 'supportedLocations': fields.String, 'capabilities': fields.String, 'capacity': fields.String, + 'profile': fields.Nested(profile, False, True), } )