# 'smoRegistrationService': fields.String
'extensions': fields.String(
example='',
- description='These are unspecified (not standardized) ' +\
- 'properties (keys) which are tailored by the vendor ' +\
+ description='These are unspecified (not standardized) ' +
+ 'properties (keys) which are tailored by the vendor ' +
'to extend the information provided about the O-Cloud.'),
},
- mask='{oCloudId,globalCloudId,globalcloudId,name,description,' +\
+ mask='{oCloudId,globalCloudId,globalcloudId,name,description,' +
'serviceUri}'
)
# 'resources': fields.String,
'extensions': fields.String(
example='',
- description='List of metadata key-value pairs ' +\
- 'used to associate meaningful metadata to ' +\
- 'the related resource pool.')
+ description=('List of metadata key-value pairs '
+ 'used to associate meaningful metadata to '
+ 'the related resource pool.'))
},
mask='{resourcePoolId,oCloudId,globalLocationId,name,description}'
)
'the Deployment Manager'),
})
+ capacity = api_ims_inventory_v1.model(
+ "DeploymentManagerCapacity", {
+ 'cpu': fields.String(
+ example='32',
+ description='Show the cpu capacity of ' +
+ 'the Deployment Manager'),
+ 'hugepages-2Mi': fields.String(
+ example='2048',
+ description='Show the 2Mi hugepages capacity of ' +
+ 'the Deployment Manager'),
+ 'hugepages-1Gi': fields.String(
+ example='2048',
+ description='Show the 1Gi hugepages capacity of ' +
+ 'the Deployment Manager'),
+ })
+
deployment_manager_list = api_ims_inventory_v1.model(
"DeploymentManagerListDto",
{
example='https://128.224.115.51:6443',
description='The fully qualified URI to a Deployment ' +
'Management server for O2dms.'),
+ # Comment for the future implementation
# 'deploymentManagementServiceEndpoint': fields.String(
# attribute='serviceUri'),
- # 'supportedLocations': fields.String,
+ 'supportedLocations': fields.String,
'capabilities': fields.Nested(capabilities, True, True),
- # 'capacity': fields.String,
+ 'capacity': fields.Nested(capacity, True, True),
'profileSupportList': fields.List(
fields.String,
example=['native_k8sapi'],
'associate meaningful metadata to the related Deployment ' +
'Manager'),
},
- mask='{deploymentManagerId,name,description,oCloudId,serviceUri,' + \
- 'profileSupportList}'
+ mask='{deploymentManagerId,name,description,oCloudId,serviceUri,' +
+ 'supportedLocations,capabilities,capacity,profileSupportList}'
)
profile = api_ims_inventory_v1.model("DeploymentManagerGetDtoProfile", {
'Management server for O2dms.'),
# 'deploymentManagementServiceEndpoint': fields.String(
# attribute='serviceUri'),
- # 'supportedLocations': fields.String,
+ 'supportedLocations': fields.String,
'capabilities': fields.Nested(capabilities, True, True),
- # 'capacity': fields.String,
+ 'capacity': fields.Nested(capacity, True, True),
'extensions': fields.Nested(extensions, True, True)
},
- mask='{deploymentManagerId,name,description,oCloudId,serviceUri,' +\
- 'extensions/profileName,extensions/profileData}'
+ mask='{deploymentManagerId,name,description,oCloudId,serviceUri,' +
+ 'supportedLocations,capabilities,capacity,' +
+ 'extensions{profileName,profileData}}'
)