def get_list(app_id): if app_id: params = { 'app': app_id } return core.get('/jobs', params=params) return core.get('/jobs')
def get_list(app_id, base_id): params = {} if app_id: params['app'] = app_id if base_id: params['base_model'] = base_id return core.get('/labels', params=params)
def get_detail(id): return core.get('/jobs/{}'.format(id))
def get_list(app_id): if app_id: params = {'app': app_id} return core.get('/base_models', params=params) return core.get('/base_models')
def get_detail(id): return core.get('/base_models/{}'.format(id))
def list_images(id): return core.get('/labels/{}/list_images'.format(id))
def get_detail(id): return core.get('/labels/{}'.format(id))
def get_detail(uuid): return core.get('/tasks/{}'.format(uuid))
def get_list(): return core.get('/tasks')
def get_detail(id): return core.get('/images/{}'.format(id))
def get_list(): return core.get('/images')