diff options
Diffstat (limited to 'lcm/ns/views/sol/update_ns_view.py')
-rw-r--r-- | lcm/ns/views/sol/update_ns_view.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lcm/ns/views/sol/update_ns_view.py b/lcm/ns/views/sol/update_ns_view.py index db6d6072..26d3136a 100644 --- a/lcm/ns/views/sol/update_ns_view.py +++ b/lcm/ns/views/sol/update_ns_view.py @@ -32,6 +32,10 @@ logger = logging.getLogger(__name__) class UpdateNSView(APIView): + """ + This task resource represents the "Update NS" operation. + The client can use this resource to update a NS instance. + """ @swagger_auto_schema( request_body=UpdateNsReqSerializer(), responses={ @@ -41,6 +45,12 @@ class UpdateNSView(APIView): ) @view_safe_call_with_log(logger=logger) def post(self, request, ns_instance_id): + """ + The POST method requests to update a NS instance resource. + :param request: + :param ns_instance_id: + :return: + """ job_id = JobUtil.create_job(JOB_TYPE.NS, JOB_ACTION.UPDATE, ns_instance_id) logger.debug("Enter UpdateNSView::post %s, %s", request.data, ns_instance_id) |