fix: 支持公有云域过滤操作日志

This commit is contained in:
Qu Xuan
2020-09-11 15:43:19 +08:00
parent 6d076cf238
commit ef3d74f4ea
8 changed files with 157 additions and 5 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"])
@@ -180,6 +181,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):
@@ -212,6 +218,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):