+++ /dev/null
-# Copyright (C) 2021 Wind River Systems, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# from flask import jsonify
-from flask_restx import Resource
-
-from o2dms.views.dms_dto import DmsDTO
-from o2dms.views import dms_lcm_view, api_dms_lcm_v1
-from o2common.service.messagebus import MessageBus
-
-
-# ---------- DeploymentManagers ---------- #
-@api_dms_lcm_v1.route("/<deploymentManagerID>")
-@api_dms_lcm_v1.param('deploymentManagerID', 'ID of the deployment manager')
-@api_dms_lcm_v1.response(404, 'Deployment manager not found')
-class DmsGetRouter(Resource):
-
- model = DmsDTO.dms_get
-
- @api_dms_lcm_v1.doc('Get deployment manager')
- @api_dms_lcm_v1.marshal_with(model)
- def get(self, deploymentManagerID):
- bus = MessageBus.get_instance()
- result = dms_lcm_view.deployment_manager_one(
- deploymentManagerID, bus.uow)
- if result is not None:
- return result
- api_dms_lcm_v1.abort(404, "Deployment manager {} doesn't exist".format(
- deploymentManagerID))