# Path: deckhand/policies/base.py
# POLICY_ROOT = 'deckhand:%s'
# RULE_ADMIN_API = 'rule:admin_api'
# def list_rules():


from oslo_policy import policy
from deckhand.policies import base
# 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.




revision_policies = [
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'show_revision',
        base.RULE_ADMIN_API,
        "Show details for a revision.",
        [
            {
                'method': 'GET',
                'path': '/api/v1.0/revisions/{revision_id}'
            }
        ]),
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'list_revisions',
        base.RULE_ADMIN_API,
        "List all revisions.",
        [
            {
                'method': 'GET',
                'path': '/api/v1.0/revisions'
            }
        ]),
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'delete_revisions',

# Path: deckhand/policies/base.py
# POLICY_ROOT = 'deckhand:%s'
# RULE_ADMIN_API = 'rule:admin_api'
# def list_rules():


# Path: deckhand/policies/revision.py
from oslo_policy import policy
from deckhand.policies import base

# 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.




revision_policies = [
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'show_revision',
        base.RULE_ADMIN_API,
        "Show details for a revision.",
        [
            {
                'method': 'GET',
                'path': '/api/v1.0/revisions/{revision_id}'
            }
        ]),
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'list_revisions',
        base.RULE_ADMIN_API,
        "List all revisions.",
        [
            {
                'method': 'GET',
                'path': '/api/v1.0/revisions'
            }
        ]),
    policy.DocumentedRuleDefault(
        base.POLICY_ROOT % 'delete_revisions',

        base.RULE_ADMIN_API,