mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
update api models
This commit is contained in:
@@ -138,6 +138,10 @@ class ModelAPI(FuncDispatcher):
|
||||
def gen_monitor(self):
|
||||
self.run(pkg=["monitor", "models"], out=["monitor"])
|
||||
|
||||
def gen_yunionconf(self):
|
||||
self.run(pkg=["yunionconf", "models"], out=["yunionconf"])
|
||||
|
||||
|
||||
class SwaggerCode(FuncDispatcher):
|
||||
|
||||
def __init__(self, pkg_dir, pkg_swagger):
|
||||
@@ -177,6 +181,9 @@ class SwaggerCode(FuncDispatcher):
|
||||
def gen_monitor(self):
|
||||
self.run("monitor", pkg=["models"], out="monitor")
|
||||
|
||||
def gen_yunionconf(self):
|
||||
self.run("yunionconf", pkg=["models"], out="yunionconf")
|
||||
|
||||
def gen_notify(self):
|
||||
self.run("notify", pkg=["models"], out="notify")
|
||||
|
||||
@@ -209,6 +216,9 @@ class SwaggerYAML(FuncDispatcher):
|
||||
def gen_monitor(self):
|
||||
self.run("monitor")
|
||||
|
||||
def gen_yunionconf(self):
|
||||
self.run("yunionconf")
|
||||
|
||||
def gen_notify(self):
|
||||
self.run("notify")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user