def images_update(data): return {"image": template(IMAGE, data, add=IMAGE_PROPERTIES)}
def keypairs_show(data): return {"keypair": template(KEYPAIR_INFO, data)}
def servers_boot(data): return {"server": template(SERVER_INFO, data)}
def keypairs_add(data): return {"keypair": template(KEYPAIR, data, add_if_present='private_key')}
def keypairs_list(data): return {"keypairs": template(KEYPAIR, data)}
def images_show(data): return {"image": template(IMAGE_INFO, data, add=IMAGE_LINKS)}
def images_list(data, details=True): if details: return {"images": template(IMAGE_INFO, data, add=IMAGE_LINKS)} else: return {"images": template(IMAGE, data, add=IMAGE_LINKS)}
def flavors_show(data): return {"flavor": template(FLAVOR_INFO, data, add=FLAVOR_LINKS)}
def flavors_list(data, details=True): if details: return {"flavors": template(FLAVOR_INFO, data, add=FLAVOR_LINKS)} else: return {"flavors": template(FLAVOR, data, add=FLAVOR_LINKS)}
def servers_list(data, details=True): if details: return {"servers": template(SERVER_INFO, data)} else: return {"servers": template(SERVER, data)}