예제 #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))
예제 #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))
예제 #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))
예제 #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))
예제 #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())
예제 #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))
예제 #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))
예제 #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))
예제 #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))
예제 #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))
예제 #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())
예제 #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())
예제 #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))
예제 #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))
예제 #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))
예제 #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))
예제 #17
0
def run_submission(data):
    return u.render(api.run_submission(data)) 
예제 #18
0
def stop_submission(submission_id, data):
    return u.render(api.stop_submission(submission_id, data))
예제 #19
0
def submission_status(submission_id):
    return u.render(api.submission_status(submission_id))
예제 #20
0
def list_submissions():
    return u.render(api.list_submissions())
예제 #21
0
def healthz():
    """ A health check endpoint .
    Normal response codes: 200
    """
    return u.render("OK", status=200)
예제 #22
0
def submission_log(submission_id):
    return u.render(api.submission_log(submission_id))
예제 #23
0
def terminate_submission(submission_id, data):
    return u.render(api.terminate_submission(submission_id, data))