# Path: ceagle/api_fake_data/fake_runbooks.py
# def get_single_runbook(with_latest_run=True):
# def get_single_run(with_parent=True):
# def handle_runbooks(region=None):
# def handle_single_runbook(region, book_id):
# def run_runbook(region, book_id):
# def runbook_runs(region=None):
# def single_runbook_run(region, run_id):


import flask
from ceagle.api_fake_data import fake_runbooks
# Copyright 2016: Mirantis Inc.
# All Rights Reserved.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.




bp = flask.Blueprint("runbooks", __name__)


@bp.route("/runbooks", methods=["GET"])
@bp.route("/region/<region>/runbooks",
          methods=["GET", "POST"])

# Path: ceagle/api_fake_data/fake_runbooks.py
# def get_single_runbook(with_latest_run=True):
# def get_single_run(with_parent=True):
# def handle_runbooks(region=None):
# def handle_single_runbook(region, book_id):
# def run_runbook(region, book_id):
# def runbook_runs(region=None):
# def single_runbook_run(region, run_id):


# Path: ceagle/api/v1/runbooks.py
import flask
from ceagle.api_fake_data import fake_runbooks

# Copyright 2016: Mirantis Inc.
# All Rights Reserved.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.




bp = flask.Blueprint("runbooks", __name__)


@bp.route("/runbooks", methods=["GET"])
@bp.route("/region/<region>/runbooks",
          methods=["GET", "POST"])

@fake_runbooks.handle_runbooks