Beispiel #1
0
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))
Beispiel #2
0
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))
Beispiel #3
0
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))
Beispiel #4
0
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))
Beispiel #5
0
def list_submissions():
    """ List all submissions (done or not).

    Normal response codes: 200
    Error response codes: 400, 401
    """
    return u.render(api.list_submissions())
Beispiel #6
0
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))
Beispiel #7
0
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))
Beispiel #8
0
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))
Beispiel #9
0
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))
Beispiel #10
0
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))
Beispiel #11
0
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())
Beispiel #12
0
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())
Beispiel #13
0
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))
Beispiel #14
0
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))
Beispiel #15
0
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))
Beispiel #16
0
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))
Beispiel #17
0
def run_submission(data):
    return u.render(api.run_submission(data)) 
Beispiel #18
0
def stop_submission(submission_id, data):
    return u.render(api.stop_submission(submission_id, data))
Beispiel #19
0
def submission_status(submission_id):
    return u.render(api.submission_status(submission_id))
Beispiel #20
0
def list_submissions():
    return u.render(api.list_submissions())
Beispiel #21
0
def healthz():
    """ A health check endpoint .
    Normal response codes: 200
    """
    return u.render("OK", status=200)
Beispiel #22
0
def submission_log(submission_id):
    return u.render(api.submission_log(submission_id))
Beispiel #23
0
def terminate_submission(submission_id, data):
    return u.render(api.terminate_submission(submission_id, data))