补充状态参数
This commit is contained in:
parent
3ad65d90ca
commit
82448719ad
|
@ -26,6 +26,7 @@ class InstanceParse:
|
||||||
self.request_parse = reqparse.RequestParser()
|
self.request_parse = reqparse.RequestParser()
|
||||||
self.request_parse.add_argument("name", required=required, type=str, location='json')
|
self.request_parse.add_argument("name", required=required, type=str, location='json')
|
||||||
self.request_parse.add_argument("class_name", required=False, type=str, location='json')
|
self.request_parse.add_argument("class_name", required=False, type=str, location='json')
|
||||||
|
self.request_parse.add_argument("status", location='json', choices=Instance.STATUS.keys())
|
||||||
|
|
||||||
self.request_parse.add_argument("server", required=False, type=str, location='json')
|
self.request_parse.add_argument("server", required=False, type=str, location='json')
|
||||||
self.request_parse.add_argument("dependents", required=False, type=list, location='json')
|
self.request_parse.add_argument("dependents", required=False, type=list, location='json')
|
||||||
|
|
Loading…
Reference in New Issue