diff options
author | 2017-08-23 15:54:45 +0800 | |
---|---|---|
committer | 2017-08-25 13:55:38 +0800 | |
commit | 30d7e5ef5091144ea22185bb27c7e3900d7b6a45 (patch) | |
tree | 202fb7f0e7e868b913a645ba3441f40a7e648ec0 /utils/test/testapi/opnfv_testapi/resources/scenario_models.py | |
parent | 858f34a8a3bd8949260dc37f87d13864617ad944 (diff) |
update scenario name
url PUT /api/v1/scenarios/<scenario_name>
if new_name already exist, return Forbidden
if new_name == name, return Forbidden
Change-Id: If3b82b3df4a763d60dad110caca2659c5f39ab50
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/resources/scenario_models.py')
-rw-r--r-- | utils/test/testapi/opnfv_testapi/resources/scenario_models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/test/testapi/opnfv_testapi/resources/scenario_models.py b/utils/test/testapi/opnfv_testapi/resources/scenario_models.py index c6da76b81..d950ed1d7 100644 --- a/utils/test/testapi/opnfv_testapi/resources/scenario_models.py +++ b/utils/test/testapi/opnfv_testapi/resources/scenario_models.py @@ -167,6 +167,12 @@ class ScenarioChangeOwnerRequest(models.ModelBase): @swagger.model() +class ScenarioUpdateRequest(models.ModelBase): + def __init__(self, name=None): + self.name = name + + +@swagger.model() class Scenario(models.ModelBase): """ @property installers: |