def schema(): return { **action(), Optional("parameters"): { Optional("kernel-start-message"): str, Optional("shutdown-message"): str, }, Optional("soft_reboot"): str, }
def schema(live=False): base = { **action(live), Optional("parameters"): { Optional("kernel-start-message"): str, Optional("shutdown-message"): str, }, Optional("soft_reboot"): str, } return base
def schema(live=False): base = {**action(live), Optional("os"): str, Optional("authorize"): "ssh"} if not live: return base return { **base, Optional("deployment_data"): { str: Any(str, bool, float, int) } }
def schema(): return action()
def schema(): return {**action(), Optional("os"): str, Optional("authorize"): "ssh"}
def schema(live=False): if not live: return action(live) return {**action(live), Required("stage"): Range(min=0)}
def schema(): return {**action(), Required("name"): str}
def schema(live=False): return {**action(live), Required("name"): str}