def show_image(data): return utils.json_render(IMAGE, data)
def update_image(data): return utils.json_render(IMAGE, data)
def list_versions(): return {'versions': [utils.json_render(VERSION_v2, CONF.get_options())]}
def list_images(data): return {'images': [utils.json_render(IMAGE, d) for d in data]}
def list_keypairs(data): return {'keypairs': [utils.json_render(KEYPAIR, d, _details=False) for d in data]}
def list_flavors(data, details=True): return {'flavors': [utils.json_render(FLAVOR, d, _details=details) for d in data]}
def show_flavor(data): return {'flavor': utils.json_render(FLAVOR, data, _details=True)}
def show_server(data): return {'server': utils.json_render(SERVER, data, _details=True)}
def list_servers(data, details=True): return {'servers': [utils.json_render(SERVER, d, _details=details) for d in data]}
def show_keypair(data): return {'keypair': utils.json_render(KEYPAIR, data, _details=True)}
def authenticate(): return {'access': utils.json_render(TOKEN, CONF.get_options())}
def show_version_v2d0(): return {'version': utils.json_render(VERSION_v2d0, CONF.get_options())}
def create_keypair(data): return {'keypair': utils.json_render(KEYPAIR, data, _details=False)}