def stop_submission(submission_id, data): """ Stop a running submission. Normal response codes: 204 Error response codes: 400, 401 """ return u.render(api.stop_submission(submission_id, data))
def submission_errors(submission_id): """ Show the errors in an execution. Normal response codes: 200 Error response codes: 400, 401 """ return u.render(api.submission_errors(submission_id))
def run_submission(data): """ Run a new submission and returns a submission id. Normal response codes: 202 Error response codes: 400, 401 """ return u.render(api.run_submission(data))
def submission_status(submission_id): """ Show status of a specific submission. Normal response codes: 200 Error response codes: 400 """ return u.render(api.submission_status(submission_id))
def list_submissions(): """ List all submissions (done or not). Normal response codes: 200 Error response codes: 400, 401 """ return u.render(api.list_submissions())
def delete_cluster(cluster_name, data): """ Delete a cluster reference in the Asperathos section. Normal response codes: 202 Error response codes: 400, 401 """ return u.render(api.delete_cluster(cluster_name, data))
def add_certificate(cluster_name, data): """ Add a certificate to a cluster reference in the Asperathos section. Normal response codes: 202 Error response codes: 400, 401 """ return u.render(api.add_certificate(cluster_name, data))
def add_cluster(data): """ Add a new cluster reference in the Asperathos section. Normal response codes: 202 Error response codes: 400, 401 """ return u.render(api.add_cluster(data))
def submission_visualizer(submission_id): """ Return the visualizer URL of a specific submission. Normal response codes: 200 Error response codes: 400 """ return u.render(api.submission_visualizer(submission_id))
def terminate_submission(submission_id, data): """ Terminate a running submission. Normal response codes: 204 Error response codes: 400, 401 """ return u.render(api.terminate_submission(submission_id, data))
def get_activated_cluster(): """ Get the current active cluster in a Asperathos Manager instance Normal response codes: 200 Error response codes: 400 """ return u.render(api.get_activated_cluster())
def get_clusters(): """ Get the list of usable clusters in a Asperathos Manager instance Normal response codes: 200 Error response codes: 400 """ return u.render(api.get_clusters())
def activate_cluster(cluster_name, data): """ Start to use the informed cluster as active cluster in the Asperathos section. Normal response codes: 200 Error response codes: 400 """ return u.render(api.activate_cluster(cluster_name, data))
def delete_submission(submission_id, data): """ Delete a done submission for the list of all submissions Normal response codes: 200 Error response codes: 400 """ return u.render(api.delete_submission(submission_id, data))
def delete_all_submissions(data): """ Delete all done submissions from the list of all submissions. Normal response codes: 200 Error response codes: 400 """ return u.render(api.delete_all_submissions(data))
def submission_report(submission_id): """ Show the detailed report of a specific submission. Normal response codes: 200 Error response codes: 400 """ return u.render(api.submission_report(submission_id))
def run_submission(data): return u.render(api.run_submission(data))
def stop_submission(submission_id, data): return u.render(api.stop_submission(submission_id, data))
def submission_status(submission_id): return u.render(api.submission_status(submission_id))
def list_submissions(): return u.render(api.list_submissions())
def healthz(): """ A health check endpoint . Normal response codes: 200 """ return u.render("OK", status=200)
def submission_log(submission_id): return u.render(api.submission_log(submission_id))
def terminate_submission(submission_id, data): return u.render(api.terminate_submission(submission_id, data))