Merge pull request #7869 from ioito/hotfix/qx-cloudevent-doamin-filter

fix: 支持公有云域过滤操作日志
This commit is contained in:
Zexi Li
2020-11-19 14:44:31 +08:00
committed by GitHub
6 changed files with 150 additions and 1 deletions

View File

@@ -134,6 +134,7 @@ class ModelAPI(FuncDispatcher):
self.run_model("image")
self.run_model("cloudid")
self.run_model("notify")
self.run_model("cloudevent")
def gen_monitor(self):
self.run(pkg=["monitor", "models"], out=["monitor"])
@@ -187,6 +188,11 @@ class SwaggerCode(FuncDispatcher):
def gen_notify(self):
self.run("notify", pkg=["models"], out="notify")
def gen_cloudevent(self):
self.run("cloudevent", pkg=["models"], out="cloudevent")
class SwaggerYAML(FuncDispatcher):
def __init__(self, swagger_dir, out_dir):
@@ -222,6 +228,9 @@ class SwaggerYAML(FuncDispatcher):
def gen_notify(self):
self.run("notify")
def gen_cloudevent(self):
self.run("cloudevent")
class SwaggerServe(object):
def __init__(self, output_dir):