diff options
author | dyh <dengyuanhong@chinamobile.com> | 2021-12-23 09:20:55 +0800 |
---|---|---|
committer | dyh <dengyuanhong@chinamobile.com> | 2021-12-23 09:21:10 +0800 |
commit | 049aada7605a701fb98b7479f648c93a516ae9d1 (patch) | |
tree | 75694cd2668eebbadab38c230b20087c59726b07 /lcm/ns/views/sol/update_ns_view.py | |
parent | c988b17144918d3b295097b5faa72eb2b9f37c55 (diff) |
add comments
Change-Id: Ibaac5bf6d79283f11be53534fbd750a458aeb7ee
Issue-ID: VFC-1917
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
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) |