def __init__(self, api_manger): self.name = u'BasicModule' ApiModule.__init__(self, api_manger, self.name) self.apis = [BaseAPI] self.controller = BasicController(self)
def __init__(self, api_manger): self.name = u'EventModule' ApiModule.__init__(self, api_manger, self.name) self.apis = [EventAPI] self.controller = EventController(self)
def __init__(self, api_manger): self.name = 'EventModule' self.base_path = 'nes' ApiModule.__init__(self, api_manger, self.name) self.apis = [EventAPI] self.controller = EventController(self)
def __init__(self, api_manger): self.name = u'SchedulerModule' ApiModule.__init__(self, api_manger, self.name) self.apis = [SchedulerAPI, TaskAPI] self.api_plugins = {} self.controller = SchedulerController(self)
def __init__(self, api_manger): """ """ self.name = 'ConfigModule' ApiModule.__init__(self, api_manger, self.name) self.apis = [ConfigAPI] self.controller = ConfigController(self)
def __init__(self, api_manger): self.name = u'AuthModule' ApiModule.__init__(self, api_manger, self.name) self.apis = [AuthorizationAPI, SimpleHttpAuthApi, KeyAuthApi] self.authentication_manager = AuthenticationManager( api_manger.auth_providers) self.controller = AuthController(self)
def __init__(self, api_manger): self.name = u'CatalogModule' ApiModule.__init__(self, api_manger, self.name) self.apis = [CatalogAPI] self.authentication_manager = AuthenticationManager( api_manger.auth_providers) self.controller = CatalogController(self)
def __init__(self, api_manger): self.name = 'SchedulerModule' ApiModule.__init__(self, api_manger, self.name) self.apis = [SchedulerAPI, TaskAPI] self.api_plugins = {} self.controller = SchedulerController(self) # get related module try: self.related = api_manger.main_module self.base_path = self.related.base_path except: pass