Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add capabilities of the DMS query
[pti/o2.git]
/
o2ims
/
views
/
ocloud_dto.py
diff --git
a/o2ims/views/ocloud_dto.py
b/o2ims/views/ocloud_dto.py
index
3007024
..
622bc46
100644
(file)
--- a/
o2ims/views/ocloud_dto.py
+++ b/
o2ims/views/ocloud_dto.py
@@
-359,6
+359,14
@@
class ResourceDTO:
class DeploymentManagerDTO:
class DeploymentManagerDTO:
+ capabilities = api_ims_inventory_v1.model(
+ "DeploymentManagerCapabilities", {
+ 'OS': fields.String(
+ example='low_latency',
+ description='Show the OS capablities of ' +
+ 'the Deployment Manager'),
+ })
+
deployment_manager_list = api_ims_inventory_v1.model(
"DeploymentManagerListDto",
{
deployment_manager_list = api_ims_inventory_v1.model(
"DeploymentManagerListDto",
{
@@
-380,11
+388,11
@@
class DeploymentManagerDTO:
attribute='serviceUri',
example='https://128.224.115.51:6443',
description='The fully qualified URI to a Deployment ' +
attribute='serviceUri',
example='https://128.224.115.51:6443',
description='The fully qualified URI to a Deployment ' +
- 'Management server for O2dms
services
.'),
+ 'Management server for O2dms.'),
# 'deploymentManagementServiceEndpoint': fields.String(
# attribute='serviceUri'),
# 'supportedLocations': fields.String,
# 'deploymentManagementServiceEndpoint': fields.String(
# attribute='serviceUri'),
# 'supportedLocations': fields.String,
-
# 'capabilities': fields.String
,
+
'capabilities': fields.Nested(capabilities, True, True)
,
# 'capacity': fields.String,
'profileSupportList': fields.List(
fields.String,
# 'capacity': fields.String,
'profileSupportList': fields.List(
fields.String,
@@
-469,11
+477,11
@@
class DeploymentManagerDTO:
attribute='serviceUri',
example='https://128.224.115.51:6443',
description='The fully qualified URI to a Deployment ' +
attribute='serviceUri',
example='https://128.224.115.51:6443',
description='The fully qualified URI to a Deployment ' +
- 'Management server for O2dms
services
.'),
+ 'Management server for O2dms.'),
# 'deploymentManagementServiceEndpoint': fields.String(
# attribute='serviceUri'),
# 'supportedLocations': fields.String,
# 'deploymentManagementServiceEndpoint': fields.String(
# attribute='serviceUri'),
# 'supportedLocations': fields.String,
-
# 'capabilities': fields.String
,
+
'capabilities': fields.Nested(capabilities, True, True)
,
# 'capacity': fields.String,
'extensions': fields.Nested(extensions, True, True)
},
# 'capacity': fields.String,
'extensions': fields.Nested(extensions, True, True)
},